/* ============================================================ */
/* パーツデザインコース 専用ページ — メガロス風レイアウト        */
/* レイアウト=メガロス忠実 / 配色=BLANCOテラコッタ (2026-06-20)   */
/* ============================================================ */

:root {
    --pd-accent: #c56c39;
    --pd-accent-dark: #a8552a;
    --pd-ink: #2c2620;
    --pd-text: #4a4039;
    --pd-muted: #8a7d6f;
    --pd-bg: #ffffff;
    --pd-bg-gray: #f1ede1;
    --pd-bg-gray2: #e9e3d6;
    --pd-ghost: #e7ddcb;
    --pd-marker: rgba(197, 108, 57, 0.20);
    --pd-jp: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
    --pd-en: 'Montserrat', sans-serif;
}

/* ---- base (gothic化, 直角基調) ---- */
.pd-main { font-family: var(--pd-jp); color: var(--pd-text); overflow-x: hidden; }
.pd-main p { font-family: var(--pd-jp); }
.pd-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.pd-main mark {
    background: linear-gradient(transparent 58%, var(--pd-marker) 58%);
    color: inherit;
    padding: 0 2px;
}

/* 中央＋両脇ライン見出し */
.pd-flanked {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    font-family: var(--pd-en);
    font-weight: 700;
    font-size: clamp(24px, 4vw, 40px);
    letter-spacing: 0.06em;
    color: var(--pd-accent);
    text-align: center;
    margin: 0 0 14px;
}
.pd-flanked::before,
.pd-flanked::after {
    content: "";
    width: clamp(28px, 5vw, 60px);
    height: 2px;
    background: var(--pd-accent);
    flex: none;
}
.pd-flanked .jp { font-family: var(--pd-jp); font-weight: 700; }
.pd-sub { text-align: center; font-size: clamp(14px, 2vw, 17px); font-weight: 700; letter-spacing: 0.04em; color: var(--pd-ink); margin: 0 0 44px; }

/* ================= HERO (写真左 / テキスト右) ================= */
.pd-hero {
    display: grid;
    grid-template-columns: 45% 55%;
    align-items: stretch;
    background: var(--pd-bg);
}
.pd-hero__photo { position: relative; min-height: 560px; }
.pd-hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-hero__text {
    position: relative;
    padding: clamp(40px, 6vw, 88px) clamp(28px, 5vw, 72px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.pd-hero__label {
    display: flex; align-items: center; gap: 14px;
    font-size: 15px; font-weight: 700; letter-spacing: 0.1em; color: var(--pd-ink);
    margin: 0 0 22px;
}
.pd-hero__label::before { content: ""; width: 34px; height: 1px; background: var(--pd-ink); }
.pd-hero__method {
    font-family: var(--pd-jp);
    font-size: clamp(22px, 3vw, 30px); font-weight: 700;
    letter-spacing: 0.12em; color: var(--pd-ink); line-height: 1.5; margin: 0 0 40px;
}
.pd-hero__lead {
    font-size: clamp(18px, 2.4vw, 24px); font-weight: 700; letter-spacing: 0.14em;
    color: var(--pd-ink); margin: 0 0 18px;
}
.pd-bigrow { position: relative; margin-bottom: 8px; }
.pd-bigrow .pd-ghost {
    position: absolute; left: -2px; bottom: -6px; z-index: 0;
    font-family: var(--pd-en); font-weight: 900; color: var(--pd-ghost);
    font-size: clamp(34px, 5.4vw, 64px); letter-spacing: 0.02em; line-height: 1; white-space: nowrap;
}
.pd-bigrow .jp {
    position: relative; z-index: 1;
    font-family: var(--pd-jp); font-weight: 900; color: var(--pd-ink);
    font-size: clamp(30px, 4.4vw, 50px); letter-spacing: 0.08em; line-height: 1.1;
}
.pd-bigrow .jp--accent { color: var(--pd-accent); }

/* ================= CONCEPT ================= */
.pd-concept { position: relative; background: var(--pd-bg-gray); padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 8vw, 100px); overflow: hidden; }
.pd-bigghost {
    position: absolute; top: 28px; left: 50%; transform: translateX(-50%);
    font-family: var(--pd-en); font-weight: 800; color: var(--pd-ghost);
    font-size: clamp(56px, 13vw, 170px); letter-spacing: 0.04em; line-height: 1; white-space: nowrap; z-index: 0;
}
.pd-concept__inner { position: relative; z-index: 1; }
.pd-concept__head {
    text-align: center; font-family: var(--pd-jp); font-weight: 700;
    font-size: clamp(20px, 3vw, 30px); letter-spacing: 0.08em; color: var(--pd-accent);
    line-height: 1.6; margin: 0 0 40px;
}
.pd-concept__box {
    border: 1px solid var(--pd-accent); background: rgba(255,255,255,0.35);
    max-width: 880px; margin: 0 auto; padding: clamp(28px, 4vw, 48px);
    text-align: center; font-size: clamp(14px, 1.8vw, 16px); line-height: 2.1; color: var(--pd-text);
}

/* ================= FEATURES (3カラム 写真上+説明) ================= */
.pd-features { background: var(--pd-bg); padding: clamp(56px, 8vw, 96px) 0; }
.pd-features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 36px); }
.pd-feature__img { aspect-ratio: 3 / 4; overflow: hidden; background: var(--pd-bg-gray); }
.pd-feature__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-feature__cap {
    text-align: center; font-family: var(--pd-jp); font-weight: 700;
    font-size: clamp(14px, 1.9vw, 17px); letter-spacing: 0.04em; color: var(--pd-ink);
    line-height: 1.7; margin-top: 22px;
}

/* ================= 5 COURSE intro ================= */
.pd-courseintro { position: relative; background: var(--pd-bg-gray); padding: clamp(64px, 9vw, 110px) 0; overflow: hidden; }
.pd-courseintro__inner { position: relative; z-index: 1; text-align: center; }
.pd-courseintro__lead { font-size: clamp(15px, 2vw, 18px); font-weight: 700; letter-spacing: 0.06em; color: var(--pd-accent); margin: 0 0 6px; }
.pd-courseintro__head {
    font-family: var(--pd-jp); font-weight: 700; color: var(--pd-ink);
    font-size: clamp(20px, 3vw, 30px); letter-spacing: 0.06em; line-height: 1.6; margin: 0 0 28px;
}
.pd-courseintro__head .accent { color: var(--pd-accent); }
.pd-countrow { display: flex; align-items: baseline; justify-content: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.pd-countrow .num { font-family: var(--pd-en); font-weight: 900; font-size: clamp(44px, 7vw, 80px); color: var(--pd-ink); line-height: 1; }
.pd-countrow .word { font-family: var(--pd-en); font-weight: 700; font-size: clamp(22px, 4vw, 40px); letter-spacing: 0.1em; color: var(--pd-ink); }
.pd-brackets { font-family: var(--pd-jp); font-weight: 700; font-size: clamp(13px, 2vw, 18px); letter-spacing: 0.04em; color: var(--pd-ink); }
.pd-brackets span { white-space: nowrap; }

/* ================= per COURSE (テキスト左 / 写真右) ================= */
.pd-courses { background: var(--pd-bg); }
.pd-course {
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
    padding: clamp(48px, 7vw, 84px) 0; scroll-margin-top: 80px;
    max-width: 1080px; margin: 0 auto; padding-left: 24px; padding-right: 24px;
}
.pd-course + .pd-course { border-top: 1px solid var(--pd-bg-gray2); }
.pd-course__no { font-family: var(--pd-en); font-weight: 700; font-size: clamp(18px, 2.6vw, 26px); letter-spacing: 0.16em; color: var(--pd-muted); margin: 0 0 6px; }
.pd-course__en { font-family: var(--pd-en); font-weight: 900; font-size: clamp(30px, 5vw, 56px); letter-spacing: 0.04em; color: var(--pd-ink); line-height: 1.04; margin: 0 0 8px; }
.pd-course__jp { font-family: var(--pd-jp); font-weight: 700; font-size: clamp(16px, 2.2vw, 20px); letter-spacing: 0.1em; color: var(--pd-ink); margin: 0 0 12px; }
.pd-course__tag { display: inline-block; font-family: var(--pd-jp); font-weight: 700; font-size: 12.5px; color: var(--pd-accent); border: 1px solid var(--pd-accent); padding: 3px 14px; margin: 0 0 18px; }
.pd-course__desc { font-family: var(--pd-jp); font-size: clamp(13.5px, 1.7vw, 15px); line-height: 2.1; color: var(--pd-text); margin: 0; }
.pd-course__photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--pd-bg-gray); }
.pd-course__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ================= PROGRAM FLOW (シェブロン箱) ================= */
.pd-flow-sec { background: var(--pd-bg-gray); padding: clamp(64px, 9vw, 110px) 0; }
.pd-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 14px; margin-top: 8px; }
.pd-flow__step { position: relative; background: var(--pd-bg); border: 1px solid var(--pd-bg-gray2); padding: 26px 18px 22px; }
.pd-flow__step:not(:last-child)::after {
    content: ""; position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
    width: 0; height: 0; border-top: 9px solid transparent; border-bottom: 9px solid transparent;
    border-left: 12px solid var(--pd-accent); z-index: 2;
}
.pd-flow__no { position: absolute; top: 12px; right: 14px; font-family: var(--pd-en); font-weight: 900; font-size: 26px; color: var(--pd-ghost); line-height: 1; }
.pd-flow__step h3 { font-family: var(--pd-jp); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; color: var(--pd-ink); margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--pd-bg-gray2); }
.pd-flow__step p { font-family: var(--pd-jp); font-size: 12.5px; line-height: 1.75; color: var(--pd-text); margin: 0; }

/* ================= PRICE ================= */
.pd-price-sec { background: var(--pd-bg); padding: clamp(64px, 9vw, 110px) 0; text-align: center; }
.pd-price__spec { font-family: var(--pd-jp); font-size: clamp(15px, 2.2vw, 20px); font-weight: 700; letter-spacing: 0.1em; color: var(--pd-ink); margin: 24px 0 8px; }
.pd-price__amount { font-family: var(--pd-en); font-weight: 900; font-size: clamp(40px, 8vw, 72px); color: var(--pd-ink); line-height: 1.05; margin: 0; }
.pd-price__amount small { font-family: var(--pd-jp); font-size: clamp(15px, 2.4vw, 22px); font-weight: 700; }
.pd-price__note { font-family: var(--pd-jp); font-size: 14px; color: var(--pd-text); margin: 10px 0 0; }
.pd-trial { border: 2px solid var(--pd-accent); max-width: 560px; margin: 40px auto 0; }
.pd-trial__label { font-family: var(--pd-jp); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; color: var(--pd-accent); padding: 16px 0 8px; margin: 0; }
.pd-trial__bar { background: var(--pd-accent); color: #fff; font-family: var(--pd-en); font-weight: 700; font-size: clamp(18px, 3vw, 26px); letter-spacing: 0.14em; padding: 10px 0; margin: 0; }
.pd-trial__price { font-family: var(--pd-jp); font-weight: 700; color: var(--pd-accent); padding: 16px 0 18px; margin: 0; font-size: clamp(15px, 2vw, 18px); }
.pd-trial__price strong { font-family: var(--pd-en); font-weight: 900; font-size: clamp(26px, 4vw, 38px); margin: 0 4px; }
.pd-price__cta { margin-top: 44px; }
.pd-price__cta a {
    display: inline-block; font-family: var(--pd-jp); font-weight: 700; font-size: 16px; letter-spacing: 0.06em;
    background: var(--pd-accent); color: #fff; padding: 18px 56px; text-decoration: none; transition: background .25s;
}
.pd-price__cta a:hover { background: var(--pd-accent-dark); color: #fff; }
.pd-back { text-align: center; padding: 0 0 56px; background: var(--pd-bg); }
.pd-back a { font-family: var(--pd-jp); font-size: 14px; color: var(--pd-muted); text-decoration: none; }
.pd-back a:hover { color: var(--pd-accent); }

/* 丸いCTA(右下固定) — メガロス風 */
.pd-fab {
    position: fixed; right: 22px; bottom: 22px; z-index: 50;
    width: 96px; height: 96px; border-radius: 50%; background: var(--pd-accent); color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,0.18); text-align: center; line-height: 1.3;
}
.pd-fab b { font-family: var(--pd-jp); font-weight: 700; font-size: 15px; }
.pd-fab span { font-family: var(--pd-jp); font-size: 11px; }

/* ================= responsive ================= */
@media (max-width: 820px) {
    .pd-hero { grid-template-columns: 1fr; }
    .pd-hero__photo { min-height: 320px; }
    .pd-features__grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
    .pd-course { grid-template-columns: 1fr; gap: 18px; }
    .pd-course__photo { order: -1; }
    .pd-flow { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
    .pd-flow__step:nth-child(2)::after { display: none; }
    .pd-flow__step::after { display: none; }
    .pd-fab { width: 76px; height: 76px; right: 14px; bottom: 14px; }
    .pd-fab b { font-size: 12px; }
    .pd-fab span { font-size: 9px; }
}

/* ============================================================ */
/* 画像なしモード(一時) — モデル画像生成までの暫定。                */
/* 画像が揃ったら、このブロックを削除すれば写真レイアウトに戻る。   */
/* ============================================================ */
/* Hero: 編集的な画像ヒーロー(モデル画像)＋CTA */
.pd-hero__photo img { object-position: center 28%; }
.pd-hero__text { padding-block: clamp(48px, 7vw, 96px); }
.pd-hero__cta { margin-top: 34px; }
.pd-hero__btn {
    display: inline-block; font-family: var(--pd-jp); font-weight: 700; font-size: 16px; letter-spacing: 0.06em;
    background: var(--pd-accent); color: #fff; padding: 17px 46px; text-decoration: none;
    box-shadow: 0 6px 18px rgba(197,108,57,0.28); transition: background .25s, transform .25s, box-shadow .25s;
}
.pd-hero__btn:hover { background: var(--pd-accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(197,108,57,0.34); }
.pd-hero__cta-note { font-family: var(--pd-jp); font-size: 13px; color: var(--pd-muted); margin: 16px 0 0; letter-spacing: 0.02em; line-height: 1.8; }

/* Features: 写真を消してテキストカード化 */
.pd-feature__img { display: none; }
.pd-feature {
    background: var(--pd-bg);
    border: 1px solid var(--pd-bg-gray2);
    border-top: 3px solid var(--pd-accent);
    padding: 30px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}
.pd-feature__cap { margin-top: 0; }

/* Courses: 写真を消して全幅テキスト(中央寄せの読み物に) */
.pd-course { grid-template-columns: 1fr; gap: 0; max-width: 760px; }
.pd-course__photo { display: none; }

