/* =============================================================
   /plan/monthly — 初期費用0円・月額制開発プラン LP 専用スタイル
   site.css の変数・部品を前提に、このページ固有の部分だけを定義。
   ============================================================= */

/* ---------- 4-1 ファーストビュー（ページ内で最も目立つ要素） -------- */
.pm-hero {
    background: #05060f;
    background-image: radial-gradient(circle at 85% 20%, rgba(124,58,237,.22), transparent 45%);
    color: #fff;
    padding: calc(var(--nav-h) + 40px) 0 72px;
    overflow: hidden;
}
.pm-hero .breadcrumbs { margin-bottom: 28px; }
.pm-hero-title {
    font-family: "Noto Sans JP", var(--font);
    font-weight: 900;
    /* 1行目「受託開発の常識を、」(9文字)が画面幅に収まる最大サイズ */
    font-size: clamp(1.9rem, 9.2vw, 7rem);
    line-height: 1.18;
    letter-spacing: -.02em;
    margin: 0 0 32px;
}
.pm-hero-title > span { display: block; white-space: nowrap; }
.pm-hero-title .pm-l { display: inline; }
.pm-hero-title .pm-accent {
    width: fit-content;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* サブキャッチと料金は同じ大きさ・同じ視野内で表示（0円だけを大きくしない） */
.pm-hero-sub {
    word-break: auto-phrase;
    font-size: clamp(1.15rem, 2.6vw, 1.6rem);
    font-weight: 700;
    line-height: 1.6;
    margin: 0 0 6px;
}
.pm-hero-cond { font-size: clamp(.9rem, 1.6vw, 1rem); opacity: .88; margin: 0 0 14px; }
.pm-hero-price {
    display: flex; flex-wrap: wrap; gap: 10px 28px;
    margin: 0 0 18px;
    padding: 14px 20px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.06);
    width: fit-content; max-width: 100%;
    font-size: clamp(1rem, 2vw, 1.15rem);
}
.pm-hero-price div { display: flex; align-items: baseline; gap: 10px; }
.pm-hero-price dt { font-weight: 600; opacity: .85; white-space: nowrap; }
.pm-hero-price strong { white-space: nowrap; }
.pm-hero-price div { flex-wrap: wrap; column-gap: 10px; row-gap: 0; }
.pm-hero-price dd { margin: 0; }
.pm-hero-price strong { font-size: clamp(1.15rem, 2.6vw, 1.6rem); font-weight: 800; }
.pm-hero-note { font-size: clamp(1rem, 2vw, 1.15rem); opacity: .9; margin: 0 0 32px; }

/* ---------- 4-1b 常識 vs Aispel ------------------------------------ */
.pm-compare { display: grid; gap: 14px; }
.pm-compare-head,
.pm-compare-row { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: stretch; gap: 0; }
.pm-compare-head span { font-weight: 700; font-size: 14px; text-align: center; padding-bottom: 4px; }
.pm-compare-head span:first-child { color: var(--muted); }
.pm-compare-head span:last-child { color: var(--c-purple); }
.pm-old, .pm-new {
    border-radius: var(--radius-sm); padding: 18px 20px; font-weight: 600; line-height: 1.6;
    display: flex; flex-direction: column; justify-content: center;
}
.pm-old { background: var(--bg-alt); color: var(--ink-soft); border: 1px solid var(--line); }
.pm-new { background: #fff; color: var(--ink); border: 1.5px solid rgba(124,58,237,.45); box-shadow: var(--shadow-sm); font-weight: 700; }
.pm-arrow { display: grid; place-items: center; color: var(--c-purple); font-size: 20px; }
.pm-label { display: none; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; margin-bottom: 2px; }
.pm-old .pm-label { color: var(--muted); }
.pm-new .pm-label { color: var(--c-purple); }

/* 見出しの末尾1〜2文字だけが次の行に残らないように */
.page-plan-monthly .sec-title { text-wrap: balance; word-break: auto-phrase; }

/* ---------- 4-3 / 4-3b -------------------------------------------- */
.pm-about li { color: var(--ink); }
.pm-about strong { color: var(--c-purple); }
.pm-why-title { line-height: 1.55; }
.pm-reasons { grid-template-columns: repeat(3, 1fr); }
.pm-reasons .strength { padding: 30px 28px; }
/* 3列時に1行で収まるサイズに。収まらない幅では文節単位で均等に改行（末尾1文字だけの行を防ぐ） */
.pm-reasons h3 { font-size: 1.02rem; text-wrap: balance; word-break: auto-phrase; }
.pm-reason-label { display: block; font-size: 13px; color: var(--c-purple); font-weight: 800; letter-spacing: .04em; margin-bottom: 4px; }

/* ---------- 4-4 できること ------------------------------------------ */
.pm-examples .card { padding: 28px 24px; }
/* PC幅では1行に収め、狭い幅では「・」などの区切りで改行 */
.pm-examples .card h3 { font-size: 1.02rem; word-break: auto-phrase; text-wrap: balance; }
.pm-examples .card p { margin: 0; }

/* ---------- 4-5 料金表 -------------------------------------------- */
.pm-price {
    width: 100%; border-collapse: separate; border-spacing: 0;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.pm-price th, .pm-price td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pm-price thead th { background: var(--navy-900); color: #fff; font-size: 14px; font-weight: 700; }
.pm-price tbody th { font-size: 1.05rem; white-space: nowrap; }
.pm-price tbody tr:last-child th, .pm-price tbody tr:last-child td { border-bottom: 0; }
.pm-price .pm-num { font-weight: 800; font-size: 1.1rem; }
.pm-price .pm-price-val { white-space: nowrap; }
.pm-price td:last-child { white-space: nowrap; }
.pm-notes { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-soft); }
.pm-notes li { padding-left: 1.2em; text-indent: -1.2em; }
.pm-notes li::before { content: "※"; display: inline-block; width: 1.2em; text-indent: 0; }

/* ---------- 4-6 流れ ---------------------------------------------- */
.pm-process { grid-template-columns: repeat(4, 1fr); }
.pm-process .process-step p { font-size: 13.5px; }

/* ---------- 4-8 フォーム ------------------------------------------- */
.pm-hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pm-opt { background: var(--bg-alt); color: var(--muted); font-size: 11px; padding: 2px 8px; border-radius: 4px; margin-left: 8px; font-weight: 700; border: 1px solid var(--line); }
.pm-select { appearance: none; -webkit-appearance: none; padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; }
.pm-fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.pm-fieldset legend { font-weight: 700; font-size: 14.5px; margin-bottom: 8px; padding: 0; }
.pm-radios { display: flex; flex-wrap: wrap; gap: 10px; }
.pm-fieldset .pm-radio { display: inline-flex; margin: 0; font-weight: 600; align-items: center; gap: 8px; cursor: pointer;
    border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 18px; font-size: 15px; background: #fff;
    transition: border-color .2s, background .2s; }
.pm-fieldset .pm-radio:has(input:checked) { border-color: var(--c-purple); background: rgba(124,58,237,.06); }
.pm-radio input { accent-color: var(--c-purple); width: 18px; height: 18px; margin: 0; }
.pm-alert-error { background: #fff1f2; border: 1px solid #fda4af; color: #be123c; border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 24px; font-weight: 600; font-size: 14.5px; }
.page-plan-monthly .grecaptcha-badge { visibility: hidden; }
.pm-recaptcha-note { font-size: 12px; margin-top: 6px; }
.pm-submit[disabled] { opacity: .7; cursor: wait; transform: none; }

/* ---------- スマホ固定CTA：既存（/contact行き）を隠し、ページ内フォーム行きを表示 */
.page-plan-monthly .sticky-cta:not(.pm-sticky) { display: none !important; }
body.pm-form-visible .pm-sticky { transform: translateY(110%) !important; }

/* ---------- Responsive ------------------------------------------- */
@media (max-width: 980px) {
    .pm-reasons { grid-template-columns: 1fr; }
    .pm-process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .pm-hero { padding: calc(var(--nav-h) + 20px) 0 52px; }
    .pm-hero .breadcrumbs { margin-bottom: 20px; }
    /* スマホは3行（受託開発の／常識を、／ぶっ壊す。）にして文字を最大化。5文字が画面幅に収まるサイズ */
    .pm-hero-title { font-size: clamp(2.4rem, 16.4vw, 4.4rem); line-height: 1.14; margin-bottom: 18px; }
    .pm-hero-note { margin-bottom: 20px; }
    .pm-hero-title .pm-l { display: block; }
    .pm-sticky { display: block; }
    .pm-hero-price { flex-direction: column; gap: 4px; width: 100%; padding: 12px 16px; }
    .pm-hero-cta { width: 100%; justify-content: center; }
    .pm-why-title { font-size: 1.32rem; }

    /* 対比：1行ずつ「これまで → Aispel」を上下に */
    .pm-compare { gap: 18px; }
    .pm-compare-head { display: none; }
    .pm-compare-row { grid-template-columns: 1fr; }
    .pm-arrow { height: 30px; transform: rotate(90deg); font-size: 18px; }
    .pm-label { display: block; }
    .pm-old, .pm-new { padding: 14px 16px; }

    .pm-examples { gap: 16px; }

    /* 料金表：行ごとのカード表示 */
    .pm-price, .pm-price tbody, .pm-price tr, .pm-price th, .pm-price td { display: block; width: 100%; }
    .pm-price { background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
    .pm-price thead { display: none; }
    .pm-price tr { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 14px; overflow: hidden; }
    .pm-price tbody th { background: var(--navy-900); color: #fff; padding: 12px 16px; }
    .pm-price td { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; }
    .pm-price td::before { content: attr(data-label); font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
    .pm-price td:not(.pm-num) { font-size: 14.5px; text-align: right; }
    .pm-price td.pm-num { text-align: right; flex-wrap: wrap; row-gap: 2px; }
    .pm-price .pm-price-val { margin-left: auto; }
    .pm-price tbody tr:last-child td { border-bottom: 1px solid var(--line); }
    .pm-price tbody tr td:last-child { border-bottom: 0; }

    .pm-process { grid-template-columns: 1fr; }
    .pm-radios { display: grid; grid-template-columns: 1fr; gap: 8px; }
    .pm-fieldset .pm-radio { border-radius: var(--radius-sm); padding: 12px 16px; }
    .pm-submit { width: 100%; justify-content: center; white-space: normal; }
}
