/* ========================================
   下層ページ共通スタイル
   ======================================== */

/* SP専用改行（PCでは非表示） */
.br-sp { display: inline; }
@media (min-width: 969px) { .br-sp { display: none; } }

/* 語中で不自然に改行させない保護（キーワードをまとめる） */
.nowrap { white-space: nowrap; }

/* 注記（※）用の小さめ・淡色テキスト */
.note-sm { font-size: 12px; color: var(--color-text-secondary); line-height: 1.8; }
.info-list dd .note-sm { display: inline-block; margin-top: 2px; }

/* お問い合わせ冒頭文：中央寄せ。SPは2行に収めるため少しだけ小さく（詳細度を上げてlead基準14pxに勝つ） */
.contact-lead { text-align: center; }
@media (max-width: 768px) { .page-section__lead.contact-lead { font-size: 12px; letter-spacing: 0; margin-left: -14px; margin-right: -14px; } }

/* お問い合わせ注記：SPのみ、指定の3行に収めるため少し小さく（PCは通常サイズ・自然折返し）。
   詳細度を上げてSPの .page-section__text{13px} に打ち勝つ。11px＝356px幅でも中央行が1行に収まる */
@media (max-width: 768px) {
    .page-section__text.contact-note { font-size: 11px; letter-spacing: 0; line-height: 1.9; }
}

/* ≤349px（iPhone SE初代/iPhone5クラスなど極小幅）：冒頭2行・注記3行を維持するため、さらに文字を下げ＆左右を広げる */
@media (max-width: 349px) {
    .page-section__lead.contact-lead { font-size: 10px; margin-left: -18px; margin-right: -18px; }
    .page-section__text.contact-note { font-size: 10px; margin-left: -18px; margin-right: -18px; }
}

/* 極小幅で万一の横溢れが出ても画面外に切れないようクリップ（防御） */
html, body { overflow-x: hidden; }

/* 日本語の行頭禁則を厳密化：小書き仮名（っ ゃ ィ ョ 等）・長音（ー）・句読点・閉じ括弧を行頭に置かない。
   line-breakは継承プロパティなのでbody指定で全テキストに適用。サイズには影響せず安全。 */
body { line-break: strict; }

/* ヒーロー */
.page-hero {
    background: var(--color-bg-cream);
    padding: 140px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--color-line-light);
    position: relative;
    overflow: hidden;
}
.page-hero::before,
.page-hero::after {
    content: '✦';
    position: absolute;
    color: var(--color-accent);
    font-size: 20px;
    opacity: 0.4;
}
.page-hero::before {
    top: 100px;
    left: 10%;
}
.page-hero::after {
    bottom: 30px;
    right: 10%;
}
.page-hero__title {
    font-family: var(--font-mincho);
    font-size: 36px;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--color-text-primary);
    margin-bottom: 12px;
}
.page-hero__subtitle {
    font-size: 13px;
    color: var(--color-text-secondary);
    letter-spacing: 0.15em;
}
.page-hero__breadcrumb {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-top: 20px;
    letter-spacing: 0.1em;
}
.page-hero__breadcrumb a {
    color: var(--color-accent);
    transition: opacity 0.2s;
}
.page-hero__breadcrumb a:hover { opacity: 0.7; }

/* ページボディ */
.page-body {
    padding: 80px 0 100px;
    background: var(--color-bg);
}
.page-body__inner {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-bg-white);
    padding: 60px 60px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}
/* FAQは2カラムの回答節を1行に収めるため少し広く */
.page-body__inner--wide { max-width: 1060px; }

/* セクション */
.page-section {
    margin-bottom: 48px;
}
.page-section:last-child { margin-bottom: 0; }
.page-section__title {
    font-family: var(--font-mincho);
    font-size: 20px;
    font-weight: 500;
    color: var(--color-text-primary);
    letter-spacing: 0.15em;
    line-height: 1.5;
    margin-bottom: 20px;
    padding-bottom: 12px;
    padding-left: 14px;
    border-bottom: 2px solid var(--color-accent);
    position: relative;
}
/* 規約のページの条の見出し：2行になるときは行の長さをそろえ、最後の1〜2文字だけの行をつくらない。
   WebKit は絶対配置の ::before があると balance が効かないため、左の縦線を同じ位置・大きさの背景で描く */
.page-body__inner--legal .page-section__title {
    text-wrap: balance;
    /* 改行は見出しに入れた <wbr>（文節の切れ目）と記号の所だけ。入りきらないときだけ語の途中で折り返し、はみ出さない */
    word-break: keep-all;
    overflow-wrap: anywhere;
    background: linear-gradient(var(--color-accent), var(--color-accent)) left 0 top 0.3em / 4px 1.1em no-repeat;
}
.page-body__inner--legal .page-section__title::before { content: none; }
.page-section__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 4px;
    height: 1.1em;
    background: var(--color-accent);
}
.page-section__lead {
    font-size: 14px;
    line-height: 2;
    color: var(--color-text-primary);
    margin-bottom: 20px;
}
.page-section__text {
    font-size: 14px;
    line-height: 2;
    color: var(--color-text-primary);
    margin-bottom: 16px;
}
.page-section__text--small {
    font-size: 12px;
    color: var(--color-text-secondary);
}

/* 定義リスト */
.info-list {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px 32px;
    padding: 24px 0;
}
.info-list dt {
    font-family: var(--font-mincho);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
    letter-spacing: 0.08em;
    padding: 8px 0;
    border-bottom: 1px dashed var(--color-line);
}
.info-list dd {
    font-size: 14px;
    color: var(--color-text-primary);
    padding: 8px 0;
    border-bottom: 1px dashed var(--color-line);
    line-height: 1.9;
}

/* 縦積み版（資料どおりラベルの下に値。特商法・会社概要で全サイズ縦積み） */
.info-list--stack {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px 0;
}
.info-list--stack dt {
    border-bottom: none;
    padding: 12px 0 2px;
    color: var(--color-accent-dark);
}
.info-list--stack dt:first-child { padding-top: 0; }
.info-list--stack dd {
    padding: 2px 0 16px;
    border-bottom: 1px dashed var(--color-line);
}
.info-list--stack dd:last-child { border-bottom: none; }

/* リスト */
.page-list {
    margin: 16px 0 24px 24px;
}
.page-list li {
    font-size: 13px;
    line-height: 2;
    color: var(--color-text-primary);
    list-style: none;
    position: relative;
    padding-left: 20px;
    margin-bottom: 4px;
}
.page-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
}

.page-list--ordered {
    counter-reset: item;
}
.page-list--ordered li {
    padding-left: 32px;
    counter-increment: item;
}
.page-list--ordered li::before {
    content: counter(item, decimal-leading-zero);
    background: transparent;
    color: var(--color-accent);
    font-family: var(--font-mincho);
    font-weight: 600;
    font-size: 12px;
    width: auto;
    height: auto;
    border-radius: 0;
    top: 8px;
}

/* 本文に「・」を持つ箇条（規約類）：点を重ねず、2行目以降を「・」の後ろに揃える */
.page-list--mark li {
    padding-left: 1em;
    text-indent: -1em;
}
.page-list--mark li::before { content: none; }

/* 表（規約類）：狭い画面では枠の中だけ横スクロール */
.page-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0 24px;
}
.page-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.8;
    color: var(--color-text-primary);
}
.page-table th,
.page-table td {
    padding: 10px 12px;
    border: 1px solid var(--color-line);
    text-align: left;
    vertical-align: top;
}
.page-table thead th {
    font-family: var(--font-mincho);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-align: center;
    vertical-align: middle;
    background: var(--color-bg-cream);
}
.page-table tbody th {
    font-weight: 500;
    white-space: nowrap;
}
.page-table a { overflow-wrap: break-word; }
/* 表（769〜847px）：枠が680pxより狭くなるので、表の最小幅を外して枠に収める */
@media (min-width: 769px) and (max-width: 847px) {
    .page-table { min-width: 0; }
}
/* 表（768px以下）：横スワイプをやめ、行（送信先）ごとのまとまりで縦に並べる。
   各項目の前に、その列の見出しの文言（data-label）を小さく出す。見出しの行は画面からは隠し、読み上げには残す */
@media (max-width: 768px) {
    .page-table-wrap { overflow-x: visible; }
    .page-table { min-width: 0; }
    .page-table,
    .page-table tbody,
    .page-table tr,
    .page-table th,
    .page-table td { display: block; width: 100%; }
    .page-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .page-table tbody tr {
        border: 1px solid var(--color-line);
        border-radius: 4px;
        overflow: hidden;
        margin-bottom: 16px;
    }
    .page-table tbody tr:last-child { margin-bottom: 0; }
    .page-table tbody th,
    .page-table tbody td {
        border: none;
        border-top: 1px solid var(--color-line);
    }
    .page-table tbody th {
        border-top: none;
        white-space: normal;
        background: var(--color-bg-cream);
    }
    .page-table [data-label]::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        font-family: var(--font-mincho);
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.08em;
        color: var(--color-text-secondary);
    }
}

/* お問い合わせフォーム */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-label {
    font-family: var(--font-mincho);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-label__required {
    font-size: 10px;
    background: var(--color-accent-red);
    color: #FFF;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.05em;
    font-weight: 500;
}
.form-input,
.form-textarea,
.form-select {
    font-family: var(--font-gothic);
    padding: 12px 16px;
    border: 1px solid var(--color-line);
    border-radius: 4px;
    background: var(--color-bg-white);
    font-size: 14px;
    color: var(--color-text-primary);
    transition: border-color 0.2s;
    width: 100%;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-accent);
}
.form-textarea {
    min-height: 160px;
    resize: vertical;
    font-family: var(--font-gothic);
}
.form-submit {
    align-self: center;
    margin-top: 20px;
}

/* コンセプトカード */
.concept-card {
    background: linear-gradient(135deg, var(--color-bg-cream) 0%, var(--color-bg) 100%);
    padding: 40px 32px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 32px;
    border: 1px solid var(--color-line-light);
}
.concept-card__quote {
    font-family: var(--font-mincho);
    font-size: 24px;
    color: var(--color-accent-dark);
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    line-height: 1.6;
}
.concept-card__text {
    font-family: var(--font-mincho);
    font-size: 14px;
    line-height: 2;
    color: var(--color-text-primary);
}

/* CTA */
.page-cta {
    background: var(--color-bg-cream);
    padding: 60px 40px;
    text-align: center;
    border-radius: 12px;
    margin-top: 40px;
}
.page-cta__text {
    font-family: var(--font-mincho);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
    letter-spacing: 0.08em;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .page-hero { padding: 100px 0 40px; }
    .page-hero__title { font-size: clamp(17px, 5vw, 24px); letter-spacing: 0.05em; padding: 0 16px; overflow-wrap: anywhere; }
    .page-hero__subtitle { font-size: 11px; }
    .page-body { padding: 40px 0 60px; }
    .page-body__inner { padding: 32px 24px; margin: 0 16px; }
    /* SPは字間を詰めて見出しを1行に収まりやすくし、「取扱／い」のような1字孤立を防ぐ */
    .page-section__title { font-size: 17px; letter-spacing: 0.04em; }
    .page-section__text { font-size: 13px; }
    .info-list {
        grid-template-columns: 1fr;
        gap: 4px 0;
    }
    .info-list dt {
        border-bottom: none;
        padding-bottom: 4px;
        color: var(--color-accent-dark);
    }
    .info-list dd {
        padding-top: 4px;
        padding-bottom: 16px;
    }
    /* 特商法のみ：指定の改行（18字/行）が実機幅360pxでも保たれるよう本文を1px小さく（≤768のSPのみ・PC不変） */
    .info-list--sp-sm dd { font-size: 13px; }
    .concept-card { padding: 28px 20px; }
    .concept-card__quote { font-size: 15px; letter-spacing: 0; white-space: nowrap; }
    .page-section__closing { font-size: 15px !important; letter-spacing: 0 !important; }
    .page-cta { padding: 24px 24px 40px; margin-top: 20px; }
    .page-cta__text { font-size: 14px; }
    .form-input,
    .form-textarea,
    .form-select { font-size: 14px; padding: 10px 14px; }
}

/* フッター（769〜968px）：項目が2行に分かれないよう、項目の間だけを画面の幅に合わせて詰める。
   700px＝左右の余白80px＋項目の文字の幅（約587px）＋スクロールバー等のゆとり。900px以上は元の40px */
@media (min-width: 769px) and (max-width: 968px) {
    .footer__menu { column-gap: clamp(12px, calc((100vw - 700px) / 5), 40px); }
}
