@charset "UTF-8";

/* =========================================================
   変数定義（カラーパレットなど）
   ========================================================= */
:root {
    /* --- メイン・アクセント・ベースカラー --- */
    --color-main: #000e86;      /* メイン：ロゴの紺色 */
    --color-accent: #E65100;    /* アクセント：鮮やかなオレンジ */
    --color-base: #F4F7F6;      /* ベース：薄いグレー */

    /* --- その他ロゴ使用色（サブカラーとして利用可能） --- */
    --color-sub-blue: #394cff;  /* 青 */
    --color-sub-cyan: #000fe7;  /* 水色 */
    --color-sub-khaki: #6c5326; /* カーキ */

    /* --- 文字色・背景色 --- */
    --color-text: #333333;      /* 基本の文字色 */
    --color-white: #ffffff;     /* 真っ白 */
    --color-gray-light: #e5e5e5;/* 薄いグレー（境界線など） */

    /* --- フォント --- */
    --font-base: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;

    /* --- サイズ・余白 --- */
    --header-height: 70px;      /* ヘッダーの高さ */
    --width-inner: 1100px;      /* コンテンツの最大幅 */
}

/* =========================================================
   全体設定 (Base Styles)
   ========================================================= */
body {
    font-family: var(--font-base);
    color: var(--color-text);
    background-color: var(--color-base);
    line-height: 1.8;
    /* ヘッダー固定分の余白（後でヘッダーを固定した場合に有効） */
    /* padding-top: var(--header-height); */
}

/* インナー幅の設定（中央揃え） */
.header__inner,
.footer__inner,
.section__inner,
.hero__inner {
    width: 90%;
    max-width: var(--width-inner);
    margin: 0 auto;
}

/* セクションの余白 */
.section {
    padding: 40px 0;
}

/* 背景色付きセクション */
.section--gray {
    background-color: var(--color-gray-light);
}

/* 見出しの基本スタイル */
.section__title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0px;
    color: var(--color-main);
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    .section__title {
        font-size: 1.3rem;
    }
}

.sp-break {
  display: inline;
}
@media screen and (max-width: 600px) {
  .sp-break {
    display: block;
  }
}

/* =========================================================
   ヘッダー (Header)
   ========================================================= */
.header {
    background-color: var(--color-white);
    height: var(--header-height);
    width: 100%;
    /* 下にうっすら影をつけて浮いているように見せる */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    
    /* スクロールしても上についてくる設定（任意） */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ロゴ */
.header__logo a {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--color-main); /* ロゴの紺色 */
    text-decoration: none;
    opacity: 1; /* ロゴはホバーで薄くしない */
}

.header__logo img {
    height: 40px; /* 画像の高さ制限 */
    width: auto;
    margin-right: 10px;
}

/* メニューエリア全体（ナビ ＋ ボタン） */
.header__menu-area {
    display: flex;
    align-items: center;
    gap: 30px; /* メニューとボタンの隙間 */
}

/* PC用ナビゲーション */
.header__nav {
    display: block; /* スマホで非表示にするための準備 */
}

.header__list {
    display: flex;
    gap: 25px; /* リンク同士の間隔 */
}

.header__item a {
    font-size: 15px;
    font-weight: bold;
    color: var(--color-text);
    position: relative;
    padding: 5px 0;
}

/* ホバー時の動き（下に紺色の線が出る） */
.header__item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-main);
    transition: width 0.3s;
}

.header__item a:hover {
    color: var(--color-main);
    opacity: 1;
}

.header__item a:hover::after {
    width: 100%;
}

/* --- マニュアルダウンロードボタン（目立たせる） --- */
.btn-download {
    display: inline-block;
    background-color: var(--color-accent); /* カーキ色を使用（落ち着きつつ目立つ） */
    /* カーキ色var(--color-sub-khaki)オレンジ色 var(--color-accent) に変更してください */
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.3;
    padding: 8px 15px;
    border-radius: 4px;
    text-align: center;
    transition: background-color 0.3s;
}

.btn-download:hover {
    background-color: var(--color-main); /* ホバー時はメインカラーに */
    opacity: 1;
    color: #fff;
}

.btn-download .icon-dl {
    font-size: 1.2em;
    margin-right: 4px;
}

/* =========================================================
   スマホ用ハンバーガーボタン (初期状態)
   ========================================================= */
.header__hamburger {
    display: none; /* PCでは消す */
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1100;
}

.header__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-main);
    position: absolute;
    left: 0;
    transition: 0.3s;
}

/* 3本線の位置 */
.header__hamburger span:nth-child(1) { top: 0; }
.header__hamburger span:nth-child(2) { top: 11px; }
.header__hamburger span:nth-child(3) { bottom: 0; }



/* =========================================================
   ボタン共通スタイル (Buttons)
   ========================================================= */
.btn {
    display: inline-block;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px; /* 丸みのあるボタン */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent; /* 枠線の準備 */
}

/* プライマリボタン（一番目立たせたいボタン：オレンジ） */
/* お問い合わせや、メインの誘導に使います */
.btn--primary {
    background-color: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 10px rgba(230, 81, 0, 0.3); /* オレンジ色の影 */
}

.btn--primary:hover {
    background-color: #fff;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* セカンダリボタン（サブのボタン：白抜きまたは枠線） */
/* 「詳細を見る」や「noteへ」などに使います */
.btn--secondary {
    background-color: transparent;
    border-color: var(--color-main);
    color: var(--color-main);
}

.btn--secondary:hover {
    background-color: var(--color-main);
    color: #fff;
}

/* テキストリンクボタン（「一覧へ」など） */
.btn--text {
    padding: 0;
    color: var(--color-main);
    border-bottom: 1px solid var(--color-main);
    border-radius: 0;
    font-size: 14px;
}

.btn--text:hover {
    opacity: 0.7;
}

/* 大きなボタン（お問い合わせなど） */
.btn--large {
    padding: 18px 60px;
    font-size: 18px;
    width: 100%;
    max-width: 360px;
}

/* =========================================================
   メインビジュアル (Hero Area)
   ========================================================= */
.hero {
    /* 背景画像を暗くして文字を読みやすくするテクニック */
    /* 画像がない場合は紺色のグラデーション */
    background: linear-gradient(rgba(245, 245, 245, 0.8), rgba(220, 220, 220, 0.9)), url('/assets/images/common/hero_bg.jpg');
    
    background-size: cover;
    background-position: center;    
    background-color: #888;/* 画像がない時の保険 */
    
    height: 400px; /* 高さを指定 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-main);
}

.hero__title {
    font-size: 2rem; /* 大きな文字 */
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* 文字に影をつけて視認性アップ */
}

.hero__lead {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* =========================================================
   スマホ時のヒーローエリア調整 (style.cssの末尾に追加)
   ========================================================= */
@media screen and (max-width: 768px) {
    .hero {
        /* 高さを固定(600px)せず、中身に合わせて伸びるようにする */
        height: auto;
        min-height: 400px; /* 最低限の高さは確保 */
        padding: 80px 0;   /* 上下の余白 */
    }

    .hero__title {
        /* 文字サイズを小さくする (3rem → 1.8remくらいに) */
        font-size: 1.8rem;
        line-height: 1.4;
        margin-bottom: 20px;
    }

    .hero__lead {
        /* 説明文を読みやすいサイズに */
        font-size: 0.9rem;
        line-height: 1.8;
        text-align: left; /* ★重要：長文は左寄せの方が読みやすい */
        padding: 0 10px;  /* 画面端ギリギリにならないように */
    }

    /* スマホでは強制改行(<br>)を無効化して、自然な折り返しにする */
    .hero__lead br {
        display: none;
    }
    /* 本文全体のフォントサイズを小さく */
    body {
        font-size: 14px;
    }
    /* セクションタイトル */
    .section__title {
        font-size: 1.3rem;
    }
    /* プライバシーページの見出し */
    .privacy-head {
        font-size: 1.1rem;
    }
    .privacy-sub-head {
        font-size: 0.95rem;
    }
    .privacy-body {
        font-size: 0.95rem;
    }
    /* その他、必要に応じて本文やリストも調整 */
    .privacy-list li {
        font-size: 0.95rem;
    }

}

/* =========================================================
   Note記事一覧（6カラムグリッド）
   ========================================================= */

/* グリッドコンテナ：横6列にする設定 */
.note-grid {
    display: grid;
    /* PCでは6個並べる（1つあたりが小さくなります） */
    grid-template-columns: repeat(6, 1fr); 
    gap: 15px; /* 隙間を少し狭くしてコンテンツ幅を確保 */
    margin-bottom: 40px;
}

/* カード全体の設定 */
.note-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #fff;
    border-radius: 6px; /* 少し角丸を小さく */
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%; /* 高さを揃える */
}

.note-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 画像エリア */
.note-card__img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #f0f0f0;
}

.note-card__img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* テキストエリア */
.note-card__body {
    padding: 10px; /* 余白を狭くして文字スペースを確保 */
    display: flex;
    flex-direction: column;
    flex: 1; /* カードの高さを揃えるために伸ばす */
}

/* 日付 */
.note-card__date {
    display: block;
    font-size: 0.75rem; /* 小さめに */
    color: #888;
    margin-bottom: 5px;
}

/* タイトル（見切れ対策） */
.note-card__title {
    font-size: 0.85rem; /* カード幅に合わせて少し文字を小さく */
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin: 0;
    
    /* ▼修正：無理に省略せず、必要なら行を増やす設定に変更 */
    display: -webkit-box;
    -webkit-line-clamp: 8; /* 最大4行まで表示（それでも溢れる場合は...） */
    -webkit-box-orient: vertical;
    line-clamp: 8; /* 標準プロパティも追加 */
    overflow: hidden;
    
    /* 単語の途中で改行されないようにする設定を解除（日本語なら問題なし） */
    word-break: break-all; 
}



/* =========================================================
   レスポンシブ対応（画面が狭いとき）
   ========================================================= */

/* タブレットサイズ（iPadなど）：3個×2段にする */
@media screen and (max-width: 1024px) {
    .note-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* スマホサイズ：画像は消して、タイトルだけ表示 */
@media screen and (max-width: 600px) {
    .note-grid {
        /* 2列のままにするか、1列にするかお好みで。
           文字だけなら「1列」の方が読みやすいかもしれません */
        grid-template-columns: repeat(1, 1fr); 
        gap: 10px;
    }

    /* ▼▼▼ 追加：スマホの時だけ画像を非表示にする ▼▼▼ */
    .note-card__img-wrapper {
        display: none;
    }

    /* 文字サイズなどの微調整 */
    .note-card__title {
        font-size: 0.9rem; /* 少し大きくして読みやすく */
        -webkit-line-clamp: 3; /* スマホで表示する際の行数 */
        line-clamp: 3;
    }
    
    .note-card {
        /* 画像がない分、高さを自動調整にして余白を減らす */
        height: auto; 
    }
}

/* =========================================================
   コンテンツ装飾 (Cards & News)
   ========================================================= */
/* カード（資料一覧など） */
.cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap; /* スマホで折り返す */
}

.card {
    background: #fff;
    width: 48%; /* 2列並び */
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.card__title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--color-main);
    font-weight: bold;
}

.card__text {
    margin-bottom: 25px;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left; 
}

.card--kids {
    background: #FFF9E3 !important; /* 薄い黄色 */
}

/* ニュースリスト */
.news-list {
    background: #fff;
    max-width: 800px;
    margin: 0 auto 30px;
    border-radius: 8px;
    padding: 20px 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.news-item {
    border-bottom: 1px solid var(--color-gray-light);
}

.news-item:last-child {
    border-bottom: none;
}

.news-link {
    display: flex;
    align-items: center;
    padding: 15px 0;
    transition: opacity 0.3s;
}

.news-link:hover {
    opacity: 0.7;
}

.news-meta {
    display: flex;
    align-items: center;
    min-width: 180px; /* 日付とカテゴリの幅を固定 */
}

.news-date {
    font-size: 0.9rem;
    color: #888;
    margin-right: 15px;
}

.news-cat {
    font-size: 0.75rem;
    background-color: var(--color-main);
    color: #fff;
    padding: 2px 10px;
    border-radius: 2px;
}

.news-title {
    font-size: 1rem;
    font-weight: bold;
}

/* =========================================================
   フッター (Footer) 
   ========================================================= */
.footer {
    background-color: var(--color-main); /* 紺色 */
    color: #fff;
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer__inner {
    display: flex;
    flex-direction: column; /* 要素を縦に積む */
    gap: 30px; /* 各要素の隙間 */
}

/* --- 上部エリア（ロゴとSNS） --- */
.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* スマホで折り返す */
    gap: 20px;
}

.footer__logo {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    white-space: nowrap; /* ロゴを絶対に改行させない */
}

@media screen and (max-width: 768px) {
    .footer__logo {
        font-size: 1.8rem;
    }
}

/* --- SNSアイコンエリア（修正版） --- */
.footer__social {
    display: flex;
    gap: 20px; /* アイコン同士の間隔 */
    align-items: center;
}

/* リンク（枠）の設定 */
.social-icon {
    display: block;
    width: 30px; /* アイコンの幅（お好みで調整：24px〜40pxくらい） */
    height: auto;
    /* 以前の文字用スタイル（paddingやbackground）があれば削除・無効化 */
    background: none;
    padding: 0;
    opacity: 0.8; /* 通常時は少し薄く */
    transition: opacity 0.3s;
}

/* 画像の設定 */
.social-icon img {
    width: 80%;
    height: auto;
    display: block; /* 画像の下に隙間ができないようにする */
}

/* ホバー時の動き */
.social-icon:hover {
    background: none; /* 背景色変更を無効化 */
    color: inherit;
    opacity: 1; /* マウスが乗ったらクッキリ表示 */
    transform: translateY(-2px); /* 少し上に浮く演出（任意） */
}

/* --- バナーエリア --- */
.footer__banners {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* 幅が足りない時は折り返す */
}

.banner-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px; /* バナーの幅 */
    height: 60px; /* バナーの高さ */
    background-color: #fff; /* 画像がない時の背景色 */
    color: #333;
    font-size: 0.8rem;
    border-radius: 4px;
    /* 画像を使う場合は以下のように書く */
    /* background-image: url('/path/to/banner.jpg'); */
    /* background-size: cover; */
}

/* =========================================================
   フッターナビゲーション (PC・共通)
   ========================================================= */

/* --- ラッパー（全体枠） --- */
.footer__nav-wrapper {
    width: 100%;
    max-width: 1000px;      /* コンテンツ幅の制限 */
    margin: 30px 0 0;    /* 左寄せ */
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
}

/* --- 各グループ（ul）の共通設定 --- */
.footer__nav-group {
    display: flex;
    flex-wrap: wrap;        /* PCでは横並び・折り返し */
    justify-content: flex-start;/* PCでは左寄せ */
    gap: 20px 30px;         /* 縦20px 横30pxの隙間 */
    padding: 0;
    margin: 0;
    list-style: none;       /* 黒点を消す */
}

/* 2つ目のグループ（お問い合わせ等）をPCでは下の行に配置 */
.nav-contact {
    margin-top: 0px;       /* 1行目との距離 */
}

/* --- リンクのデザイン --- */
.footer__nav-group li a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    white-space: nowrap;    /* 変な改行を防ぐ */
    display: block;         /* クリック範囲確保 */
}

.footer__nav-group li a:hover {
    color: #fff;
    text-decoration: underline;
}


/* =========================================================
   フッターのスマホ対応 (Responsive)
   ========================================================= */
@media screen and (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .banner-link {
        width: 100%;
        max-width: 300px;
    }

    /* ▼▼▼ ナビゲーションのスマホ設定（コンタクトのみ表示） ▼▼▼ */

    /* 1. メインナビ（1～7番目）を完全に消す */
    .nav-main {
        display: none;
    }

    /* 2. 枠の設定（横並び設定を解除してシンプルに） */
    .footer__nav-wrapper {
        display: block;      /* Flex解除 */
        text-align: left;  /* 全体を左寄せ */
        padding-top: 20px;
        /* PCのborder-topはそのまま継承 */
    }

    /* 3. コンタクトナビの設定 */
    .nav-contact {
        margin-top: 0;       /* PC用の余白をリセット */
        display: flex;
        flex-direction: column; /* 縦並び */
        align-items: flex-start;    /* アイテムを左揃え（お好みで center に） */
        gap: 10px;              /* 各リンクの間隔 */
    }

    /* リンク文字サイズ調整 */
    .footer__nav-group li a {
        font-size: 0.9rem;      /* タップしやすい大きさに */
    }
}

/* =========================================================
   レスポンシブ設定 (Responsive)
   ========================================================= */

/* --- 画面幅 1024px以下（タブレット・狭いPC・スマホ） --- */
@media screen and (max-width: 1024px) {
    
    /* ヘッダー全体の設定：高さを自動にして2段組みを許可 */
    .header {
        height: auto !important; /* 強制的に高さを中身に合わせる */
        padding: 10px 0 5px; /* 上下の余白を調整 */
    }

    .header__inner {
        flex-wrap: wrap; /* 折り返しを許可 */
        align-content: flex-start; /* ★重要：中身を上に詰める（隙間対策） */
        height: auto;
    }

    /* --- 1段目の配置（ロゴ｜DLボタン｜ハンバーガー） --- */
    
    /* 1. ロゴ（左寄せ） */
    .header__logo {
        width: auto;
        order: 1; 
        font-size: 20px;
        line-height: 1; /* 行間を締める */
    }

    /* 2. ダウンロードボタン（中央〜右寄り） */
    .header__cta {
        order: 2;
        margin-left: auto; /* ロゴとの間を空ける */
        margin-right: 15px; /* ハンバーガーとの隙間 */
        padding: 6px 12px;
        font-size: 11px;
    }
    
    /* スマホなどでボタン内の「マニュアルDL」という文字が長すぎる場合の調整 */
    .header__cta .text {
        font-size: 11px;
    }

    /* 3. ハンバーガーボタン（一番右） */
    .header__hamburger {
        display: block;
        order: 3;
        margin-left: 0;
        margin-top: -2px; /* 位置の微調整 */
    }

    /* --- 2段目の配置（ナビゲーション） --- */
    
    /* ナビ全体の設定 */
    .header__nav {
        order: 4; /* 次の行へ */
        width: 100%; /* 横幅いっぱいに */
        margin-top: 8px; /* ★重要：1段目との隙間を最小限にする */
        padding-top: 5px;
        border-top: 1px solid #eee; /* 薄い線で区切る（任意） */
        display: block;
        overflow-x: auto;
    }

    /* 5つのリンクを横並び・文字小さく・改行なし */
    .header__list {
        display: flex;
        justify-content: space-between;
        gap: 0; /* ★重要：隙間をなくして両端に広げる */
        padding-bottom: 5px;
    }

    .header__item a {
        /* font-size: 10px;  ← PC版では適用しないスマホ版は別途 */
        white-space: nowrap;
        padding: 5px 2px;
        font-weight: normal;
        display: block;
    }
}

/* --- スマホサイズ（さらに狭い時）の微調整 --- */
@media screen and (max-width: 600px) {
    .header__cta .text {
        display: none; /* ボタンの文字を消して */
    }
    .header__cta::after {
        content: 'DL'; /* 短い文字にする */
        font-size: 11px;
    }
    .header__cta .icon-dl {
        margin-right: 0;
    }
    
    .header__list {
        justify-content: flex-start; /* 左寄せにして */
        gap: 15px; /* 少し隙間を空ける */
        overflow-x: auto; /* 横スクロール可能にする */
        -webkit-overflow-scrolling: touch; /* スクロールを滑らかに */
        padding-bottom: 10px; /* スクロールバー用の余白 */
    }

    .header__item a {
        font-size: 10px !important; /* スマホだけ10px */
    }
}

/* ハンバーガーボタンのアニメーション */
.header__hamburger.is-active span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}

.header__hamburger.is-active span:nth-child(2) {
    opacity: 0; /* 真ん中の線は消す */
}

.header__hamburger.is-active span:nth-child(3) {
    bottom: 11px;
    transform: rotate(-45deg);
}

/* =========================================================
   ドロワーメニュー（ハンバーガーを押した時の画面）
   ========================================================= */
.header__drawer {
    /* 普段は画面の外に隠しておく */
    position: fixed;
    top: 0;
    right: 0; 
    left: auto; /* 万が一のleft指定打ち消し */
    width: 100%;
    height: 100vh; /* 画面の高さ一杯 */
    background-color: var(--color-main); /* 紺色背景 */
    z-index: 1050; /* ヘッダー(1000)より上 */
    
    /* アニメーション設定 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    
    /* スクロール設定 */
    overflow-y: auto;       /* 縦スクロールを許可 */
    display: block;         /* flexではなくblockにして自然な並びに */
    padding-top: 80px;      /* ヘッダーの高さ分＋α空ける */
    padding-bottom: 50px;   /* 下部にも余白を */
}

/* PC（画面幅769px以上）の時は、全画面ではなく右端に寄せる設定 */
@media screen and (min-width: 769px) {
    .header__drawer {
        width: 400px; /* ★PCでのメニュー幅（お好みで300px〜500pxに調整） */
        box-shadow: -5px 0 20px rgba(0,0,0,0.2); /* 左側に影を落として浮いてる感を出す */
        border-left: 1px solid rgba(255,255,255,0.1); /* 境界線（任意） */
    }
}

/* クラス is-active がついたら表示する */
.header__drawer.is-active {
    opacity: 1;
    visibility: visible;
}

/* インナー（幅制限） */
.header__drawer-inner {
    width: 90%;
    max-width: 500px; /* 少し広めに */
    margin: 0 auto;   /* 中央寄せ */
}

/* --- ここから下が新しいアコーディオン用スタイル --- */

/* リスト全体 */
.drawer__list {
    display: flex;
    flex-direction: column;
    gap: 0; /* 隙間はなくしてボーダーで区切る */
    width: 100%;
    text-align: left; /* 左寄せに変更 */
}

/* メニュー項目（親） */
.drawer__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* 親メニュー同士の白線 */
    display: flex;
    flex-wrap: wrap; /* 子メニューを折り返すために必要 */
    align-items: center;
    position: relative;
}

/* お問い合わせボタン用の調整（任意） */
.drawer__item--btn {
    border-bottom: none;
    padding-top: 30px;
    display: block;
}

/* =========================================================
   ドロワーメニューのリンク修正版
   ========================================================= */

/* ① 通常のテキストリンク（ボタンクラス .btn を持たないものだけに適用） */
.drawer__item > a:not(.btn) {
    color: #fff;
    font-size: 1rem;       /* 1.1remから1rem(約16px)にサイズダウン */
    font-weight: bold;
    display: block;
    padding: 15px 0 15px 10px; /* 右余白を削って幅はみ出し防止 */
    text-decoration: none;
    flex: 1;               /* 横幅の残りを埋める */
    
    /* 長い文字が来てもはみ出さずに折り返す設定 */
    word-break: break-all;
    white-space: normal;
}

/* 通常リンクのホバー時 */
.drawer__item > a:not(.btn):hover {
    color: var(--color-accent);
    background-color: rgba(255, 255, 255, 0.05); /* ほんの少し背景を明るくして反応を示す */
}


/* ② ドロワー内のお問い合わせボタン専用調整 */
.drawer__item--btn {
    border-bottom: none;
    padding: 30px 10px; /* 左右に少し余白を持たせる */
    display: block;
    text-align: center;
}

/* ボタン本体の調整（既存の .btn スタイルを活かしつつ微調整） */
.drawer__item--btn .btn {
    width: 100%;        /* 横幅いっぱいに広げる */
    max-width: 320px;   /* ただし広がりすぎないように制限 */
    margin: 0 auto;     /* 中央寄せ */
    box-sizing: border-box; /* パディングを含めた幅計算にする（はみ出し防止のキモ） */
}

/* もしボタンのホバー色がおかしい場合はここで強制修正 */
.drawer__item--btn .btn:hover {
    background-color: #fff !important;      /* 背景を白に */
    color: var(--color-accent) !important;  /* 文字をオレンジに */
    opacity: 1;
}

/* ① 左側の＋ボタン */
.drawer__toggle {
    display: block;
    width: 50px;
    height: 50px; /* リンクセルの高さと合わせる */
    position: relative;
    cursor: pointer;
    border-right: 1px solid rgba(255, 255, 255, 0.1); /* 右側に薄い区切り線 */
}

/* ＋マークの描画 */
.drawer__toggle::before,
.drawer__toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: #fff;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}
.drawer__toggle::before { width: 16px; height: 2px; } /* 横棒 */
.drawer__toggle::after  { width: 2px; height: 16px; } /* 縦棒 */

/* 開いた状態（－になる） */
.drawer__toggle.is-open::after {
    transform: translate(-50%, -50%) rotate(90deg);
}
.drawer__toggle.is-open {
    background-color: rgba(255, 255, 255, 0.1); /* 背景色を少し変える */
}

/* 子メニューエリア */
.drawer__sub-list {
    display: none; /* JSで制御するため隠す */
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* 少し暗い背景 */
    margin: 0;
    padding: 0;
}

/* 子メニューのリンク */
.drawer__sub-list li a {
    display: block;
    padding: 12px 10px 12px 60px; /* インデント（左の余白）をつけて階層を表現 */
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
}
.drawer__sub-list li:last-child a {
    border-bottom: none;
}
.drawer__sub-list li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* =========================================================
   メニューが開いている時は、ボタン（×印）を白くする
   ========================================================= */
.header__hamburger.is-active span {
    background-color: #fff;
}

/* =========================================================
   ドロップダウンメニュー（子メニュー）の設定
   ========================================================= */

/* 1. ヘッダーからはみ出しても表示できるようにする */
.header, .header__inner {
    overflow: visible !important;
}

/* 2. 親メニュー（基準点） */
.header__item.has-child {
    position: relative; /* 子メニューをここ基準で配置する */
}

/* 親メニューに「▼」マークをつける */
.header__item.has-child > a::after {
    content: '▼';
    font-size: 0.6em;
    margin-left: 5px;
    vertical-align: middle;
    opacity: 0.5;
}

/* 3. 子メニュー（初期状態：隠しておく箱） */
.header__sub-list {
    position: absolute; /* 浮遊させる設定 */
    top: 100%;          /* 親の真下に配置 */
    left: 0;          /* 親と左端を合わせる */
    transform: translateX(0); /* 微調整 */
    
    background-color: #fff;      /* 背景は白 */
    min-width: 200px;            /* 最低限の幅 */
    padding: 10px 0;             /* 内側の余白 */
    border-radius: 4px;          /* 角を丸く */
    box-shadow: 0 5px 15px rgba(0,0,0,0.15); /* 影をつけて浮かせる */
    z-index: 9999;               /* 一番手前に表示 */

    /* アニメーション用（最初は見えない） */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* 子メニューの各項目に色分け（任意） */
.header__sub-list .for-kids {
    background-color: #FFF9E3; /* 薄い黄色 */
    border-radius: 4px;
}

/* 4. マウスを乗せた時（表示する） */
.header__item.has-child:hover .header__sub-list {
    opacity: 1;
    visibility: visible;
    top: 90%; /* 少し上にフワッと上がる演出 */
}

/* 5. 子メニュー内のリンク装飾 */
.header__sub-list li {
    display: block;
    width: 100%;
}

.header__sub-list li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: #333; /* 文字色 */
    text-align: left;
    white-space: nowrap; /* 改行させない */
    font-weight: normal;
    border-bottom: 1px solid #f0f0f0; /* 薄い区切り線 */
}

.header__sub-list li:last-child a {
    border-bottom: none;
}

.header__sub-list li a:hover {
    background-color: #f4f7f6; /* ホバー時は薄いグレー */
    color: var(--color-main);  /* 文字は紺色 */
}

/* --- レスポンシブ対応（スマホ・狭い画面ではPC用ドロップダウンを消す） --- */
@media screen and (max-width: 1024px) {
    .header__sub-list {
        display: none !important; /* 強制的に消す */
    }
    .header__item.has-child > a::after {
        display: none; /* ▼も消す */
    }
}


/* =========================================================
   パンくずリスト (Breadcrumb)
   ========================================================= */
.breadcrumb {
    display: flex;
    flex-wrap: wrap; /* スマホで折り返す */
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0; /* タイトルとの間隔 */
    font-size: 0.85rem;
    margin-left: 16px;
    margin-bottom: 30px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

/* リンクと矢印の設定 */
.breadcrumb li:not(:last-child)::after {
    content: ">"; /* 矢印マーク */
    margin: 0 10px;
    color: #ccc;
}

.breadcrumb a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--color-main);
    text-decoration: underline;
}

/* 現在のページ（一番最後）は太字などにする */
.breadcrumb li:last-child span {
    color: #333;
    font-weight: bold;
}

@media screen and (max-width: 600px) {
  .breadcrumb {
    font-size: 0.85em;
  }
}


/* =========================================================
   ニュースリストのスマホ対応（縦積みに変更）
   ========================================================= */
@media screen and (max-width: 768px) {
    
    /* リンク全体を「横並び」から「縦積み」に変更 */
    .news-link {
        flex-direction: column; /* 要素を縦に並べる */
        align-items: flex-start; /* 左端に寄せる */
        padding: 12px 0; /* 上下の余白を少し狭める */
    }

    /* 日付とカテゴリのエリア */
    .news-meta {
        margin-bottom: 6px; /* タイトルとの間に少し隙間を空ける */
        min-width: auto;    /* PC用の「幅固定」を解除する */
        width: 100%;        /* 横幅いっぱいに使う */
    }

    /* タイトルの文字設定 */
    .news-title {
        font-size: 14px;   /* 文字を少し小さく（PCは16px相当） */
        line-height: 1.5;  /* 行間を少し広げて読みやすく */
        margin-left: 0;    /* PC用の左余白があればリセット */
        width: 100%;       /* 横幅いっぱいに使う */
    }
}

/* =========================================================
   お問い合わせフォーム (Google Forms埋め込み)
   ========================================================= */

/* フォームを囲む箱 */
.form-wrapper {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto; /* 中央寄せ */
}

/* iframe（Googleフォーム本体）の調整 */
.form-wrapper iframe {
    width: 100% !important; /* 強制的に親の幅に合わせる */
    max-width: 100% !important;
    display: block;
    /* 高さはGoogleフォームの設定で足らなければ、ここで min-height を調整 */
    min-height: 1600px; 
    border: none;
}

/* スマホの時の調整 */
@media screen and (max-width: 600px) {
    .form-wrapper {
        padding: 10px 0; /* 余白を減らす */
        box-shadow: none; /* スマホでは影を消してスッキリさせる */
        background: transparent;
    }
    
    .form-wrapper iframe {
        /* スマホだとフォームが長くなりがちなので高さを増やす */
        min-height: 1800px; 
    }
}

/* =========================================================
   プライバシーポリシーページの装飾
   ========================================================= */

/* 本文の幅を少し絞って読みやすくする */
.privacy-body {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

/* 各セクションの余白 */
.privacy-item {
    margin-bottom: 60px;
}

/* 見出し（【...】の部分） */
.privacy-head {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--color-main);
    border-bottom: 2px solid var(--color-gray-light);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* 小見出し（ウェブサイトの扱い内の 1. 2. ...） */
.privacy-sub-head {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 10px;
    color: #333;
}

/* 番号付きリスト（1. 2. 3.） */
.privacy-list {
    margin: 15px 0 0 20px;
    padding-left: 0;
}

.privacy-list li {
    list-style-type: decimal; /* 数字を表示 */
    margin-bottom: 10px;
    padding-left: 10px;
    line-height: 1.8;
}

/* お問い合わせ先の囲み枠 */
.privacy-contact-box {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 30px;
    margin-top: 20px;
    border-radius: 8px;
    text-align: center;
}

.contact-title {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-time {
    color: #666;
    margin-top: 15px;
}

/* 小さいボタン（フォーム誘導用） */
.btn--sm {
    padding: 10px 20px;
    font-size: 14px;
}


/* =========================================================
   メニューカード（ボタン下部固定レイアウト）
   ========================================================= */

/* カード本体 */
.card {
  /* ▼ここが重要：縦並びのFlexボックスにする */
  display: flex;
  flex-direction: column;
  
  /* 見た目の設定 */
  background: #fff;
  padding: 40px 20px; /* 上下40px, 左右20px（少し狭めてスマホ対応） */
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  box-sizing: border-box;
  
  /* 幅の設定（HTMLのstyle属性を補助） */
  width: 100%; /* 基本は親に合わせる */
}

/* 上部のコンテンツエリア（タイトル＋文章） */
.menu-content {
  flex: 1; /* ★ここが最重要：余ったスペースを全部埋める */
  text-align: center; /* 文字を中央寄せ */
  margin-bottom: 20px; /* ボタンとの最低限の隙間 */
}

/* 下部のボタンエリア */
.menu-footer {
  text-align: center; /* ボタンを中央に配置 */
  margin-top: auto;   /* 上の要素が伸びなくても、強制的に下に配置する保険 */
}

/* =========================================================
   PC専用表示クラス (pc-only)
   ========================================================= */
.u-hidden-sp {
    display: inline;
}

@media (max-width: 768px) {
    .u-hidden-sp {
        display: none;
    }
}


/* =========================================================
   セクション装飾 (Sections) 個人向けページのstyle
   ========================================================= */
.section__subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.section__lead {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.section--narrow {
    max-width: 900px;
    margin: 0 auto;
}

.content-block {
    margin-bottom: 50px;
}

.content-title {
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.content-list {
    list-style: disc;
    margin-left: 20px;
    line-height: 1.8;
}

.content-dl dt {
    font-weight: bold;
    color: #0056b3;
    margin-top: 15px;
}

.content-dl dd {
    margin-left: 20px;
    margin-bottom: 15px;
}

/* ダウンロードツール */
.tools-area {
    background: #f9f9f9;
    padding: 30px;
    border: 1px dashed #999;
    border-radius: 8px;
}

.tools-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.tools-desc {
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.tool-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border: 1px solid #e5e5e5;
    max-width: 400px;
}

.tool-card-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

.tool-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tool-list li {
    margin-bottom: 15px;
}

.tool-btn {
    display: inline-block;
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 5px;
    background: #ffd4d4;
    color: #1a1919;
}

.tool-btn.disabled {
    opacity: 0.7;
    pointer-events: none;
}

.tool-note {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

/* ===============================
     セクション装飾（個人向けページstyle）スマホ用調整
     =============================== */
@media screen and (max-width: 768px) {
    .section__subtitle {
        font-size: 1rem;
        margin-bottom: 14px;
    }
    .section__lead {
        font-size: 0.8rem;
        max-width: 95vw;
    }
    .section--narrow {
        max-width: 98vw;
        padding-left: 5px;
        padding-right: 5px;
    }
    .content-block {
        margin-bottom: 30px;
    }
    .content-title {
        font-size: 1rem;
        margin-bottom: 14px;
        padding-bottom: 7px;
    }
    .content-list {
        font-size: 0.8rem;
        margin-left: 14px;
    }
    .content-dl dt {
        font-size: 0.9rem;
        margin-top: 10px;
    }
    .content-dl dd {
        font-size: 0.8rem;
        margin-left: 14px;
        margin-bottom: 10px;
    }
    .tools-area {
        padding: 15px;
        font-size: 0.8rem;
    }
    .tools-title {
        font-size: 1rem;
        margin-bottom: 14px;
    }
    .tools-desc {
        font-size: 0.8rem;
        margin-bottom: 18px;
    }
    .tools-grid {
        gap: 12px;
        grid-template-columns: 1fr;
    }
    .tool-card {
        padding: 12px;
    }
    .tool-card-title {
        font-size: 1rem;
        margin-bottom: 10px;
        padding-bottom: 3px;
    }
    .tool-list li {
        margin-bottom: 10px;
    }
    .tool-btn {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    .tool-note {
        font-size: 0.7rem;
    }
}

/* ===============================
     セクション装飾（キッズ向けページstyle）
     =============================== */

.section--kids {
    background-color: #FFF9E3 !important; /* 薄い黄色 */
}

/* =========================================
   FAQ (Q&A) Page Styles
   ========================================= */
.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}
.lang-switch {
    display: flex;
    border: 1px solid #000e86;
    border-radius: 4px;
    overflow: hidden;
}
.lang-btn {
    background: #fff;
    color: #000e86;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}
.lang-btn:hover { background: #f0f0f0; }
.lang-btn.active { background: #000e86; color: #fff; }

/* カテゴリジャンプボタン */
.faq-nav {
    margin-top: 20px;
}
.faq-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.faq-nav-link {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.faq-nav-link:hover {
    background: #000e86;
    color: #fff;
    border-color: #000e86;
}
.faq-nav-link .arrow {
    font-size: 0.7em;
    margin-left: 8px;
    color: #999;
}
.faq-nav-link:hover .arrow {
    color: #fff;
}

/* カテゴリブロック */
.faq-category-block {
    margin-bottom: 60px;
    scroll-margin-top: 100px; /* スクロール時の位置調整 */
}
.faq-category-title {
    font-size: 1.4rem;
    color: #333;
    border-left: 6px solid #000e86;
    padding-left: 15px;
    margin-bottom: 25px;
    font-weight: bold;
    background: #f9f9f9;
    padding: 10px 15px;
}

/* FAQアイテム（アコーディオン） */
.faq-container {
    max-width: 100%;
}
.faq-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden; /* 開閉アニメーション用 */
    transition: all 0.3s;
}
.faq-item.is-open {
    border-color: #000e86;
    box-shadow: 0 4px 10px rgba(0,14,134,0.1);
}

/* 質問エリア（トリガー） */
.faq-q {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer; /* クリックできることを示す */
    position: relative;
    background: #fff;
    transition: background 0.3s;
}
.faq-q:hover {
    background: #f9f9f9;
}
.faq-q .faq-icon {
    background: #000e86;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}
.faq-text-q {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #333;
    font-weight: bold;
    padding-right: 30px; /* アイコン分の余白 */
    flex: 1;
}
.faq-toggle-icon {
    font-size: 1.2rem;
    color: #000e86;
    font-weight: bold;
    flex-shrink: 0;
}

/* 回答エリア（コンテンツ） */
.faq-a {
    display: none; /* 初期状態は非表示 */
    border-top: 1px solid #eee;
    background: #fdfdfd;
}
/* activeクラスがついたら表示 */
.faq-item.is-open .faq-a {
    display: block;
    animation: fadeIn 0.3s ease;
}

.faq-a-inner {
    display: flex;
    align-items: flex-start;
    padding: 20px 25px;
}
.faq-a-header .faq-icon {
    background: #d32f2f;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}
.faq-text-a {
    line-height: 1.7;
    color: #555;
    width: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 表示切り替え制御 */
.text-en { display: none; }
body.mode-english .text-jp { display: none; }
body.mode-english .text-en { display: block; }