/* 基本リセット */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Mono:wght@300&family=Shippori+Mincho+B1:wght@400;500;600&family=Zen+Maru+Gothic&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    min-height: 100vh;
    font-family: "Zen Maru Gothic", serif;
    font-weight: 400;
    font-style: normal;
    background-color: #EAE5E3;
    color: #333;
    line-height: 1.6;
}

a{
    color: #9E3D3F;
}

/* ヘッダー（左サイドバー） */
header {
    position: fixed;
    left: 0;
    top: 0;
    width: 600px; /* サイドバーの幅 */
    height: 100%;
    background-image: url('images/header01.png');
    background-size: cover;
    background-position: center;
    color: #EAE5E3;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* トーン調オーバーレイ */
header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* トーン調のオーバーレイ色 */
    z-index: 1;
}

/* タイトル */
header h1 {
    position: relative;
    z-index: 2;
    font-size: 2em;
    color: #EAE5E3;
    font-family: "Shippori Mincho B1", serif;
    font-weight: 600;
    font-style: normal;
    margin: 40px;
}

header h1 a {
    color: #EAE5E3;
    text-decoration: none;
    background: none;
}

header h1 a:hover {
    color: #EAE5E3;
    text-decoration: none;
    background: none;
}

/* 縦並びのナビゲーション */
nav {
    position: relative;
    z-index: 2;
    margin: auto;
}

nav ul {
    font-family: "Shippori Mincho B1", serif;
    font-weight: 500;
    font-style: normal;
    list-style-type: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

nav ul a{
	position: relative;
	border: 1px solid #EAE5E3;
	color: #EAE5E3;
	text-decoration: none;
	padding: 8px 30px;
	display: inline-block;
	text-align: center;
	transition: all .2s linear;
}

nav ul a:hover{
	background:#EAE5E3;
	color:#9E3D3F;
}

nav ul a::before {
	border-bottom: 1px solid #EAE5E3;
	border-right: 1px solid #EAE5E3;
	content: '';
	height: 10px;
	position: absolute;
	top:calc(50% - 10px);
	right:-20px;
	transform: skewX(50deg);
	width:35px;
	transition: all .3s; /*なめらかな動き*/
}

/*hoverした際の移動*/

nav ul a:hover::before {
	right:-25px;
}

/* フレックスボックスの設定 */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ヘッダーの幅に合わせたマージン設定 */
main {
    flex-grow: 1; /* メインコンテンツが余白を埋める */
    margin-left: 650px; /* サイドバーの幅に合わせる */
    padding: 40px 20px;
}

p{
    margin-bottom: 1rem;
}

h2 {
    font-family: "Shippori Mincho B1", serif;
    font-weight: 500;
    font-style: normal;
    position: relative;
    line-height: 1.4;
    padding:0.25em 1em;
    margin-bottom: 1.2rem;
    display: inline-block;
    }

h2:before, h2:after {
    content:'';
    width: 20px;
    height: 30px;
    position: absolute;
    display: inline-block;
    }

h2:before {
    border-left: solid 1px #9E3D3F;
    border-top: solid 1px #9E3D3F;
    top:0;
    left: 0;
    }

h2:after {
    border-right: solid 1px #9E3D3F;
    border-bottom: solid 1px #9E3D3F;
    bottom:0;
    right: 0;
    }

h3{
    font-family: "Shippori Mincho B1", serif;
    font-weight: 500;
    font-style: normal;
    padding: 0.25em 0.5em;/*上下 左右の余白*/
    background: transparent;/*背景透明に*/
    border-left: double 3px #9E3D3F;/*左線*/
    margin-bottom: 1rem;
}

.btn1 a {
    margin-bottom: 1.5rem;
	position: relative;
	border: 1px solid #9E3D3F;
	color: #9E3D3F;
	text-decoration: none;
	padding: 8px 30px;
	display: inline-block;
	text-align: center;
	transition: all .2s linear;
}

.btn1 a:hover{
	background:#9E3D3F;
	color:#EAE5E3;
}

.btn1 a::before {
	border-bottom: 1px solid #9E3D3F;
	border-right: 1px solid #9E3D3F;
	content: '';
	height: 10px;
	position: absolute;
	top:calc(50% - 10px);
	right:-20px;
	transform: skewX(50deg);
	width:35px;
	transition: all .3s; /*なめらかな動き*/
}

/*hoverした際の移動*/

.btn1 a:hover::before {
	right:-25px;
}

ul{
    list-style-type: none;
    padding: 0;
    margin-bottom: 1rem;
}

.guide {
    list-style:  none;  /* デフォルトのアイコンを消す */
    margin:  0;         /* デフォルト指定上書き */
    margin-bottom: 0.5rem;
    padding: 0;         /* デフォルト指定上書き */
}


.guide:before {
    content:  "";     /* 空の要素作成 */
    width:  10px;               /* 幅指定 */
    height:  10px;              /* 高さ指定 */
    display:  inline-block;     /* インラインブロックにする */
    background-color: #9E3D3F;  /* 背景色指定 */
    border-radius:  50%;        /* 要素を丸くする */
    position:  relative;        /* 位置調整 */
    top: 0;                  /* 位置調整 */
    margin-right: 5px;          /* 余白指定 */
}

.topimg {
    width: 100%;
    border: 1px solid #333;
}

/* 作品ギャラリー */
.gallery, .work-category ul {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gallery ul, .work-category ul {

}

.gallery li, .work-category li {
    background-color: #EAE5E3;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 8px;
    transition: transform 0.3s;
}

.gallery li:hover, .work-category li:hover {
    transform: scale(1.05);
}

.gallery a, .work-category a {
    text-decoration: none;
    color: #333;
}

/* Newsセクション */
#news,#works,#blog,#contact {
    background-color: #D3CBC6;
    padding: 50px;
    border-radius: 3px;
    margin-bottom: 1.5rem;
}

/* Newsセクション */
#about,#temp,#support {
    padding: 50px;
    margin-bottom: 1.5rem;
}

/* Newsセクション */
#works {
    background-color: #D3CBC6;
    padding: 50px;
    border-radius: 3px;
    margin-bottom: 1.5rem;
}

/* Supportセクション */
#support {
    padding: 50px;
    margin-bottom: 1.5rem;
}

/* Contactセクション */
#contact {
    background-color: #D3CBC6;
    padding: 50px;
    border-radius: 3px;
    margin-bottom: 1.5rem;
}

#contact ul {
    list-style-type: none;
    padding: 0;
}

#contact a {
    color: #5c5c5c;
    text-decoration: none;
}

#contact a:hover {
    text-decoration: underline;
}

/* tegalogセクション */
.tegalog {
    padding: 50px;
    margin-bottom: 1.5rem;
}

/* フッター情報をヘッダーの一番下に配置 */
.footer-info {
    margin-top: auto; /* ヘッダーの一番下に配置 */
    text-align: center;
    font-size: 0.9em;
    color: #ddd;
    z-index: 2;
}

.footer-info a {
    color: #ddd;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

/* シンプルなフェードインアニメーション */
.fade-in {
    opacity: 0;
    animation: fadeIn 3s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.kframe {
    display: block;
    width: 100%;/* 外枠の幅 */
    height: 100%;/* 外枠の高さ */
    border: 1px solid #555 ;
    }

/* ハンバーガーメニュー */
.hamburger-menu {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
    z-index: 3;
    position: relative;
}

/* スマホ向けのスタイル */
@media (max-width: 1024px) {
    body {
        flex-direction: column;
    }

    /* ヘッダーのスタイル */
    header {
        width: 100%;
        height: auto;
        position: relative;
        padding: 10px;
    }

    /* ハンバーガーメニューアイコンを右上に固定 */
    .hamburger-menu {
        display: block;
        font-size: 1.8em;
        cursor: pointer;
        z-index: 3;
        position: fixed;
        top: 15px;
        right: 15px;
        color: #fff;
    }

    /* ナビゲーションメニューのスライドインアニメーション */
    #navMenu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: 65%; /* メニュー幅を調整 */
        background-color: rgba(30, 30, 30, 0.8);
        transform: translateX(100%); /* 初期位置を画面外に */
        transition: transform 0.3s ease; /* スライドのアニメーション */
        z-index: 2;
    }

    /* メニュー表示時にスライドイン */
    .nav-open #navMenu {
        display: block;
        transform: translateX(0); /* 表示時にスライドイン */
    }

    nav ul {
        list-style-type: none;
        flex-direction: column;
        align-items: center;
        padding: 60px 0; /* 余白を入れて中央に配置 */
        gap: 1rem;
    }

    nav a {
        color: #fff;
        text-decoration: none;
        font-size: 1em;
        margin: 15px 0;
    }

    main {
        font-size: 0.9rem;
        margin-left: 0;
        padding:10px;
    }

        section.tegalog{
            margin: 30px auto 0;
        }

        .tegalog{
            padding: 20px;
        }
    }

        /* フッター情報のスタイル調整 */
        .footer-info {
            text-align: center;
            color: #ddd;
            margin-top: auto; /* 下部に配置 */
            padding: 20px 0;
        }

        .footer-info a {
            color: #ddd;
            font-size: 0.8em;
            text-decoration: none;
        }

        .footer-info a:hover {
            background-color: initial;
            font-size: 0.8em;
            text-decoration: underline;
        }

/* ページ上部に戻るボタン */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    font-size: 1.5em;
    background-color: #9E3D3F;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10;
}
