/*
Theme Name: ARKE Child
Template: arkhe
Description: ARKEの子テーマ
Version: 1.0
*/

/* ここから下に既存のHTMLサイトのCSSを貼り付ける */
  :root {
            --bg-color: #f9f8f6;
            --main-text: #2c2c2c;
            --accent-color: #a67c52;
            --paper-white: #ffffff;
        }

        body {
            background-color: var(--bg-color);
            color: var(--main-text);
            font-family: 'Noto Serif JP', serif;
            margin: 0;
            line-height: 2.2;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh;
        }

        /* 紙の質感テクスチャ */
        body::before {
            content: "";
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            opacity: 0.04;
            pointer-events: none;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://w3.org id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
            z-index: 9999;
        }

        /* メニューボタン */
        .menu-btn {
            position: fixed;
            top: 40px;
            right: 40px;
            z-index: 1000;
            cursor: pointer;
            background: none;
            border: none;
            padding: 10px;
        }

        .menu-btn span {
            display: block;
            width: 25px;
            height: 1px;
            background-color: var(--main-text);
            margin: 6px 0;
            transition: 0.3s;
        }

  

/* メニューが開いた状態（is-openedなどのクラスが付与される場合） */
.is-opened .p-drawer {
    transform: translateX(0);
}


        .nav-links {
            list-style: none;
            text-align: center;
            padding: 0;
        }

        .nav-links li {
            margin: 20px 0;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--main-text);
            font-size: 1.2rem;
            letter-spacing: 0.3em;
            transition: color 0.3s;
        }

        .nav-links a:hover {
            color: var(--accent-color);
        }

        header {
            margin-top: 15vh;
            text-align: center;
            opacity: 0;
            transform: translateY(10px);
            transition: all 2s ease;
        }

/* main自体の幅制限をなくす（または広げる） */
                  main {
              max-width: 100%; /* もしくは 1200px など */
               width: 100%;
            margin: 8vh auto; /* 中央寄せにしないは 0 */
            opacity: 0;
            transform: translateY(20px);
            transition: all 2.5s ease 0.5s;
        }

/* 記事内の通常の文章だけを 640px に制限する */
　　　　.entry-content > *:not(.alignfull) {
   　　　 max-width: 640px;
   　　　 margin-left: auto;
   　　　 margin-right: auto;
　　　}


        .manuscript {
            background: var(--paper-white);
            padding: 60px;　
            box-shadow: 0 100px 30px rgba(0,0,0,0.03);　/*  左右10pxから */
            width: 50dvw; /* 画面に対する絶対幅 */
            box-sizing: border-box;
            margin-bottom: 80px;
           /* ％ベースでの絶対幅指定（例: 親要素を無視して画面基準の50%にする） */
           position: relative;
           left: 50%;
           transform: translateX(-50%);
           width: 50%; /* 親要素の幅が狭い場合はここを 50% から適宜調整 */
           }

        /* 作品一覧セクション */
        .archive-section {
            margin-top: 100px;
            border-top: 1px solid #e0e0e0;
            padding-top: 40px;
        }

        .archive-title {
            font-size: 0.9rem;
            letter-spacing: 0.4em;
            color: var(--accent-color);
            margin-bottom: 30px;
            text-align: center;
        }

        .work-list {
            list-style: none;
            padding: 0;
        }

        .work-item {
            display: flex;
            justify-content: space-between;
            padding: 15px 10px;
            border-bottom: 1px solid #f0f0f0;
            text-decoration: none;
            color: var(--main-text);
            transition: background 0.3s;
        }

        .work-item:hover {
            background-color: #fff;
            color: var(--accent-color);
        }

        .work-date {
            font-size: 0.75rem;
            color: #aaa;
        }

        .is-visible {
            opacity: 1;
            transform: translateY(0);
        }

        footer {
            padding: 50px;
            font-size: 0.75rem;
            letter-spacing: 0.2em;
            color: #aaa;
        }


	     display: grid;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 20px;
        margin: 60px 0;
        text-align: center;
    }

    .theme-box {
        position: relative;
        padding: 20px 10px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .theme-label-en {
        display: block;
        font-size: 0.75rem;
        letter-spacing: 0.2em;
        color: var(--accent-color);
        margin-bottom: 5px;
    }

    .theme-label-jp {
        display: block;
        font-size: 0.95rem;
        letter-spacing: 0.1em;
        font-weight: 500;
    }

    /* ホバー時の装飾：下にラインが伸びる */
    .theme-box::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 1px;
        background-color: var(--accent-color);
        transition: all 0.4s ease;
        transform: translateX(-50%);
    }

    .theme-box:hover::after {
        width: 60%;
    }
    
    .theme-box:hover .theme-label-jp {
        color: var(--accent-color);
    }
 

    /* 親要素のスタイル（位置計算の基準にする） */
	.nav-links > li {
    	position: relative;
	}



	/* サブメニューの初期状態（隠す） */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    list-style: none;
    padding-left: 20px; /* 階層をわかりやすくするインデント */
    background-color:rgba(25, 30, 95, 0.1 ); /* 少し色を変えると見やすい */
}

/* クラスがついた時に展開 */
.menu-item-has-children.open .submenu {
    max-height: 300px; /* サブメニューが収まる十分な高さ */
    padding-top: 10px;
    padding-bottom: 10px;
}

/* 矢印アイコンなどをお好みで追加（任意） */
.submenu-toggle::after {
    content: '▶';
    font-size: 0.7em;
    transition: transform 0.3s;
    display: inline-block;
}
.menu-item-has-children.open .submenu-toggle::after {
    transform: rotate(180deg);
}

    /* 個別の　sub grobalmenuの設定 */

/* 子テーマの style.css に追加 */
.local-nav-wrapper {
    background-color: #f7f7f7;
    padding: 10px 0;
    margin-bottom: 20px;
}

.local-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.local-nav ul li {
    margin: 0 15px;
}

.local-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}


/* 特定ページIDのページだけ高さを抑える */
.page-id-10 .l-entryHeader {
    padding-top: none;
    padding-bottom: none;
}
.page-id-10 .entry-title {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.2; /* 行間を詰めるとさらに高さが減ります */
}

/* タイトルの罫線設定 */
.custom-cat-list ul li {
   list-style:none;
   border-bottom: 1px solid #CCCCCC  !important;
   padding-top: 10px  !important;
   padding-bottom: 50px  !important;
}

/* リスト全体のスタイル */
.custom-post-list ul li {
    display: flex;
    align-items: center;
    margin-bottom: 12px; /* 行間の余白 */
    font-size: 20px;    /* タイトルのサイズ */
}

/* 1. 記事タイトルのフォントサイズ */
.custom-cat-list li a {
    font-size:18px !important; /* タイトルを大きく */
    text-decoration: none;
}


/* ==========================================================================
   サブメニューの共通初期設定（最初は隠す）
   ========================================================================== */
.submenu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    list-style: none;
    padding-left: 0; /* 中央寄せを保つため0に */
    transition: max-height 0.4s ease-out, opacity 0.3s ease, visibility 0.3s;
}

/* 矢印アイコンの設定（既存の設定を調整） */
.submenu-toggle::after {
    content: ' ▼'; /* 下向き矢印 */
    font-size: 0.6em;
    margin-left: 0.5em;
    transition: transform 0.3s;
    display: inline-block;
    vertical-align: middle;
}

/* ==========================================================================
   PC環境（画面幅 1024px 以上）：マウスホバーで展開
   ========================================================================== */
@media screen and (min-width: 1024px) {
    .nav-links > li.menu-item-has-children:hover .submenu {
        max-height: 400px; /* サブメニューが収まる十分な高さ */
        opacity: 1;
        visibility: visible;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    /* ホバー時に矢印を上に向ける */
    .nav-links > li.menu-item-has-children:hover .submenu-toggle::after {
        transform: rotate(180deg);
    }
}

/* ==========================================================================
   スマホ環境（画面幅 1023px 以下）：クリック（openクラス）で展開
   ========================================================================== */
@media screen and (max-width: 1023px) {
    .menu-item-has-children.open .submenu {
        max-height: 400px;
        opacity: 1;
        visibility: visible;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    /* クラスがついた時に矢印を上に向ける */
    .menu-item-has-children.open .submenu-toggle::after {
        transform: rotate(180deg);
    }
}
