/* ============================================================
   reluna.css — Re:Luna LP 専用スタイル
   (iPhoneモックアップ含む — 実スクリーンショット完成後は
    .phone を <img> に差し替えるだけでOK)
   ============================================================ */

/* ---------- Hero ---------- */

.rn-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 130px;
    padding-bottom: 60px;
}

.rn-hero .container {
    display: grid;
    /* .rn-hero が display:flex のため、この .container は幅が
       shrink-to-fit になる。H1を短くすると他セクション(1120px)より
       内側に寄って左端がズレるので明示的に伸ばす */
    width: 100%;
    /* H1 1行目「寝る前のスマホがやめられない」を (17字) を1行に収めるため
       コピー側を広げる。1.15fr時のコピー幅588.8pxでは38pxが入らない
       (実測 17字 = font-size x 17.34 = 659px)。0.65fr側でも
       .phone (300px固定) は余裕をもって収まる (列幅332.8px) */
    grid-template-columns: 1.35fr 0.65fr;
    align-items: center;
    gap: 48px;
}

@media (max-width: 900px) {
    .rn-hero .container {
        grid-template-columns: 1fr;
        gap: 64px;
        text-align: center;
    }
    .rn-hero .eyebrow {
        justify-content: center;
    }
    .rn-hero .cta-row {
        justify-content: center;
    }
    .rn-hero .hero-note {
        text-align: center;
    }
}

.rn-hero h1 {
    /* PC(1168px以上)の確定改行は「…」を / 仕組みで…」の2行。1行目17字の実測幅は
       font-size x 17.34 (letter-spacing 0.02em込み)。
       上限38pxは実測659pxでコピー幅658.9px (>=1168px幅) と余白ゼロのため、
       36px (実測624.3px / 余白34.6px) を上限にする。
       3.4vw は 1024px幅でも2行を維持するための値。
       上限52pxのままだと1440pxでも4行に折り返す。
       この基本ルールは721px以上のPC幅にのみ適用される(720px以下は下記の
       専用ルールで上書きするため、ここでの下限29px自体は721px以上の
       表示にしか影響しない = PC側は現状のまま変更なし)。 */
    font-size: clamp(29px, 3.4vw, 36px);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.02em;
    margin-bottom: 26px;
}

/* SP(720px以下)のH1はPCと同じ2行構成
   (1行目「「寝る前のスマホがやめられない」を」17字 / 2行目「仕組みで止めるロックアプリ」13字)。
   折り返しの上限は長いほうの1行目が決めるため、17字が収まるfont-sizeを固定値で指定する。
   あわせて .rn-hero の .container 左右paddingを24px→16pxに詰めて内側幅を稼ぐ
   (他セクションの .container には影響させない)。
   H1のみ左揃え。サブコピー・.cta-row・.hero-note は900px以下の中央揃え
   (上のメディアクエリで設定済み)をそのまま継承させる。
   PC(721px以上)はこのメディアクエリの対象外のため無変更。 */
@media (max-width: 720px) {
    .rn-hero h1 {
        font-size: 20px;
        text-align: left;
    }
    .rn-hero .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* 上の20pxが成立するのは幅380px以上まで。それ未満は1行目(17字)が折り返すため段階的に下げる。
   1行目が1行に収まる上限 font-size は 内側幅(= 幅 - 32px) / 17.34 で決まる
   (17.34 = 17字ぶんの字送り / letter-spacing 0.02em込み。headless Chromeでの実測値)。
   実測した上限: 430px=22.96 / 390px=20.65 / 375px=19.79 / 360px=18.92 / 320px=16.61。
   各ブレークポイントは「そのfont-sizeが成立する下限幅 = font-size x 17.34 + 32」から決めており、
   幅310px〜720pxのあいだで隙間なく2行を維持する。 */
@media (max-width: 379px) {
    /* 19px は幅362px以上で成立 (375px端末をカバー) */
    .rn-hero h1 {
        font-size: 19px;
    }
}

@media (max-width: 361px) {
    /* 18px は幅345px以上で成立 (360px端末をカバー) */
    .rn-hero h1 {
        font-size: 18px;
    }
}

@media (max-width: 344px) {
    /* 16px は幅310px以上で成立 (320px端末をカバー) */
    .rn-hero h1 {
        font-size: 16px;
    }
}

.rn-hero .lead {
    font-size: clamp(15px, 1.8vw, 17.5px);
    color: var(--text-sub);
    max-width: 520px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .rn-hero .lead {
        margin-left: auto;
        margin-right: auto;
    }
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.hero-note {
    font-size: 12px;
    color: var(--text-sub);
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
}

/* ---------- iPhone モックアップ ---------- */

.phone-wrap {
    display: flex;
    justify-content: center;
    perspective: 1200px;
    min-width: 0;
}

.phone {
    width: 300px;
    max-width: 100%;
    min-width: 0;
    border-radius: 46px;
    padding: 12px;
    background: linear-gradient(160deg, #2A3444, #0D1420 40%, #05080E);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.65),
        0 0 80px rgba(28, 229, 255, 0.10),
        inset 0 0 2px rgba(255, 255, 255, 0.25);
    transform: rotateY(-8deg) rotateX(3deg);
    animation: phone-float 7s ease-in-out infinite;
}

@keyframes phone-float {
    0%, 100% { transform: rotateY(-8deg) rotateX(3deg) translateY(0); }
    50% { transform: rotateY(-8deg) rotateX(3deg) translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
    .phone { animation: none; }
}

.phone-screen {
    position: relative;
    border-radius: 36px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 90% 40% at 50% -5%, rgba(28, 229, 255, 0.12), transparent 65%),
        #070C16;
    padding: 14px 20px 28px;
    min-height: 560px;
    display: flex;
    flex-direction: column;
}

/* Dynamic Island */
.phone-screen::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 26px;
    border-radius: 20px;
    background: #01030A;
    z-index: 5;
}

.ps-status {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-sub);
    padding: 4px 6px 0;
    margin-bottom: 40px;
}

/* 実アプリアイコン (ios/FocusFlow/Images.xcassets/AppIcon から複製) */
.ps-moon {
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    object-fit: cover;
    margin: 0 auto 22px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), 0 0 22px rgba(255, 210, 122, 0.22);
}

.ps-label {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.42em;
    color: var(--primary);
    margin-bottom: 14px;
}

.ps-timer {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 44px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text);
    text-shadow: 0 0 28px rgba(28, 229, 255, 0.55);
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}

.ps-sub {
    text-align: center;
    font-size: 11.5px;
    color: var(--text-faint);
    margin-bottom: 26px;
}

.ps-progress {
    height: 5px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
    margin: 0 8px 30px;
}

.ps-progress i {
    display: block;
    height: 100%;
    width: 72%;
    border-radius: 5px;
    background: linear-gradient(90deg, #1CE5FF, #4BFFB4);
    box-shadow: 0 0 12px rgba(28, 229, 255, 0.6);
}

.ps-apps {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 12px;
}

.ps-app {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    position: relative;
}

.ps-app::after {
    content: "🔒";
    position: absolute;
    bottom: -6px;
    right: -6px;
    font-size: 12px;
    filter: grayscale(0.2) drop-shadow(0 0 6px rgba(28, 229, 255, 0.5));
}

.ps-app .glyph {
    opacity: 0.35;
    filter: grayscale(1);
}

.ps-caption {
    text-align: center;
    font-size: 10px;
    color: var(--text-faint);
    letter-spacing: 0.08em;
    margin-bottom: auto;
}

.ps-shield-note {
    margin-top: 28px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(28, 229, 255, 0.22);
    background: rgba(28, 229, 255, 0.05);
    font-size: 10.5px;
    line-height: 1.6;
    color: var(--text-sub);
    text-align: center;
}

.ps-shield-note b {
    color: var(--primary);
    font-weight: 700;
}

/* ---------- 課題セクション ---------- */

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 56px;
}

.pain-grid .card {
    border-color: rgba(255, 75, 107, 0.16);
}

.pain-grid .card:hover {
    border-color: rgba(255, 75, 107, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 32px rgba(255, 75, 107, 0.07);
}

.pain-grid .icon {
    font-size: 26px;
    margin-bottom: 18px;
    display: block;
}

.pain-grid h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.pain-grid p {
    font-size: 14px;
    color: var(--text-sub);
}

/* ---------- ソリューション (3本柱) ---------- */

.solution {
    background:
        radial-gradient(ellipse 70% 60% at 50% 40%, rgba(28, 229, 255, 0.05), transparent 70%);
}

.pillar-list {
    margin-top: 64px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pillar {
    padding: 36px;
}

.pillar h3 {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* 狭い画面ではカード内の見出し幅が253px程度しかなく、
   21pxだとカタカナ語が途中で割れるため少し詰める
   (320px級では .no-break の語句がはみ出さないようさらに1段下げる) */
@media (max-width: 420px) {
    .pillar h3 {
        font-size: 19px;
    }
}

@media (max-width: 360px) {
    .pillar h3 {
        font-size: 17px;
    }
}

.pillar p {
    color: var(--text-sub);
    font-size: 14.5px;
    max-width: 720px;
}

.pillar .tech {
    display: inline-block;
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--primary);
    border: 1px solid rgba(28, 229, 255, 0.25);
    border-radius: 6px;
    padding: 4px 10px;
}

/* ---------- 機能グリッド ---------- */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 24px;
    margin-top: 56px;
}

.feature-card .ficon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
    background: rgba(28, 229, 255, 0.08);
    border: 1px solid rgba(28, 229, 255, 0.2);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-sub);
}

.feature-card .plan-req {
    display: inline-block;
    margin-top: 16px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    color: var(--text-faint);
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card .more {
    margin-top: auto;
    padding-top: 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.04em;
}

.pillar-more {
    display: inline-block;
    margin-top: 14px;
    margin-left: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    transition: text-shadow 0.2s ease;
}

.pillar-more:hover {
    text-shadow: var(--glow-cyan);
}

/* ---------- 使い方 3ステップ ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 64px;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 40px 30px 34px;
}

.step::before {
    counter-increment: step;
    content: "0" counter(step);
    position: absolute;
    top: -18px;
    left: 26px;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #041018;
    background: linear-gradient(120deg, #1CE5FF, #4BFFB4);
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: var(--glow-cyan);
}

.step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step p {
    font-size: 14px;
    color: var(--text-sub);
}

/* ---------- スクリーン紹介 (ミニモックアップ×3) ---------- */

.screens-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.screen-item {
    text-align: center;
}

.mini-phone {
    width: 100%;
    max-width: 230px;
    margin: 0 auto 20px;
    border-radius: 32px;
    padding: 9px;
    background: linear-gradient(160deg, #232C3B, #0B1220 45%, #05080E);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), inset 0 0 2px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screen-item:hover .mini-phone {
    transform: translateY(-8px);
    box-shadow: 0 32px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(28, 229, 255, 0.12);
}

.mini-screen {
    border-radius: 25px;
    background: #070C16;
    min-height: 380px;
    padding: 26px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    position: relative;
    text-align: left;
}

.mini-screen .ms-title {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.3em;
    color: var(--primary);
    text-align: center;
    margin-bottom: 4px;
}

.ms-block {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.035);
    padding: 12px 14px;
}

.ms-block .bk-label {
    font-size: 9px;
    color: var(--text-faint);
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.ms-block .bk-value {
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.ms-block .bk-value .u {
    font-size: 10px;
    color: var(--text-faint);
    font-weight: 400;
}

.ms-block.hl {
    border-color: rgba(28, 229, 255, 0.3);
    background: rgba(28, 229, 255, 0.06);
}

.ms-block.hl .bk-value {
    color: var(--primary);
    text-shadow: 0 0 14px rgba(28, 229, 255, 0.5);
}

.ms-block.danger {
    border-color: rgba(255, 75, 107, 0.35);
    background: rgba(255, 75, 107, 0.07);
}

.ms-block.danger .bk-value {
    color: var(--danger);
}

.ms-ring {
    width: 110px;
    height: 110px;
    margin: 10px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(closest-side, #070C16 82%, transparent 83% 100%),
        conic-gradient(#1CE5FF 0deg 250deg, rgba(255, 255, 255, 0.08) 250deg 360deg);
    filter: drop-shadow(0 0 14px rgba(28, 229, 255, 0.35));
}

.ms-ring span {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
}

.ms-check {
    display: flex;
    align-items: center;
    gap: 10px;
    /* 11pxだと13文字以上のラベルがカタカナ途中で折り返すため10pxに */
    font-size: 10px;
    color: var(--text-sub);
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.ms-check::before {
    content: "✓";
    color: var(--success);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(75, 255, 180, 0.6);
}

.ms-check.off::before {
    content: "○";
    color: var(--text-faint);
    text-shadow: none;
}

.screen-item h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.screen-item p {
    font-size: 13px;
    color: var(--text-sub);
}

/* ---------- 料金 ---------- */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 24px;
    margin-top: 64px;
    align-items: stretch;
}

.price-card {
    display: flex;
    flex-direction: column;
    padding: 40px 32px;
    position: relative;
}

.price-card.hot {
    border-color: rgba(28, 229, 255, 0.45);
    background:
        radial-gradient(ellipse 80% 40% at 50% 0%, rgba(28, 229, 255, 0.10), transparent 70%),
        var(--panel);
    box-shadow: 0 0 48px rgba(28, 229, 255, 0.10);
}

.price-card .badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    padding: 6px 18px;
    border-radius: 999px;
    background: linear-gradient(120deg, #1CE5FF, #4BFFB4);
    color: #041018;
    box-shadow: var(--glow-cyan);
    white-space: nowrap;
}

.price-card.oni {
    border-color: rgba(255, 75, 107, 0.35);
}

.price-card.oni .badge {
    background: linear-gradient(120deg, #FF4B6B, #FFB74B);
    box-shadow: 0 0 24px rgba(255, 75, 107, 0.4);
}

.price-card .plan-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.price-card.oni .plan-name {
    color: var(--danger);
}

.price-card .plan-copy {
    font-size: 12.5px;
    color: var(--text-faint);
    margin-bottom: 24px;
}

.price-card .price {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.price-card .price .unit {
    font-size: 15px;
    color: var(--text-sub);
    font-weight: 400;
}

.price-card .price-note {
    font-size: 11px;
    color: var(--text-faint);
    margin-bottom: 28px;
    font-family: var(--font-mono);
}

.price-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13.5px;
    color: var(--text-sub);
    margin-bottom: 32px;
    flex: 1;
}

.price-card li {
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.price-card li::before {
    content: "✓";
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

.price-card li.na {
    color: var(--text-faint);
}

.price-card li.na::before {
    content: "—";
    color: var(--text-faint);
}

.price-card li.oni-rule::before {
    content: "⛩";
    color: var(--danger);
}

.pricing-fineprint {
    margin-top: 28px;
    text-align: center;
    font-size: 11.5px;
    /* 景表法の打消し表示。可読性確保のため text-faint より濃い text-sub を使う */
    color: var(--text-sub);
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}

/* ---------- FAQ ---------- */

.faq-list {
    margin-top: 56px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-sm);
    background: var(--panel);
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.faq-item[open] {
    border-color: rgba(28, 229, 255, 0.4);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 24px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

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

.faq-item summary::after {
    content: "+";
    font-family: var(--font-mono);
    font-size: 20px;
    color: var(--primary);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item .faq-body {
    padding: 0 24px 22px;
    font-size: 14px;
    color: var(--text-sub);
}

/* ---------- 最終CTA ---------- */

.final-cta {
    text-align: center;
    padding: 120px 0 140px;
    background:
        radial-gradient(ellipse 60% 70% at 50% 100%, rgba(28, 229, 255, 0.10), transparent 70%);
}

.final-cta .app-icon-lg {
    display: block;
    width: 84px;
    height: 84px;
    border-radius: 20px;
    object-fit: cover;
    margin: 0 auto 36px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 36px rgba(255, 210, 122, 0.3);
}

.final-cta h2 {
    font-size: clamp(28px, 4.5vw, 46px);
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 20px;
}

.final-cta p {
    color: var(--text-sub);
    margin-bottom: 44px;
    font-size: 15.5px;
}

.final-cta .cta-row {
    justify-content: center;
    margin-bottom: 18px;
}

/* ============================================================
   機能詳細ページ (reluna/features/*.html) 共通スタイル
   ============================================================ */

.feat-hero {
    padding-top: 150px;
    padding-bottom: 48px;
}

.feat-hero .container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 48px;
}

@media (max-width: 900px) {
    .feat-hero .container {
        grid-template-columns: 1fr;
        gap: 56px;
    }
}

.breadcrumb {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--text-sub);
    margin-bottom: 28px;
}

.breadcrumb a {
    color: var(--text-sub);
    white-space: nowrap; /* 「Re: シリーズ」等が階層の途中で割れないように */
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .sep {
    margin: 0 8px;
    color: var(--text-sub);
}

/* 区切り「/」の直後にゼロ幅スペースを入れて改行機会をつくる。
   リンクを nowrap にすると、UAX#14上「/」の直後がラテン文字だと
   改行できずパンくず全体が1行のまま溢れるため */
.breadcrumb .sep::after {
    content: "\200B";
}

.feat-hero h1 {
    font-size: clamp(30px, 4.8vw, 52px);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.02em;
    margin-bottom: 22px;
}

.feat-hero .lead {
    font-size: 16px;
    color: var(--text-sub);
    max-width: 540px;
    margin-bottom: 30px;
}

/* プラン対応バッジ */
.plan-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
}

.plan-pill {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid;
}

.plan-pill.on {
    color: var(--success);
    border-color: rgba(75, 255, 180, 0.4);
    background: rgba(75, 255, 180, 0.06);
}

.plan-pill.oni-on {
    color: var(--danger);
    border-color: rgba(255, 75, 107, 0.45);
    background: rgba(255, 75, 107, 0.06);
}

.plan-pill.off {
    color: var(--text-faint);
    border-style: dashed;
    border-color: rgba(245, 247, 255, 0.16);
    text-decoration: line-through;
}

.plan-pill.partial {
    color: var(--warning);
    border-color: rgba(255, 183, 75, 0.4);
    background: rgba(255, 183, 75, 0.06);
}

/* スペック表 */
.spec-table-wrap {
    margin-top: 56px;
    overflow-x: auto;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    /* 560pxだとセル内で「15秒の待機後に可/能」のように泣き別れるため広げる
       (横スクロール表なのでレイアウトへの副作用はない / legal-table は min-width:0 で打ち消し済み) */
    min-width: 620px;
}

.spec-table th,
.spec-table td {
    padding: 16px 20px;
    border: 1px solid rgba(28, 229, 255, 0.12);
    text-align: left;
    vertical-align: top;
}

.spec-table thead th {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--primary);
    background: rgba(28, 229, 255, 0.05);
    white-space: nowrap;
}

.spec-table tbody th {
    font-weight: 700;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.02);
}

.spec-table td {
    color: var(--text-sub);
    overflow-wrap: anywhere;
}

.spec-table td.na {
    color: var(--text-faint);
}

.spec-table td .oni-mark {
    color: var(--danger);
    font-weight: 700;
}

/* 関連機能 */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.related-card {
    padding: 26px 24px;
    display: block;
}

.related-card .ficon-sm {
    font-size: 24px;
    margin-bottom: 12px;
    display: block;
}

.related-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.related-card p {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 14px;
}

.related-card .more {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary);
}

/* ページ下部CTA (小) */
.feat-cta {
    text-align: center;
    padding: 96px 0 110px;
    background:
        radial-gradient(ellipse 55% 65% at 50% 100%, rgba(28, 229, 255, 0.08), transparent 70%);
}

.feat-cta h2 {
    font-size: clamp(24px, 3.6vw, 36px);
    font-weight: 800;
    line-height: 1.45;
    margin-bottom: 18px;
}

.feat-cta p {
    color: var(--text-sub);
    font-size: 15px;
    margin-bottom: 36px;
}

.feat-cta .cta-row {
    justify-content: center;
}

.feat-cta .hero-note a {
    color: var(--primary);
}

/* ---------- 法務ページ (privacy / tokushoho) の見出し ---------- */

/* 320px級だと28pxでは「プライバシーポリシー」の「ー」だけが
   次行に落ちるため、狭幅時のみ1段下げる */
@media (max-width: 360px) {
    .legal-doc h1.section-title {
        font-size: 24px;
    }
}
