/* ===================================
   Reset & Base Styles
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-black:    #111111;
    --color-white:    #ffffff;
    --color-bg-sub:   #f7f7f7;
    --color-border:   #e8e8e8;
    --color-text:     #111111;
    --color-muted:    #888888;
    --color-light:    #bbbbbb;

    --font-jp:  'Noto Sans JP', sans-serif;
    --font-en:  'Inter', sans-serif;

    --max-width: 1080px;
    --gutter:    clamp(1rem, 4vw, 2.5rem);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;

    --shadow-card: 0 2px 12px rgba(0,0,0,.07);
    --shadow-lift: 0 8px 28px rgba(0,0,0,.12);
    --transition:  all 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-jp);
    font-size: 15px;
    line-height: 1.75;
    color: var(--color-text);
    background: #F7F7F7;
    -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4 { font-weight: 400; line-height: 1.4; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

/* ===================================
   Layout helpers
   =================================== */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.pc-only { display: inline; }
.sp-only { display: none;   }

@media (max-width: 768px) {
    .pc-only { display: none;   }
    .sp-only { display: inline; }
}

/* ===================================
   Shared Header (all pages)
   =================================== */

.hdr { position: relative; background: #F7F7F7; }
.hdr__inner {
    display: flex; align-items: center;
    justify-content: space-between;
    min-height: 70px;
    padding: 14px var(--gutter);
    background: #f9f3f0;
}
.hdr__logo {
    display: flex; align-items: center;
}
.hdr__logo img {
    height: 1.1rem;
    width: auto;
    display: block;
}

/* burger button — fixed */
.hdr__burger {
    position: fixed; top: 14px; right: var(--gutter); z-index: 100;
    width: 42px; height: 42px;
    background: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 5px; padding: 0;
}
.hdr__burger span {
    display: block;
    width: 18px; height: 1px;
    background: var(--color-black);
    border-radius: 1px;
    transition: transform .25s;
}
.hdr__burger.open span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.hdr__burger.open span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* nav drawer — fixed, below burger */
.hdr__nav {
    position: fixed; top: 70px; left: 0; right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
    display: flex; flex-direction: column; gap: .75rem;
    opacity: 0; transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .25s, transform .25s;
    z-index: 99;
}
.hdr__nav.open { opacity: 1; transform: none; pointer-events: auto; border-radius: 9px; margin: 1rem; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.hdr__nav a { font-size: 13px; color: #999; letter-spacing: .1em; text-transform: uppercase; padding: .25rem 0; }
.hdr__nav a:hover { color: var(--color-black); }

/* PC: sticky header + inline nav */
@media (min-width: 768px) {
    .hdr {
        position: sticky;
        top: 0;
        z-index: 200;
        background: rgba(247, 247, 247, .96);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-bottom: 1px solid var(--color-border);
    }
    .hdr__inner {
        padding: 14px 44px;
    }
    .hdr__burger { display: none; }
    .hdr__nav,
    .hdr__nav.open {
        position: static;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        background: transparent;
        border: none;
        padding: 0;
        flex-direction: row;
        align-items: center;
        gap: 1.75rem;
        box-shadow: none;
        margin: 0;
        z-index: auto;
        border-radius: 0;
    }
    .hdr__nav a {
        font-size: 12px;
        color: #999;
        padding: 0;
        letter-spacing: .08em;
        text-transform: none;
    }
    .hdr__nav a:hover { color: var(--color-black); }
    .hdr__nav a:last-child {
        background: var(--color-black);
        color: var(--color-white);
        padding: .4rem 1.1rem;
        border-radius: var(--radius-sm);
        letter-spacing: .04em;
        font-size: 12px;
    }
    .hdr__nav a:last-child:hover {
        background: #333;
        color: var(--color-white);
    }
}

.header-login-btn {
    font-size: 13px;
    color: var(--color-muted);
    letter-spacing: .06em;
    transition: color .2s;
}
.header-login-btn:hover { color: var(--color-black); }

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-block;
    padding: .65rem 1.5rem;
    font-size: .875rem;
    font-weight: 500;
    letter-spacing: .04em;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

/* filled black */
.btn--primary {
    background: var(--color-black);
    color:  var(--color-white);
    border-color: var(--color-black);
}
.btn--primary:hover {
    background: #333;
    border-color: #333;
}

/* white + border */
.btn--outline {
    background: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-black);
}
.btn--outline:hover {
    background: var(--color-black);
    color: var(--color-white);
}

/* ===================================
   Section common
   =================================== */

.section__title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    margin-bottom: 2rem;
}

section { padding: 72px 0; }

@media (max-width: 768px) { section { padding: 56px 0; } }

/* ===================================
   ① HERO
   =================================== */

.hero {
    background: var(--color-white);
    padding: 72px 0 80px;
}

.hero__label {
    font-size: .75rem;
    color: var(--color-muted);
    letter-spacing: .1em;
    margin-bottom: 1.25rem;
}

.hero__title {
    font-size: clamp(2.6rem, 7vw, 4.4rem);
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 1.25rem;
    letter-spacing: -.01em;
}

.hero__subtitle {
    font-size: .95rem;
    color: var(--color-muted);
    line-height: 1.9;
    margin-bottom: 2.25rem;
    max-width: 540px;
}

.hero__cta {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .hero { padding: 56px 0 64px; }
    .hero__title { font-size: 2.4rem; }
    .hero__cta { flex-direction: column; }
    .hero__cta .btn { width: 100%; text-align: center; }
}

/* ===================================
   ② POPULAR THEMES
   =================================== */

.themes {
    background: #efe6e0;
    padding: 64px 0;
}

.themes__label {
    font-size: .7rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--color-light);
    margin-bottom: .5rem;
}

.themes__title {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    margin-bottom: 1.75rem;
}

/* cards grid */
.themes__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 680px) {
    .themes__grid { grid-template-columns: 1fr; }
}

/* single card */
.theme-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow .25s, transform .25s;
}
.theme-card:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-3px);
}

/* image area */
.theme-card__image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    overflow: hidden;
}

.theme-card__badge {
    position: absolute; top: 8px; left: 8px; z-index: 2;
    background: var(--color-black);
    color: var(--color-white);
    font-size: .6rem; font-weight: 700;
    letter-spacing: .15em; text-transform: uppercase;
    padding: 3px 7px; border-radius: 3px;
}

/* placeholder artwork gradients */
.theme-card__image {
    width: 100%; height: 100%;
}
.theme-card__image--1 {
    background: linear-gradient(145deg, #d4b896 0%, #9e7552 40%, #c8a87a 70%, #7a5535 100%);
}
.theme-card__image--2 {
    background: linear-gradient(145deg, #adc4d8 0%, #6990b0 40%, #c2d8e8 70%, #4a7898 100%);
}
.theme-card__image--3 {
    background: linear-gradient(145deg, #c4bdb8 0%, #9c9088 40%, #d8d0cc 70%, #7a706a 100%);
}

/* card info */
.theme-card__info { padding: .85rem 1rem; }

.theme-card__meta {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: .45rem;
}

.theme-card__name   { font-size: .875rem; font-weight: 500; }

.theme-card__default {
    font-size: .65rem; color: var(--color-light);
    border: 1px solid var(--color-border);
    padding: 1px 6px; border-radius: 3px;
}

.theme-card__tags { display: flex; gap: .35rem; }

.theme-card__tag {
    font-size: .7rem; color: var(--color-muted);
    background: var(--color-bg-sub);
    padding: 1px 8px; border-radius: 3px;
}

.themes__footer { text-align: center; padding-top: .5rem; }

/* ===================================
   ③ SMART / COMPARISON
   =================================== */

.smart { background: var(--color-white); padding: 72px 0; }

.smart__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

@media (max-width: 840px) {
    .smart__inner { grid-template-columns: 1fr; gap: 2rem; }
}

.smart__eyebrow {
    font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--color-light); margin-bottom: .75rem;
}

.smart__title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    line-height: 1.5; margin-bottom: 1rem;
}

.smart__desc { font-size: .875rem; color: var(--color-muted); line-height: 1.9; }

/* comparison table */
.smart__comparison {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-size: .85rem;
}

.smart__compare-head {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
}

.smart__compare-col {
    padding: .7rem 1rem;
    font-size: .75rem; font-weight: 600;
    letter-spacing: .05em; text-align: center;
    background: var(--color-bg-sub);
    border-bottom: 1px solid var(--color-border);
    color: var(--color-muted);
}
.smart__compare-col--label   { text-align: left; }
.smart__compare-col--sittida { background: var(--color-black); color: var(--color-white); }

.smart__compare-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    border-bottom: 1px solid var(--color-border);
}
.smart__compare-row:last-child { border-bottom: none; }

.smart__compare-label {
    padding: .75rem 1rem;
    color: var(--color-text);
    display: flex; align-items: center;
    font-size: .85rem;
}

.smart__compare-val {
    padding: .75rem .5rem;
    display: flex; align-items: center; justify-content: center;
    font-size: .82rem; font-weight: 500; text-align: center;
}
.smart__compare-val--bad  { color: var(--color-light); }
.smart__compare-val--good { color: var(--color-black); font-weight: 700; background: #f5f5f3; }

/* ===================================
   ④ 3 STEPS
   =================================== */

.steps-pricing-wrap { background: #f6f6f6; }
.steps { padding: 72px 0; }

.steps__title    { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: .4rem; }
.steps__subtitle { font-size: .78rem; color: var(--color-light); letter-spacing: .05em; margin-bottom: 3.5rem; }

/* individual step */
.step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    padding-bottom: 3.5rem;
    margin-bottom: 3.5rem;
    border-bottom: 1px solid var(--color-border);
}
.step:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

/* alternating: even steps swap columns visually */
.step--reverse { direction: rtl; }
.step--reverse .step__content,
.step--reverse .step__visual { direction: ltr; }

@media (max-width: 680px) {
    .step { grid-template-columns: 1fr; gap: 1.75rem; }
    .step--reverse { direction: ltr; }
    .step__visual  { order: -1; }
}

/* step number + asterisk */
.step__number {
    display: flex; align-items: baseline; gap: .3rem;
    font-family: var(--font-en);
    font-size: .72rem; font-weight: 600;
    color: var(--color-light);
    letter-spacing: .2em;
    margin-bottom: .85rem;
}
.step__number::after {
    content: "*";
    font-size: .6rem;
    color: var(--color-light);
}

.step__title {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    margin-bottom: .85rem; line-height: 1.5;
}

.step__text {
    font-size: .875rem; color: var(--color-muted);
    line-height: 1.9; margin-bottom: 1.5rem;
}

.step__visual { display: flex; justify-content: center; }

/* ── mockup window ── */
.mockup-screen {
    width: 100%; max-width: 320px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lift);
}

.mockup-topbar {
    background: var(--color-bg-sub);
    border-bottom: 1px solid var(--color-border);
    padding: 9px 12px;
    display: flex; gap: 5px; align-items: center;
}
.mockup-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--color-border);
    display: inline-block;
}
.mockup-dot:nth-child(1) { background: #ffbdbd; }
.mockup-dot:nth-child(2) { background: #ffd9a0; }
.mockup-dot:nth-child(3) { background: #b8f0c8; }

.mockup-body { padding: 1.1rem; }

/* grid mockup (step 01) */
.mockup-heading { font-size: .8rem; font-weight: 500; margin-bottom: .85rem; }

.mockup-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 5px;
}
.mockup-img { aspect-ratio: 1; border-radius: 4px; }
.mockup-img--a { background: linear-gradient(135deg,#d4b896,#9e7552); }
.mockup-img--b { background: linear-gradient(135deg,#adc4d8,#6990b0); }
.mockup-img--c { background: linear-gradient(135deg,#c4bdb8,#9c9088); }
.mockup-img--d { background: linear-gradient(135deg,#d2c8b4,#a89870); }

/* theme list mockup (step 02) */
.mockup-theme-list { display: flex; flex-direction: column; gap: .5rem; }

.mockup-theme-item {
    display: flex; align-items: center; gap: .65rem;
    padding: .5rem .65rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: .78rem; color: var(--color-muted);
}
.mockup-theme-item--active {
    border-color: var(--color-black);
    color: var(--color-black); font-weight: 500;
}

.mockup-theme-thumb {
    width: 30px; height: 22px;
    border-radius: 3px; flex-shrink: 0;
}
.mockup-theme-thumb--1 { background: linear-gradient(135deg,#d4b896,#9e7552); }
.mockup-theme-thumb--2 { background: linear-gradient(135deg,#adc4d8,#6990b0); }
.mockup-theme-thumb--3 { background: linear-gradient(135deg,#c4bdb8,#9c9088); }

/* form mockup (step 03) */
.mockup-form { display: flex; flex-direction: column; gap: .5rem; }

.mockup-form-label {
    height: 7px; width: 52px;
    background: var(--color-border); border-radius: 3px;
}
.mockup-form-field {
    height: 30px;
    background: var(--color-bg-sub);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}
.mockup-form-upload {
    height: 72px;
    background: var(--color-white);
    border: 1.5px dashed var(--color-border);
    border-radius: var(--radius-sm);
}

/* ===================================
   ⑤ PRICING
   =================================== */

.pricing { padding: 0px 0 64px; }

.pricing .section__title { margin-bottom: 2rem; }

.pricing__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    max-width: 760px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .pricing__cards { grid-template-columns: 1fr; }
}

.pricing__card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    transition: box-shadow .25s;
}
.pricing__card:hover { box-shadow: var(--shadow-lift); }

/* price */
.pricing__price { margin-bottom: .3rem; }
.pricing__amount {
    font-family: var(--font-en);
    font-size: 2.6rem; font-weight: 300;
    color: var(--color-black);
}
.pricing__period {
    font-size: .82rem;
    color: var(--color-light);
    margin-left: 2px;
}

.pricing__name {
    font-size: .95rem; font-weight: 500;
    margin-bottom: .15rem;
}
.pricing__tag {
    font-size: .72rem; color: var(--color-light);
    margin-bottom: 1.1rem;
}

/* button */
.pricing__btn {
    width: 100%;
    padding: .6rem 1rem;
    font-size: .825rem;
    text-align: center;
    margin-bottom: 1.1rem;
}

/* feature list */
.pricing__features { border-top: 1px solid var(--color-border); padding-top: 1rem; }

.pricing__features li {
    display: flex; align-items: flex-start; gap: .5rem;
    font-size: .825rem; color: var(--color-muted);
    padding: .2rem 0;
}
.pricing__features li::before {
    content: "✓";
    font-size: .75rem;
    color: var(--color-light);
    flex-shrink: 0;
    margin-top: .15rem;
}

/* ===================================
   ⑥ STUDENT SUPPORT
   =================================== */

.support { background: var(--color-bg-sub); padding: 64px 0 146px; }

.support__inner {
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
}

.support__label {
    font-size: .68rem; letter-spacing: .2em;
    text-transform: uppercase; color: var(--color-light);
    margin-bottom: .6rem;
}

.support__title {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    margin-bottom: 1.1rem;
}

.support__text {
    font-size: .875rem; color: var(--color-muted);
    line-height: 1.9; margin-bottom: 1.75rem;
}

.support__highlight {
    display: flex; align-items: center; justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: 1.75rem;
}

.support__amount {
    font-family: var(--font-en);
    font-size: 2.4rem; font-weight: 300;
    color: var(--color-black);
}

.support__hlabel {
    font-size: .82rem; color: var(--color-muted);
    line-height: 1.7; text-align: left;
}

/* ===================================
   ⑦ FOOTER
   =================================== */

.footer {
    margin-top: 74px;
    padding: 2rem 0 2rem;
    background: #262626;
}
.footer__copy {
    font-family: var(--font-en);
    font-size: .78rem;
    color: #9E9E9E;
    text-align: center;
    letter-spacing: .03em;
    font-weight: 700;
}
