/* ============================================================
 * トクやけん キャンペーンLP 共通スタイル
 *
 * 事務局（キャンペーン）ごとの色・画像は各LPの :root で
 * CSSカスタムプロパティを上書きして差し替える。
 *   --lp-primary        : メインカラー
 *   --lp-primary-dark   : メインの濃色（ボタンhover・見出し帯）
 *   --lp-accent         : アクセント（金・帯装飾）
 *   --lp-accent-light   : アクセントの淡色
 *   --lp-bg             : ページ背景（生成り）
 *   --lp-ink            : 見出し文字色
 *   --lp-text           : 本文文字色
 * ============================================================ */

:root {
    --lp-primary: #ef7a1a;
    --lp-primary-dark: #d95f00;
    --lp-accent: #e9a83a;
    --lp-accent-light: #f7d99a;
    --lp-bg: #fdf6ea;
    --lp-ink: #3f3428;
    --lp-text: #5a4a38;
    --lp-white: #ffffff;
    --lp-footer-bg: #453626;
    --lp-footer-text: #e8ddcc;
    --lp-footer-link: #ffd9a8;
    --lp-radius: 16px;
    --lp-shadow: 0 4px 16px rgba(90, 60, 20, 0.12);
    --lp-font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    --lp-font-head: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px; /* 固定ヘッダー分 */
}

body {
    margin: 0;
    background: var(--lp-bg);
    color: var(--lp-text);
    font-family: var(--lp-font-body);
    font-size: 16px;
    line-height: 1.8;
    -webkit-text-size-adjust: 100%;
}

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

a {
    color: var(--lp-primary-dark);
}

.lp-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- 未確定情報プレースホルダ ---------- */
.lp-tbd {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 6px;
    background: #eee4d4;
    color: #8a7a64;
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ---------- ヘッダー ---------- */
.lp-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px);
    box-shadow: 0 1px 8px rgba(90, 60, 20, 0.12);
}

.lp-header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.lp-header-logo img {
    height: 40px;
    display: block;
}

.lp-header-campaign {
    font-family: var(--lp-font-head);
    font-weight: 700;
    color: var(--lp-ink);
    font-size: 15px;
    line-height: 1.3;
}

.lp-header-cta {
    margin-left: auto;
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--lp-primary);
    color: var(--lp-white);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.lp-header-cta:hover {
    background: var(--lp-primary-dark);
}

/* ---------- ヒーロー ---------- */
.lp-hero {
    position: relative;
    overflow: hidden;
    background:
        var(--lp-hero-pattern, none),
        linear-gradient(160deg, var(--lp-primary) 0%, var(--lp-primary-dark) 100%);
    color: var(--lp-white);
    text-align: center;
    padding: 56px 20px 64px;
}

.lp-hero-icon {
    width: 168px;
    height: 168px;
    border-radius: 36px;
    box-shadow: 0 10px 30px rgba(60, 25, 0, 0.35);
    border: 4px solid rgba(255, 255, 255, 0.85);
}

.lp-hero-catch {
    font-family: var(--lp-font-head);
    font-weight: 900;
    font-size: clamp(24px, 5vw, 40px);
    line-height: 1.5;
    margin: 28px 0 8px;
    text-shadow: 0 2px 6px rgba(60, 25, 0, 0.3);
}

.lp-hero-sub {
    font-size: clamp(14px, 2.5vw, 18px);
    margin: 0 auto 28px;
    max-width: 640px;
    opacity: 0.95;
}

.lp-hero-premium {
    display: inline-block;
    background: var(--lp-white);
    color: var(--lp-primary-dark);
    font-family: var(--lp-font-head);
    font-weight: 900;
    font-size: clamp(18px, 4vw, 26px);
    border-radius: 999px;
    padding: 10px 32px;
    margin-bottom: 32px;
    box-shadow: 0 6px 18px rgba(60, 25, 0, 0.25);
}

/* ストアバッジ + QR */
.lp-dl {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.lp-store-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lp-store-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
    padding: 10px 22px;
    border-radius: 12px;
    background: #1c1c1e;
    color: var(--lp-white);
    text-decoration: none;
    text-align: left;
    box-shadow: 0 4px 12px rgba(60, 25, 0, 0.3);
    transition: transform 0.15s;
}

.lp-store-badge:hover {
    transform: translateY(-2px);
}

.lp-store-badge svg {
    width: 30px;
    height: 30px;
    flex: none;
    fill: currentColor;
}

.lp-store-badge small {
    display: block;
    font-size: 11px;
    opacity: 0.8;
    line-height: 1.2;
}

.lp-store-badge strong {
    display: block;
    font-size: 17px;
    line-height: 1.3;
}

.lp-qr {
    background: var(--lp-white);
    border-radius: var(--lp-radius);
    padding: 14px;
    color: var(--lp-text);
    font-size: 12px;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(60, 25, 0, 0.3);
}

.lp-qr-box {
    width: 120px;
    height: 120px;
    margin: 0 auto 6px;
    border: 2px dashed #c9b489;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a08c6c;
    font-size: 11px;
    text-align: center;
    padding: 8px;
}

.lp-qr-box img {
    width: 100%;
    height: 100%;
}

/* ---------- セクション共通 ---------- */
.lp-section {
    padding: 64px 0;
}

.lp-section:nth-of-type(even) {
    background: var(--lp-white);
}

.lp-section-title {
    font-family: var(--lp-font-head);
    font-weight: 900;
    color: var(--lp-ink);
    font-size: clamp(22px, 4vw, 30px);
    text-align: center;
    margin: 0 0 12px;
}

.lp-section-title .lp-leaf {
    width: 1.1em;
    height: 1.1em;
    vertical-align: -0.18em;
    margin-right: 0.3em;
    fill: var(--lp-accent);
}

.lp-section-lead {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 40px;
}

/* ---------- カード（メリット） ---------- */
.lp-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.lp-card {
    background: var(--lp-white);
    border-radius: var(--lp-radius);
    border-top: 5px solid var(--lp-accent);
    box-shadow: var(--lp-shadow);
    padding: 28px 24px;
    text-align: center;
}

.lp-section:nth-of-type(even) .lp-card {
    background: var(--lp-bg);
}

.lp-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--lp-accent-light);
}

.lp-card-icon svg {
    width: 34px;
    height: 34px;
    fill: var(--lp-primary-dark);
}

.lp-card h3 {
    font-family: var(--lp-font-head);
    color: var(--lp-ink);
    font-size: 19px;
    margin: 0 0 10px;
}

.lp-card p {
    margin: 0;
    font-size: 14.5px;
    text-align: left;
}

/* ---------- キャンペーン要項テーブル ---------- */
.lp-outline-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--lp-white);
    border-radius: var(--lp-radius);
    overflow: hidden;
    box-shadow: var(--lp-shadow);
}

.lp-outline-table th,
.lp-outline-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f0e6d2;
    text-align: left;
    vertical-align: top;
}

.lp-outline-table tr:last-child th,
.lp-outline-table tr:last-child td {
    border-bottom: none;
}

.lp-outline-table th {
    width: 30%;
    background: var(--lp-accent-light);
    color: var(--lp-ink);
    font-family: var(--lp-font-head);
    font-weight: 700;
    white-space: nowrap;
}

/* ---------- STEP ---------- */
.lp-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    counter-reset: step;
}

.lp-step {
    position: relative;
    background: var(--lp-white);
    border-radius: var(--lp-radius);
    box-shadow: var(--lp-shadow);
    padding: 30px 20px 24px;
    text-align: center;
}

.lp-section:nth-of-type(even) .lp-step {
    background: var(--lp-bg);
}

.lp-step::before {
    counter-increment: step;
    content: "STEP " counter(step);
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--lp-primary);
    color: var(--lp-white);
    font-family: var(--lp-font-head);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    padding: 4px 16px;
    border-radius: 999px;
    white-space: nowrap;
}

.lp-step-icon {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.lp-step-icon svg {
    width: 52px;
    height: 52px;
    fill: var(--lp-primary);
}

.lp-step h3 {
    font-family: var(--lp-font-head);
    color: var(--lp-ink);
    font-size: 17px;
    margin: 0 0 8px;
}

.lp-step p {
    margin: 0;
    font-size: 13.5px;
    text-align: left;
}

/* ---------- 加盟店リスト ---------- */
.lp-shops {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.lp-shop {
    background: var(--lp-white);
    border-radius: 12px;
    box-shadow: var(--lp-shadow);
    padding: 14px 18px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.lp-shop-genre {
    flex: none;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--lp-primary-dark);
    background: var(--lp-accent-light);
    border-radius: 6px;
    padding: 2px 8px;
    white-space: nowrap;
}

.lp-shop-name {
    font-weight: 700;
    color: var(--lp-ink);
    font-size: 15px;
}

.lp-shops-note {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
}

/* ---------- FAQ ---------- */
.lp-faq {
    max-width: 760px;
    margin: 0 auto;
}

.lp-faq-item {
    background: var(--lp-white);
    border-radius: 12px;
    box-shadow: var(--lp-shadow);
    margin-bottom: 14px;
    padding: 4px 22px;
}

.lp-faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    font-weight: 700;
    color: var(--lp-ink);
}

.lp-faq-item summary::-webkit-details-marker {
    display: none;
}

.lp-faq-q {
    flex: none;
    font-family: var(--lp-font-head);
    font-weight: 900;
    font-size: 22px;
    color: var(--lp-primary);
    line-height: 1;
}

.lp-faq-item summary::after {
    content: "＋";
    margin-left: auto;
    color: var(--lp-primary);
    font-weight: 700;
    flex: none;
}

.lp-faq-item[open] summary::after {
    content: "−";
}

.lp-faq-a {
    margin: 0 0 16px 36px;
    font-size: 14.5px;
}

/* ---------- CTA帯 ---------- */
.lp-cta-band {
    background: linear-gradient(160deg, var(--lp-primary) 0%, var(--lp-primary-dark) 100%);
    color: var(--lp-white);
    text-align: center;
    padding: 48px 20px;
}

.lp-cta-band h2 {
    font-family: var(--lp-font-head);
    font-weight: 900;
    font-size: clamp(20px, 4vw, 28px);
    margin: 0 0 24px;
}

/* ---------- フッター ---------- */
.lp-footer {
    background: var(--lp-footer-bg);
    color: var(--lp-footer-text);
    padding: 48px 0 28px;
    font-size: 14px;
}

.lp-footer a {
    color: var(--lp-footer-link);
}

.lp-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.lp-footer h3 {
    font-family: var(--lp-font-head);
    color: var(--lp-white);
    font-size: 15px;
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.lp-footer p {
    margin: 0 0 8px;
}

.lp-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-footer li {
    margin-bottom: 8px;
}

.lp-footer-logo img {
    height: 44px;
    margin-bottom: 12px;
}

.lp-footer-copy {
    text-align: center;
    font-size: 12px;
    opacity: 0.7;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 20px;
}

/* ---------- 規約ページ（利用規約・プライバシーポリシー・特商法） ---------- */
.lp-legal-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 72px;
}

.lp-legal-title {
    font-family: var(--lp-font-head);
    font-weight: 900;
    color: var(--lp-ink);
    font-size: clamp(22px, 4vw, 28px);
    margin: 0 0 8px;
}

.lp-legal-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    border-radius: 2px;
    margin-top: 12px;
    background: var(--lp-primary);
}

.lp-legal-lead {
    font-size: 14.5px;
    margin: 20px 0 32px;
}

.lp-legal-toc {
    background: var(--lp-white);
    border-radius: 12px;
    box-shadow: var(--lp-shadow);
    padding: 6px 20px;
    margin-bottom: 32px;
    font-size: 14px;
}

.lp-legal-toc summary {
    cursor: pointer;
    font-family: var(--lp-font-head);
    font-weight: 700;
    color: var(--lp-ink);
    padding: 10px 0;
}

.lp-legal-toc ol {
    margin: 0 0 14px;
    padding-left: 1.6em;
    columns: 2;
    column-gap: 32px;
}

.lp-legal-toc a {
    text-decoration: none;
}

.lp-legal-toc a:hover {
    text-decoration: underline;
}

.lp-legal h2 {
    font-family: var(--lp-font-head);
    font-weight: 700;
    color: var(--lp-ink);
    font-size: 17px;
    margin: 40px 0 12px;
    padding-left: 12px;
    border-left: 4px solid var(--lp-primary);
    scroll-margin-top: 72px;
}

.lp-legal p,
.lp-legal li {
    font-size: 14.5px;
    line-height: 1.9;
}

.lp-legal p {
    margin: 0 0 12px;
}

.lp-legal ol {
    margin: 0 0 12px;
    padding-left: 1.7em;
}

.lp-legal ol li {
    margin-bottom: 6px;
}

/* 入れ子リストは（1）形式 */
.lp-legal ol ol {
    list-style: none;
    counter-reset: lp-sub;
    padding-left: 0.4em;
    margin-top: 6px;
}

.lp-legal ol ol > li {
    counter-increment: lp-sub;
}

.lp-legal ol ol > li::before {
    content: "（" counter(lp-sub) "）";
    margin-right: 2px;
}

.lp-legal .lp-outline-table th {
    width: 26%;
}

.lp-legal-footer {
    text-align: center;
    font-size: 12px;
    color: #9a8c7a;
    padding: 24px 20px 40px;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 600px) {
    .lp-header-campaign {
        display: none;
    }

    .lp-section {
        padding: 48px 0;
    }

    .lp-hero {
        padding: 40px 16px 48px;
    }

    .lp-hero-icon {
        width: 128px;
        height: 128px;
        border-radius: 28px;
    }

    .lp-outline-table th {
        display: block;
        width: 100%;
        padding: 10px 16px 4px;
    }

    .lp-outline-table td {
        display: block;
        padding: 4px 16px 12px;
    }

    .lp-legal-toc ol {
        columns: 1;
    }
}
