/* =====================================================================
 * Infinityline AI — 公開サイト スタイル
 * （Phase 2a: 基盤レイアウト / ヘッダー / フッター / 基本コンポーネント）
 * ===================================================================== */

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

/* hidden 属性は常に最優先で非表示（display:flex 等の上書きを防ぐ）*/
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--tr-fast); }
a:hover { color: var(--accent-hover); }

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

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.3; font-weight: 700; }

/* ----- レイアウト ----- */
.site-main { min-height: calc(100vh - var(--header-height) - 200px); }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================================================================
 * ボタン
 * ===================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--tr-fast);
    text-decoration: none;
    white-space: nowrap;
}
.btn--primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--bg-hover); border-color: var(--accent); }
.btn--lg { padding: 16px 32px; font-size: 17px; }
.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--gradient { background: var(--accent-grad); color: #fff; border: none; }
.btn--gradient:hover { opacity: .92; color: #fff; }

.icon-btn {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border: none; background: transparent; border-radius: var(--radius-md);
    cursor: pointer; font-size: 18px; color: var(--text-secondary);
    transition: background var(--tr-fast);
}
.icon-btn:hover { background: var(--bg-hover); }

/* =====================================================================
 * ヘッダー
 * ===================================================================== */
.site-header {
    position: sticky; top: 0;
    height: var(--header-height);
    background: color-mix(in srgb, var(--bg-primary) 88%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: var(--z-header);
}
.site-header__inner {
    max-width: var(--container-max);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--accent); }
.site-logo__icon {
    width: 34px; height: 34px;
    background: var(--accent-grad); color: #fff;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800;
}
.site-logo__text { font-size: 16px; letter-spacing: .02em; }

.site-nav { display: flex; gap: 4px; margin-left: 8px; flex: 1; }
.site-nav__link {
    padding: 8px 14px; border-radius: var(--radius-md);
    color: var(--text-secondary); font-weight: 500; font-size: 15px;
    transition: all var(--tr-fast);
}
.site-nav__link:hover { color: var(--text-primary); background: var(--bg-hover); }
.site-nav__link.is-active { color: var(--accent); }

.site-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.site-nav-toggle { display: none; }

/* 言語スイッチャー */
.lang-switch { position: relative; }
.lang-switch__btn {
    padding: 8px 12px; border: 1px solid var(--border); background: transparent;
    border-radius: var(--radius-md); cursor: pointer; font-size: 14px;
    color: var(--text-secondary); transition: all var(--tr-fast);
}
.lang-switch__btn:hover { border-color: var(--accent); color: var(--text-primary); }
.lang-switch__menu {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-md);
    min-width: 140px; padding: 6px; z-index: var(--z-dropdown);
    opacity: 0; pointer-events: none; transform: translateY(-6px);
    transition: opacity var(--tr-fast), transform var(--tr-fast);
}
.lang-switch.is-open .lang-switch__menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.lang-switch__item {
    display: block; padding: 8px 12px; border-radius: var(--radius-sm);
    color: var(--text-primary); font-size: 14px;
}
.lang-switch__item:hover { background: var(--bg-hover); }
.lang-switch__item.is-active { color: var(--accent); font-weight: 600; }

/* =====================================================================
 * フッター
 * ===================================================================== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    margin-top: 80px;
}
.site-footer__inner {
    max-width: var(--container-max); margin: 0 auto; padding: 56px 24px 32px;
    display: flex; gap: 48px; flex-wrap: wrap;
}
.site-footer__brand { flex: 1; min-width: 240px; }
.site-footer__tagline { color: var(--text-secondary); font-size: 14px; margin-top: 12px; }
.site-footer__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; }
.site-footer__col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin: 0 0 4px; }
.site-footer__col a { color: var(--text-secondary); font-size: 14px; }
.site-footer__col a:hover { color: var(--accent); }
.site-footer__bottom {
    border-top: 1px solid var(--border);
    text-align: center; padding: 20px; font-size: 13px; color: var(--text-muted);
}

/* =====================================================================
 * ヒーロー（home 用・2b で拡張）
 * ===================================================================== */
.hero {
    text-align: center;
    padding: 96px 24px 72px;
    background:
        radial-gradient(1200px 400px at 50% -10%, var(--accent-soft), transparent);
}
.hero__title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 20px;
    background: var(--accent-grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero__subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 680px; margin: 0 auto 36px;
}
.hero__form {
    max-width: 680px; margin: 0 auto;
    display: flex; gap: 8px; background: var(--bg-primary);
    border: 2px solid var(--border-strong); border-radius: var(--radius-lg);
    padding: 8px; box-shadow: var(--shadow-md);
    transition: border-color var(--tr-fast);
}
.hero__form:focus-within { border-color: var(--accent); }
.hero__input {
    flex: 1; border: none; background: transparent; padding: 12px 16px;
    font-size: 16px; color: var(--text-primary); outline: none;
    font-family: inherit;
}
.hero__note { margin-top: 16px; font-size: 13px; color: var(--text-muted); }

/* セクション共通 */
.section { padding: 72px 24px; }
.section__heading { text-align: center; font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.section__lead { text-align: center; color: var(--text-secondary); max-width: 600px; margin: 0 auto 48px; }

/* 特徴グリッド */
.feature-grid {
    max-width: var(--container-max); margin: 0 auto;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.feature-card {
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px; text-align: center;
    transition: transform var(--tr-base), box-shadow var(--tr-base);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card__icon { font-size: 40px; margin-bottom: 16px; }
.feature-card__title { font-size: 19px; margin-bottom: 10px; }
.feature-card__desc { color: var(--text-secondary); font-size: 15px; margin: 0; }

/* CTA バンド */
.cta-band {
    max-width: var(--container-max); margin: 0 auto;
    background: var(--accent-grad); border-radius: var(--radius-lg);
    padding: 56px 32px; text-align: center; color: #fff;
}
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); }
.cta-band p { color: rgba(255,255,255,.9); margin-bottom: 28px; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.15); }

/* =====================================================================
 * ユーティリティ
 * ===================================================================== */
.w-full { width: 100%; }

/* =====================================================================
 * 料金カード（pricing）
 * ===================================================================== */
.pricing-grid {
    max-width: 800px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
.price-card {
    position: relative;
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px 28px;
    display: flex; flex-direction: column;
}
.price-card--featured { border-color: var(--accent); box-shadow: var(--shadow-md); }
.price-card--disabled { opacity: .72; }
.price-card__badge {
    position: absolute; top: 16px; right: 16px;
    background: var(--bg-tertiary); color: var(--text-muted);
    font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill);
}
.price-card__name { font-size: 18px; font-weight: 700; color: var(--text-secondary); }
.price-card__price { font-size: 40px; font-weight: 800; margin: 12px 0 4px; color: var(--text-primary); }
.price-card__period { font-size: 15px; font-weight: 400; color: var(--text-muted); }
.price-card__features { list-style: none; padding: 0; margin: 24px 0; flex: 1; }
.price-card__features li { padding: 8px 0; color: var(--text-secondary); font-size: 15px; border-bottom: 1px solid var(--border); }

/* =====================================================================
 * FAQ アコーディオン
 * ===================================================================== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--border); border-radius: var(--radius-md);
    margin-bottom: 12px; background: var(--bg-primary); overflow: hidden;
}
.faq-item__q {
    padding: 18px 20px; font-weight: 600; cursor: pointer;
    list-style: none; position: relative; padding-right: 48px;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
    content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    font-size: 22px; color: var(--accent); transition: transform var(--tr-fast);
}
.faq-item[open] .faq-item__q::after { content: '−'; }
.faq-item__a { padding: 0 20px 20px; color: var(--text-secondary); }

/* =====================================================================
 * フォーム（contact 等）
 * ===================================================================== */
.form-narrow { max-width: 560px; margin: 0 auto; }
.stack-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.field__input, .field__textarea {
    width: 100%; padding: 12px 14px; font-size: 15px; font-family: inherit;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    background: var(--bg-primary); color: var(--text-primary);
    transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}
.field__input:focus, .field__textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.field__textarea { resize: vertical; }

/* 通知バナー */
.notice { padding: 14px 18px; border-radius: var(--radius-md); margin-bottom: 18px; font-size: 15px; border-left: 4px solid; }
.notice--success { background: rgba(46,125,50,.10); border-color: var(--success); color: var(--success); }
.notice--error   { background: rgba(211,47,47,.08);  border-color: var(--danger);  color: var(--danger); }

/* =====================================================================
 * 文章ページ（about / terms / privacy）
 * ===================================================================== */
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: clamp(26px, 3vw, 34px); }
.prose h2 { font-size: 20px; margin-top: 36px; color: var(--accent); }
.prose p { color: var(--text-secondary); margin: 12px 0; }
.legal { padding-top: 56px; }
.legal__updated { color: var(--text-muted); font-size: 13px; }

/* =====================================================================
 * 認証ページ（login / register / forgot / reset）
 * ===================================================================== */
.auth-wrap {
    max-width: 440px; margin: 0 auto; padding: 56px 24px 80px;
}
.auth-card {
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
    padding: 36px 32px;
}
.auth-card__title { text-align: center; font-size: 24px; margin-bottom: 8px; }
.auth-card__lead { text-align: center; color: var(--text-secondary); font-size: 14px; margin-bottom: 24px; }
.auth-google {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 12px; border: 1px solid var(--border-strong);
    border-radius: var(--radius-md); background: var(--bg-primary);
    color: var(--text-primary); font-weight: 600; font-size: 15px; cursor: pointer;
    transition: background var(--tr-fast);
}
.auth-google:hover { background: var(--bg-hover); color: var(--text-primary); }
.auth-google__icon { width: 18px; height: 18px; }
.auth-divider {
    display: flex; align-items: center; gap: 12px;
    color: var(--text-muted); font-size: 13px; margin: 20px 0;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-foot { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-secondary); }
.auth-foot a { font-weight: 600; }
.auth-sub { text-align: right; margin-top: 6px; }
.auth-sub a { font-size: 13px; color: var(--text-muted); }

/* =====================================================================
 * 会員エリア（dashboard / slides / account）
 * ===================================================================== */
.dash-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-bottom: 28px;
}
.badge-plan {
    display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill);
    background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700;
    margin-right: 6px;
}
.badge-ai {
    display: inline-block; padding: 1px 8px; border-radius: var(--radius-pill);
    background: var(--bg-tertiary); color: var(--text-secondary); font-size: 11px; font-weight: 600;
}

/* 統計カード */
.dash-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px;
}
.dash-stat {
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
}
.dash-stat__label { font-size: 13px; color: var(--text-secondary); }
.dash-stat__value { font-size: 32px; font-weight: 800; color: var(--text-primary); margin-top: 6px; }
.dash-stat__value span { font-size: 14px; font-weight: 400; color: var(--text-muted); }

.dash-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dash-section-head h2 { margin: 0; font-size: 20px; }

.dash-empty {
    text-align: center; padding: 56px 24px; color: var(--text-secondary);
    background: var(--bg-secondary); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
}
.dash-empty p { margin: 12px 0 20px; }

/* スライドカード */
.slide-cards {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.slide-card {
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit;
    display: flex; flex-direction: column; transition: transform var(--tr-base), box-shadow var(--tr-base);
}
a.slide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.slide-card__thumb {
    aspect-ratio: 16/9; background: var(--bg-tertiary);
    display: flex; align-items: center; justify-content: center; font-size: 36px;
}
.slide-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.slide-card__body { padding: 14px 16px; }
.slide-card__title { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.slide-card__meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 8px; align-items: center; }
.slide-card__actions { display: flex; gap: 8px; margin-top: 12px; }

/* マイスライド検索 */
.slides-search { display: flex; gap: 8px; margin-bottom: 24px; max-width: 480px; }
.slides-search .field__input { flex: 1; }

/* ページャ */
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pager__link {
    padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-md);
    color: var(--text-secondary); font-size: 14px;
}
.pager__link.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* アカウント設定カード */
.acc-card {
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px; margin-bottom: 20px;
}
.acc-card__title { font-size: 18px; margin: 0 0 18px; }
.acc-card--danger { border-color: var(--danger); }

/* スライドプレビュー（slide-edit）*/
.slide-preview-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: 24px; }
.slide-preview {
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 18px; position: relative; aspect-ratio: 16/9;
}
.slide-preview__no {
    position: absolute; top: 8px; right: 12px; font-size: 11px; color: var(--text-muted);
}
.slide-preview__title { font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.slide-preview__body { font-size: 13px; color: var(--text-secondary); white-space: pre-wrap; }

/* =====================================================================
 * AIスライド生成フォーム
 * ===================================================================== */
.gen-form { margin-top: 24px; display: flex; flex-direction: column; gap: 20px; }
.gen-form__row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }

.gen-progress {
    margin-top: 32px; text-align: center;
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 40px 24px;
}
.gen-progress__spinner {
    width: 48px; height: 48px; margin: 0 auto 20px;
    border: 4px solid var(--border); border-top-color: var(--accent);
    border-radius: 50%; animation: gen-spin 0.8s linear infinite;
}
@keyframes gen-spin { to { transform: rotate(360deg); } }
.gen-progress__label { font-weight: 600; margin-bottom: 16px; }
.gen-progress__bar {
    height: 10px; background: var(--bg-tertiary); border-radius: var(--radius-pill);
    overflow: hidden; max-width: 420px; margin: 0 auto;
}
.gen-progress__fill {
    height: 100%; width: 0; background: var(--accent-grad);
    transition: width .3s ease; border-radius: var(--radius-pill);
}
.gen-progress__pct { margin-top: 10px; font-size: 14px; color: var(--text-secondary); font-family: var(--font-mono); }

@media (max-width: 860px) {
    .gen-form__row { grid-template-columns: 1fr; }
}

/* =====================================================================
 * スライドエディタ（slide-edit）
 * ===================================================================== */
.edit-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.edit-head__actions { display: flex; align-items: center; gap: 10px; }

.edit-form { display: flex; flex-direction: column; gap: 16px; }
.edit-deck-title {
    width: 100%; font-size: 24px; font-weight: 800; padding: 12px 14px;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    background: var(--bg-primary); color: var(--text-primary);
}
.edit-deck-title:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.slide-block {
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 16px; display: flex; flex-direction: column; gap: 8px;
    border-left: 4px solid var(--accent);
}
.slide-block__head { display: flex; align-items: center; gap: 10px; }
.slide-block__no { font-weight: 700; color: var(--accent); font-size: 14px; flex: 1; }
.slide-block__layout {
    padding: 4px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-secondary); color: var(--text-secondary); font-size: 13px;
}
.slide-block__del {
    border: none; background: transparent; cursor: pointer; font-size: 16px; opacity: .6;
}
.slide-block__del:hover { opacity: 1; }
.slide-block__title, .slide-block__subtitle, .slide-block__body {
    width: 100%; padding: 9px 12px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); background: var(--bg-primary); color: var(--text-primary);
    font-family: inherit; font-size: 14px;
}
.slide-block__title { font-weight: 600; }
.slide-block__title:focus, .slide-block__subtitle:focus, .slide-block__body:focus {
    outline: none; border-color: var(--accent);
}
.slide-block__body { resize: vertical; }

.edit-actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; }

/* エクスポートドロップダウン */
#export-dd { position: relative; }
.dropdown-menu {
    position: absolute; bottom: calc(100% + 6px); right: 0;
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-md);
    min-width: 200px; padding: 6px; z-index: var(--z-dropdown);
    opacity: 0; pointer-events: none; transform: translateY(6px);
    transition: opacity var(--tr-fast), transform var(--tr-fast);
}
#export-dd.is-open .dropdown-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--text-primary); font-size: 14px; }
.dropdown-menu a:hover { background: var(--bg-hover); }
.dropdown-menu a.disabled { opacity: .4; pointer-events: none; }

/* エクスポート進行モーダル */
.exp-modal {
    position: fixed; inset: 0; background: var(--bg-overlay);
    display: flex; align-items: center; justify-content: center; z-index: var(--z-modal); padding: 24px;
}
.exp-modal__box {
    background: var(--bg-primary); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: 32px; max-width: 440px; width: 100%; text-align: center;
}
.exp-modal__label { font-weight: 600; margin-bottom: 16px; }
.exp-modal__box #exp-result { margin-top: 16px; }

/* 画像エクスポート用レンダースライド */
.render-slide {
    width: 1280px; height: 720px; background: #fff; color: #1a1a1a;
    font-family: 'IPAexGothic','Yu Gothic','Hiragino Kaku Gothic ProN','Noto Sans JP',Meiryo,sans-serif;
    padding: 64px 80px; box-sizing: border-box; position: relative;
}

@media (max-width: 860px) {
    .edit-actions { flex-direction: column; align-items: stretch; }
    .dropdown-menu { left: 0; right: 0; }
}

/* メール未確認バナー */
.verify-banner {
    background: rgba(237,108,2,.10); border-bottom: 1px solid var(--warning);
    color: var(--warning); text-align: center; padding: 10px 16px; font-size: 14px;
}
.verify-banner a { color: var(--warning); font-weight: 700; text-decoration: underline; }

/* =====================================================================
 * モバイル対応
 * ===================================================================== */
@media (max-width: 860px) {
    .site-nav {
        position: fixed; top: var(--header-height); left: 0; right: 0;
        flex-direction: column; gap: 0;
        background: var(--bg-primary); border-bottom: 1px solid var(--border);
        padding: 8px; box-shadow: var(--shadow-md);
        transform: translateY(-120%); transition: transform var(--tr-base);
        margin-left: 0;
    }
    .site-header.nav-open .site-nav { transform: translateY(0); }
    .site-nav__link { padding: 14px; }
    .site-nav-toggle { display: inline-flex; }
    .site-logo__text { font-size: 14px; }
    .feature-grid { grid-template-columns: 1fr; }
    .site-header__actions .btn { display: none; }
    .site-header.nav-open .site-nav .btn { display: inline-flex; }

    /* ① 言語スイッチャーはモバイルでは非表示（後でユーザー設定画面に移設予定）*/
    .lang-switch { display: none; }

    /* ② ヒーローのフォームは縦積み・ボタン全幅（横はみ出し防止）*/
    .hero__form { flex-direction: column; }
    .hero__input { width: 100%; }
    .hero__form .btn { width: 100%; }

    /* 料金カードも縦積み */
    .pricing-grid { grid-template-columns: 1fr; }

    /* 会員エリアのグリッドを縮約 */
    .dash-stats { grid-template-columns: 1fr; }
    .slide-cards { grid-template-columns: 1fr; }
    .slide-preview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) and (min-width: 861px) {
    .slide-cards { grid-template-columns: repeat(2, 1fr); }
}
