/* ============================================================
    HEADER: 基本構造 (SP & PC) - 視覚補正版
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: flex-end; 
    justify-content: space-between;
    padding: 10px 20px 10px;
    z-index: 1000;
    background-color: #fff !important;
    box-sizing: border-box;
    font-family: "ABChanel Corpo Regular","Noto Sans JP", "Noto Sans CJK JP", YakuHanJP, "Yu Gothic", YuGothic, "Hiragino Sans", sans-serif;
}

.header-nav-left.pc-only {
    display: none;
}

.header-logo {
    flex: 0 0 auto;
}

.header-logo img,
.header-logo svg {
    width: 126px;
    height: auto;
    display: block;
}

/* 右側：アイコン群の視覚的調整 */
.header-right {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 15px;
    z-index: 5;
    /* --- 視覚的補正：3px下にずらす --- */
    transform: translateY(3px); 
}

.sub-menu-icon svg {
    width: 18px;
    height: auto;
    display: block;
}

.bar {
    width: 14px;
    height: 1px;
    background-color: #000;
    margin: 6px 0 !important;
}

/* ------------------------------------------------------------
    PC表示 (813px以上)
   ------------------------------------------------------------ */
@media (min-width: 813px) {
    .header {
        padding: 10px 45px 10px;
        height: auto;
    }

    .header-nav-left.pc-only {
        display: flex;
        flex: 1;
        gap: 25px;
        align-items: flex-end;
        /* ナビ（テキスト）も少し浮いて見える場合はここを調整 */
        transform: translateY(0px); 
    }

    .header-nav-left.pc-only a {
        text-decoration: none;
        color: #000;
        font-size: 11px;
        line-height: 1;
    }

    .header-logo img,
    .header-logo svg {
        width: 136px;
    }

    .header-right {
        flex: 1;
        gap: 25px;
        /* PC版でも3px下げを維持 */
        transform: translateY(3px); 
    }

    .bar {
        width: 16px;
    }
}

/* ============================================================
   DRAWER: メニュー内デザイン
   ============================================================ */
.header_menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 1001;
    padding: 80px 30px 40px;
    transition: all 0.4s ease;
    opacity: 0;
    overflow-y: auto;
}

.menu-open {
    right: 0;
    opacity: 1;
}

.menu-main-list,
.menu-sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-main-list li {
    margin-bottom: 18px;
}

.menu-main-list li a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    text-transform: uppercase;
}

.menu-sub-list {
    margin: 40px 0;
}

.menu-sub-list li {
    margin-bottom: 10px;
}

.menu-sub-list li a {
    text-decoration: none;
    font-size: 13px;
    color: #666;
}

.menu-bottom-image img {
    width: 100%;
    height: auto;
}

.close-button {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    cursor: pointer;
}

@media (min-width: 813px) {
    .header_menu {
        width: 33%;
        padding: 100px 60px;
    }
}

/* ============================================================
   SEARCH: 検索ロジック (上部位置指定＆PC中央配置対応)
   ============================================================ */
#search-toggle {
    display: none;
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.0);
    z-index: 2000;
}

#search-toggle:checked ~ .overlay {
    display: block;
}

/* 検索フォーム本体 (SP: 全幅 ＆ 上から47px) */
.search-form {
    position: fixed;
    top: 47px; /* ★スマホ版：画面上から47px */
    left: 0;
    width: 100%; /* スマホ版：画面いっぱい */
    padding: 40px 20px;
    background: #fff;
    z-index: 2001;
    box-sizing: border-box;
    
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    
    transform: translateY(-100%);
    transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s;
}

/* チェックが入った時（表示時 - SP用） */
#search-toggle:checked ~ .search-form {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* 閉じるボタン（×） */
.close-label {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    font-weight: 300;
}

/* 入力エリアのデザイン */
.search-form input[type="text"] {
    width: 100%;
    border: none;
    border-bottom: 1px solid #000;
    padding: 10px 0;
    font-size: 16px;
    outline: none;
    border-radius: 0;
}

/* クイックリンク */
.search-quick-links {
    list-style: none;
    padding: 25px 0 0 20px; /* 左余白を少し調整 */
    margin: 0;
}

.search-quick-links li {
    margin-bottom: 8px;
}

.search-quick-links li a {
    text-decoration: none;
    color: #000;
    font-size: 14px;
    letter-spacing: 0.05em;
    transition: opacity 0.3s;
}

.search-quick-links li a:hover {
    opacity: 0.6;
}

@media (min-width: 813px) {
    /* PC版：中央配置 ＆ 上から49px */
    .search-form {
        top: 49px; /* ★PC版：画面上から49px */
        left: 50%; /* 中央寄せの起点 */
        width: 450px; /* ★PC版の幅（キャプチャに近い幅。必要に応じて調整してください） */
        padding: 50px 45px;
        
        /* X軸は-50%で中央に固定し、Y軸で上に隠す */
        transform: translate(-50%, -100%);
    }
    
    /* チェックが入った時（表示時 - PC用） */
    #search-toggle:checked ~ .search-form {
        /* X軸の中央寄せを維持したまま、Y軸を0にして降ろす */
        transform: translate(-50%, 0);
    }
    
    .search-quick-links {
        padding-left: 20px; /* 中央配置の枠内でバランスを取るための余白 */
    }
}

/* ============================================================
   FOOTER: レイアウト & 巨大ロゴ
   ============================================================ */
#footer {
    z-index: 3;
    padding-top: 50px;
    border-top: 1px solid #eee;
	font-family: "ABChanel Corpo Regular", "Noto Sans JP", "Noto Sans CJK JP", YakuHanJP, "Yu Gothic", YuGothic, "Hiragino Sans", sans-serif;
	padding-bottom: 40px;
}

#footer a {
    text-decoration: none;
    color: #858585;
    font-size: 12px;
}
#footer section:first-of-type {
    margin: 0px auto 40px;
}
.footer_flex {
    padding: 0 20px;
}

.border-line {
    border-bottom: 1px solid #ddd;
    margin-bottom: 5px;
}

/* フッターアコーディオン (+/-) */
.ttl-accordion {
    position: relative;
    cursor: pointer;
    padding: 15px 0;
}

.ttl-accordion::before,
.ttl-accordion::after {
    position: absolute;
    top: 50%;
    right: 0;
    content: '';
    width: 10px;
    height: 1px;
    background-color: #000;
}

.ttl-accordion::after {
    transform: rotate(90deg);
    transition: 0.3s;
}

.ttl-accordion.is-active::after {
    transform: rotate(0deg);
}

.box-accordion {
    display: none;
    padding: 10px 0 20px;
    line-height: 1.8;
}

.copyright {
    padding: 0px 20px 0;
    color: #999;
    font-size: 9px;
    line-height: 1.6;
}
.copyright span {
    font-size: 15px;
}
/* 巨大ロゴ: スマホ版 */
.footer-giant-logo {
    width: 100%;
    padding: 80px 20px 0px;
    box-sizing: border-box;
}

.footer-giant-logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* PC表示のレイアウト設定 */
@media (min-width: 813px) {
	#footer {
		max-width: 1200px;
	}
	#footer section:first-of-type {
		margin: 50px auto 0px;
	}
	#footer section {
        width: auto;
    }
    .footer_flex {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        gap: 100px;      /* 項目間の空き */
        padding: 0 0px;
        align-items: flex-start;
    }

    .footer-column {
        flex: 0 1 auto;  /* 必要な幅だけ占有 */
    }

    /* アコーディオンの中身をPCでは強制表示 */
    .box-accordion {
        display: block !important;
		margin: 0;
    }

    /* PC用タイトルの表示 */
    .pc_only {
        margin-bottom: 15px;
    }
	.copyright {
		padding: 0px 0px 0;
	}
    /* 5. フッター最下部のブランドロゴ */
    .footer-giant-logo {
        width: 1200px;
        margin: auto;
        padding: 80px 0 0;
    }

    .footer-giant-logo img {
        width: 100% !important; /* 横幅バナー合わせ */
        max-width: none !important;
    }
}