/*
Theme Name: インパック株式会社
Theme URI: https://www.impack-corporation.jp
Author: インパック株式会社
Author URI: https://www.impack-corporation.jp
Description: インパック株式会社WordPressテーマ
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: impack
*/

:root {
    /* ブランドカラー */
    --color-primary: #003288;
    --color-secondary: #DB002A;
    --color-white: #fff;
    --color-text: #1A1311;

    /* 背景色 */
    --color-bg-beige: #F9F3ED;   /* ベージュ背景（季節提案・沿革・能登アクセス） */
    --color-bg-gray: #F8F8F8;    /* ライトグレー背景（フッター・テーブルヘッダー） */
    --color-bg-light: #F2F4F7;   /* 薄グレー背景（カテゴリバッジ・テーブルラベル） */

    /* ボーダー色 */
    --color-border: #E0E0E0;        /* 標準ボーダー */
    --color-border-light: #EBEBEB;  /* 薄ボーダー（カード枠） */

    /* レイアウト */
    --content-max-width: 1400px;      /* コンテンツ最大幅 */
    --content-padding-inline: 40px;   /* コンテンツ横余白 */
}

/* スムーススクロール
--------------------------------------------- */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Base
--------------------------------------------- */
body {
    font-family: 'Roboto', 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

/* 画像ホバー伸縮
a img {
    transition: transform 0.3s ease;
}

a:hover img {
    transform: scale(1.05);
} */

ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

p {
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* パターン2：横並び
--------------------------------------------- */
.section-header.is-horizontal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 40px;
    margin-bottom: 50px;
}

.section-header.is-horizontal p:first-child {
    flex: 0 0 100%;
}

.section-header.is-horizontal h2 {
    margin-bottom: 0;
    white-space: nowrap;
}

.section-header.is-horizontal h2::after {
    display: none;
}

.section-header.is-horizontal p:last-child {
    display: flex;
    align-items: center;
    gap: 30px;
    line-height: 1.8;
}

.section-header.is-horizontal p:last-child::before {
    content: '';
    display: block;
    width: 3px;
    height: 45px;
    background: var(--color-secondary);
    flex-shrink: 0;
}

/* ==============================================
   header
   ============================================== */
header {
    position: relative;
    z-index: 20;
    width: 100%;
    max-width: 1600px;
    margin-inline: auto;
    top: 25px;
    padding-inline: 20px;
}

body:not(.admin-bar) header {
    top: 0;
}
@media (min-width: 1201px) {
    body:not(.admin-bar) header {
        top: 10px;
    }
}
.site-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    width: auto;
    max-height: 30px;
}

/* KVなしページ用ロゴ：デフォルト非表示（sub.css の .no-kv で表示） */
.no-kv-logo-link {
    display: none;
}

.no-kv-logo {
    height: 30px;
    width: auto;
}

/* モバイル TEL バー：デフォルト非表示（モバイルで表示） */
.header-tel-bar {
    display: none;
}

.site-branding img {
    width: auto;
    max-height: 23px;
}

/* header-contact
--------------------------------------------- */
.header-contact {
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari対策 */
    border-radius: 6px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 0 15px;
}

/* TEL */
.header-contact p:first-child {
    font-size: clamp(1.125rem, calc(0.761rem + 0.939vw), 1.625rem); /* min:18px max:26px / 375〜1440px */
    font-weight: 700;
    white-space: nowrap;
}

.header-contact p:first-child span {
    font-size: 0.65em;
    font-weight: 400;
    margin-right: 4px;
}

/* 営業時間 */
.header-contact p:nth-child(2) {
    font-size: clamp(0.75rem, calc(0.693rem + 0.141vw), 0.875rem); /* min:12px max:14px / 375〜1440px */
    white-space: nowrap;
    line-height: 1.4;
    font-weight: 400;
}

/* 言語切替 */
.header-contact .language ul {
    display: flex;
    gap: 8px;
}

.header-contact .language li a {
    display: inline-block;
    padding: 4px 8px;
    font-size: clamp(0.75rem, calc(0.693rem + 0.141vw), 0.875rem); /* min:12px max:14px / 375〜1440px */
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    color: var(--color-text);
    background-color: var(--color-white);
    text-transform: uppercase;
}

.header-contact .language li a:hover {
    background: var(--color-secondary);
    color: var(--color-white);
}

.header-contact .language li.active a,
.header-contact .language li.current-lang a {
    background: var(--color-secondary);
    color: var(--color-white);
}

/* ==============================================
   site-navigation-wrapper
   ============================================== */
.site-navigation-wrapper {
    position: relative; /* メガメニューの基点 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
    height: 60px;
    padding: 0 15px;

    /* ナビ全体に背景を適用 */
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari対策 */
    border-radius: 6px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* スティッキーナビゲーション
--------------------------------------------- */
.site-navigation-wrapper.is-sticky {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    margin-top: 0;
    width: calc(100% - 40px);
    max-width: 1560px;
}

.site-navigation-wrapper.is-sticky .main-navigation a {
    color: var(--color-text);
}

.site-navigation-wrapper.is-sticky .nav-menu > li > a:hover,
.site-navigation-wrapper.is-sticky .nav-menu > li.current-menu-item > a,
.site-navigation-wrapper.is-sticky .nav-menu > li.current-menu-ancestor > a {
    color: var(--color-white);
}

/* ナビ右側：お問い合わせ・フラサポ
--------------------------------------------- */
.site-navigation-wrapper > ul {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.site-navigation-wrapper > ul li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.site-navigation-wrapper > ul li:first-child a:hover {
    opacity: 0.8;
}

/* お問い合わせボタン */
.site-navigation-wrapper > ul li:first-child a {
    position: relative;
    background: var(--color-secondary);
    color: var(--color-white);
    font-size: clamp(0.875rem, calc(0.818rem + 0.141vw), 1rem); /* min:14px max:16px / 375〜1440px */
    height: 40px;
    padding: 2px 20px 0 40px;
    font-weight: 500;
}

.site-navigation-wrapper > ul li:first-child a::before {
    content: '';
    position: absolute;
    left: 12px;
    top: calc(50% + 1px);
    transform: translateY(-50%);
    width: 20px;
    height: 14px;
    background: url(assets/images/nav_ico_contact.svg) no-repeat center / contain;
    line-height: 0;
}

/* フラサポ画像リンク */
.site-navigation-wrapper > ul li:last-child {
    display: flex;
    align-items: center;
}

.site-navigation-wrapper > ul li:last-child a {
    display: flex;
    align-items: center;
}

.site-navigation-wrapper > ul li:last-child a:hover {
    opacity: 0.8;
}

.site-navigation-wrapper > ul li:last-child img {
    height: 40px;
    width: auto;
    display: block;
}

/* main-navigation
--------------------------------------------- */
.main-navigation {
    flex: 1;
    display: flex;
    align-items: center;
}

.main-navigation a {
    color: var(--color-white);
    font-weight: 600;
    font-size: clamp(0.875rem, calc(0.761rem + 0.282vw), 1.125rem); /* min:14px max:18px / 375〜1440px */
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

/* ==============================================
   メガメニュー
   ============================================== */

/* 子メニューを持つ親li */
.nav-menu > li {
    position: static; /* メガメニューの基点は site-navigation-wrapper */
    display: flex;
    align-items: center;
}

/* 親リンク */
.nav-menu > li > a {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 3px 20px 0;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
}

.nav-menu > li > a:hover {
    background: var(--color-secondary);
    color: var(--color-white);
    border-radius: 4px;
}

/* アクティブなメニュー項目 */
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
    background: var(--color-secondary);
    color: var(--color-white);
    border-radius: 4px;
}

/* メガメニュー本体 */
.nav-menu > li > .mega-menu {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    transform: translateY(8px);
    z-index: 100;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: stretch;
}

/* 吹き出し矢印（ホバー中 li の中心に JS で位置合わせ） */
.nav-menu > li > .mega-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: var(--mega-arrow-left, 50%);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-bottom: 10px solid var(--color-white);
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.08));
}

/* 隙間を埋める透明ブリッジ */
.nav-menu > li > .mega-menu::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

/* ホバーで表示（CSS hover + JS is-mega-open 両対応） */
.nav-menu > li:hover > .mega-menu,
.nav-menu > li.is-mega-open > .mega-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* イントロパネル（左） */
.mega-menu-intro {
    min-width: 320px;
    max-width: 320px;
    padding: 32px 32px 32px 36px;
    border-right: 1px solid var(--color-border);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.mega-menu-en {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-secondary);
    letter-spacing: 0.12em;
}

.mega-menu-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
}

.mega-menu-desc {
    font-size: 0.9125rem;
    color: var(--color-text);
    line-height: 1.7;
    font-feature-settings: "palt";
    text-wrap: pretty;
}

/* コンテンツエリア（右） */
.mega-menu > .mega-menu-list,
.mega-menu > .mega-menu-body {
    padding: 28px 36px;
    flex: 1;
}

/* リンクリスト */
.mega-menu-list {
    list-style: none;
}

.mega-menu-list > li {
    display: block;
}

.mega-menu-list > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    color: var(--color-text);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s;
}

.mega-menu-list > li > a::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 11px;
    background: url(assets/images/footer_arrow_red.svg) no-repeat center / contain;
    flex-shrink: 0;
}

.mega-menu-list > li > a:hover {
    color: var(--color-secondary);
    background: none;
    border-radius: 0;
}

/* フラットリンクの直後にグループが続く場合のセパレーター */
.mega-menu-body > .mega-menu-list + .mega-menu-groups {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--color-border-light);
}

/* グループコンテナ */
.mega-menu-body {
    display: flex;
    flex-direction: column;
}

.mega-menu-groups {
    display: flex;
    gap: 40px;
}

.mega-menu-group {
    width: 100%;
    max-width: 250px;
}

.mega-menu-group-title {
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 3px;
    margin-bottom: 4px;
    margin-top: 16px;
}

.mega-menu-group-title:first-child {
    margin-top: 0;
}

.mega-menu-group .mega-menu-list > li > a {
    padding: 5px 0;
    font-size: 0.875rem;
}

/* 子メニューを持つ親リンクに矢印を追加 */
.nav-menu > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 8px;
    margin-left: 6px;
    background: url(assets/images/nav_arrow_red.svg) no-repeat center / contain;
    transition: background 0.2s;
    position: relative;
    top: 1px;
}

.nav-menu > li.menu-item-has-children > a:hover::after,
.nav-menu > li.menu-item-has-children.current-menu-ancestor > a::after {
    background: url(assets/images/nav_arrow_wh.svg) no-repeat center / contain;
}



/* ==============================================
   footer
   ============================================== */
.site-footer {
    padding-top: 90px;
    background-color: var(--color-bg-gray);
}

/* バナーエリア
--------------------------------------------- */
.footer-banner-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 90%;
    max-width: var(--content-max-width);
    margin-inline: auto;
}

.footer-banner-inner .item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--color-primary);
    border-radius: 4px;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.footer-banner-inner .item:hover {
    opacity: 0.8;
}

.footer-banner-inner .item .img {
    width: 100px;
    flex-shrink: 0;
    align-self: stretch;
}

.footer-banner-inner .item .img img {
    width: 100%;
    height: 100%; 
    object-fit: cover;
}

.footer-banner-inner .item .body {
    padding: 12px 12px 12px 0;
    flex: 1;
}

.footer-banner-inner .item .title {
    font-size: clamp(1rem, calc(0.929rem + 0.188vw), 1.125rem); /* min:16px max:18px / 375〜1440px */
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 6px;
    padding-right: 28px;
    position: relative;
    display: inline-block;
    line-height: 1.3;
}

.footer-banner-inner .item .title::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 12px;
    background: url(assets/images/banner_arrow_wh.svg) no-repeat center / contain;
}

.footer-banner-inner .item .text {
    font-size: clamp(0.688rem, calc(0.659rem + 0.094vw), 0.75rem); /* min:11px max:12px / 375〜1440px */
    line-height: 1.4;
    color: var(--color-white);
}

/* メインフッター
--------------------------------------------- */
.footer-main {
    padding: 60px 0;
}

.footer-main-inner {
    display: flex;
    gap: 60px;
    width: 90%;
    max-width: var(--content-max-width);
    margin-inline: auto;
}

/* ロゴ・住所・TEL・FAX・YouTube */
.footer-info {
    flex-shrink: 0;
    min-width: 370px;
}

/* フッターロゴ */
.footer-logo {
    display: block;
    width: 100%;
    max-width: 370px;
    height: 30px;
    background: url(assets/images/logo.svg) no-repeat left center / contain;
    margin-bottom: 20px;
}

.footer-logo--en {
    background-image: url(assets/images/logo-en.svg);
}

.footer-address {
    font-size: clamp(0.875rem, calc(0.846rem + 0.094vw), 1rem); /* min:14px max:16px / 375〜1440px */
    color: #555;
    margin-bottom: 8px;
}

/* TEL・FAX横並び */
.footer-contact {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 20px;
}

.footer-contact li:first-child b {
    font-size: clamp(1.25rem, calc(1.132rem + 0.563vw), 1.375rem); /* min:20px max:22px / 375〜1440px */
    font-weight: 700;
}

.footer-contact li:last-child {
    font-size: clamp(0.875rem, calc(0.846rem + 0.094vw), 1rem); /* min:14px max:16px / 375〜1440px */
    font-weight: 500;
}

/* iOS Safari 電話番号自動リンク化の下線・色をリセット */
.footer-contact a {
    text-decoration: none;
    color: inherit;
}

/* YouTubeリンク */
.footer-youtube {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(0.813rem, calc(0.784rem + 0.094vw), 0.875rem); /* min:13px max:14px / 375〜1440px */
    font-weight: 600;
    color: var(--color-text);
    transition: opacity 0.3s ease;
    position: relative;
    padding-left: 50px;
    padding-right: 24px;
}

/* YouTubeアイコン */
.footer-youtube::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: url(assets/images/youtube_icon.svg) no-repeat center / contain;
}

/* YouTube矢印 */
.footer-youtube::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 10px;
    background: url(assets/images/footer_arrow_red.svg) no-repeat center / contain;
}

.footer-youtube:hover {
    opacity: 0.7;
}

/* フッターナビゲーション */
#footer-navigation {
    flex: 1;
}

.footer-nav-menu {
    display: grid;
    grid-template-columns: 0.7fr 1fr 1.1fr;
    column-gap: 40px; 
    row-gap: 40px; 
}

/* 親メニュー項目のリスト（li） */
.footer-nav-menu > li {
    width: 100%; 
}

/* 親メニュー */
.footer-nav-menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: clamp(0.938rem, calc(0.909rem + 0.094vw), 1.0625rem); /* min:15px max:17px / 375〜1440px */
    font-weight: 700;
    margin-bottom: 16px;
    transition: opacity 0.3s ease;
    position: relative;
    padding-right: 20px;
    color: var(--color-text);
}

.footer-nav-menu > li > a::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 10px;
    background: url(assets/images/footer_arrow_red.svg) no-repeat center / contain;
}

.footer-nav-menu > li > a:hover {
    opacity: 0.7;
}

.footer-nav-menu > li > a[href="#"] {
    cursor: default;
    pointer-events: none;
}

.footer-nav-menu > li > a[href="#"]::after {
    display: none;
}

/* 子メニュー */
.footer-nav-menu > li > .sub-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-menu > li > .sub-menu > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(0.75rem, calc(0.721rem + 0.094vw), 0.8125rem); /* min:12px max:13px / 375〜1440px */
    color: var(--color-text);
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-nav-menu > li > .sub-menu > li > a::before {
    content: '';
    width: 16px;
    height: 10px;
    background: url(assets/images/footer_menu_line.svg) no-repeat center / contain;
    flex-shrink: 0;
}
.footer-nav-menu > li > .sub-menu > li > a:hover {
    color: var(--color-primary);
}

/* スマホのみ改行：PCでは非表示 */
.sp-br { display: none; }

/* モバイル対応（768px以下など） */
@media (max-width: 1200px) {
    .site-footer {
        padding-top: 50px;
    }

    /* フッターメイン */
    .footer-main-inner {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding-inline: 20px;
    }

    .footer-info {
        min-width: unset;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* フッターナビ非表示 */
    #footer-navigation {
        display: none;
    }
}

/* ボトムバー
--------------------------------------------- */
.footer-bottom {
    padding-inline: 20px;
}

.footer-bottom-inner {
    padding: 5px;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--content-max-width);
    margin-inline: auto;
    border-radius: 6px 6px 0 0;
    font-weight: 500;
}

.copyright {
    padding-left: 20px;
    font-size: clamp(0.75rem, calc(0.721rem + 0.094vw), 0.875rem); /* min:12px max:14px / 375〜1440px */
    color: var(--color-white);
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: clamp(0.688rem, calc(0.659rem + 0.094vw), 0.8125rem); /* min:11px max:13px / 375〜1440px */
    transition: color 0.3s ease;
    color: var(--color-white);
}

.footer-bottom-links a:hover {
    color: var(--color-white);
}

/* ページトップボタン */
.scroll-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-secondary);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    position: relative;
}

.scroll-top::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: url(assets/images/pagetop_icon.svg) no-repeat center / contain;
}

.scroll-top:hover {
    opacity: 0.8;
}



/* ==============================================
   Section Heading（共通）
   ============================================== */
.section-header p:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(1rem, calc(0.912rem + 0.376vw), 1.25rem); /* min:16px max:20px */
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.section-header p:first-child::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: url(assets/images/head_icon.svg) no-repeat center / contain;
    flex-shrink: 0;
}

.section-header h1,
.section-header h2 {
    font-size: clamp(1.75rem, calc(1.266rem + 2.066vw), 3.125rem); /* min:28px max:50px */
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 40px;
}

.section-header h1::after,
.section-header h2::after {
    content: '';
    display: block;
    width: 45px;
    height: 3px;
    background: var(--color-secondary);
    margin-top: 40px;
}

.section-header p:last-child {
    font-size: clamp(0.9375rem, calc(0.894rem + 0.188vw), 1.0625rem); /* min:15px max:17px */
    line-height: 1.8;
}

/* 詳しく見るボタン（共通）
--------------------------------------------- */
.btn-more {
    display: inline-flex;
    align-items: center;
    background: var(--color-secondary);
    color: var(--color-white);
    font-size: clamp(0.875rem, calc(0.818rem + 0.141vw), 1rem); /* min:14px max:16px */
    font-weight: 600;
    border-radius: 4px;
    transition: opacity 0.3s ease;
    position: relative;
    padding: 8px 45px 6px 15px;
}

.btn-more::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 14px;
    background: url(assets/images/banner_arrow_wh.svg) no-repeat center / contain;
}

.btn-more:hover {
    opacity: 0.8;
    color: var(--color-white);
}

.btn-more--primary {
    background: var(--color-primary);
}



/* ハンバーガーボタン（デスクトップでは非表示）
--------------------------------------------- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 9px;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-white);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* 閉じるボタン（デスクトップでは非表示）
--------------------------------------------- */
.nav-close {
    display: none;
    position: fixed;
    top: 12px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--color-secondary);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    z-index: 215;
    align-items: center;
    justify-content: center;
}

.nav-close.is-active {
    display: flex;
}

.nav-close span {
    position: absolute;
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-white);
    border-radius: 0;
}

.nav-close span:first-child {
    transform: rotate(45deg);
}

.nav-close span:last-child {
    transform: rotate(-45deg);
}

/* ドロワーフッター（デスクトップでは非表示）
--------------------------------------------- */
.drawer-footer {
    display: none;
}

/* モバイル専用ナビ項目（デスクトップでは非表示）
--------------------------------------------- */
.nav-menu-extra {
    display: none;
}

/* オーバーレイ（デスクトップでは非表示）
--------------------------------------------- */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 190;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}


/* ==============================================
   Responsive - Narrow Desktop (〜1380px) メガメニュー縮小
   ============================================== */
@media (max-width: 1380px) {

    .mega-menu-intro {
        min-width: 240px;
        max-width: 240px;
        padding: 20px 20px 20px 24px;
    }

    .mega-menu > .mega-menu-list,
    .mega-menu > .mega-menu-body {
        padding: 20px 24px;
    }

    .mega-menu-groups {
        gap: 25px;
    }

    .mega-menu-group {
        width: 230px;
    }
}

/* ==============================================
   Responsive - Header narrow (〜1400px)
   ============================================== */
@media (max-width: 1400px) {

    /* ナビ項目の左右パディングを縮小 */
    .nav-menu > li > a {
        padding: 3px 14px 0;
    }

    .nav-menu {
        gap: 6px;
    }

    /* フラサポ画像を縮小 */
    .site-navigation-wrapper > ul li:last-child img {
        height: 34px;
    }

    /* お問い合わせボタンを縮小 */
    .site-navigation-wrapper > ul li:first-child a {
        padding: 2px 14px 0 34px;
    }

    /* TEL エリアの gap を縮小 */
    .header-contact {
        gap: 16px;
    }
}

/* ==============================================
   Responsive - Tablet (〜1024px)
   ============================================== */
@media (max-width: 1024px) {

    /* フッターバナー：4列→2列 */
    .footer-banner-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    /* セクションヘッダー横並びパターン：区切り線を非表示 */
    .section-header.is-horizontal p:last-child::before {
        display: none;
    }
}


/* ==============================================
   Responsive - Hamburger header (〜1200px)
   ============================================== */
@media (max-width: 1200px) {

    /* ヘッダー：固定バーに切り替え
    --------------------------------------------- */
    header,
    body:not(.home) #masthead {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        max-width: 100%;
        z-index: 201;
        background: transparent;
        padding: 10px 20px;
    }

    .site-header-top {
        justify-content: space-between;
        width: 100%;
    }

    /* コンタクト情報を非表示 */
    .header-contact {
        display: none;
    }

    /* ハンバーガーボタンを表示 */
    .nav-toggle {
        display: flex;
        background: var(--color-secondary);
        border-radius: 4px;
    }

    /* スクロール後ヘッダー
    --------------------------------------------- */
    body #masthead.is-scrolled {
        background: rgba(255, 255, 255, 0.9);
    }

    #masthead.is-scrolled .header-tel-bar {
        display: none;
    }

    #masthead.is-scrolled .custom-logo-link {
        display: none;
    }

    #masthead.is-scrolled .no-kv-logo-link {
        display: block;
    }

    #masthead.is-scrolled .nav-toggle span {
        background: var(--color-white);
    }

    /* KVなしページ：スクロール前から白背景・ダークロゴ
    --------------------------------------------- */
    body.no-kv #masthead {
        background: rgba(255, 255, 255, 0.9);
    }

    body.no-kv .header-tel-bar {
        display: none;
    }

    body.no-kv .custom-logo-link {
        display: none;
    }

    body.no-kv .no-kv-logo-link {
        display: block;
    }

    body.no-kv .nav-toggle span {
        background: var(--color-primary);
    }

    /* オーバーレイを有効化 */
    .nav-overlay {
        display: block;
    }

    /* ナビゲーション ドロワー
    --------------------------------------------- */
    .site-navigation-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
        padding: 60px 24px 40px;
        background: var(--color-white);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        z-index: 200;
        transform: translateX(100%);
    }

    .site-navigation-wrapper.is-open {
        transform: translateX(0);
        transition: transform 0.35s ease;
    }

    .site-navigation-wrapper.is-closing {
        transition: transform 0.35s ease;
    }

    body.is-resizing .site-navigation-wrapper {
        transition: none;
    }

    /* ナビメニュー縦積み
    --------------------------------------------- */
    .main-navigation {
        width: 100%;
        flex: none;
        flex-direction: column;
        align-items: normal;
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .nav-menu > li {
        display: block;
        width: 100%;
    }

    .nav-menu > li > a {
        color: var(--color-text);
        font-size: 1.125rem;
        height: auto;
        padding: 14px 4px;
        width: 100%;
        border-bottom: 1px solid var(--color-border);
        border-radius: 0;
        white-space: normal;
    }

    .nav-menu > li > a:hover {
        background: none;
        color: var(--color-secondary);
    }

    .nav-menu > li.menu-item-has-children > a:hover::after,
    .nav-menu > li.menu-item-has-children.current-menu-ancestor > a::after {
        background: url(assets/images/nav_arrow_red.svg) no-repeat center / contain;
    }

    .nav-menu > li.current-menu-item > a,
    .nav-menu > li.current-menu-ancestor > a {
        background: none;
        color: var(--color-secondary);
        border-radius: 0;
    }

    /* アコーディオン用 矢印 */
    .nav-menu > li.menu-item-has-children > a::after {
        content: '';
        display: block;
        width: 12px;
        height: 8px;
        background: url(assets/images/nav_arrow_red.svg) no-repeat center / contain;
        border: none;
        position: static;
        top: auto;
        margin-left: 6px;
        flex-shrink: 0;
        transition: transform 0.2s ease;
    }

    .nav-menu > li.menu-item-has-children.is-open > a {
        background: var(--color-secondary);
        color: var(--color-white);
        border-radius: 5px;
        padding: 10px 15px 9px;
    }

    .nav-menu > li.menu-item-has-children.is-open > a::after {
        background: url(assets/images/nav_arrow_wh.svg) no-repeat center / contain;
        transform: rotate(180deg);
    }

    /* モバイル専用：お知らせリンク
    --------------------------------------------- */
    .nav-menu-extra {
        display: block;
        width: 100%;
    }

    .nav-menu-extra > li > a {
        display: flex;
        align-items: center;
        color: var(--color-text);
        font-size: 1.125rem;
        padding: 14px 4px;
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu-extra > li > a:hover {
        color: var(--color-secondary);
    }

    /* メガメニューをドロワー内でアコーディオン表示
    --------------------------------------------- */
    .nav-menu > li > .mega-menu {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        position: static;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        min-width: unset;
        background: transparent;
        transition: none;
        display: none;
        padding: 0 12px 8px 12px;
    }

    .nav-menu > li.is-open > .mega-menu {
        display: block;
    }

    .nav-menu > li > .mega-menu::before,
    .nav-menu > li > .mega-menu::after {
        display: none;
    }

    .mega-menu-intro {
        display: none;
    }

    .mega-menu > .mega-menu-list,
    .mega-menu > .mega-menu-body {
        padding: 0;
    }

    .mega-menu-body > .mega-menu-list + .mega-menu-groups {
        margin-top: 4px;
        padding-top: 0;
        border-top: none;
    }

    .mega-menu-body {
        display: block;
    }

    .mega-menu-groups {
        display: block;
    }

    .mega-menu-group {
        width: 100%;
        max-width: none;
    }

    .mega-menu-group .mega-menu-list > li > a {
        font-size: 1rem;
    }

    .mega-menu-group-title {
        font-size: 1rem;
        padding: 3px 8px;
        margin-top: 8px;
        border-radius: 5px;
    }

    .mega-menu-list > li {
        border-bottom: none;
    }

    .mega-menu-list > li > a {
        padding: 8px 0;
        font-size: 1rem;
        color: var(--color-text);
        height: auto;
        display: block;
    }

    .mega-menu-list > li > a::after {
        display: inline-block;
        width: 14px;
        height: 10px;
        background: url(assets/images/footer_arrow_red.svg) no-repeat center / contain;
        flex-shrink: 0;
    }

    .mega-menu-list > li > a:hover {
        color: var(--color-secondary);
    }

    /* ドロワー内CTAボタン
    --------------------------------------------- */
    .site-navigation-wrapper > ul {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        margin-top: 20px;
    }

    .site-navigation-wrapper > ul li {
        flex: 1;
    }

    .site-navigation-wrapper > ul li:first-child a {
        justify-content: center;
        height: 48px;
        width: 100%;
    }

    .site-navigation-wrapper > ul li:last-child {
        display: flex;
        justify-content: center;
    }

    .site-navigation-wrapper > ul li:last-child img {
        height: 44px;
    }

    /* ドロワーフッター：言語切替・TEL
    --------------------------------------------- */
    .drawer-footer {
        display: block;
        margin-top: 24px;
        padding-top: 0;
    }

    .drawer-language {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }

    .drawer-language ul {
        display: flex;
        gap: 8px;
    }

    .drawer-language li a {
        display: inline-block;
        padding: 6px 16px;
        font-size: 0.875rem;
        font-weight: 600;
        border-radius: 4px;
        background: var(--color-bg-light);
        color: var(--color-text);
        transition: background 0.2s, color 0.2s;
        text-transform: uppercase;
    }

    .drawer-language li.active a,
    .drawer-language li.current-lang a {
        background: var(--color-secondary);
        color: var(--color-white);
    }

    .drawer-tel {
        background: var(--color-bg-light);
        padding: 14px 20px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        gap: 16px;
        justify-content: center;
    }

    /* iOS Safari 電話番号自動リンク化の下線・色をリセット */
    .drawer-tel a {
        text-decoration: none;
        color: inherit;
    }

    .drawer-tel p:first-child {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--color-text);
        white-space: nowrap;
    }

    .drawer-tel p:first-child span {
        font-size: 0.7em;
        font-weight: 400;
        margin-right: 4px;
    }

    .drawer-tel p:last-child {
        font-size: 0.8125rem;
        color: #555;
    }

    .section-header h2 {
        margin-bottom: 0;
    }
}

/* ==============================================
   Responsive - Mobile (〜768px)
   ============================================== */
@media (max-width: 768px) {

    :root {
        --content-padding-inline: 20px;
    }

    /* PC のみ改行・スマホでは非表示 / スマホのみ改行・PCでは表示 */
    .pc-br { display: none; }
    .sp-br { display: inline; }

    /* TEL バー
    --------------------------------------------- */
    .header-tel-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 15px 6px;
        margin-top: 8px;
        color: var(--color-text);
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 6px;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    }

    .header-tel-bar p:first-child {
        font-size: 1.125rem;
        font-weight: 700;
        white-space: nowrap;
    }

    .header-tel-bar p:first-child a {
        color: var(--color-text);
        text-decoration: none;
    }

    .header-tel-bar p:first-child span {
        font-size: 0.65em;
        font-weight: 400;
        margin-right: 4px;
    }

    .header-tel-bar p:last-child {
        font-size: 0.75rem;
        white-space: nowrap;
    }

    /* フッターバナー：1列
    --------------------------------------------- */
    .footer-banner-inner {
        grid-template-columns: 1fr;
        width: 100%;
        padding-inline: 20px;
    }

    .footer-banner-inner .item .text {
        display: none;
    }

    .footer-banner-inner .item .img {
        width: 70px;
        height: 70px;
        min-height: unset;
        align-self: center;
        flex-shrink: 0;
        overflow: hidden;
    }

    .footer-banner-inner .item .body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0 12px 0 0;
    }

    .footer-banner-inner .item .title {
        margin: 5px 0 0;
        line-height: 1.3;
    }

    /* ボトムバー */
    .footer-bottom {
        padding: 0 0 20px;
    }
    .footer-bottom-inner {
        width: auto;
        margin-inline: 20px;
        border-radius: 6px;
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: 6px;
        padding: 16px 72px 16px 20px;
        position: relative;
    }

    /* footer-bottom-links → copyright の順に並び替え */
    .footer-bottom-links {
        order: 1;
        width: auto;
        justify-content: flex-start;
    }

    .copyright {
        order: 2;
        padding-left: 0;
        width: auto;
        text-align: left;
    }

    /* ページトップボタンを右端中央に固定 */
    .footer-bottom .scroll-top {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
    }

    .section-header h2::after {
        margin-top: 20px;
    }
}