@charset "UTF-8";
/* =============================================================================
   SoloDevX  共通スタイル
   -----------------------------------------------------------------------------
   ビルド不要。このファイルをそのまま読み込みます。
   色や角丸などは下の CSS Variables を変更すれば全体へ反映されます。
   ========================================================================== */

/* -----------------------------------------------------------------------------
   1. デザイントークン
   -------------------------------------------------------------------------- */
:root {
    /* ブランドカラー */
    --color-primary:        #6d5efc;
    --color-primary-dark:   #5a49e8;
    --color-primary-light:  #8b7cff;
    --color-secondary:      #4f8cf7;
    --color-accent:         #22c3a6;

    /* グラデーション */
    --gradient-brand:  linear-gradient(135deg, #7c5cff 0%, #5b7cfa 55%, #4f8cf7 100%);
    --gradient-soft:   linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
    --gradient-hero:   radial-gradient(1200px 520px at 15% -10%, #eef0ff 0%, rgba(238,240,255,0) 70%),
                       radial-gradient(900px 500px at 95% 0%, #eaf1ff 0%, rgba(234,241,255,0) 65%);

    /* 背景 */
    --color-bg:             #ffffff;
    --color-bg-subtle:      #f6f7fb;
    --color-bg-muted:       #f1f3f9;
    --color-bg-dark:        #16181f;

    /* テキスト（濃紺ベース） */
    --color-text:           #1a1d3a;
    --color-text-muted:     #5c6280;
    --color-text-faint:     #8a90ab;
    --color-text-invert:    #ffffff;

    /* 枠線 */
    --color-border:         #e4e7f2;
    --color-border-strong:  #d3d8ea;

    /* 状態色 */
    --color-success:        #14a97c;
    --color-success-bg:     #e8f8f2;
    --color-danger:         #e0475b;
    --color-danger-bg:      #fdeef0;
    --color-warning:        #d98510;
    --color-warning-bg:     #fdf4e5;
    --color-info-bg:        #eef1ff;

    /* 角丸 */
    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  18px;
    --radius-xl:  24px;
    --radius-pill: 999px;

    /* 影 */
    --shadow-xs: 0 1px 2px rgba(26, 29, 58, .06);
    --shadow-sm: 0 2px 8px rgba(26, 29, 58, .06);
    --shadow-md: 0 8px 24px rgba(26, 29, 58, .08);
    --shadow-lg: 0 20px 48px rgba(26, 29, 58, .12);
    --shadow-brand: 0 12px 28px rgba(109, 94, 252, .28);

    /* レイアウト */
    --header-height: 68px;
    --sidebar-width: 248px;
    --container:     1180px;

    /* フォント
       Webフォントは読み込まず、端末標準の日本語フォントを使います。
       （外部CDNに依存させないため。画像生成用のフォントは /assets/fonts/ にあります） */
    --font-sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
                 "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic Medium", "Meiryo",
                 system-ui, sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* -----------------------------------------------------------------------------
   2. リセット / ベース
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 { margin: 0; line-height: 1.4; font-weight: 700; letter-spacing: .01em; }
p  { margin: 0; }
figure, figcaption { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { max-width: 100%; height: auto; display: block; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color .16s ease, opacity .16s ease;
}
a:hover { color: var(--color-primary-dark); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* -----------------------------------------------------------------------------
   3. 汎用ユーティリティ
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.page-narrow { width: 100%; max-width: 720px; margin-inline: auto; padding: 48px 24px; }
.page-wide   { width: 100%; max-width: 1040px; margin-inline: auto; padding: 40px 24px; }

.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--color-text-muted); }
.text-faint   { color: var(--color-text-faint); }
.text-danger  { color: var(--color-danger) !important; }
.text-success { color: var(--color-success); }
.text-sm      { font-size: 14px; }
.text-xs      { font-size: 12.5px; }
.text-nowrap  { white-space: nowrap; }
.text-break   { word-break: break-word; overflow-wrap: anywhere; }
.font-mono    { font-family: var(--font-mono); }

.mt-8  { margin-top: 8px; }  .mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; }
.mb-8  { margin-bottom: 8px; }  .mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stack-8  > * + * { margin-top: 8px; }
.stack-16 > * + * { margin-top: 16px; }
.stack-24 > * + * { margin-top: 24px; }

.divider { height: 1px; background: var(--color-border); border: 0; margin: 24px 0; }

/* -----------------------------------------------------------------------------
   4. ヘッダー
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.site-header-inner {
    max-width: var(--container);
    margin-inline: auto;
    height: var(--header-height);
    padding-inline: 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--color-text); }
.brand:hover { color: var(--color-text); opacity: .82; }
.brand-mark { border-radius: 9px; flex: none; }
.brand-name { font-size: 21px; font-weight: 700; letter-spacing: -.015em; }

/* ロゴ画像（ヘッダー／フッター）
   縦幅を基準に、横は縦横比のまま自動で決まるようにする */
.brand-logo {
    height: 40px;
    width: auto;
    max-width: none;
    display: block;
}
.brand-logo-footer { height: 48px; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
    color: var(--color-text-muted);
    font-size: 14.5px;
    font-weight: 500;
}
.site-nav a:hover { color: var(--color-text); }

.site-header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ユーザーメニュー */
.user-menu { position: relative; }
.user-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.user-menu-trigger:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-xs); }
.user-menu-trigger img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.avatar-fallback {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 14px;
}
.user-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 224px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}
.user-menu-panel[hidden] { display: none; }
.user-menu-panel a {
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 14.5px;
}
.user-menu-panel a:hover { background: var(--color-bg-subtle); }
.user-menu-head {
    padding: 10px 12px 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--color-border);
    display: flex; flex-direction: column;
    line-height: 1.5;
    font-size: 14px;
}

/* ハンバーガー */
.nav-toggle {
    display: none;
    width: 40px; height: 40px;
    padding: 0;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.nav-toggle span { display: block; width: 17px; height: 2px; border-radius: 2px; background: var(--color-text); }

/* -----------------------------------------------------------------------------
   5. ボタン
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    transition: transform .12s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, opacity .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-loading { opacity: .6; cursor: not-allowed; pointer-events: none; }

.btn-primary { background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { color: #fff; box-shadow: 0 14px 32px rgba(109, 94, 252, .36); }

.btn-dark { background: #171a2b; color: #fff; }
.btn-dark:hover { background: #22263c; color: #fff; }

.btn-outline { background: #fff; color: var(--color-text); border-color: var(--color-border-strong); }
.btn-outline:hover { color: var(--color-text); border-color: var(--color-primary); background: #fbfaff; }

.btn-ghost { background: transparent; color: var(--color-text-muted); }
.btn-ghost:hover { color: var(--color-text); background: var(--color-bg-subtle); }

.btn-danger { background: var(--color-danger-bg); color: var(--color-danger); border-color: #f6d3d8; }
.btn-danger:hover { background: #fbe0e4; color: var(--color-danger); }

.btn-sm  { padding: 8px 16px;  font-size: 13.5px; }
.btn-lg  { padding: 16px 32px; font-size: 16.5px; }
.btn-block { width: 100%; }

.btn-x { background: #0f1419; color: #fff; }
.btn-x:hover { background: #272c30; color: #fff; }
.btn-x svg { width: 17px; height: 17px; fill: currentColor; }

/* ボタン内のスピナー */
.btn .spinner {
    width: 15px; height: 15px;
    border: 2px solid rgba(255,255,255,.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    display: none;
}
.btn.is-loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* -----------------------------------------------------------------------------
   6. カード / セクション
   -------------------------------------------------------------------------- */
.card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.card-pad     { padding: 28px; }
.card-pad-sm  { padding: 20px; }
.card-flat    { box-shadow: none; }
.card-subtle  { background: var(--color-bg-subtle); border-color: transparent; box-shadow: none; }

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--color-border);
    flex-wrap: wrap;
}
.card-header h2 { font-size: 17px; }
.card-body { padding: 24px; }

.section { padding: 88px 0; }
.section-subtle { background: var(--color-bg-subtle); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-eyebrow {
    display: block;
    margin-bottom: 14px;
    color: var(--color-primary);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.section-title { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.02em; }
.section-lead  { margin-top: 16px; color: var(--color-text-muted); font-size: 16px; }

/* -----------------------------------------------------------------------------
   7. フラッシュメッセージ
   -------------------------------------------------------------------------- */
.flash-area { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.flash {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 14.5px;
    line-height: 1.7;
    border: 1px solid transparent;
}
.flash-icon {
    flex: none;
    width: 22px; height: 22px;
    display: grid; place-items: center;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-top: 2px;
}
.flash-success { background: var(--color-success-bg); border-color: #c8ecdd; color: #0d6f53; }
.flash-success .flash-icon { background: var(--color-success); }
.flash-error   { background: var(--color-danger-bg);  border-color: #f6d3d8; color: #9d2333; }
.flash-error .flash-icon   { background: var(--color-danger); }
.flash-info    { background: var(--color-info-bg);    border-color: #d9dffb; color: #3a3f7a; }
.flash-info .flash-icon    { background: var(--color-primary); }

/* 公開ページではフラッシュを中央幅に収める */
.public-main > .flash-area { max-width: var(--container); margin-inline: auto; padding: 24px 24px 0; }

/* -----------------------------------------------------------------------------
   8. フォーム
   -------------------------------------------------------------------------- */
.field { display: block; margin-bottom: 20px; }
.field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}
.field-hint { margin-top: 8px; font-size: 13px; color: var(--color-text-muted); line-height: 1.7; }
.field-error { margin-top: 8px; font-size: 13.5px; color: var(--color-danger); font-weight: 600; }

.input, .textarea, .select {
    width: 100%;
    padding: 13px 16px;
    background: #fff;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    font-size: 15.5px;
    line-height: 1.6;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.input:focus, .textarea:focus, .select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(109, 94, 252, .13);
}
.input::placeholder, .textarea::placeholder { color: #a9aec6; }
.input:disabled, .textarea:disabled { background: var(--color-bg-muted); color: var(--color-text-muted); }
.textarea { resize: vertical; min-height: 150px; }
.input-lg { padding: 17px 20px; font-size: 16.5px; border-radius: var(--radius-lg); }

.input-group { display: flex; gap: 12px; }
.input-group .input { flex: 1; min-width: 0; }

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease;
}
.checkbox:hover { border-color: var(--color-border-strong); background: #fcfcff; }
.checkbox input[type="checkbox"] {
    flex: none;
    width: 20px; height: 20px;
    margin: 2px 0 0;
    accent-color: var(--color-primary);
    cursor: pointer;
}
.checkbox.is-checked { border-color: var(--color-primary); background: #f8f7ff; }
.checkbox-body { display: flex; flex-direction: column; gap: 3px; line-height: 1.6; }
.checkbox-title { font-weight: 700; font-size: 15px; }
.checkbox-note  { font-size: 13.5px; color: var(--color-text-muted); }
.checkbox.is-locked { opacity: .62; cursor: not-allowed; background: var(--color-bg-muted); }

.char-count { font-size: 13px; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.char-count.is-over { color: var(--color-danger); font-weight: 700; }

/* -----------------------------------------------------------------------------
   9. バッジ / タグ
   -------------------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.6;
    white-space: nowrap;
}
.badge-success { background: var(--color-success-bg); color: #0d6f53; }
.badge-danger  { background: var(--color-danger-bg);  color: #9d2333; }
.badge-warning { background: var(--color-warning-bg); color: #8a5a08; }
.badge-muted   { background: var(--color-bg-muted);   color: var(--color-text-muted); }
.badge-brand   { background: var(--color-info-bg);    color: var(--color-primary); }
.badge-soon {
    margin-left: auto;
    padding: 1px 8px;
    border-radius: var(--radius-pill);
    background: var(--color-bg-muted);
    color: var(--color-text-faint);
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

/* =============================================================================
   10. トップページ
   ========================================================================== */

/* --- ヒーロー --- */
.hero {
    position: relative;
    padding: 76px 0 96px;
    background: var(--gradient-hero), var(--color-bg-subtle);
    overflow: hidden;
}
.hero-inner {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    gap: 52px;
    align-items: center;
}
.hero-eyebrow {
    display: inline-block;
    margin-bottom: 20px;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    background: #fff;
    border: 1px solid #e2e0fb;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 700;
    box-shadow: var(--shadow-xs);
}
.hero-title {
    font-size: clamp(32px, 5vw, 50px);
    line-height: 1.28;
    letter-spacing: -.03em;
}
.hero-lead { margin-top: 24px; color: var(--color-text-muted); font-size: 16px; line-height: 2; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn-lg { padding: 15px 24px; font-size: 15.5px; }
.icon-play { width: 19px; height: 19px; flex: none; }

/* ヒーロー下の要点（アイコン＋2行） */
.hero-highlights {
    margin-top: 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 30px;
}
.hero-highlight { display: inline-flex; align-items: center; gap: 10px; }
.hero-highlight-icon {
    flex: none;
    width: 34px; height: 34px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: #fff;
    border: 1px solid #e6e4fa;
    color: var(--color-primary);
}
.hero-highlight-icon svg { width: 18px; height: 18px; }
.hero-highlight-body { display: flex; flex-direction: column; line-height: 1.45; }
.hero-highlight-body strong { font-size: 13.5px; }
.hero-highlight-body span   { font-size: 12px; color: var(--color-text-faint); }

/* --- ヒーロー右側：作成画面のイメージ --- */
.hero-visual { position: relative; }

.mock-window {
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    user-select: none;
}
.mock-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border);
    background: #fcfcff;
}
.mock-bar-logo { width: 84px; height: auto; display: block; }
.mock-bar-spacer { flex: 1; }
.mock-chip {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--color-text-faint);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    padding: 3px 9px;
}
.mock-body {
    display: grid;
    grid-template-columns: 34% minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
}
.mock-heading {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 700;
    margin-bottom: 8px;
}
.mock-num {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 8.5px;
    display: grid; place-items: center;
}
.mock-label { font-size: 9.5px; font-weight: 700; color: var(--color-text-muted); margin: 10px 0 6px; }

.mock-app {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}
.mock-app-icon {
    flex: none;
    width: 26px; height: 26px;
    border-radius: 7px;
    background: linear-gradient(140deg, #cfe6c9, #8fc98a);
}
.mock-app-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mock-line {
    display: block;
    height: 5px;
    border-radius: 3px;
    background: var(--color-bg-muted);
}
.mock-line-strong { background: #d6d9e8; width: 78%; }
.mock-line-sm { width: 52%; }

.mock-layouts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.mock-layout {
    padding: 4px 3px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-bg-muted);
    color: #c3c9dc;
}
.mock-layout svg { width: 100%; height: auto; display: block; }
.mock-layout.is-on { border-color: var(--color-primary); background: #efedff; color: var(--color-primary-light); }

.mock-designs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.mock-design {
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    background-size: cover;
    background-position: center;
}
.mock-design.is-on { border-color: var(--color-primary); box-shadow: 0 0 0 2px rgba(109, 94, 252, .18); }

.mock-main { min-width: 0; }
.mock-preview {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}
.mock-generate {
    display: block;
    margin: 8px 0 12px;
    padding: 7px;
    border-radius: var(--radius-pill);
    background: var(--gradient-brand);
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
    text-align: center;
}
.mock-textarea {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 9px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

/* 手前に重なる小さなプレビューカード */
.mock-float {
    position: absolute;
    right: -7%;
    bottom: -10%;
    width: 44%;
    padding: 12px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    user-select: none;
}
.mock-float-title { font-size: 9.5px; font-weight: 700; color: var(--color-text-muted); margin-bottom: 8px; }
.mock-store {
    display: block;
    margin: 9px 0;
    padding: 6px;
    border-radius: var(--radius-pill);
    background: var(--gradient-brand);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    text-align: center;
}
.mock-float-shot { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }

.hero-mascot {
    position: absolute;
    right: -9%;
    bottom: -27%;
    width: 17%;
    filter: drop-shadow(0 10px 22px rgba(26, 29, 58, .16));
    pointer-events: none;
}

/* --- 4ステップ --- */
.steps {
    display: grid;
    /* カード・矢印・カード…と交互に並べる */
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}
.step {
    text-align: center;
    padding: 30px 20px 28px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}
.step-icon {
    width: 62px; height: 62px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}
.step-icon svg { width: 27px; height: 27px; }
.step-icon-blue   { background: #e8eeff; color: #4f6ef7; }
.step-icon-purple { background: #f0ebff; color: #8b5cf6; }
.step-icon-pink   { background: #ffe9f1; color: #ec4899; }
.step-icon-green  { background: #e4f6ec; color: #17a06a; }
.step-title { font-size: 15.5px; margin-bottom: 10px; }
.step-text  { font-size: 12.8px; color: var(--color-text-muted); line-height: 1.85; }
.step-arrow {
    align-self: center;
    color: var(--color-text-faint);
    text-align: center;
    font-size: 18px;
}

/* --- テンプレートとデザイン --- */
.section-tight { padding-top: 0; }

.designer-showcase {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 44px;
    align-items: center;
    padding: 44px;
}
.designer-showcase-title { font-size: clamp(20px, 2.4vw, 25px); line-height: 1.55; letter-spacing: -.02em; }
.designer-showcase-lead {
    margin-top: 14px;
    margin-bottom: 6px;
    color: var(--color-text-muted);
    font-size: 13.5px;
    line-height: 1.9;
}
.designer-showcase-visual img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* 選択済みの見た目だけを見せる、押せない選択肢 */
.static-layout-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.static-design-picker { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.static-option {
    position: relative;
    display: block;
    padding: 7px 6px 8px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #fff;
}
.static-option.is-selected {
    border-color: var(--color-primary);
    background: #f8f7ff;
    box-shadow: 0 0 0 3px rgba(109, 94, 252, .10);
}
.static-option.is-selected .static-option-name { color: var(--color-primary); }
.static-layout-figure {
    display: block;
    padding: 6px 5px;
    margin-bottom: 6px;
    border-radius: 6px;
    background: var(--color-bg-muted);
    color: #c3c9dc;
}
.static-option.is-selected .static-layout-figure { background: #efedff; color: var(--color-primary-light); }
.static-layout-figure svg { width: 100%; height: auto; display: block; }
.static-design-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(26, 29, 58, .08);
}
.static-option-name {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.static-check {
    position: absolute;
    top: -7px; right: -7px;
    width: 19px; height: 19px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    display: grid; place-items: center;
    box-shadow: 0 2px 6px rgba(109, 94, 252, .4);
}

/* --- 生成例 --- */
.examples-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}
.examples-title { font-size: 25px; letter-spacing: -.02em; }
.examples-lead  { margin-top: 8px; color: var(--color-text-muted); font-size: 13.5px; }

.example-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.example-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: transform .2s ease, box-shadow .2s ease;
}
.example-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.example-card img { width: 100%; height: auto; display: block; }
.example-card figcaption {
    padding: 13px 16px;
    font-size: 12.5px;
    color: var(--color-text-muted);
}

/* --- 公式紹介セクション --- */
.pill-badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 5px 13px;
    border-radius: var(--radius-pill);
    background: var(--color-info-bg);
    color: var(--color-primary);
    font-size: 11.5px;
    font-weight: 700;
}
.official-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
    gap: 44px;
    align-items: center;
    padding: 44px;
}
.official-title { font-size: clamp(19px, 2.1vw, 23px); line-height: 1.65; letter-spacing: -.02em; }
.official-lead  { margin-top: 16px; color: var(--color-text-muted); font-size: 13.5px; line-height: 1.95; }

.check-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: var(--color-text-muted);
}
.check-list svg { width: 16px; height: 16px; color: var(--color-primary); flex: none; margin-top: 3px; }

/* 公式アカウントの投稿（実際の埋め込み＋読み込めなかったときの見本） */
.x-embed { min-width: 0; }
.x-embed .twitter-timeline,
.x-embed .twitter-tweet { margin: 0 !important; }
/* 描画される前の状態では、代わりのリンク文字が見えないようにする。
   幅は保ったままなので、ウィジェット側の横幅の判定には影響しない。 */
.x-embed .twitter-timeline:not(.twitter-timeline-rendered),
.x-embed .twitter-tweet:not(.twitter-tweet-rendered) {
    display: block;
    font-size: 0;
    line-height: 0;
    color: transparent;
}
/* 埋め込みが描画できたら、見本の枠は不要になる */
.x-embed.is-embedded {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Xの投稿イメージ（埋め込みが出せないときに表示する見本） */
.x-post {
    padding: 20px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}
.x-post-head { display: flex; align-items: center; gap: 12px; }
.x-post-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--color-info-bg);
    object-fit: cover;
    flex: none;
}
.x-post-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    flex-wrap: wrap;
}
.x-post-sep { color: var(--color-border-strong); font-weight: 400; }
.x-post-verified { width: 16px; height: 16px; color: #1d9bf0; flex: none; }
.x-post-handle { font-size: 13px; color: var(--color-text-faint); margin-top: 1px; }
.x-post-body { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.x-post-body p { font-size: 13.5px; line-height: 1.8; }
.x-post-tags { color: var(--color-secondary); }
.x-post-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}
.x-post-actions {
    margin-top: 14px;
    display: flex;
    gap: 28px;
    font-size: 12.5px;
    color: var(--color-text-faint);
}
.x-post-actions span { display: inline-flex; align-items: center; gap: 7px; }
.x-post-actions svg { width: 16px; height: 16px; }
.x-post-like { color: var(--color-danger); }

/* --- 選ばれる理由 --- */
.reason-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.reason-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}
.reason-icon {
    flex: none;
    width: 46px; height: 46px;
    border-radius: var(--radius-md);
    display: grid; place-items: center;
    background: var(--color-info-bg);
    color: var(--color-primary);
}
.reason-icon svg { width: 23px; height: 23px; }
.reason-body { min-width: 0; }
.reason-body h3 { font-size: 14.5px; margin-bottom: 8px; }
.reason-body p  { font-size: 12.8px; color: var(--color-text-muted); line-height: 1.8; }

/* --- CTA --- */
.cta-band {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding: 32px 44px;
    border-radius: var(--radius-xl);
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: var(--shadow-brand);
}
.cta-mascot { width: 108px; height: auto; flex: none; }
.cta-copy h2 { font-size: clamp(20px, 2.6vw, 27px); letter-spacing: -.02em; }
.cta-copy p  { margin-top: 10px; font-size: 14px; opacity: .93; line-height: 1.8; }
.cta-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.cta-primary {
    background: #fff;
    color: var(--color-primary);
    box-shadow: 0 10px 26px rgba(20, 16, 70, .18);
}
.cta-primary:hover { background: #f4f2ff; color: var(--color-primary-dark); }
.cta-secondary {
    color: #fff;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    opacity: .95;
}
.cta-secondary:hover { color: #fff; opacity: 1; }

/* --- FAQ --- */
.faq-list { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.faq-item summary {
    padding: 20px 24px;
    font-weight: 700;
    font-size: 15.5px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "＋"; color: var(--color-primary); font-size: 17px; flex: none; }
.faq-item[open] summary::after { content: "－"; }
.faq-item .faq-body {
    padding: 0 24px 22px;
    color: var(--color-text-muted);
    font-size: 14.5px;
    line-height: 1.95;
}

/* -----------------------------------------------------------------------------
   11. フッター
   -------------------------------------------------------------------------- */
.site-footer { background: var(--color-bg-subtle); border-top: 1px solid var(--color-border); }
.site-footer-inner {
    max-width: var(--container);
    margin-inline: auto;
    padding: 60px 24px 44px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr);
    gap: 48px;
}
.footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.95; }
.footer-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-nav h3 { font-size: 13px; margin-bottom: 14px; color: var(--color-text); }
.footer-nav a { display: block; padding: 5px 0; font-size: 14px; color: var(--color-text-muted); }
.footer-nav a:hover { color: var(--color-primary); }
.site-footer-bottom {
    max-width: var(--container);
    margin-inline: auto;
    padding: 20px 24px 32px;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--color-text-muted);
}

/* =============================================================================
   12. アプリ画面（ダッシュボード / 管理画面）
   ========================================================================== */
.app-shell {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

/* 管理画面は一覧表が多いので、横幅を制限せず画面いっぱいに使う */
.layout-admin .app-shell {
    max-width: none;
    padding-inline: 28px;
    gap: 28px;
}

.app-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    padding: 28px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sidebar-title {
    padding: 0 14px 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--color-text-faint);
    text-transform: uppercase;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-size: 14.5px;
    font-weight: 600;
    transition: background .16s ease, color .16s ease;
}
.sidebar-link:hover { background: var(--color-bg-subtle); color: var(--color-text); }
.sidebar-link.is-active { background: var(--color-info-bg); color: var(--color-primary); }
.sidebar-link.is-disabled { color: var(--color-text-faint); cursor: default; }
.sidebar-icon { width: 19px; height: 19px; flex: none; }
.sidebar-admin-link { margin-top: 4px; }

.sidebar-callout {
    margin-top: 16px;
    padding: 18px;
    border-radius: var(--radius-md);
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
}
.sidebar-callout strong { display: block; font-size: 14px; margin-bottom: 6px; }
.sidebar-callout p { font-size: 12.8px; color: var(--color-text-muted); line-height: 1.75; margin-bottom: 12px; }

.app-main { padding: 36px 0 80px; min-width: 0; }
.layout-admin .app-main { padding-top: 28px; }

/* 管理画面で「読む」ための幅を持つ要素は、広がりすぎないようにする */
.layout-admin .page-desc,
.layout-admin .field-hint { max-width: 900px; }

.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}
.page-title { font-size: 26px; letter-spacing: -.02em; }
.page-desc  { margin-top: 8px; color: var(--color-text-muted); font-size: 14.5px; }

/* --- 統計カード --- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.stat-card { padding: 22px 24px; }
.stat-label { font-size: 13px; color: var(--color-text-muted); font-weight: 600; }
.stat-value { margin-top: 6px; font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-note  { margin-top: 4px; font-size: 12.5px; color: var(--color-text-faint); }

/* --- リスト --- */
.list-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
}
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: #fbfbfe; }
.list-main { flex: 1; min-width: 0; }
.list-title { font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.list-title a { color: var(--color-text); }
.list-title a:hover { color: var(--color-primary); }
.list-meta { font-size: 13px; color: var(--color-text-muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.list-actions { display: flex; gap: 8px; flex: none; }

.app-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    flex: none;
    object-fit: cover;
    background: var(--color-bg-muted);
    border: 1px solid var(--color-border);
}
.app-icon-sm { width: 38px; height: 38px; border-radius: 9px; }
.app-icon-lg { width: 88px; height: 88px; border-radius: 20px; }

/* --- 空状態 --- */
.empty-state { padding: 64px 24px; text-align: center; }
.empty-state-icon {
    width: 62px; height: 62px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--color-bg-muted);
    color: var(--color-text-faint);
    font-size: 26px;
}
.empty-state h3 { font-size: 17px; margin-bottom: 8px; }
.empty-state p  { color: var(--color-text-muted); font-size: 14.5px; }

/* --- テーブル（管理画面） --- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    /* 既定では折り返す。折り返したくない列にだけ .nowrap を付ける。 */
}
.table th,
.table td {
    padding: 13px 16px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--color-border);
}
.table th {
    background: var(--color-bg-subtle);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--color-text-muted);
    white-space: nowrap;
}
.table tbody tr:hover { background: #fbfbfe; }
.table tbody tr:last-child td { border-bottom: 0; }

/* データが無いときの行 */
.table tbody tr td[colspan] {
    padding: 40px 16px;
    text-align: center;
    color: var(--color-text-muted);
}

/* 列ごとの調整用 */
.table .nowrap { white-space: nowrap; }
.table .num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.table .shrink { width: 1%; white-space: nowrap; }
.table td.wrap { max-width: 380px; }

/* セル内に複数の要素を並べるときの入れ物
   （td へ直接 display:flex を当てると table-cell が壊れるので、内側で組む） */
.cell-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.cell-actions form { margin: 0; }

/* 見出し的なセル（設定画面の項目名など） */
.table .table-label {
    width: 200px;
    white-space: nowrap;
}

/* 一覧の粒度を切り替えるタブ */
.view-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}
.view-tab {
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 700;
    transition: background .16s ease, color .16s ease;
}
.view-tab:hover { background: var(--color-bg-subtle); color: var(--color-text); }
.view-tab.is-active {
    background: var(--color-info-bg);
    color: var(--color-primary);
}
.view-switch-sep {
    width: 1px;
    height: 22px;
    margin: 0 6px;
    background: var(--color-border);
}

/* 一覧の上に置く検索フォームとフィルタ */
.table-search { display: flex; gap: 8px; }
.table-search .input { width: 240px; }
.filter-row { display: flex; gap: 6px; flex-wrap: wrap; }

/* 主役の列（アプリ名など）。補助情報を下に小さく添える */
.cell-main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.cell-main-body { min-width: 0; }
.cell-title {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.5;
}
.cell-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--color-text-faint);
    line-height: 1.6;
}
.cell-meta a { color: var(--color-text-muted); text-decoration: underline; text-underline-offset: 2px; }
.cell-meta a:hover { color: var(--color-primary); }

/* 一覧のセル内の小さなリンク */
.table .text-xs { font-size: 12px; }

/* --- ページネーション --- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 38px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    text-align: center;
    font-size: 14px;
    color: var(--color-text-muted);
    background: #fff;
}
.pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination .is-current { background: var(--color-primary); border-color: var(--color-primary); color: #fff; font-weight: 700; }
.pagination .is-disabled { opacity: .45; }

/* =============================================================================
   13. /create/ （アプリを紹介する）
   ========================================================================== */
.create-hero { max-width: 720px; margin: 0 auto; text-align: center; padding: 40px 0 8px; }
.create-hero h1 { font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -.02em; }
.create-hero p  { margin-top: 14px; color: var(--color-text-muted); }
.create-form { margin-top: 34px; text-align: left; }

.create-steps { display: flex; flex-direction: column; gap: 20px; }
.create-step-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.create-step-no {
    width: 28px; height: 28px;
    flex: none;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
}
.create-step-head h2 { font-size: 17px; }

/* アプリ情報プレビュー */
.app-summary { display: flex; gap: 20px; align-items: flex-start; }
.app-summary-body { min-width: 0; flex: 1; }
.app-summary h3 { font-size: 19px; margin-bottom: 6px; }
.app-summary-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 10px; }


/* テンプレート選択 */
.template-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}
.template-option { position: relative; }
.template-option input { position: absolute; opacity: 0; pointer-events: none; }
.template-option-body {
    display: block;
    padding: 14px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease;
}
.template-option-body:hover { border-color: var(--color-border-strong); }
.template-option input:checked + .template-option-body {
    border-color: var(--color-primary);
    background: #f8f7ff;
}
.template-swatch {
    height: 42px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    border: 1px solid rgba(26,29,58,.08);
}
.template-swatch-light { background: linear-gradient(135deg, #ffffff, #eef1f8); }
.template-swatch-dark  { background: linear-gradient(135deg, #12141c, #1e2740); }
.template-swatch-brand { background: var(--gradient-brand); }
.template-option-name { font-size: 14px; font-weight: 700; }
.template-option-note { font-size: 12.5px; color: var(--color-text-muted); }

/* 生成画像プレビュー */
.preview-image-wrap {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-bg-muted);
    aspect-ratio: 16 / 9;
}
.preview-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview-image-wrap.is-loading::after {
    content: "";
    position: absolute; inset: 0;
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(2px);
}
.preview-image-wrap.is-loading::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 50%; left: 50%;
    width: 30px; height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(109,94,252,.25);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

/* X投稿プレビュー */
.tweet-preview {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 18px;
    background: #fff;
}
.tweet-preview-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tweet-preview-head img { width: 44px; height: 44px; border-radius: 50%; }
.tweet-preview-name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.tweet-preview-handle { font-size: 13.5px; color: var(--color-text-muted); }
.tweet-preview-text {
    font-size: 15px;
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.tweet-preview-media { margin-top: 12px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); }

/* 完了画面 */
.done-hero { text-align: center; padding: 20px 0 32px; }
.done-check {
    width: 74px; height: 74px;
    margin: 0 auto 22px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--color-success-bg);
    color: var(--color-success);
    font-size: 34px;
}
.done-hero h1 { font-size: 28px; letter-spacing: -.02em; }
.result-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--color-border);
}
.result-row:last-child { border-bottom: 0; }
.result-icon { font-size: 19px; flex: none; width: 26px; text-align: center; }
.result-body { flex: 1; min-width: 0; }
.result-title { font-weight: 700; font-size: 15px; }
.result-note  { font-size: 13.5px; color: var(--color-text-muted); margin-top: 2px; }

/* ログイン画面 */
.auth-card { max-width: 460px; margin: 56px auto; }
.auth-head { text-align: center; margin-bottom: 30px; }
.auth-head img { width: auto; height: 60px; margin: 0 auto 18px; }
.auth-head h1 { font-size: 24px; letter-spacing: -.02em; }
.auth-head p  { margin-top: 10px; color: var(--color-text-muted); font-size: 14.5px; }
.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0;
    color: var(--color-text-faint);
    font-size: 12.5px;
}
.auth-divider::before, .auth-divider::after {
    content: ""; flex: 1; height: 1px; background: var(--color-border);
}

/* エラーページ */
.error-page { padding-top: 80px; }
.error-code  { font-size: 54px; font-weight: 700; letter-spacing: -.03em; }
.error-code  { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-title { font-size: 21px; margin: 8px 0 12px; }

/* =============================================================================
   13-b. 登録不要フロー用のパーツ
   ========================================================================== */

/* 公開ページ（/create/ /a/ など）を中央寄せの本文幅にする */
.public-main .app-page { padding: 32px 0 80px; }
.public-main .page-narrow { padding-bottom: 80px; }
.public-main .page-wide   { padding-bottom: 80px; }
.app-public { padding-top: 32px; }

/* このブラウザで最近作ったもの */
.recent-apps { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.recent-app {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px 7px 7px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--color-text);
    font-size: 13.5px;
    font-weight: 600;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.recent-app:hover { color: var(--color-text); border-color: var(--color-primary); box-shadow: var(--shadow-xs); }
.recent-app .app-icon { width: 28px; height: 28px; border-radius: 7px; }

/* リンクの種類の切り替え */
.link-mode-switch { margin-top: 20px; }
.link-mode-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.link-mode-option {
    display: block;
    padding: 14px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    transition: border-color .16s ease, background .16s ease;
}
.link-mode-option:hover { color: var(--color-text); border-color: var(--color-border-strong); }
.link-mode-option.is-active { border-color: var(--color-primary); background: #f8f7ff; }
.link-mode-option strong { display: block; font-size: 14px; margin-bottom: 4px; }
.link-mode-option span { display: block; font-size: 12.5px; color: var(--color-text-muted); line-height: 1.65; }

/* @ 付きの入力欄 */
.input-prefix { display: flex; align-items: stretch; }
.input-prefix > span {
    display: grid;
    place-items: center;
    padding: 0 14px;
    border: 1px solid var(--color-border-strong);
    border-right: 0;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    background: var(--color-bg-muted);
    color: var(--color-text-muted);
    font-weight: 700;
}
.input-prefix .input { border-radius: 0 var(--radius-md) var(--radius-md) 0; }

/* 公式紹介を選んだときに出る追加入力 */
.official-fields {
    padding: 18px;
    border: 1px dashed var(--color-border-strong);
    border-radius: var(--radius-md);
    background: var(--color-bg-subtle);
}
.official-fields[hidden] { display: none; }

/* 手動添付の画像であることを示す枠 */
.tweet-preview-media.is-manual {
    border-style: dashed;
    border-color: var(--color-border-strong);
    opacity: .92;
}

/* 手順リスト（完了画面） */
.step-list { display: flex; flex-direction: column; gap: 22px; }
.step-list li { display: flex; gap: 14px; align-items: flex-start; }
.step-list-no {
    flex: none;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
}
.step-list strong { display: block; font-size: 15px; margin-bottom: 2px; }

/* 管理画面：公式紹介の対応カード */
.official-card-admin.is-done { opacity: .72; }
.official-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 28px;
    align-items: start;
}
/* 投稿文は読みやすい幅で止める（画面いっぱいに伸ばさない） */
.official-admin-grid .tweet-preview { max-width: 620px; }

/* 管理画面：2カラム */
.admin-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

/* 簡易バーグラフ */
.bar {
    height: 8px;
    margin-top: 6px;
    border-radius: var(--radius-pill);
    background: var(--color-bg-muted);
    overflow: hidden;
}
.bar > span {
    display: block;
    height: 100%;
    border-radius: var(--radius-pill);
    background: var(--gradient-brand);
}

/* サイドバーの未対応件数バッジ */
.badge-count {
    margin-left: auto;
    min-width: 22px;
    padding: 1px 7px;
    border-radius: var(--radius-pill);
    background: var(--color-danger);
    color: #fff;
    font-size: 11.5px;
    font-style: normal;
    font-weight: 700;
    text-align: center;
}

/* =============================================================================
   13-c. 画像デザイナー（レイアウト選択 / デザイン選択 / プレビュー）
   ========================================================================== */

/* PCでは 左：設定 / 右：プレビュー の2カラム */
.designer {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.designer-settings { display: flex; flex-direction: column; gap: 26px; }
.setting-group > .field-label { margin-bottom: 12px; }

/* --- 取得したアプリ情報のサムネイル --- */
.shot-thumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.shot-thumbs img {
    height: 92px;
    width: auto;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-muted);
}
.shot-more {
    display: grid;
    place-items: center;
    min-width: 48px;
    height: 92px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--color-bg-muted);
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 700;
}

/* --- レイアウト選択カード --- */
.layout-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.layout-option, .design-option { position: relative; display: block; }
.layout-option input, .design-option input {
    position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.layout-option-body {
    display: block;
    position: relative;
    padding: 12px 12px 14px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #fff;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.layout-option-body:hover { border-color: var(--color-border-strong); }
.layout-option input:checked + .layout-option-body {
    border-color: var(--color-primary);
    background: #f8f7ff;
    box-shadow: 0 0 0 3px rgba(109, 94, 252, .10);
}
.layout-figure {
    display: block;
    padding: 8px 6px;
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-muted);
    color: #b9c0d6;
}
.layout-option input:checked + .layout-option-body .layout-figure {
    background: #efedff;
    color: var(--color-primary-light);
}
.layout-figure svg { width: 100%; height: auto; display: block; }
.layout-option-name { display: block; font-size: 13.5px; font-weight: 700; }
.layout-option-note { display: block; font-size: 11.5px; color: var(--color-text-muted); line-height: 1.5; margin-top: 2px; }

/* --- デザイン選択サムネイル --- */
.design-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.design-option-body {
    display: block;
    position: relative;
    padding: 6px 6px 8px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #fff;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.design-option-body:hover { border-color: var(--color-border-strong); }
.design-option input:checked + .design-option-body {
    border-color: var(--color-primary);
    background: #f8f7ff;
    box-shadow: 0 0 0 3px rgba(109, 94, 252, .10);
}
.design-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(26, 29, 58, .08);
}
.design-option-name {
    display: block;
    margin-top: 7px;
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
}

/* 選択中のチェックマーク */
.option-check {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: none;
    place-items: center;
    box-shadow: 0 2px 6px rgba(109, 94, 252, .4);
}
input:checked + .layout-option-body .option-check,
input:checked + .design-option-body .option-check { display: grid; }

/* --- フォント選択 --- */
.font-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.font-option { position: relative; display: block; }
.font-option input {
    position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.font-option-body {
    display: block;
    position: relative;
    padding: 10px 10px 10px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.font-option-body:hover { border-color: var(--color-border-strong); }
.font-option input:checked + .font-option-body {
    border-color: var(--color-primary);
    background: #f8f7ff;
    box-shadow: 0 0 0 3px rgba(109, 94, 252, .10);
}
.font-sample {
    display: block;
    width: 100%;
    height: auto;
    max-height: 34px;
    object-fit: contain;
    margin-bottom: 4px;
}
.font-auto {
    display: grid;
    place-items: center;
    height: 34px;
    margin-bottom: 4px;
    color: var(--color-text-faint);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .02em;
}
.font-option input:checked + .font-option-body .font-auto { color: var(--color-primary); }
.font-option-name { display: block; font-size: 12.5px; font-weight: 700; }

/* --- 投稿にあたっての確認事項 --- */
.terms-box {
    padding: 20px 22px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-subtle);
}
.terms-title {
    font-size: 14px;
    margin-bottom: 12px;
}
.terms-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}
.terms-list li {
    position: relative;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.75;
    color: var(--color-text-muted);
}
.terms-list li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: var(--color-text-faint);
}
.terms-agree { background: #fff; }
.terms-agree.is-checked { border-color: var(--color-primary); background: #f8f7ff; }

/* --- プレビュー --- */
.designer-preview { display: flex; flex-direction: column; gap: 14px; }
.preview-stage {
    position: relative;
    aspect-ratio: 1200 / 675;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-bg-muted);
    box-shadow: var(--shadow-md);
}
.preview-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}
.preview-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(2px);
    color: var(--color-text-muted);
    font-size: 13.5px;
    font-weight: 600;
}
.preview-loading[hidden] { display: none; }
.preview-spinner {
    width: 30px; height: 30px;
    border: 3px solid rgba(109, 94, 252, .22);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
.preview-zoom {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 6px 14px;
    border: 0;
    border-radius: var(--radius-pill);
    background: rgba(23, 26, 43, .72);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
}
.preview-zoom:hover { background: rgba(23, 26, 43, .88); }

/* --- プレビュー拡大モーダル --- */
.preview-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(12, 14, 26, .82);
}
.preview-modal[hidden] { display: none; }
.preview-modal img {
    width: min(100%, 1400px);
    aspect-ratio: 1200 / 675;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    background: #fff;
}
.preview-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 22px;
    line-height: 1;
}
.preview-modal-close:hover { background: rgba(255, 255, 255, .3); }

/* =============================================================================
   14. レスポンシブ
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 44px; }
    .hero-visual { max-width: 620px; margin-bottom: 56px; }
    .hero-mascot { width: 15%; bottom: -18%; }
    .designer-showcase { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
    .official-layout { grid-template-columns: 1fr; gap: 36px; padding: 32px; }
    .reason-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .app-shell { grid-template-columns: 1fr; gap: 0; }
    .app-sidebar {
        position: fixed;
        z-index: 70;
        top: var(--header-height);
        left: 0;
        bottom: 0;
        width: 272px;
        padding: 20px 16px;
        background: #fff;
        border-right: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform .22s ease;
    }
    .app-sidebar.is-open { transform: translateX(0); }
    .nav-toggle { display: flex; }
    /* 管理画面もサイドバーが引き出しになるので、余白を揃える */
    .layout-admin .app-shell { padding-inline: 20px; }
}

@media (max-width: 860px) {
    :root { --header-height: 62px; }
    .section { padding: 64px 0; }
    .site-header-inner { padding-inline: 18px; gap: 12px; }
    .site-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 18px 18px;
        background: #fff;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        display: none;
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 12px 4px; font-size: 15px; border-bottom: 1px solid var(--color-border); }
    .brand-logo { height: 32px; }
    .brand-logo-footer { height: 42px; }
    .site-nav a:last-child { border-bottom: 0; }
    .hide-sp { display: none !important; }

    .container, .app-shell { padding-inline: 18px; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .step-arrow { display: none; }
    .example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .reason-grid { grid-template-columns: 1fr; }
    .static-design-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cta-band { grid-template-columns: auto minmax(0, 1fr); row-gap: 22px; }
    .cta-actions { grid-column: 1 / -1; }
    .site-footer-inner { grid-template-columns: 1fr; gap: 36px; padding-top: 44px; }
    .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cta-band { padding: 48px 24px; }
    .card-pad { padding: 22px 18px; }
    .card-body { padding: 20px 18px; }
    .card-header { padding: 16px 18px; }
    .list-row { padding: 16px 18px; flex-wrap: wrap; }
    .list-actions { width: 100%; }
    .table-search { width: 100%; }
    .table-search .input { width: auto; flex: 1; min-width: 0; }
    .app-main { padding: 24px 0 64px; }
    .page-title { font-size: 22px; }
    .hero { padding: 48px 0 64px; }
    .hero-visual { margin-bottom: 0; }
    .mock-float { position: static; width: 78%; margin: -10% 0 0 auto; }
    .hero-mascot { display: none; }
    .btn { padding: 12px 20px; }
    .btn-lg { padding: 15px 26px; font-size: 15.5px; }
    .input-group { flex-direction: column; }
    .input-group .btn { width: 100%; }
    .template-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .link-mode-options { grid-template-columns: 1fr; }
    .official-admin-grid { grid-template-columns: 1fr; }
    .admin-two-col { grid-template-columns: 1fr; }
    .public-main .app-page { padding: 20px 0 64px; }

    /* スマホでは 設定 → プレビュー の1カラム */
    .designer { grid-template-columns: 1fr; gap: 22px; }
    .layout-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .design-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .designer-preview { width: 100%; }
    .shot-thumbs img { height: 72px; }
    .shot-more { height: 72px; min-width: 42px; }
    .preview-modal { padding: 14px; }
}

@media (max-width: 480px) {
    .layout-option-body { padding: 10px 10px 12px; }
    .layout-option-note { display: none; }
    .design-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .design-option-name { font-size: 11.5px; }
}

@media (max-width: 480px) {
    body { font-size: 15.5px; }
    .example-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .designer-showcase, .official-layout { padding: 22px 18px; }
    .static-layout-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cta-band { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 32px 22px; }
    .cta-actions { grid-column: auto; align-self: stretch; }
    .footer-nav { grid-template-columns: 1fr; }
    .app-summary { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
}

/* 画面を覆うオーバーレイ（モバイルのサイドバー表示時） */
.sidebar-overlay {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: rgba(26, 29, 58, .35);
    z-index: 65;
    display: none;
}
.sidebar-overlay.is-visible { display: block; }

/* 印刷・アニメーション設定 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}


/* -----------------------------------------------------------------------------
   紹介ページ  ( /a/?id=N )
   -------------------------------------------------------------------------- */

/* 生成した紹介画像を主役として大きく置く */
.app-hero {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg-muted);
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow-md);
}
.app-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.app-detail { padding: 32px; }

/* アイコン・名前 …… App Storeボタン */
.app-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.app-detail-ident {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
    flex: 1 1 320px;
}
.app-detail-ident-body { min-width: 0; }
.app-detail-name {
    font-size: 26px;
    line-height: 1.3;
    letter-spacing: -.02em;
    word-break: break-word;
}
.app-detail-dev { color: var(--color-text-muted); font-size: 14.5px; margin-top: 6px; }
.app-detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.app-detail-cta { flex: 0 0 auto; }
.icon-apple { width: 19px; height: 19px; margin-top: -2px; }

.app-detail-summary {
    font-size: 16.5px;
    line-height: 1.85;
    margin-top: 26px;
}

/* スクリーンショットは薄い面の上に並べる */
.app-shots {
    margin-top: 28px;
    padding: 22px;
    background: var(--color-bg-subtle);
    border-radius: var(--radius-lg);
}
.app-shots-track {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}
.app-shots-track img {
    /* 枚数が少ないときは大きく、多いときは詰めて、はみ出さずに収める */
    flex: 1 1 0;
    min-width: 108px;
    max-width: 180px;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: #fff;
    display: block;
}

/* SoloDevXへの導線 */
.app-promo {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding: 18px 20px;
    background: var(--color-info-bg);
    border-radius: var(--radius-lg);
}
.app-promo-mark {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #fff;
    color: var(--color-primary);
}
.app-promo-mark svg { width: 22px; height: 22px; }
.app-promo-text {
    flex: 1 1 340px;
    min-width: 0;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--color-text-muted);
}
.app-promo-text strong { color: var(--color-text); }
.app-promo-cta { flex: 0 0 auto; padding-inline: 18px; font-size: 14px; }
.icon-chevron { width: 16px; height: 16px; }

@media (max-width: 720px) {
    .app-detail { padding: 22px; }
    .app-detail-head { flex-direction: column; align-items: stretch; gap: 20px; }
    .app-detail-ident { flex: 1 1 auto; }
    .app-detail-cta { width: 100%; }
    .app-detail-name { font-size: 22px; }
    .app-shots { padding: 16px; }
    .app-shots-track { justify-content: flex-start; }
    .app-shots-track img { flex: none; width: 132px; max-width: none; }
    .app-promo { justify-content: center; text-align: center; }
    .app-promo-cta { width: 100%; }
}


/* -----------------------------------------------------------------------------
   利用規約・プライバシーポリシー
   -------------------------------------------------------------------------- */
.legal { padding-bottom: 80px; }

.legal-head { padding-bottom: 28px; margin-bottom: 12px; border-bottom: 1px solid var(--color-border); }
.legal-title { font-size: clamp(24px, 3.2vw, 31px); letter-spacing: -.02em; }
.legal-lead {
    margin-top: 18px;
    color: var(--color-text-muted);
    font-size: 14.5px;
    line-height: 2;
}

.legal-section { margin-top: 40px; }
.legal-section h2 {
    font-size: 17px;
    letter-spacing: -.01em;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--color-bg-muted);
}
.legal-section p { font-size: 14.5px; line-height: 2; color: var(--color-text-muted); }
.legal-section p strong { color: var(--color-text); }

/* 「1.」「2.」と番号を振る条文 */
.legal-ol {
    counter-reset: legal;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}
.legal-ol > li {
    counter-increment: legal;
    position: relative;
    padding-left: 34px;
    font-size: 14.5px;
    line-height: 2;
    color: var(--color-text-muted);
}
.legal-ol > li::before {
    content: counter(legal) ".";
    position: absolute;
    left: 0;
    top: 0;
    width: 26px;
    text-align: right;
    font-weight: 700;
    color: var(--color-primary);
}

/* 条文の中の箇条書き */
.legal-ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}
.legal-ul > li {
    position: relative;
    padding-left: 18px;
    font-size: 14.5px;
    line-height: 1.95;
    color: var(--color-text-muted);
}
.legal-ul > li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 13px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-border-strong);
}
.legal-ol .legal-ul { margin-bottom: 4px; }

.legal-section .table { font-size: 13.5px; }
.legal-section .table td { line-height: 1.9; }

.legal-foot {
    margin-top: 48px;
    padding: 20px 22px;
    border-radius: var(--radius-md);
    background: var(--color-bg-subtle);
    font-size: 13.5px;
    line-height: 2;
    color: var(--color-text-muted);
}
.legal-nav {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    justify-content: center;
    font-size: 14px;
}
.legal-nav span { color: var(--color-border-strong); }

@media (max-width: 480px) {
    .legal-section { margin-top: 32px; }
    .legal-ol > li { padding-left: 26px; }
    .legal-ol > li::before { width: 20px; }
}
