/* ==========================================
    1. 基本設定（全デバイス共通）
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 確認用 */
    /* outline: 2px solid blue; */
}
html {scroll-behavior: smooth;}
li a {text-decoration: none;}

:root {
    --color-body: rgb(245,245,245);
    --color-body-darker: rgb(233,227,215);
    --color-body-black: rgb(30,30,30);
    --color-body-white: rgb(255,255,255);
    --color-border: rgb(200,195,190);
    --color-header: rgb(255,255,255);
    --color-header-change: rgb(245,245,245);
    --color-footer: rgb(45, 45, 45);
    --color-card: rgb(255, 255, 255);
    --color-primary: rgb(82,67,158);
    --color-primary-brighter: rgb(222, 220, 255);
    --rgb-primary: 82, 67, 158;
    --color-accent: rgb(239, 115, 23);
    --color-accent-darker: rgb(190, 80, 10);
    --rgb-accent: 239, 115, 23;
    --color-point1: rgb(84, 178, 233);
    --color-point2: rgb(233, 84, 176);
    /*--- フォント用の色 ---*/
    --font-color: rgb(51, 51, 51);
    --font-divider-color: rgb(80,70,60);
    --font-header-color: rgb(34, 34, 34);
    --font-header-white-color: rgb(255,255,255);
    --font-header-scrolled-color: rgb(34, 34, 34);
    --font-note-color: rgb(102, 102, 102);
    --font-breadcrumb-color: rgb(100, 116, 139);
    --font-card-color: rgb(68, 68, 68);
    --font-white-color: rgb(255,255,255);
    --border-color:rgb(190,178,158);
    /*--- フォントサイズ ---*/
    /* ① メイン */
    --font-size-h1: clamp(1.73rem, 2.1vw + 1.24rem, 2.75rem);
    --font-size-h2: clamp(1.44rem, 1.16vw + 1.17rem, 2.0rem);
    --font-size-h3: clamp(1.2rem, 0.6vw + 1.06rem, 1.5rem);
    --font-size-h4: clamp(1.1rem, 0.29vw + 1.03rem, 1.25rem);
    --font-size-p:  clamp(1.0rem, 0.12vw + 0.97rem, 1.06rem);
    /* ② 補足 */
    --font-size-lead: clamp(1.2rem, 0.4vw + 1.1rem, 1.37rem);
    --font-size-note: clamp(0.81rem, 0.12vw + 0.78rem, 0.87rem);
    --font-size-sub:  clamp(0.87rem, 0.19vw + 0.83rem, 1.0rem);
    /* ③ パーツ */
    --font-size-card-title: clamp(1.1rem, 0.19vw + 1.06rem, 1.25rem);
    --font-size-card-body:  clamp(0.87rem, 0.12vw + 0.84rem, 0.93rem);
    --font-size-price:      clamp(1.5rem, 1.0vw + 1.27rem, 2.0rem);
    --font-size-term:       clamp(1.2rem, 0.7vw + 1.0rem, 1.5rem);
    /* ④ ボタン */
    --font-size-button: clamp(1.0rem, 0.12vw + 0.97rem, 1.06rem);
    /* 行間の定義 */
    --lh-tight: 1.3;   /* キャッチコピー・大見出し用 */
    --lh-medium: 1.5;  /* 中・小見出し用 */
    --lh-loose: 1.8;   /* 本文用（ゆったり） */
    --lh-lead: 2.0;
    /* 字間の定義 */
    --ls-wide: 0.1em;   /* キャッチコピー用（高級感・ゆとり） */
    --ls-normal: 0.05em; /* 見出し用 */
    --ls-tight: 0.02em;  /* 本文用（読みやすさ重視） */
    --ls-lead: 0.08em;
    /*--- ヘッダー幅 ---*/
    --header-height: 80px;
    --header-height-scrolled: 60px;
    --sub-header-height: 44px;
    --sub-header-color: rgba(255, 255, 255, 0.9);
    --header-bg-index: linear-gradient(to top, rgba(233,227,215, 0), rgba(233,227,215, 0.7));
    /*--- 余白 ---*/
    --space-section-l: clamp(60px, 10vw, 120px);
    --space-section-m: clamp(40px, 7vw, 80px);
    --space-section-s: clamp(30px, 5vw, 40px);
    --space-content-l: clamp(40px, 6vw, 64px);
    --space-content-m: clamp(24px, 4vw, 40px);
    --space-content-s: clamp(16px, 3vw, 24px);
    --space-component-l: clamp(16px, 2vw, 24px);
    --space-component-m: clamp(12px, 1.5vw, 16px);
    --space-component-s: clamp(8px, 1vw, 12px);

    /*------ ボタン用 ------*/
    /* スペース */
    --sp-xs:  4px;
    --sp-sm:  8px;
    --sp-md:  16px;
    --sp-lg:  24px;
    --sp-xl:  32px;
    /* 角丸 */
    --radius-sm:   6px;
    --radius-md:   10px;
    --radius-lg:   16px;
    --radius-full: 9999px;
    /* 落ち影 */
    --shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.10), 0 1px 2px rgba(26, 26, 46, 0.06);
    --shadow-md: 0 4px 12px rgba(26, 26, 46, 0.12), 0 2px 4px rgba(26, 26, 46, 0.08);
    --shadow-lg: 0 8px 24px rgba(26, 26, 46, 0.16), 0 4px 8px rgba(26, 26, 46, 0.10);
    --shadow-primary: 0 4px 16px rgba(37, 99, 168, 0.35);
    --shadow-accent:  0 4px 16px rgba(224, 123, 57, 0.40);
    /* 動き */
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast:  120ms;
    --duration-base:  220ms;
    --duration-slow:  380ms;
    /* ボタン全体のサイズ (Mobile-First: min 44px touch target) */
    --btn-height-sm: 36px;
    --btn-height-md: 48px;   /* デフォルト */
    --btn-height-lg: 56px;
    --btn-padding-x-sm: var(--sp-md);
    --btn-padding-x-md: var(--sp-lg);
    --btn-padding-x-lg: var(--sp-xl);
    --btn-font-size-sm: 0.8125rem;  /* 13px */
    --btn-font-size-md: 0.9375rem;  /* 15px */
    --btn-font-size-lg: 1.0625rem;  /* 17px */

        /*--- タグ用の色 ---*/
    --CATcolor-announcement: #EE7111; /* 告知：基準となる最重要色 */
    --CATcolor-series: #382E6B;       /* オリジナル：メイン色と馴染むボルドー寄りの赤 */
    --CATcolor-landscape: #616B2E;      /* 風景：背景色と対比させる深い青緑 */
    --CATcolor-character: #5D4DB3;      /* キャラクター設定：落ち着いたオリーブグリーン */
    --CATcolor-fanart: #9D438E;         /* ファンアート：告知より少し明度を落としたオレンジ */
    --CATcolor-time: #1b8518;         /* 時間制限 */
    --CATcolor-rakugaki: #9E94D1;       /* らくがき：テラコッタ風の温かい赤茶 */
    --CATcolor-process: var(--color-primary); /* 制作過程：サイトのメイン色を適用 */
    --CATcolor-news: #F5AA70;
    --CATcolor-live2d: #438E9D;         /* Live2D：少しグレイッシュな水色 */
    --CATcolor-clipstudio: #4D6EB3;     /* ClipStudio：メイン色を淡くしたブルーグレー */
    --CATcolor-tips: #A091B6;           /* Tips：背景色と相性の良いマスタード */
    --CATcolor-miscellaneous: #667699;  /* 雑記：温かみのあるモカグレー */
    --scrollbar: 0px;
}
/* --- R18モード時の変数上書き --- */
body.is-dark-mode {
    --color-body: rgb(20, 20, 25);
    --color-primary: rgb(160, 140, 255); /* 発光感のあるバイオレット */
    /* --color-card: rgb(40, 40, 45); */
    --color-header: rgb(245,245,245);
    --font-header-color: rgb(245,245,245);
    --font-header-white-color: rgb(245,245,245);
    --font-header-scrolled-color: rgb(245,245,245);
    --color-footer: rgb(10, 10, 12);

    /* 背景もふわっと変わるようにbodyにtransitionを推奨 */
    transition: background-color 0.5s ease, color 0.5s ease;
}
body.is-r18-mode {
    --color-primary: rgb(180, 50, 60); /* ネオンピンク */
    /* --color-card: rgb(180, 50, 60); */
    --color-header: rgba(40, 15, 30, 0.9);
    --font-header-color: rgb(245,245,245);
    --font-header-white-color: rgb(245,245,245);
    --font-header-scrolled-color: rgb(245,245,245);
    --text-color: rgb(255, 230, 240); /* 文字も少しピンクがかった白に */
}
body.is-r18-mode .filter-bar button[data-filter="r18-illust"] {
background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 4px,
        rgba(158, 67, 100, 0.05) 4px, /* メインカラーを極薄く */
        rgba(158, 67, 100, 0.05) 5px
    );
}

/* PCサイズのみ消去する要素 */
.u-pc-only { display: none; }
@media (min-width: 769px) {
    .u-sp-only { display: none; }
    .u-pc-only { display: block; }
}

body {
    background-color: var(--color-body);
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 400;
    color: var(--font-color);
    line-height: var(--lh-loose);
    letter-spacing: var(--ls-tight);
    /* word-break: keep-all; */
    /* overflow-wrap: anywhere; */
}
/* --- コンポーネント --- */
h1, h2, h3, .font-english {
    /* Montserrat を先に記述することで、英数字だけに Montserrat が適用され、
    日本語部分には自動的に Noto Sans JP が適用されます（フォント合成） */
    font-family: "Montserrat", "Noto Sans JP", sans-serif;
    font-weight: 700;
    letter-spacing: var(--ls-normal);
    text-wrap: pretty;
}
/* 大見出し・中見出し（h1, h2） */
h1, h2 {
    font-size: var(--font-size-h1);
    line-height: var(--lh-tight);
}
/* 小見出し（h3） */
h3 {
    line-height: var(--lh-medium);
}
h1 {
    font-size: var(--font-size-h1);
}
h2 {
    font-size: var(--font-size-h2);
}
h3 {
    font-size: var(--font-size-h3);
}
.u_nowrap {
    display: inline-block; /* 塊として扱う */
    white-space: nowrap;   /* 改行を禁止する */
}
/* ==========================================
    2. レイアウト（モバイルデフォルト）
   ========================================== */
.ly_app {
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-areas: 
        "header"
        "main"
        "footer";
    min-height: 100dvh;
}
.ly_header { grid-area: header; }
.ly_main   { grid-area: main; }
.ly_footer { grid-area: footer; }
/* ベースはly_appでmainを左右に分割 */

ly_main__index {
    margin-top: -var(--sub-header-height);
}
.ly_detail {
    display: grid;
    gap: 0 0;
    align-items: start;
}
.ly_detail__gallery {
    grid-template-areas: 
        "gallery_main"
        "gallery_side"
        "gallery_sub"
        "gallery_related";
    grid-template-columns: minmax(0, 1fr); /* 必須：子のはみ出しを抑制 */
    padding-bottom: var(--space-content-m);
}
@media (min-width: 1024px) {
    .ly_detail {
    gap: 0 var(--space-section-s);
}
    .ly_detail__gallery {
        grid-template-areas: 
            "gallery_main gallery_side"
            "gallery_sub gallery_side"
            "gallery_related gallery_side";
        grid-template-columns: minmax(0, 1fr) auto;
    }
}
.ly_gallery_main {
    grid-area: gallery_main;
    min-width: 0;
    margin-bottom: var(--space-section-m);
    /* overflow: hidden; */
}
.ly_gallery_sub {
    grid-area: gallery_sub;
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-section-m);
    gap: var(--space-content-m);
}
.ly_gallery_side {
    grid-area: gallery_side;
    margin-bottom: var(--space-section-m);
}
.ly_gallery_related {
    grid-area: gallery_related;
}
@media (min-width: 1024px) {
    .ly_gallery_side {
        position: sticky;
        top: calc(var(--header-height-scrolled) + 20px);
        width: 320px;
        height: calc(100vh - var(--header-height-scrolled) - 40px);
        /* 修正：フッターを貫通したのでmaxを削ったが、文章が元に戻った時に再確認 */
        /* max-height: calc(100vh - var(--header-height-scrolled) - 40px); */
        align-self: start;
        margin-bottom: 0;
    }
}
.ly_detail__blog {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: var(--space-content-m);
}
@media (min-width: 1024px) {
    .ly_detail__blog {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}
.ly_blog_main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.ly_blog_side {
    display: flex;
    flex-direction: column;
    gap: var(--space-content-m);
}
@media (min-width: 1024px) {
    .ly_blog_side {
        position: sticky;
        top: calc(var(--header-height-scrolled) + 20px);
        width: max(250px, 25vw);
        height: max-content;
        max-height: calc(100vh - var(--header-height-scrolled) - 40px);
        align-self: start;
    }
}


.ly_section {
    padding-block: var(--space-section-s);
}
.ly_section__lv2 {
    padding-block: var(--space-section-m);
}
.ly_section_sub {
    margin-top: var(--space-content-l);
}
.ly_section__bgAccent {
    margin-top: var(--space-content-s);
    background-color: var(--color-body-darker);
    /* color: var(--font-white-color); */
}
.ly_container {
    width: min(1200px, 90%);
    margin-inline: auto;
}
.ly_column {
    display: grid;
    row-gap: var(--space-content-m);
    column-gap: var(--space-content-s);
    grid-template-columns: 1fr;
}
@media (min-width: 769px) {
    .ly_column__3col {
        grid-template-columns: repeat(3, 1fr);
    }
    .ly_column__2col {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-content-m);
    }
    .ly_column__1to2 {
        grid-template-columns: 1fr 2fr;
    }
    .ly_column__fit {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

.ly_pageHeader_inner {
    display: flex;
    flex-direction: column; /* 縦に並べる */
    align-items: center;    /* 中央揃え */
    gap: var(--space-component-m);             /* タイトルとスイッチの間隔 */
}
@media (min-width: 769px) {
    .ly_pageHeader_inner {
        flex-direction: row;      /* 横に並べる */
        justify-content: space-between; /* 左右に振り分ける */
        align-items: flex-start;    /* 下揃え（タイトルに高さを合わせる） */
        text-align: left;
    }
    .r18-switch-container {
        /* PC時はタイトルに寄りすぎないよう少し調整 */
        margin-bottom: 5px; 
    }
}

/* ==========================================
    3. ブロック（bl_）（モバイルデフォルト）
   ========================================== */
.ly_headerHeight {
    padding-top: var(--header-height-scrolled);
}
/* --- ブロック：セクションヘッダー --- */
.bl_sectionHeader {
    margin-inline: auto;
    margin-bottom: var(--space-content-m); /* 下のコンテンツとの余白 */
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: var(--space-component-m);
}
.bl_sectionHeader.bl_sectionHeader__divider h2 {
    color: var(--font-divider-color);
}
.bl_sectionHeader h2 {
    color: var(--color-primary);
}
.bl_sectionHeader__lv2 {
    margin-bottom: var(--space-content-l); /* 下のコンテンツとの余白 */
}
.bl_sectionHeader__left {
    text-align: left;
}
.bl_sectionHeader p {
    overflow-wrap: anywhere;
    line-break: strict;
    text-align: left;
}
@media (min-width: 769px) {
    .bl_sectionHeader p {
        text-align: center;
    }
}
/* --- ブロック：セクションボディー --- */
.bl_sectionBody {
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: var(--space-component-m); /* 要素間の隙間を一括管理 */
}
/* --- ブロック：セクションフッター --- */
.bl_sectionFooter {
    margin-inline: auto;
    margin-top: var(--space-content-m);
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: var(--space-component-m); /* 要素間の隙間を一括管理 */
}
.bl_privacyPolicyContent {
    white-space: pre-wrap;
    word-break: break-all;
}
.bl_textContainer {
    max-width: 600px; /* 日本語が読みやすいとされる40文字前後の幅 */
    margin-inline: auto; /* 中央寄せ */
    width: 100%;
}
/* --- ブロック：カード --- */
.bl_cardFlex {
    display: flex;
    flex-direction: column;
    /* padding: var(--space-component-l); */
    height: 100%;
    /* border: 1px solid rgb(82, 67, 158); */
    background-color: var(--color-card);
}
.bl_cardSpan2, .bl_cardSpan3, .bl_cardSpan4 {
    display: grid;
    /* 4つの要素（アイコン枠、タイトル、画像、本文）を subgrid に割り当て */
    grid-template-rows: subgrid;
    gap:var(--space-component-m);
    padding: var(--space-component-l);
    background-color: var(--color-card);
    position: relative; /* アイコンを浮かせる基準 */
}
.bl_cardSpan2 {
    grid-row: span 2;
}
.bl_cardSpan3 {
    grid-row: span 3;
}
.bl_cardSpan4 {
    grid-row: span 4;
}
.bl_card__hasIcon {
    margin-top: 32px; /* アイコンが半分はみ出すための余白 */
}
@media (max-width: 768px) {
    .bl_card__limitWidth {
        width: min(100%, 400px);
        margin-inline: auto;
    }
}
/* 角丸 */
.bl_card__rounded {
    border-radius: 12px;
    overflow: hidden;
}
/* 角あり（丸くない） */
.bl_card__square {
    border-radius: 0;
}
/* 枠線あり */
.bl_card__bordered {
    border: 2px solid var(--border-color);
}
/* --- 各行の設定（ここが自動で揃う！） --- */
.el_card_title {
    margin-top: var(--space-content-m);
    text-align: center;
}
.el_card_title__sub {
    font-size: var(--font-size-h4);
    margin-top: var(--space-content-s);
}
.bl_card_imageArea {
    width: 100%;
    background-color: var(--color-body);
}
.bl_card_body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: center;
    text-align: center;
    padding: var(--space-content-m);
    gap: var(--space-component-m);
}
/* --- アイコン枠：グリッドの1行目として機能させる --- */
.bl_card_icon {
    width: 64px;
    height: 0; /* 高さを半分程度確保してグリッドの隙間を作る */
    margin-inline: auto; /* 中央寄せ */
    position: relative; /* 中の bl_image の基準にする */
}
/* --- アイコン中身：これを絶対配置で浮かせる --- */
.bl_card_icon .bl_image {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translate(-50%, -50%); /* 上に半分はみ出させる */
    width: 64px;
    z-index: 2;
}
.el_card_text {
    font-size: var(--font-size-card-body);
    line-height: 1.7;
    color: var(--font-card-color);
}
.el_card_text--special {
    text-align: left;
}
.bl_btnContainer {
    display: flex;
    gap: 12px; /* ボタン同士の間隔（8pxより少し広めがモダンです） */
    width: 100%;
}
/* パターン1 & 2：中央寄せ（単体） */
.bl_btnContainer--center {
    justify-content: center;
    align-items: center;
}

/* パターン3：カード内・必ず縦並び（100%幅） */
.bl_btnContainer--vertical {
    flex-direction: column;
    align-items: stretch; /* ボタンを親の幅いっぱいに広げる */
}
.bl_btnContainer--vertical .bl_btn {
    width: 100%; /* ボタンが親の幅に合わせて伸びる */
}

/* パターン4：横並び（中央寄せ、または左寄せ） */
.bl_btnContainer--horizontal {
    flex-direction: row;
    flex-wrap: wrap; /* スマホで入り切らない時に自動改行 */
    justify-content: center;
}
/* --- ブロック：イメージ --- */
.bl_image {
    margin: 0;
    width: 100%;
    position: relative;
}
.bl_image_inner {
    position: relative;
    overflow: hidden;
    line-height: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
}
.bl_image_img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* デフォルト */
    vertical-align: bottom;
}
/* --- Modifier: 比率と収まり --- */
.bl_image__ratio1x1 .bl_image_inner {
    aspect-ratio: 1 / 1;
}
.bl_image__ratio3x2 .bl_image_inner {
    aspect-ratio: 3 / 2;
}
.bl_image__contain .bl_image_img {
    object-fit: contain;
}
/* --- Modifier: クリック属性と重ねる要素 --- */
/* 動画サムネイルの親要素に適用 */
.bl_image__video .bl_image_inner::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    color: var(--font-white-color);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    padding-left: 4px;
    z-index: 2; /* ホバー時のオーバーレイ(z-index:1想定)より上に */
    pointer-events: none;
    transition: background 0.3s ease;
}
.bl_image__clickable { cursor: zoom-in; }
.bl_image__clickable .bl_image_inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--color-body-darker);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.bl_image__clickable:hover .bl_image_inner::after { opacity: 0.4; }

.bl_image_label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--font-white-color);
    padding: 2px 8px;
    font-size: 0.75rem;
    pointer-events: none;
}
/* --- ブロック：モーダル --- */
.bl_modal {
    border: none;
    background: transparent;
    max-width: 100vw;
    max-height: 100vh;
    padding: 0;
    overflow: hidden; /* モーダル自体のスクロールを防ぐ */
}
/* 背景（Backdrop） */
.bl_modal::backdrop {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}
/* モーダル内部のレイアウト（中央寄せ） */
.bl_modal_inner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
}
.bl_modal_img,
.bl_modal_video,
.bl_btnclose_modal,
.bl_btnIcon_modal {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90vh; /* 画面の高さに収める */
    object-fit: contain; /* アスペクト比を維持 */
    display: block;
    margin: auto;
    pointer-events: auto;
}
/* --- 4. エレメント（el_）（モバイルデフォルト） --- */
.el_pageTitle {
    margin-bottom: var(--space-component-m);
    gap: 0.75rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--color-primary);
}
/* ページタイトル左側のアクセント棒 */
@media (max-width: 768px) {
    .el_pageTitle {
        position: relative;
        margin-bottom: calc(var(--space-component-m) + 10px);
        width: fit-content;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .el_pageTitle::before {
        content: "";
        position: absolute;
        bottom: -10px;
        left: 25%;
        width: 50%; /* 太さを少し調整 */
        height: 3px; /* 文字の高さに合わせることでバランスを最適化 */
        background-color: var(--color-primary);
        border-radius: 4px;
    }
}
@media (min-width: 769px) {
    .el_pageTitle {
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
        line-height: 1.2;
        margin: 0;
    }
    .el_pageTitle::before {
        content: "";
        width: 6px; /* 太さを少し調整 */
        height: 1.2em; /* 文字の高さに合わせることでバランスを最適化 */
        background-color: var(--color-primary);
        border-radius: 4px; /* 少し角を丸めるとモダンな印象に */
        flex-shrink: 0;
    }
}
.el_pageTitle__contact::before {
    background-color: var(--color-accent);
}
.el_pageTitle_tablet {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    color: var(--color-primary);
}
/* ページタイトル左側のアクセント棒 */
@media (max-width: 1023px) {
    .el_pageTitle_tablet {
        position: relative;
        margin-bottom: 10px;
        width: fit-content;
        justify-content: center;
        margin-inline: auto;
    }
    .el_pageTitle_tablet::before {
        content: "";
        position: absolute;
        bottom: -10px;
        width: 50%; /* 太さを少し調整 */
        height: 3px; /* 文字の高さに合わせることでバランスを最適化 */
        background-color: var(--color-primary);
        border-radius: 4px;
    }
}
@media (min-width: 1024px) {
    .el_pageTitle_tablet {
        justify-content: flex-start;
    }
    .el_pageTitle_tablet::before {
        content: "";
        width: 6px; /* 太さを少し調整 */
        height: 1.2em; /* 文字の高さに合わせることでバランスを最適化 */
        background-color: var(--color-primary);
        border-radius: 4px; /* 少し角を丸めるとモダンな印象に */
        flex-shrink: 0;
    }
}
/* ページタイトル リード文 */
.el_lead-pageHeader {
    font-size: var(--font-size-h4);
    font-weight: 500;
    color: var(--color-text-primary);
    line-height: 1.6;
    margin-top: var(--space-content-m);
    margin-bottom: 1rem;
    padding-left: 18px;
    border-left: 3px solid var(--color-accent);
    border-radius: 0;
}
/* ページタイトル 本文 */
.el_text-pageHeader {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}
/*ページタイトル  補足文 */
.el_notice-pageHeader {
    background: #f0f6ff;
    border-left: 4px solid #4a90e2;
    padding: 12px;
    font-size: 14px;
    margin-top: var(--space-section-s);
    margin-bottom: 16px;
}
.el_notice-pageHeader--warning {
    background: #fff5f5;
    border-left: 4px solid #e04141;
    margin: 16px 0;
}
.el_notice-pageHeader span:first-child {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
}
.estimator__header details {
    margin-bottom: 16px;
    font-size: 14px;
}
.estimator__header summary {
    cursor: pointer;
    font-weight: bold;
}

/* 標準的な説明文 */
.el_txt {
    text-align: left;
    font-size: 0.9375rem; /* 15px相当 */
    line-height: 1.7;
    color: var(--font-color);
}
/* 導入文（リード文） */
.el_lead {
    font-size: var(--font-size-lead);
    font-weight: 400;
    line-height: var(--lh-lead);
    letter-spacing: var(--ls-lead);
    color: var(--font-color);

    word-break: keep-all;
    overflow-wrap: anywhere;
    text-wrap: balance;
    line-break: strict;
    /* margin-bottom: 2rem; */
}
.el_lead__bold {
    font-weight: 600;
    color: var(--color-primary);
}
/* 補足・注釈テキスト */
.el_note {
    display: block;
    font-size: var(--font-size-note);
    line-height: 1.5;
    color: var(--font-note-color);
}
.el_note__sp {
    display: block;
}
.el_note__pc {
    display: none;
}
@media (min-width: 769px) {
    .el_note__sp {
        display: none;
}
    .el_note__pc {
        display: block;
    }
}
.el_image_overlayText {
    position: absolute;
    top: 50%;  /* 上から50% */
    left: 50%; /* 左から50% */
    transform: translate(-50%, -50%); /* 中央に補正 */
    color: var(--font-color); /* 文字色 */
    font-size: 40px;
    font-weight: bold;
    /* text-shadow: 1px 1px 4px rgba(0,0,0,0.2); */
}
.el_searchIcon {
    width: 20px; /* 表示サイズ */
    height: 20px;
    vertical-align: middle;
    /* SVGなら色をCSSで操作可能（inline-svgの場合） */
}
.el_time {
    color: var(--font-note-color);
    font-size: 0.9rem;
    white-space: nowrap; /* 日付の途中で改行させない */
}
.el_tag {
    display: inline-block;
    padding: 0.2em 0.8em;
    border-radius: 4px;
    color: var(--font-white-color);
    font-size: 0.9em;
    font-weight: bold;
    line-height: 1.5;
    text-decoration: none; /* 下線を消す */
}
.el_tag__update {
    color: #A08F83;
    width: 80px;
    text-align: left;
}
/* --- 5. ヘルパー（hp_）（モバイルデフォルト） --- */
.hp_section__last {
    margin-bottom: var(--space-section-m);
}
.hp_mt0 { margin-top: 0 !important; }
.hp_mt16 { margin-top: 16px !important; }
.hp_mt20 { margin-top: 20px !important; }
.hp_mt40 { margin-top: 40px !important; }
.hp_mb80 { margin-bottom: 80px !important; }
.hp_mbs-com-m { margin-bottom: var(--space-component-m) !important; }
.hp_center {
    text-align: center;
}
/* HTML上の改行やスペースをそのまま表示する */
.hp_preLine {
    white-space: pre-line;
}
/* 単語の途中で改行させない（日本語の文章がガタガタになるのを防ぐ） */
.hp_brKeep {
    word-break: keep-all;
    overflow-wrap: anywhere;
}
.hp_sectionFooter_note {
    margin-top: calc(var(--space-component-s) - var(--space-component-m));
}
/* ==========================================
    ボタン用　CSS
   ========================================== */
/* ------------------------------------------------------------
    1. ベースボタン リセット&共通スタイル
   ------------------------------------------------------------ */
.btn {
    /* --- 色の管理 --- */
    --btn-bg: var(--main-color);
    --btn-text: var(--color-card);
    --btn-border-base: var(--btn-bg);
    --btn-border: var(--btn-border-base); /* 初期状態の枠線色 */
    --btn-shadow: 0 0 0 transparent; /* noneではなく透明な影を初期値にする */

    /* --- 基本スタイル --- */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-sm);

    /* 変数による動的制御（各クラスから流し込まれる） */
    background: var(--btn-bg); /* linear-gradient対応のためbackground */
    color: var(--btn-text);
    border: 2px solid var(--btn-border);
    border-radius: var(--radius-md);
    box-shadow: var(--btn-shadow);

    text-decoration: none;
    cursor: pointer;
    padding: 0 var(--btn-padding-x-md);
    min-height: var(--btn-height-md);
    font-weight: 500;

  /* --- 統合Transition（色・形・影を一括管理） --- */
    transition:
        background var(--duration-base) var(--ease-out-quart),
        background-color var(--duration-base) var(--ease-out-quart),
        border-color     var(--duration-base) var(--ease-out-quart),
        box-shadow       var(--duration-base) var(--ease-out-quart),
        transform        var(--duration-fast) var(--ease-spring);

    /* --- 動きの管理（物理挙動） --- */
    --hover-lift: 0px;
    --btn-scale: 1;
    transform: scale(var(--btn-scale)) translateY(var(--hover-lift));
    will-change: transform;
}

/* --- Hover: 浮かせて色を綺麗に明るくする --- */
.btn:hover {
    --hover-lift: -2px;
    background-color: color-mix(in oklch, var(--btn-bg), white var(--hover-mix, 10%));
    border-color:     color-mix(in oklch, var(--btn-border-base), white 15%);
    
    /* 個別クラスで --btn-shadow が上書きされない場合の「基本の影」 */
    --btn-shadow: 0 10px 20px -5px color-mix
    (in oklch, 
    color-mix(in oklch, var(--btn-theme, black), black 30%), 
    transparent 75% /* 100% - 25% = 75%透明と混ぜる */
    );
}

/* --- Active: 押し込んで色を少し暗くする --- */
.btn:active {
    --hover-lift: 1px !important;   /* 少しだけ沈ませる（接地感） */
    --btn-scale: 0.97 !important;   /* わずかに縮小 */
    
    /* 色を少しだけ沈ませる */
    background-color: color-mix(in oklch, var(--btn-bg), black 8%);
    
    /* 押し込んだ瞬間の影を最小限にする */
    --btn-shadow: 0 2px 4px color-mix(in oklch, var(--btn-theme), black 30% / 15%);

    /* 物理的な「手応え」を出すため、戻るアニメーションを速くする */
    transition: transform 0.1s var(--ease-out-quart);
}

/* ----- Size Modifiers ----- */
.btn--sm {
    min-height:  var(--btn-height-sm);
    padding:     0 var(--btn-padding-x-sm);
    font-size:   var(--btn-font-size-sm);
    border-radius: var(--radius-sm);
}
.btn--lg {
    min-height:  var(--btn-height-lg);
    padding:     0 var(--btn-padding-x-lg);
    font-size:   var(--btn-font-size-lg);
    border-radius: var(--radius-lg);
}

/* ----- Pill Shape ----- */
.btn--pill {
    border-radius: var(--radius-full);
}

/* ----- Icon Slot ----- */
.btn__icon {
    display:     inline-flex;
    align-items: center;
    flex-shrink: 0;
    width:       1.3em;
    height:      1.3em;
    transition:  transform var(--duration-base) var(--ease-spring);
}
.btn:hover .btn__icon {
    transform: scale(1.15); /* どのアイコンも共通で少し大きくする */
}
/* --- Disabled: すべての挙動を封鎖 --- */
.btn:disabled, .btn.is-disabled {
    /* 視覚的な無効化 */
    background-color: var(--color-gray-300, #ccc) !important;
    border-color:     var(--color-gray-300, #ccc) !important;
    color:            var(--color-gray-500, #888) !important;
    box-shadow:       none !important;
        opacity: 0.6;
    cursor: not-allowed;
    
    /* インタラクションの完全停止 */
    pointer-events:   none; /* クリックもホバーも一切反応させない */
    transform:        none !important; /* 浮かせたり押し込んだりさせない */
}

/* ------------------------------------------------------------
    1-1. Primary（最重要）
    主要なCTA。立体的な影と、ホバー時に浮き上がる印象。
   ------------------------------------------------------------ */
.btn--primary {
    --btn-theme: var(--color-primary);
    --btn-bg: var(--btn-theme);
    --btn-text: var(--font-white-color);
    --btn-border: var(--btn-theme);
    --btn-border-base: var(--btn-theme);
    letter-spacing:   0.04em;
    --hover-mix: 10%;
}
/* .btn--primary:hover:not(:disabled) {
    --btn-shadow: 0 10px 20px -5px color-mix(in oklch, var(--btn-theme), black 30% / 25%);
}
.btn--primary:active:not(:disabled) {
    --btn-shadow: 0 1px 3px color-mix(in oklch, var(--btn-theme), black 30% / 15%);
} */
/* ------------------------------------------------------------
    2-1. お問い合わせリンク（緊急性・誠実さ）
    温かみのあるアンバー。安心感を与えるアイコン添え。
   ------------------------------------------------------------ */
.btn--contact {
    --btn-theme: var(--color-accent); /* ベースカラー */
    --btn-bg: var(--btn-theme);
    --btn-text:  var(--font-white-color);
    --btn-border: var(--btn-theme);
    --btn-border-base: var(--btn-theme);
    --hover-mix: 10%;
    letter-spacing:   0.04em;
}
.btn--contact:hover {
    --btn-shadow: 0 10px 20px -5px color-mix(in oklch, color-mix(in oklch, var(--btn-theme), black 30%), transparent 65%);
}
.btn--contact:active {
  /* background-color: var(--color-accent-hover); */
    --btn-shadow: 0 1px 3px color-mix(in oklch, var(--btn-theme), black 30% / 18%);
}

.btn--contact .btn__icon {
    transition:
        transform var(--duration-base) var(--ease-spring),
        opacity   var(--duration-base) var(--ease-out-quart);
}
.btn--contact:hover .btn__icon {
    transform: translateY(-2px) scale(1.2) rotate(-8deg);    
}

/* ------------------------------------------------------------
    1-2. Secondary（重要）
    重要だが主張しすぎない。アウトライン＋塗り変化。
   ------------------------------------------------------------ */
.btn--secondary {
    --btn-theme: var(--color-primary); /* contact用ならここをaccentに変更 */
    --btn-bg: transparent;
    --btn-text: var(--btn-theme);
    --btn-border: var(--btn-theme);
    --btn-border-base: var(--btn-theme);
    --hover-mix: 94%; /* 背景を「ごく薄く」色付け（白94%混色） */
}
.btn--secondary-contact {
    --btn-theme: var(--color-accent); /* contact用ならここをaccentに変更 */
    --btn-bg: : color-mix(in srgb, var(var(--color-card)), transparent 40%);
    --btn-text: var(--btn-theme);
    --btn-border: var(--btn-theme);
    --btn-border-base: var(--btn-theme);
    --hover-mix: 94%; /* 背景を「ごく薄く」色付け（白94%混色） */
}
.btn--secondary, 
.btn--secondary-contact {
    /* デフォルトの「黒っぽくなる」挙動をリセットし、テーマカラーを混ぜる */
    --hover-bg: color-mix(in srgb, var(--btn-theme), transparent 96%); /* 6%だけ色づく */
    --active-bg: color-mix(in srgb, var(--btn-theme), transparent 90%); /* 12%色づく（押し込み） */
    
    transition: background-color var(--duration-base) var(--ease-out-quart), 
                transform var(--duration-base) var(--ease-spring),
                box-shadow var(--duration-base) var(--ease-out-quart);
}
/* ホバー時：ごく薄くテーマカラーが乗る */
.btn--secondary:hover,
.btn--secondary-contact:hover {
    background-color: var(--hover-bg) !important;
    --btn-shadow: 0 6px 15px color-mix(in oklch, var(--btn-theme), transparent 88%);
}

/* 押し込み時：少しだけ色が濃くなり、濁らない */
.btn--secondary:active,
.btn--secondary-contact:active {
    background-color: var(--active-bg) !important;
    --btn-scale: 0.96; /* 共通エンジンがあれば不要ですが、念のため */
    --hover-lift: 1px;  /* 押し込まれた感 */
}
/* スパークルアイコンのスピン */
.btn--secondary:hover .btn__icon,
.btn--secondary-contact:hover .btn__icon {
    transform: scale(1.2) rotate(-10deg);
}

/* ------------------------------------------------------------
    1-3. Tertiary（標準）
    存在感を抑えたフラットなボタン。ホバーで色面が出現。
   ------------------------------------------------------------ */
.btn--tertiary {
    --btn-theme: var(--font-color);
    --btn-bg: var(--color-body);
    --btn-text: var(--font-color);
    --btn-border-base: var(--font-color);
    --btn-shadow: none; /* フラットを維持 */
}
.btn--tertiary-bgAccent{
    --btn-theme: var(--font-color);
    --btn-bg: rgb(227 221 205);
    --btn-text: var(--font-color);
    --btn-border-base: var(--font-color);
    --btn-shadow: none; /* フラットを維持 */
}
.btn:hover .btn__icon-arrow {
    transform: scale(1.15) translateX(4px);
}

/* ============================================================
    3. Variations (整理されたバリエーション)
   ============================================================ */

/* --- 1-4. Quaternary (補助) & 1-5. Ghost --- */
.btn--quaternary, .btn--ghost {
    --btn-theme: var(--font-divider-color);
    --btn-bg: transparent;
    --btn-text: var(--font-divider-color);
    --btn-border-base: transparent;
    --hover-mix: 5%;
    --btn-shadow: none !important; /* 絶対に影を付けない */
}
.btn--quaternary:hover:not(:disabled) { 
    --btn-bg: var(--color-primary-brighter); 
    --btn-text: var(--font-color); 
}

/* Ghost 特殊装飾 */
.btn--ghost::after {
    content: ''; position: absolute; bottom: 8px; left: 15%; width: 0; height: 1px;
    background: currentColor; transition: width var(--duration-base) var(--ease-out-quart);
}
.btn--ghost:hover::after { width: 70%; }
/* Ghostは動きを止める指定を維持 */
.btn--ghost:active { --btn-scale: 1 !important; --hover-lift: 0 !important; opacity: 0.7; }

/* --- 2-2. Simulator (グラデーション) --- */
.btn--simulator {
    --btn-theme: rgb(82,67,158);
    --btn-bg: linear-gradient(135deg, rgb(100,85,185) 0%, rgb(82,67,158) 50%, rgb(118,70,170) 100%);
    --btn-shadow: 0 3px 12px rgba(82,67,158,0.3);
    background-size: 200% 100%;
}
.btn--simulator:hover:not(:disabled) {
    background-position: 100% 50%;
    --btn-scale: 1.015; /* 膨らむワクワク感 */
    --btn-shadow: 0 8px 20px rgba(82,67,158,0.4);
}

/* --- 2-3. External --- */
.btn--external {
    --btn-theme: var(--color-primary);
    --btn-bg: var(--color-card);
    --btn-text: var(--color-primary);
    --btn-border-base: var(--color-primary);
}
/* .btn--external:hover:not(:disabled) {
    --btn-shadow: 0 6px 15px color-mix(in oklch, var(--btn-theme), transparent 85%);
} */

/* --- 2-4. Submit --- */
.btn--submit {
    --btn-theme: #1e8a5e; /* 緑系 */
    --btn-bg: var(--color-accent);
    --btn-shadow: 0 4px 14px rgba(30,138,94,0.4);
    font-size: var(--btn-font-size-lg);
}

/* ============================================================
    4. Parts & Utilities (パーツとユーティリティ)
   ============================================================ */

/* アイコンの動的な振る舞い */
.btn:hover .btn__icon--spin      { transform: rotate(-45deg); }
.btn:hover .btn__icon--arrow-ext { transform: translate(3px, -3px); }
.btn:hover .btn__icon--redo      { transform: rotate(-30deg); }

/* Sizes & Shapes */
.btn--sm { min-height: var(--btn-height-sm); padding: 0 var(--btn-padding-x-sm); font-size: var(--btn-font-size-sm); }
.btn--lg { min-height: var(--btn-height-lg); padding: 0 var(--btn-padding-x-lg); }

/* Loading State (Submit用) */
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__text { opacity: 0; }
.btn__spinner {
    display: none; position: absolute; width: 20px; height: 20px;
    border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
    border-radius: 50%; animation: btn-spin 0.7s linear infinite;
}
.btn.is-loading .btn__spinner { display: block; }

@keyframes btn-spin { to { transform: rotate(360deg); } }

/* --- btn--reselect : 「プランを選びなおす」専用設定 --- */
/* btn--reselect (既存の影設定を維持) */
.btn--reselect {
    --btn-bg: transparent;
    --btn-text: var(--font-divider-color);
    --btn-border-base: var(--border-color);
    --hover-mix: 5%;
}
.btn--reselect:hover:not(:disabled) {
    --btn-text: var(--font-color);
    --btn-border-base: var(--font-divider-color);
    background-color: var(--color-primary-brighter);
    box-shadow: var(--shadow-sm); /* 指定の数値設定を維持 */
}
.btn--reselect:hover .btn__icon {
    transform: rotate(-30deg) !important;
}

/* btn--deselect (既存の影設定を維持) */
.btn--deselect {
    --btn-bg: transparent;
    --btn-text: var(--font-divider-color);
    --btn-border-base: transparent;
    --btn-shadow: none;
    font-size: var(--btn-font-size-md);
    padding: 0 var(--sp-sm);
}
.btn--deselect:hover:not(:disabled) {
    --btn-text: #c0392b;
    --btn-bg: #fef2f2;
    --btn-border-base: #fca5a5;
    box-shadow: 0 1px 4px rgba(192, 57, 43, 0.12); /* 指定の数値設定を維持 */
    --hover-lift: -1px;
}
.btn--deselect:hover .btn__icon {
    transform: rotate(90deg) !important;
}

/* ==========================================
    専用パーツ　専用ページ　CSS
   ========================================== */
/* --- ホームページデザインの大枠要素 --- */
/* ロゴ */
.el_header_logoImg {
    width: auto;
    height: 32px;
    vertical-align: middle;
    transition: filter 0.4s;
}

/* ------------------------------------------------------------
    1. モーダル専用ボタン　他のボタン構造とは別
   ------------------------------------------------------------ */
/* モーダル用ボタン */
.bl_btnclose_modal {
    position: fixed; /* 画像に関わらず画面右上に固定 */
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--font-white-color);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
}
@media (max-width: 768px) {
    .bl_btnclose_modal {
        top: 10px;
        right: 10px;
        font-size: 1.5rem;
    }
}
.bl_btnIcon_modal{
    position: absolute;
    top: 50%;
    width: 48px;  /* アイコンに合わせた円のサイズ */
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    font-size: 1.2rem;
    color: var(--font-white-color);
    text-decoration: none;
    border: none;
    z-index: 10;
}
.bl_btnIcon_modal__prev { left: 10px; }
.bl_btnIcon_modal__next { right: 10px; }
.bl_modal_nav:hover { background: rgba(0, 0, 0, 0.8); }
/* モーダル用ボタン ここまで */
.bl_btn__prev {
    justify-content: flex-start; /* 文字左寄せ */
}
.bl_btn__next {
    justify-content: flex-end;   /* 文字右寄せ */
}
/* ------------------------------------------------------------
    1. ヘッダー専用ボタン　他のボタン構造とは別
   ------------------------------------------------------------ */
/* ヘッダー用ボタン　ここから */
/* スクロール後の微調整（ヘッダーが細くなった時用） */
.ly_header.scrolled .btn{
    min-height: auto;
    height: 40px;
    padding: 0 16px;
    font-size: 0.9rem;
}
.ly_header:not(.scrolled) .open .btn,
.ly_header.scrolled .open .btn{
    /* margin-top: var(--btn-padding-x-md); */
    width: 100%;
    height: 100%;
    padding: 12px 0;
    font-size: 1.25rem;
}
/* ヘッダー用ボタン　ここまで */
/* ==========================================
   1. ヘッダー共通の基本設定
   ========================================== */
.ly_header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    height: var(--header-height);
    transition: height 0.4s ease;
    background-color: var(--color-header);
    background-image: linear-gradient(to bottom, var(--color-body-black), transparent);
    background-color: transparent;
}
/* --- スクロール後の背景レイヤー（擬似要素） --- */
.ly_header::before {
    content: "";
    position: absolute;
    inset: 0;
    /* スクロール後の色を設定 */
    background-color: color-mix(in srgb, var(--color-header), transparent 10%);
    backdrop-filter: blur(10px);
    opacity: 0; /* 最初は隠しておく */
    transition: opacity 0.6s ease;
    z-index: -1; /* コンテンツの裏側 */
}

.bl_header_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}
/* ==========================================
   2. TOPページの初期状態 (js_is_home)
   ========================================== */
.ly_header.js_is_home:not(.scrolled) {
    background-color: transparent;
    background-image: linear-gradient(to bottom, var(--color-body-black), transparent);
    box-shadow: none;
}

.ly_header.js_is_home:not(.scrolled) .bl_header_navLink {
    color: var(--font-header-white-color);
}
.ly_header.js_is_home:not(.scrolled) .bl_header_nav.open .bl_header_navLink {
    color: var(--font-header-color);
}

.ly_header.js_is_home:not(.scrolled) .el_header_logoImg {
    filter: brightness(0) invert(1);
}

/* スクロール前：ハンバーガーの線色（白） */
.ly_header.js_is_home:not(.scrolled) .el_hamburger_line,
.ly_header.js_is_home:not(.scrolled) .el_hamburger_line::before,
.ly_header.js_is_home:not(.scrolled) .el_hamburger_line::after {
    background-color: var(--font-header-white-color);
}
.ly_header.js_is_home:not(.scrolled) .active .el_hamburger_line,
.ly_header.js_is_home:not(.scrolled) .active .el_hamburger_line::before,
.ly_header.js_is_home:not(.scrolled) .active .el_hamburger_line::after {
    background-color: var(--font-header-color);
}

/* ==========================================
   3. スクロール後の状態 (scrolled あり)
   ========================================== */
.ly_header.scrolled {
    height: var(--header-height-scrolled);
    /* background-color: color-mix(in srgb, var(--color-header), transparent 10%); */
}
.ly_header.scrolled::before {
    opacity: 1; /* スッと塗りつぶし背景が現れる */
}
.ly_header.scrolled .bl_header_navLink {
    color: var(--font-header-scrolled-color);
}

.ly_header.scrolled .el_header_logoImg {
    filter: none;
}
body.is-r18-mode .ly_header.scrolled .el_header_logoImg {
    filter: brightness(0) invert(1);
}

/* スクロール後：ハンバーガーの線色（黒/共通色） */
.ly_header.scrolled .el_hamburger_line,
.ly_header.scrolled .el_hamburger_line::before,
.ly_header.scrolled .el_hamburger_line::after {
    background-color: var(--font-header-scrolled-color);
}

/* ==========================================
   4. ハンバーガーボタンの構造設定
   ========================================== */
.el_hamburger {
    display: block;
    position: relative;
    z-index: 110; /* メニューより上に配置 */
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* 三本線の中心線 */
.el_hamburger_line {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--font-header-color);
    transition: all 0.3s;
}

/* 上下の線 */
.el_hamburger_line::before,
.el_hamburger_line::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: inherit; /* 親の背景色を継承 */
    transition: all 0.3s;
}

.el_hamburger_line::before { top: -8px; }
.el_hamburger_line::after { top: 8px; }

/* 展開時の「×」アニメーション */
.hamburger.active .el_hamburger_line {
    background-color: transparent !important;
}

.hamburger.active .el_hamburger_line::before {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .el_hamburger_line::after {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================
   5. スマートフォン用メニュー (max-width: 768px)
   ========================================== */
@media (max-width: 768px) {
    .bl_header_nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: color-mix(in srgb, var(--color-header), transparent 5%);
        backdrop-filter: blur(15px);
        transition: transform 0.3s, background-color 0.3s;
        visibility: hidden;
        z-index: 100;
        
        /* 修正：中央寄せつつ、縦に並べてスクロール可能にする */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start; /* 上から順に並べる */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    /* メニューが閉じている（openがついていない）時、ボタンの個別アニメーションをオフにする */
    .bl_header_nav:not(.open) .btn {
        transition: none !important;
    }
    /* メニュー本体の動きを少しだけ速く、かつ滑らかにする（お好みで） */
    /* .bl_header_nav {
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
    } */
    .bl_header_nav.open {
        right: 0;
        visibility: visible;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
    }

    /* 内部のコンテナ */
    .bl_header_navInner {
        width: 100%;
        padding: 100px 30px 60px; /* ヘッダー高さを考慮した余白 */
        max-width: 400px; /* 広がりすぎ防止 */
    }

    .bl_header_navSection {
        margin-bottom: 40px;
    }

    /* CONTENTS / MENU のラベル */
    .el_header_navLabel {
        font-size: 0.7rem;
        letter-spacing: 0.2em;
        color: var(--color-accent);
        margin-bottom: 15px;
        font-weight: bold;
        text-align: center;
        opacity: 0.8;
    }

    /* ページ内リンク：タイル状（2列） */
    .bl_header_anchorGrid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        list-style: none;
        padding: 0;
    }

    .el_header_anchorBtn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1); /* 背景に馴染む程度の塗り */
        border: 1px solid rgba(0, 0, 0, 0.05);
        height: 48px;
        border-radius: 4px;
        font-size: 0.85rem;
        text-decoration: none;
        color: var(--font-header-color);
    }

    /* サイトメニュー：リスト状 */
    .bl_header_navList {
        width: 100%;
        text-align: center;
        list-style: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .bl_header_navLink {
        display: block;
        padding: 12px 0;
        border: 1px solid rgba(0, 0, 0, 0.05);
        color: var(--font-header-color);
        text-decoration: none;
        font-size: 1.25rem;
        letter-spacing: 0.1em;
    }
}

/* ==========================================
   6. PC用レイアウト (min-width: 769px)
   ========================================== */
@media (min-width: 769px) {
    /* 1. PCではスマホ専用の要素を完全に隠す */
    .el_header_navLabel,
    .bl_header_anchorGrid {
        display: none;
    }

    /* 2. ラップ要素（Inner, Section）をレイアウト上「無視」させる */
    /* display: contents を使うと、その子要素（navList）が直接親（nav）の子であるかのように振る舞います */
    .bl_header_navInner,
    .bl_header_navSection {
        display: contents; 
    }

    .el_hamburger {
        display: none;
    }

    .bl_header_nav {
        position: static;
        width: auto;
        height: auto;
        background: none;
        visibility: visible;
        display: block; /* Flexを解除 */
    }

    /* 3. メインのリストを横並びにする（既存のスタイル） */
    .bl_header_navList {
        display: flex;
        gap: 20px;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .bl_header_navItem {
        width: auto;
    }


}

/* --- サブヘッダーの初期状態（隠す） --- */
.bl_subHeader {
    /* 修正：初期状態は absolute にして高さを無視させる */
    position: absolute; 
    top: var(--header-height);
    width: 100%;
    height: var(--sub-header-height);
    background-color: color-mix(in srgb, var(--color-header), transparent 15%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 90;
    
    /* 既存の非表示設定 */
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* 隠れている間はクリック不可 */
    transform: translateY(-20px);
    transition: 
        opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
        transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
        background-color 0.4s;
}

/* --- スクロール後（表示する） --- */
/* ヘッダーに .scrolled がついた時の隣接または後続のサブヘッダーを表示 */
.ly_header.scrolled ~ .bl_subHeader {
    position: sticky;
    top: var(--header-height-scrolled);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* メインが縮んだ(scrolled)時のサブの吸着位置 */
.ly_header.scrolled + .bl_subHeader {
    top: var(--header-height-scrolled);
}

.bl_subHeader_inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
}

.bl_subHeader_list {
    display: flex;
    justify-content: center;
    gap: 30px;
    height: 100%;
    list-style: none;
}

.bl_subHeader_link {
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 0.9rem;
    color: var(--font-header-color);
    text-decoration: none;
    transition: color 0.3s;
}

.bl_subHeader_link:hover {
    color: var(--color-accent); /* お好みのアクセントカラーへ */
}

/* アンカージャンプ時の余白調整 */
section {
    /* 固定ヘッダー2段分 + 余白 */
    scroll-margin-top: calc(var(--header-height-scrolled) + var(--sub-header-height));
}

@media (max-width: 768px) {
    .u-pc-only { display: none !important; }
}
/* サブヘッダーのリンク基本スタイル */
.bl_subHeader_link {
    position: relative;
    transition: color 0.3s ease;
}

/* 現在地のハイライト（JSで付与） */
.bl_subHeader_link.is_active {
    color: var(--color-accent);
    font-weight: bold;
}

/* ==========================================
    フッターレイアウト
   ========================================== */
.ly_footer {
    background-color: var(--color-footer);
    color: var(--font-white-color);
    padding: 60px 0 20px;
}
.bl_footer_inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column; /* SPは縦並び */
    gap: var(--space-content-m);
}
/* ブランド情報 */
.bl_footer_info {
    text-align: center;
}
.el_footer_logoImg {
    width: auto;
    height: 40px;
    display: block;
    margin: 0 auto 15px;
    filter: brightness(0) invert(1);
}
.bl_footer_profile {
    font-size: 0.875rem;
    margin-bottom: 20px;
    opacity: 0.8;
}
/* SNSリスト */
.bl_footer_snsList {
    display: flex;
    justify-content: center;
    gap: var(--space-component-l);
    list-style: none;
}
.bl_footer_snsLink {
    color: var(--font-white-color);
    text-decoration: none;
    font-size: 0.875rem;
    transition: opacity 0.3s;
}
/* ナビゲーション */
.bl_footer_navList {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* SPは2列 */
    gap: var(--space-component-m);
    text-align: center;
    margin-bottom: 30px;
}
.bl_footer_navLink {
    color: var(--font-white-color);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: opacity 0.3s;
}
/* ポリシー系リンク（小さめ） */
.bl_footer_policyList {
    display: flex;
    justify-content: center;
    gap: var(--space-component-m);
    font-size: 0.75rem;
    opacity: 0.6;
}
.bl_footer_policyLink {
    color: var(--font-white-color);
    text-decoration: none;
}
/* コピーライト */
.bl_footer_copyright {
    margin-top: var(--space-content-m);
    padding-top: var(--space-component-m);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.5;
}
/* --- PC用レイアウト (min-width: 769px) --- */
@media (min-width: 769px) {
    .bl_footer_inner {
        flex-direction: row; /* 横並び */
        justify-content: space-between;
        align-items: stretch;
    }
    .bl_footer_info {
        text-align: left;
    }
    .el_footer_logoImg {
        margin: 0 0 15px 0;
    }
    .bl_footer_snsList {
        justify-content: flex-start;
    }
    .bl_footer_nav {
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* これで上下に分かれる */
        text-align: right; /* テキストを右寄せに */
    }
    .bl_footer_navList {
        display: flex; /* PCは横一列 */
        gap: var(--space-component-l);
        margin-bottom: 0;
    }
    .bl_footer_policyList {
        justify-content: flex-end;
    }
    .bl_footer_navLink:hover,
    .bl_footer_snsLink:hover {
        opacity: 0.6;
    }
}

/* ==========================================
    パンくずリスト
   ========================================== */
.bl_breadcrumb {
    display: flex;
    flex-wrap: wrap; /* スマホで長くなった場合に折り返し */
    list-style: none;
    padding-block: 15px;
    /* margin: 0; */
    font-size: 0.85rem;
}
.bl_breadcrumb_item {
    display: flex;
    align-items: center;
    color: var(--font-breadcrumb-color);
}
/* セパレーターの設定 */
.bl_breadcrumb_item:not(:last-child)::after {
    content: ">";
    margin-inline: 10px;
    color: var(--font-note-color);
    font-family: serif; /* 矢印を少しスマートに */
}
.bl_breadcrumb_link {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.2s, text-decoration 0.3s;
}
.bl_breadcrumb_link:hover {
    text-decoration: underline;
    color: var(--color-accent);
}
/* 現在のページ（リンクなし）のスタイル */
.bl_breadcrumb_current {
    color: var(--font-breadcrumb-color);
    pointer-events: none;
    font-weight: 500;
}

/* ==========================================
    Q&Aアコーディオン
   ========================================== */
.el_qaIcon {
    width: 22px;
    height: 22px;
    background-color: var(--color-primary);
    color: var(--font-white-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    flex-shrink: 0;
}
/* 矢印（プラス・マイナス）アニメーション用アイコン */
.el_accordion_toggleIcon {
    width: 18px;
    height: 18px;
    position: relative;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.el_accordion_toggleIcon::before,
.el_accordion_toggleIcon::after {
    content: "";
    position: absolute;
    background-color: var(--color-primary);
    transition: transform 0.3s ease, opacity 0.3s;
}
.el_accordion_toggleIcon::before {
    width: 2px;
    height: 10px;
    left: 8px;
    top: 4px;
}
.el_accordion_toggleIcon::after {
    width: 10px;
    height: 2px;
    left: 4px;
    top: 8px;
}
/* --- Block: Q&A --- */
.bl_qa {
    margin-top: 40px;
}
.bl_qa_item {
    margin-bottom: 12px;
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-body-white);
    transition: border-color 0.3s, box-shadow 0.3s;
}
/* 開いている時のスタイル */
.bl_qa_item.is-open {
    border-color: var(--color-primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.bl_qa_button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}
.bl_qa_item.is-open .bl_qa_button {
    background-color: var(--color-primary-brighter); /* 薄い青背景 */
}
.bl_qa_question {
    display: flex;
    align-items: center;
    margin-right: var(--space-content-m);
    gap:var(--space-content-m);
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
    line-height: 1.4;
}
/* 開いている時のプラスアイコンをマイナスにする */
.bl_qa_item.is-open .el_accordion_toggleIcon {
    transform: rotate(180deg);
}
.bl_qa_item.is-open .el_accordion_toggleIcon::before {
    opacity: 0;
}
/* 回答エリア */
.bl_qa_answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease;
}
.bl_qa_item.is-open .bl_qa_answer {
    max-height: 1000px; /* 十分な高さを確保 */
    opacity: 1;
}
.bl_qa_answerInner {
    padding: 12px 16px 20px;
    color: var(--font-card-color);
    font-size: 0.9rem;
    border-top: 1px solid var(--color-body);
    line-height: 1.7;
}
/* --- Desktop Adjustment (769px以上) --- */
@media (min-width: 769px) {
    .bl_qa_button {
        padding: 20px 24px;
    }
    .bl_qa_question {
        font-size: 1.05rem;
    }
    .bl_qa_answerInner {
        padding: 20px 24px 30px 58px; /* Qアイコン分を避けてテキスト開始 */
        font-size: 1rem;
    }
}


/* ==========================================
    個別ページ
   ========================================== */
/* ==========================================
    プロフィール　コンテナ
   ========================================== */
.main-column{
    width: 100%;
    background-color: blue;
}
.sub-column{
    width: 100%;
    background-color: red;
}
.blogList {
    display: flex;
    flex-wrap: wrap;
}
.blogList-item {
    margin-bottom: 2.5em;
    margin-top: 0;
    padding: 0.5rem;
    width: 50%;
    background-color: var(--color-body-darker);
}
.blogList-link {
    text-decoration: none;
    color: var(--font-color);
}
.blogList-thumb {
    width: 100%;
    overflow: hidden;
}
.blogList-thumb img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}
.blogList-thumb img:hover {
    transform: scale(1.05);
}
.blogList-body {
    padding: 1rem 0;
}
.blogList-title {
    font-size: 18px;
    margin: 0 0 0.5rem 0;
}
.blogList-date {
    font-size: 14px;
    color: var(--sub-font-color);
}
@media screen and (max-width: 1130px) {
    .blog.multicolumn {
        grid-template-columns: 1fr;
    }
}
@media screen and (max-width: 768px) {
    .blogList-item {
        width: 100%;
    }
}
/* プロフィール　コンテナここまで */
/* ==========================================
    利用規約 Terms of Use　コンテナ
   ========================================== */
/* --- レイアウト --- */
.ly_container__sentence {
    max-width: 800px; /* 読みやすさのため幅を絞る */
}
/* --- タイトル・リード --- */
.el_sentenceLead {
    margin-top: var(--space-component-m);
    text-align: center;
    font-size: var(--font-size-sub);
    opacity: 0.7;
}
@media (min-width: 769px){
    .el_sentenceLead {
        text-align: left;
    }
}
/* --- 目次 (Index) --- */
.bl_index {
    margin-top: var(--space-content-s);
    padding: var(--space-content-s);
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    background: var(--color-body-white);
}

.bl_index_list {
    list-style: none;
    display: flex;
    flex-direction: column;
    margin-top: var(--space-component-l);
    gap: var(--space-component-m);
}
.bl_index_link {
    color: var(--font-color);
    text-decoration: none;
    font-size: var(--font-size-sub);
    transition: color 0.3s;
}
.bl_index_link:hover {
    color: var(--color-accent); /* アクセントカラーがある場合 */
}
.el_indexTitle {
    font-size: var(--font-size-lead);
    font-weight: bold;
}
.el_indexTitle::before {
    display: inline-block;
    content: '';
    background-image: url("../img/icon/Contents-icon.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 1.2em;
    height: 1.2em;
    vertical-align: middle;
    margin-right: 0.5rem;
}
/* --- 各セクション --- */
.el_sentenceHead {
    color: var(--color-primary);
}
.el_sentenceHead span {
    font-family: serif;
    font-style: italic;
    font-size: 1.2em;
    margin-right: 0.5em;
    opacity: 0.3;
}
.el_sentenceList {
    margin-top: var(--space-component-m);
    margin-bottom: var(--space-component-m);
    padding-left: 1.5em;
    line-height: 2;
    list-style: initial;
}
.el_sentenceBody {
    margin-top: var(--space-content-s);
}
.el_sentenceBody p {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    margin-bottom: var(--space-component-m);
    line-height: 1.7;
    letter-spacing: 0.05em;
}
.el_sentenceBody strong {
    color: var(--color-accent); /* 重要な警告色など */
    font-weight: bold;
}

/* --- UI Spices: License Page Extensions --- */

/* 1. OK/NGリストの強化 */
.el_sentenceList__allow, 
.el_sentenceList__deny {
    list-style: none;
    padding-left: 0;
    margin: var(--space-component-m) 0;
}

.el_sentenceList__allow li, 
.el_sentenceList__deny li {
    position: relative;
    padding-left: 1.8em;
    margin-bottom: 0.5em;
    line-height: 1.6;
}

.el_sentenceList__allow li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: green;
    font-weight: bold;
}

.el_sentenceList__deny li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: #e11d48; /* 既存の警告色がない場合の代替案 */
    font-weight: bold;
}

/* 2. 用語解説ボックス */
.el_sentenceNote {
    background-color: rgba(0, 0, 0, 0.03);
    border-left: 4px solid var(--color-primary);
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;
    font-size: 0.95em;
}

.el_sentenceNote strong {
    display: inline-block;
    margin-bottom: 0.3em;
    color: var(--color-primary);
}

/* 3. 利用範囲の比較表 */
.el_sentenceTable {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-content-s) 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.el_sentenceTable th,
.el_sentenceTable td {
    padding: 1rem;
    border: 1px solid var(--border);
    text-align: left;
}

.el_sentenceTable thead th {
    background-color: var(--color-primary);
    color: #fff;
    font-weight: bold;
}

.el_sentenceTable tbody th {
    background-color: rgba(0, 0, 0, 0.02);
    width: 25%;
}

@media (max-width: 768px) {
    .el_sentenceTable {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
/* ==========================================
    検索メッセージ
   ========================================== */
.el_search_message {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--color-body); /* ほんの少し背景色を変える */
    border-radius: 8px;
    grid-column: 1 / -1; /* グリッドレイアウトを使っている場合、全幅で表示 */
}

.el_search_message p {
    margin-bottom: 20px;
    color: var(--font-sub-color, #666);
}

.el_btn_back {
    display: inline-block;
    padding: 0.8em 2em;
    background-color: var(--color-accent);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.el_btn_back:hover {
    opacity: 0.8;
}

/* ============================================================
   1. 共通設定（全体レイアウト）
   ============================================================ */
/* ＜重要度：上＞ */
[data-tag="告知"]{ background-color: var(--CATcolor-announcement); }
[data-tag="シリーズ"]{ background-color: var(--CATcolor-series); }
[data-tag="風景"]{ background-color: var(--CATcolor-landscape); }
[data-tag="キャラクター設定"]{ background-color: var(--CATcolor-character); }
[data-tag="ファンアート"]{ background-color: var(--CATcolor-fanart); }
[data-tag="時間制限"]{ background-color: var(--CATcolor-time); }
[data-tag="落書き"]{ background-color: var(--CATcolor-rakugaki); }
[data-tag="制作過程"]{ background-color: var(--CATcolor-process); }
/* ＜重要度：中＞ */
[data-tag="お知らせ"]{ background-color: var(--CATcolor-news); }
[data-tag="Live2D"]{ background-color: var(--CATcolor-live2d); }
[data-tag="CLIPSTUDIO"]{ background-color: var(--CATcolor-clipstudio); }
[data-tag="Tips"]{ background-color: var(--CATcolor-tips); }
/* ＜重要度：下＞ */
[data-tag="雑記"]{ background-color: var(--CATcolor-miscellaneous); }


.ly_list-blog {
    display: flex;
    flex-direction: column;
    margin-block: var(--space-section-s);
    gap: var(--space-content-s);
}

/* ============================================================
   1. 共通設定（レイアウト・装飾削除）
   ============================================================ */
.ly_list-blog {
    display: flex;
    flex-direction: column;
    margin-block: var(--space-section-s);
    gap: var(--space-content-s);
}

/* ① 文字やタグに下線を表示しない */
.ly_list-blog a, 
.bl_media a,
.ly_mediaList_tag a {
    text-decoration: none;
    color: inherit;
}

/* ============================================================
   2. ブログメディア基本（スマホ向け縦型カード）
   ============================================================ */
.bl_media {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* flex-grow: 1; */
    gap: 16px;
    padding: 20px 32px;
    background-color: var(--color-card);
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.2s;
    align-items: stretch;
    width: 100%;
    margin-inline: auto;
    /* デフォルトの最大幅（縦型想定） */
    max-width: 400px;
}

/* サムネイル画像 */
.el_media_thumb {
    width: 100%;
    flex-shrink: 0;
}

.el_media_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* コンテンツエリア */
.el_media_content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.el_media_content time {
    display: block;
    line-height: 1;
    margin-bottom: 4px;
    font-size: 0.8rem;
    color: #888;
}

.el_media_content h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    color: #333;
}

.el_media_content p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.6;
    height: calc(1.6em * 2);
}

/* タグ（スマホ時は一番下） */
.ly_mediaList_tag {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: auto;
    gap: 8px;
    order: 3;
}

/* ============================================================
   3. レスポンシブ：スマホ特化（さらに小さく）
   ============================================================ */
@media (max-width: 767px) {
    .bl_media {
        padding: 12px 16px;
        gap: 10px;
    }
    .el_media_content h3 {
        font-size: 1rem;
        margin-bottom: 4px;
    }
    .el_media_content p {
        font-size: 0.8rem;
        height: calc(1.5em * 2);
    }
    .el_media_content time {
        font-size: 0.75rem;
    }
    .ly_mediaList_tag {
        gap: 4px;
    }
}

/* ============================================================
   4. レスポンシブ：デスクトップ（769px以上）
   ============================================================ */
@media (min-width: 769px) {

    /* A: トップページ用（3列グリッド） */
    .ly_list-blog.is_grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-content-m);
    }

    /* ② is_gridのとき、タイトルは一行 */
    .ly_list-blog.is_grid .el_media_content h3 {
        display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }

    /* B: ブログ一覧用（横型リスト） */
    .ly_list-blog.is_mixed .bl_media {
        flex-direction: row;
        max-width: 810px; /* 横型時の最大幅 */
        padding: 20px 10px 40px 10px; /* タグ用に下部余白を確保 */
    }

    .ly_list-blog.is_mixed .el_media_thumb {
        width: 300px; /* 横型時の画像幅 */
    }

    /* ③ タグを右下に配置 */
    .ly_list-blog.is_mixed .ly_mediaList_tag {
        position: absolute;
        bottom: 12px;
        right: 12px;
        margin-top: 0;
    }

    /* ホバー演出（共通） */
    .bl_media:hover {
        transform: translateX(5px);
    }
}

/* 中間モニター用の中央寄せ */
@media (min-width: 768px) and (max-width: 1023px) {
    .ly_list-blog {
        justify-content: center;
    }
}
/* ============================================================
   トップページ追加デザイン
   ============================================================ */
/* --- 共通設定 --- */
.bl_accordion_content {
    animation: fadeIn 0.5s ease;
    padding-top: 40px; /* 標準プランとの間隔を空ける */
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.bl_accordion_header {
    display: flex;
    align-items: center;
    list-style: none; /* デフォルトの矢印を消す */
}
.bl_accordion_header::-webkit-details-marker { display: none; } /* Safari用 */

/* アイコン：形を描画する設定を追加 */
.el_accordion_icon {
    display: block;
    width: 30px;
    height: 30px;
    position: relative;
    flex-shrink: 0; /* タイトルに押されて潰れないように固定 */
}

/* 疑似要素で「＋」の線を描画  */
.el_accordion_icon::before,
.el_accordion_icon::after {
    content: "";
    position: absolute;
    background-color: rgb(82, 67, 158); /* バイオレット  */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s;
}
.el_accordion_icon::before { width: 100%; height: 2px; } /* 横棒 */
.el_accordion_icon::after  { width: 2px; height: 100%; } /* 縦棒 */

/* 開いている時は「×」に見えるよう回転 */
details[open] .el_accordion_icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}
details[open] .el_accordion_icon {
    transform: rotate(45deg);
}

/* --- スマホ表示 (max-width: 767px) --- */
@media (max-width: 767px) {
    .accordion-item {
        border-bottom: 1px solid rgb(82, 67, 158); 
    }
    .bl_accordion_header {
        justify-content: space-between; /* 両端に配置  */
        padding: var(--space-content-l);
        background-color: rgba(82, 67, 158, 0.1); /* ごく薄いバイオレットで「押しやすさ」を演出 */
        border-left: 4px solid rgb(82, 67, 158); /* 左側にアクセントライン */
        cursor: pointer;
    }
    .bl_accordion_header .el_card_title {
        text-align: left;
        margin-top: 0;
    }
}

/* --- PC表示 (min-width: 768px) --- */
@media (min-width: 768px) {
    .bl_accordion_header {
        justify-content: center; /* 中央寄せ [cite: 13] */
        pointer-events: none; /* クリック不可 [cite: 11] */
    }
    .el_accordion_icon {
        display: none; /* アイコンを隠す [cite: 12] */
    }
    .bl_accordion_header .el_card_title {
        text-align: center;
        margin-top: var(--space-content-m);
    }
    .bl_accordion_header .el_card_title {
        border-bottom: 2px solid rgb(233, 227, 215); /* ベージュの線で上品に */
    }
}

/* ブラウザ標準の三角形を一旦消す（全デバイス共通） */
.el_accordion_summary {
    list-style: none; 
    cursor: pointer;
    position: relative;
    padding-left: 2em; /* アイコンのスペースを確保 */
}
.el_accordion_summary::-webkit-details-marker {
    display: none;
}

/* 独自の「＋」や「矢印」アイコンを作成（共通デザイン） */
.el_accordion_summary::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: rgb(82, 67, 158); /* バイオレット */
    /* マスク機能で矢印の形にする例 */
    clip-path: polygon(0 0, 100% 50%, 0 100%); 
    transition: transform 0.3s;
}

/* 開いている時（open属性がある時）のアイコンの向き */
details[open] .el_accordion_summary::before {
    transform: translateY(-50%) rotate(90deg);
}

.bl_card_special {
    background: linear-gradient(135deg, var(--color-body) 0%, var(--color-primary-brighter) 100%); /* ほんのり色をつける */
    border: 2px solid rgb(82, 67, 158); /* 枠線を太く、メインカラーに */
    border-radius: 12px;
    margin-bottom: var(--space-component-m); /* 他のプランとの間隔を広く */
    overflow: hidden;
}

/* PCでは横並び、スマホでは縦並び */
@media (min-width: 1112px) {
    .bl_card_special_inner {
        display: flex;
        height: 100%;
    }
    .bl_card_special_inner .el_card_video {
        width: 60%;
        background: var(--color-body);
    }
    .bl_card_special_inner video {
        height: 100%;
        object-fit: cover;
        object-position: 30% 50%;
    }
    .bl_card_special_inner .bl_card_body { width: 40%; padding: 40px; }
}

/* ========================================
    Related Section(ギャラリーブログ共通)
======================================== */
.bl_relatedPosts {
    padding-block: var(--space-section-s);
    border-top: 1px solid var(--color-border);
}
/* Title
---------------------------------------- */
.el_relatedTitle {
    margin-bottom: 30px;
    text-align: center;
    font-size: clamp(1.2rem, 0.6vw + 1.06rem, 1.5rem);
}
/* List
---------------------------------------- */
.bl_relatedList {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-content-m);
    gap: clamp(16px, 2vw, 24px);
}
/* CTA
---------------------------------------- */
.bl_postCTA-container {
    padding: 30px 0;
    border-top: 1px solid var(--color-border);
}
.bl-postCTA-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 500px; /* 日本語が読みやすいとされる40文字前後の幅 */
    margin-inline: auto; /* 中央寄せ */
    width: 100%;
    align-items: left;
}
.bl-postCTA-lead {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-component-m);
}
.bl-postCTA-text {
    text-align: left;
    margin-bottom: var(--space-content-m);
}
.bl-postCTA_btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-component-m);
}
.bl-postCTA_btn--w {
    max-width: fit-content;
    margin-inline: auto;
}
@media (min-width: 768px) {
    .bl-postCTA_btn {
        flex-direction: row;
    }
    .bl-postCTA_btn--w {
        margin-inline: 0;
    }
}
/* ボタン配置
---------------------------------------- */
.bl-postNav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    }
/* Card
---------------------------------------- */
.bl_relatedCard {
    width: 100%;
    max-width: 480px;
    padding-bottom: var(--space-component-s);
    color: inherit;
    text-decoration: none;
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--color-card);
    transition:
        opacity 0.3s,
        transform 0.3s;
}
.bl_relatedCard:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}
/* Image
---------------------------------------- */
.el_relatedCard_img {
    overflow: hidden;
    /* border-radius: 4px; */
}
.el_relatedCard_img img {
    width: 100%;
    object-fit: cover;
    display: block;
}
/* Body
---------------------------------------- */
.bl_relatedCard_body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0.8em;
}
.bl_relatedCard_categories {
    font-size: var(--font-size-note);
}
/* Title
---------------------------------------- */
.el_relatedCard_title {
    margin-bottom: var(--space-component-s);
    font-size: var(--font-size-p);
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
}
/* Meta
---------------------------------------- */
.el_relatedCard_meta {
    /* margin-top: 0.4em; */
    color: #888;
    font-size: 0.7rem;
}
/* ========================================
    Tablet / PC
======================================== */

@media (min-width: 768px) {

    .bl_relatedList {
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
    }

    .bl_relatedCard {
        flex: 1 1 0;
        max-width: 320px;
    }

}
/* ========================================
    更新履歴
======================================== */
/* 更新履歴 */
.bl_updates {
    margin-block: 0;
    border-top: 1px solid var(--border-color);
}
/* 1件 */
.bl_updates_item {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;

    padding: 16px 0;

    border-bottom: 1px solid var(--border-color);
}
/* 日付 + タグ */
.bl_updates_head {
    display: flex;
    align-items: left;
    gap: 8px;

    flex-shrink: 0;
}
/* 本文エリア */
.bl_updates_body {
    flex: 1;
    min-width: 100%;
    text-align: left;
}
/* 各更新項目 */
.bl_updates_text {
    line-height: 1.7;
}
/* 複数項目間の余白 */
.bl_updates_text + .bl_updates_text {
    margin-top: 4px;
}
/* リンク */
.bl_updates_link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}
.bl_updates_link:hover {
    opacity: 0.7;
}
@media (min-width: 768px) {
    .bl_updates_item {
        flex-wrap: nowrap;
        align-items: flex-start;
    }
    .bl_updates_body {
        min-width: 0;
    }
}
/* ============================================================
    お問い合わせ　ページ：トップ・お問い合わせ・お問い合わせ完了
   ============================================================ */
/* お問い合わせ関連共通 */
/* Layout Only - BEM methodology */
.l-container { max-width: 720px; margin: 0 auto; padding: 20px; }
.l-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.l-section { margin-bottom: 40px; }

/* Components Layout */
.estimator__card-list { list-style: none; padding: 0; }
.estimator__footer { position: fixed; bottom: 0; left: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px; box-sizing: border-box; }

.form-group { margin-bottom: 20px; }
.form-group__label { display: block; margin-bottom: 8px; }
.form-group__input { width: 100%; box-sizing: border-box; padding: 10px; }

.u-hidden { display: none; }
.u-v-stack { display: flex; flex-direction: column; gap: 10px; }
/* Components - Buttons */
.c-button {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border: none;
}
.c-button--primary {
    background-color: #334155; /* 変数定義までの暫定色 */
    color: #ffffff;
}
/* Thanks Page Specific Layout */
.thanks-message {
    text-align: center;
    padding-top: 60px;
}
.thanks-message__title {
    margin-bottom: 20px;
}
.thanks-message__lead {
    line-height: 1.8;
}
/* ── フォーム ───────────────────────────────────────────────────── */
.bl_form {
    display: flex;
    flex-direction: column;
    gap: var(--space-content-m);
    max-width: 680px;
    margin: 0 auto;
}

.bl_form_item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── ラベル ──────────────────────────────────────────────────── */
.el_label {
    font-size: var(--font-size-sub);
    font-weight: 600;
    color: var(--font-header-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.el_tag_required {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: var(--color-accent);
    padding: 2px 8px;
    border-radius: 2px;
    letter-spacing: 0.04em;
    line-height: 1.6;
    vertical-align: middle;
}

/* ── インプット / テキストエリア ───────────────────────────────────────── */
.el_input,
.el_textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 4px;
    background: var(--color-body-white);
    font-family: "Noto Sans JP", sans-serif;
    font-size: var(--font-size-p);
    color: var(--font-color);
    line-height: var(--lh-loose);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.el_input:focus,
.el_textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--rgb-primary), 0.15);
}

.el_input:hover:not(:focus),
.el_textarea:hover:not(:focus) {
    border-color: rgb(var(--rgb-primary));
}

.el_textarea {
    resize: vertical;
    min-height: 180px;
}

.el_radio_item {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.el_input_subWrapper {
    margin-top: 10px;
    padding-left: 28px; /* ラジオボタンと揃えるためのインデント */
}

.el_txt_note {
    font-size: 0.85rem;
    color: var(--font-note-color);
    margin-top: 8px;
    line-height: 1.5;
}

/* 非活性時のスタイル */
.el_input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    border-color: #ddd;
}

/* ── 依頼プランページプレビュー ───────────────────────────────────────── */
.el_estimate_preview {
    background: linear-gradient(135deg, rgba(var(--rgb-primary), 0.06) 0%, var(--color-body) 100%);
    border: 1.5px solid rgba(var(--rgb-primary), 0.25);
    border-radius: 4px;
    padding: var(--space-content-s) var(--space-content-m);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.el_estimate_preview p {
    margin-top: var(--space-component-l);
    font-size: var(--font-size-h4);
    color: var(--font-card-color);
    line-height: var(--lh-medium);
}

.el_estimate_preview strong {
    color: var(--color-primary);
    font-weight: 700;
}

.el_estimate_preview span {
    font-size: var(--font-size-p);
    font-weight: 500;
}

/* ── チェックボックス ───────────────────────────────────────────────── */
.bl_form_agreement {
    padding-top: var(--space-component-s);
}

.el_checkboxLabel {
    display: flex;
    align-items: center;      /* 縦中央 */
    justify-content: left;  /* 横中央 */
    text-align: center;       /* テキストも中央寄せ */
    gap: 8px;                 /* inputと文字の間隔 */
}

.el_checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
    border-radius: 3px;
    background: #fff;
    position: relative;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.el_checkbox:hover {
    border-color: var(--color-primary);
}

.el_checkbox:checked {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.el_checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.el_checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--rgb-primary), 0.15);
}

/* ── サブミットボタン ──────────────────────────────────────────── */
.bl_form_submit {
    display: flex;
    flex-direction: column;
    gap: var(--space-component-m);
    flex-wrap: wrap;
    padding-top: var(--space-component-s);
}

.el_submitBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 14px 28px;
    border: none;
    border-radius: 100vmax;
    background: var(--color-accent);
    color: #fff;
    font-family: "Noto Sans JP", sans-serif;
    font-size: var(--font-size-button);
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-decoration: none;
}

.el_submitBtn:not([disabled]):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 115, 23, 0.32);
}

.el_submitBtn:not([disabled]):active {
    transform: scale(0.97);
    box-shadow: none;
}

/* 無効時のボタン（disabled属性がある時） */
.el_submitBtn:disabled {
    background-color: #ccc; /* グレーアウト */
    cursor: not-allowed;    /* 禁止マークのカーソル */
    opacity: 0.6;
}

/* 注釈のスタイル */
.el_submit_note {
    font-size: 0.8rem;
    color: var(--font-note-color);
    margin-top: 10px;
    text-align: center;
}

/* 戻るボタン（inline style の background:#666 に競合しないよう specificity 調整） */
.el_submitBtn[style*="background:#666"] {
    border-radius: 100vmax;
    font-family: "Noto Sans JP", sans-serif;
    font-size: var(--font-size-button);
    font-weight: 600;
}
.el_plan_details {
    margin-block: var(--space-component-m);
}
.el_plan_actions {
    margin-block: var(--space-component-s);
    font-size: var(--font-size-p);
    display: flex;
    gap: 2rem;
}
.el_inlineLink {
    color: #007bff; /* リンク色 */
    text-decoration: underline;
}
/* .el_link_delete {
    color: var(--font-divider-color); 
    text-decoration: none;
} */

/* ── Confirm List (確認画面) ────────────────────────────────── */
.bl_confirm_list {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0;
    border: 1.5px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-block: var(--space-content-m);
}

.bl_confirm_list dt,
.bl_confirm_list dd {
    padding: 14px 20px;
    font-size: var(--font-size-sub);
    line-height: var(--lh-medium);
    border-bottom: 1px solid var(--border-color);
}

.bl_confirm_list dt:last-of-type,
.bl_confirm_list dd:last-of-type {
    border-bottom: none;
}

.bl_confirm_list dt {
    font-weight: 700;
    color: var(--font-note-color);
    background: var(--color-body);
    white-space: nowrap;
}

.bl_confirm_list dd {
    background: var(--color-body-white);
    color: var(--font-color);
    word-break: break-word;
}

/* 確認画面のメッセージ表示用 */
.confirm-message {
    white-space: pre-wrap; /* 改行をそのまま反映させる */
    word-wrap: break-word; /* 長い英単語などの突き抜け防止 */
    background: #f9f9f9;  /* ほんの少し背景色を変えて読みやすく */
    padding: 1em;
    border-radius: 4px;
}

/* ── サンクスぺージ ────────────────────────────────────────────── */
.c-button-group {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 20px;
}
.thanks-message {
    display: flex;
    flex-direction: column;
    gap: var(--space-section-s);
    max-width: 640px;
    margin-inline: auto;
    padding-top: var(--space-section-m);
    text-align: center;
    animation: fadeUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.thanks-message__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-content-s);
}

.thanks-message__header::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    animation: popIn 0.4s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.thanks-message__title {
    font-size: var(--font-size-h2);
    color: var(--font-header-color);
    line-height: var(--lh-medium);
    letter-spacing: var(--ls-normal);
    margin-bottom: 0;
}

.thanks-message__lead {
    font-size: var(--font-size-lead);
    color: var(--font-note-color);
    line-height: var(--lh-lead);
    letter-spacing: var(--ls-lead);
}

.thanks-message__body {
    padding: var(--space-content-m);
    background: var(--color-body);
    border: 1.5px solid var(--border-color);
    border-radius: 4px;
    text-align: left;
}

.thanks-message__body p {
    font-size: var(--font-size-note);
    color: var(--font-note-color);
    line-height: var(--lh-loose);
}

.thanks-message__footer {
    display: flex;
    justify-content: center;
    padding-top: var(--space-content-s);
    gap: 2rem;
}

/* c-button override for thanks page */
.thanks-message .c-button--primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 14px 32px;
    border-radius: 100vmax;
    background: var(--color-primary);
    color: #fff;
    font-family: "Noto Sans JP", sans-serif;
    font-size: var(--font-size-button);
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thanks-message .c-button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--rgb-primary), 0.28);
}

.thanks-message .c-button--primary:active {
    transform: scale(0.97);
    box-shadow: none;
}

/* 送信内容の控えを囲むボックス */
.thanks-summary {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
}

/* 「送信内容の控え」の見出し */
.thanks-summary__title {
    font-size: 1.1rem;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
    margin-bottom: 20px;
}

/* リスト形式のレイアウト */
.thanks-summary__list {
    display: grid;
    grid-template-columns: 8em 1fr;
    gap: 15px 10px;
    font-size: 0.95rem;
}

.thanks-summary__list dt {
    color: #666;
}

/* 概算合計の注釈テキスト */
.thanks-summary__price-note {
    font-size: 1.1rem;
    color: var(--font-card-color);
}

/* オプション詳細のテキスト */
.thanks-summary__option-detail {
    font-size: 0.9rem;
}

/* ページ下部の補足テキストエリア */
.thanks-footer-note {
    color: #666;
    font-size: 0.9rem;
}

/* ── エラーメッセージ ─────────────────────────────────────────── */
.el_error {
    font-size: var(--font-size-note);
    color: #c0392b;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.el_error::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #c0392b;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}

.el_input.is-invalid,
.el_textarea.is-invalid {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

/* ── お問い合わせレスポンシブデザイン ─────────────────────────────────────────────── */
@media (max-width: 640px) {
    .bl_form {
        gap: var(--space-content-s);
    }

    .bl_confirm_list {
        grid-template-columns: 1fr;
    }

    .bl_confirm_list dt {
        border-bottom: none;
        padding-bottom: 4px;
    }

    .bl_confirm_list dd {
        padding-top: 4px;
    }

    .el_submitBtn {
        width: 100%;
        min-width: unset;
    }

    .thanks-message {
        padding-top: var(--space-section-s);
    }
}

/* reCAPTCHAのバッジ（保護マーク）を小さく・控えめにする（現実的おすすめ） */
.grecaptcha-badge {
    visibility: hidden;
}
.recaptcha-notice {
    font-size: 0.75rem;
    color: #777;
    margin-top: 12px;
    line-height: 1.5;
    text-align: center;
}
.recaptcha-notice a {
    color: inherit;
    text-decoration: underline;
}