/* ==========================================================================
   GLOW 世界へ LP — styles.css
   本文は1カラム。見出しは明朝(筆文字のHeroと響かせる)、本文はゴシック。
   規律: word-break:auto-phrase / text-wrap:balance は見出し(h1〜h3)限定
   ========================================================================== */

:root {
    --color-red: #B9502F;          /* 朱(首里城) */
    --color-red-deep: #8E3B22;
    --color-navy: #00335C;
    --color-ink: #14212B;          /* 濃い面(5つの壁) */
    --color-cream: #FFFBF4;        /* 漆喰 */
    --color-sea: #0B6E8A;          /* 沖縄の海(世界の広さ) */
    --color-line-green: #06C755;   /* LINEボタン */

    --color-bg: #FFFFFF;
    --color-text: #2A3238;
    --color-heading: var(--color-navy);
    --color-muted: #66717A;
    --color-border: #E6E1D8;
    --color-surface: #FFFFFF;
    --color-surface-warm: var(--color-cream);
    --color-on-dark: #F4F1EA;

    --font-display: 'Shippori Mincho B1', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
    --font-body: 'BIZ UDPGothic', 'BIZ UDPゴシック', 'Noto Sans JP', 'Meiryo', 'Hiragino Kaku Gothic ProN', sans-serif;

    --wrap: 1080px;
    --gutter: clamp(16px, 4vw, 40px);
    --block-y: clamp(64px, 9vw, 112px);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --color-bg: #10161D;
        --color-text: #DDE2E6;
        --color-heading: #A9CBEA;
        --color-muted: #A2ACB4;
        --color-border: #2A333D;
        --color-surface: #18212A;
        --color-surface-warm: #1C1A16;
        --color-red: #E07A57;
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --color-bg: #10161D;
    --color-text: #DDE2E6;
    --color-heading: #A9CBEA;
    --color-muted: #A2ACB4;
    --color-border: #2A333D;
    --color-surface: #18212A;
    --color-surface-warm: #1C1A16;
    --color-red: #E07A57;
    color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 112.5%; } /* 高齢の方にも読みやすく: 基準18px */
html, body { overflow-x: clip; }

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    font-size: 1rem;
    line-height: 1.9;
    -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--color-red); outline-offset: 3px; }

/* ---------- Step 4: セクション1 Hero「沖縄の力強さ、世界へ」 ---------- */
.hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    aspect-ratio: 1600 / 1466;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: -28px;
    background: url('assets/images/hero-bg-shuri.jpg') center top / cover no-repeat;
    animation: hero-zoom 5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-stage {
    position: absolute;
    inset: 0;
    animation: hero-shake 0.8s linear 2.75s both;
}

.hero-text {
    position: absolute;
    z-index: 1;
    height: auto;
    max-width: none;
}

.hero-text-1 {
    left: 3%;
    top: 1.64%;
    width: 74%;
    animation: brush-reveal 1.3s cubic-bezier(0.3, 0.6, 0.3, 1) 0.4s both;
}

/* 世界へ は大きく・ぼやけた状態から叩きつけるように着地させる */
.hero-text-2 {
    left: 0;
    top: 23.46%;
    width: 112%;
    transform-origin: 45% 55%;
    animation: slam 0.8s cubic-bezier(0.5, 0, 0.75, 0) 2s backwards, settle 0.45s ease-out 2.8s forwards;
}

@keyframes hero-zoom {
    from { transform: scale(1.12); }
    to   { transform: scale(1); }
}

@keyframes brush-reveal {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0 0 0); }
}

@keyframes slam {
    0%   { opacity: 0; transform: scale(2.2); filter: blur(14px); }
    30%  { opacity: 0.9; }
    100% { opacity: 1; transform: scale(0.96); filter: blur(0); }
}

@keyframes settle {
    from { transform: scale(0.96); }
    to   { transform: scale(1); }
}

@keyframes hero-shake {
    0%, 100% { transform: translate(0, 0); }
    8%  { transform: translate(-18px, 14px); }
    20% { transform: translate(16px, -12px); }
    34% { transform: translate(-12px, 9px); }
    50% { transform: translate(9px, -6px); }
    66% { transform: translate(-5px, 4px); }
    82% { transform: translate(2px, -2px); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg, .hero-stage, .hero-text { animation: none; }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 20%;
    background: linear-gradient(180deg, transparent 0%, var(--color-bg) 100%);
    pointer-events: none;
}


/* ---------- 共通 ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 760px; }
.block { padding-block: var(--block-y); }
.pc { display: none; }
.nw { display: inline-block; }
@media (min-width: 768px) { .pc { display: inline; } .sp { display: none; } }

h2, h3 { word-break: auto-phrase; text-wrap: balance; }
h2 {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--color-heading);
    font-size: clamp(1.6rem, 1.2rem + 1.9vw, 2.6rem);
    line-height: 1.45;
    margin-bottom: clamp(28px, 4vw, 48px);
}
h3 { font-size: 1.2rem; line-height: 1.5; color: var(--color-heading); }
.eyebrow {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--color-red);
    margin-bottom: 10px;
}
.foot, .note, .src { font-size: .85rem; color: var(--color-muted); line-height: 1.7; }
.foot { margin-top: 24px; }

.btn-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 14px 32px;
    border-radius: 999px;
    background: var(--color-line-green);
    color: #FFFFFF;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(6, 199, 85, .28);
    transition: transform .2s ease, box-shadow .2s ease;
}
.btn-line:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(6, 199, 85, .32); }
.btn-line.big { font-size: 1.1rem; min-height: 64px; padding-inline: 40px; }
.btn-line[aria-disabled="true"] { background: #8FA39A; box-shadow: none; cursor: default; }
.btn-line[aria-disabled="true"]:hover { transform: none; }

/* ---------- 呼びかけ ---------- */
.intro { text-align: center; padding-block: clamp(24px, 4vw, 48px) var(--block-y); }
.intro-lead {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--color-heading);
    font-size: clamp(1.9rem, 1.3rem + 3vw, 3.4rem);
    line-height: 1.35;
}
.intro-sub { margin: 18px 0 32px; font-size: clamp(1rem, .95rem + .4vw, 1.2rem); }

/* ---------- ❶ GLOWとは ---------- */
.about-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.1fr .9fr; } }
.about-text { display: grid; gap: 16px; font-size: 1.05rem; min-width: 0; }
.rep {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 16px;
    padding: 20px;
    background: var(--color-surface-warm);
    border-radius: 8px;
    min-width: 0;
}
.rep img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.rep figcaption { display: grid; gap: 10px; font-size: 1rem; line-height: 1.8; }
.rep-name { font-weight: 700; color: var(--color-heading); }
.company {
    margin-top: clamp(28px, 4vw, 48px);
    display: grid;
    gap: 0;
    border-top: 1px solid var(--color-border);
    font-size: 1rem;
}
.company div { display: grid; grid-template-columns: 5em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.company dt { color: var(--color-muted); }

/* ---------- ❷ 5つの壁(濃い面) ---------- */
.dark { background: var(--color-ink); color: var(--color-on-dark); }
.dark h2 { color: #FFFFFF; }
.dark .eyebrow { color: #F0A88E; }
.dark .foot { color: #A9B4BC; }
.walls {
    list-style: none;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
@media (min-width: 900px) {
    .walls { grid-template-columns: repeat(6, 1fr); }
    .walls li { grid-column: span 2; }
    .walls li:nth-child(n+4) { grid-column: span 3; }
}
.walls li {
    display: grid;
    align-content: start;
    gap: 6px;
    padding: 22px 20px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
    min-width: 0;
}
.wall-no { font-size: 1.35rem; display: block; margin-bottom: 4px; font-weight: 700; letter-spacing: .12em; color: #F0A88E; }
.walls h3 { color: #FFFFFF; }
.wall-cost { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1.4; color: #FFFFFF; }
.walls li p:last-child { font-size: 1rem; color: #C7CFD5; line-height: 1.8; }

/* ---------- ❸ GLOWなら ---------- */
.solve { display: grid; gap: 12px; }
.solve-row {
    display: grid;
    gap: 6px 20px;
    align-items: center;
    padding: 18px 20px;
    border-radius: 8px;
    background: var(--color-surface-warm);
}
@media (min-width: 768px) { .solve-row { grid-template-columns: 220px 1fr; } }
.from { color: var(--color-muted); text-decoration: line-through; text-decoration-color: var(--color-red); text-decoration-thickness: 2px; font-size: 1rem; }
.to { min-width: 0; }
.to strong { display: block; font-size: 1.15rem; color: var(--color-red); line-height: 1.5; }

/* ---------- ❸-2 売り場のイメージ ---------- */
.booth { background: var(--color-cream); }
.booth-lead { max-width: 760px; margin: 0 0 28px; font-size: 1.05rem; }
.booth-stage { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .booth-stage { grid-template-columns: minmax(0, 1fr) 260px; } }
.bp-device { font-size: .95rem; font-weight: 700; color: var(--color-muted); margin-bottom: 8px; }
.bp-window { background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid var(--color-border); box-shadow: 0 18px 50px rgba(20, 33, 43, .16); line-height: 1.4; }
.bp-top { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #EEE; }
.bp-menu { width: 16px; height: 2px; background: #555; box-shadow: 0 5px 0 #555, 0 -5px 0 #555; }
.bp-search { flex: 1; font-size: .72rem; color: #999; border: 1px solid #DDD; border-radius: 999px; padding: 4px 12px; }
.bp-go { font-size: .72rem; font-weight: 700; color: #fff; background: #FF6A00; border-radius: 999px; padding: 4px 12px; }
.bp-store { display: flex; gap: 14px; align-items: center; padding: 16px; color: #fff; background: linear-gradient(90deg, rgba(0, 31, 56, .94), rgba(0, 51, 92, .78)), url('assets/images/hero-bg-shuri.jpg') center 40% / cover; }
.bp-logo { flex: none; min-width: 96px; padding: 8px 10px; white-space: nowrap; border-radius: 6px; background: var(--color-red); text-align: center; line-height: 1.15; }
.bp-logo b { display: block; font-family: var(--font-display); font-size: .85rem; letter-spacing: .02em; }
.bp-logo small { font-size: .55rem; opacity: .95; }
.bp-store-name { font-weight: 700; font-size: 1.05rem; }
.bp-store-meta { font-size: .7rem; opacity: .85; margin: 2px 0 6px; }
.bp-store-btns { display: flex; gap: 6px; }
.bp-contact { font-size: .68rem; font-weight: 700; background: #FF6A00; padding: 3px 12px; border-radius: 999px; }
.bp-follow { font-size: .68rem; border: 1px solid rgba(255, 255, 255, .7); padding: 2px 12px; border-radius: 999px; }
.bp-tabs { list-style: none; display: flex; gap: 18px; padding: 8px 16px 0; border-bottom: 1px solid #EEE; font-size: .75rem; color: #666; }
.bp-tabs li { padding-bottom: 6px; }
.bp-tabs li.on { color: #FF6A00; font-weight: 700; border-bottom: 2px solid #FF6A00; }
.bp-banner { margin: 14px 16px 0; border-radius: 8px; padding: clamp(18px, 4vw, 36px) 20px; color: #fff; background: linear-gradient(0deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .05)), url('assets/images/hero-bg-shuri.jpg') center 62% / cover; min-height: 150px; display: grid; align-content: end; }
.bp-banner-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.bp-banner-sub { font-size: .8rem; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.bp-featured { padding: 14px 16px 6px; font-weight: 700; font-size: .85rem; color: #333; }
.bp-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 8px 16px 18px; }
@media (max-width: 600px) { .bp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bp-card { position: relative; display: grid; gap: 1px; }
.bp-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: #F1EDE6; }
.bp-en { font-size: .75rem; font-weight: 700; color: #222; margin-top: 4px; }
.bp-jp { font-size: .7rem; color: #777; }
.bp-card.is-yours { outline: 3px dashed var(--color-red); outline-offset: 4px; border-radius: 6px; }
.bp-card.is-yours .bp-jp { color: var(--color-red); font-weight: 700; }
.bp-yours-img { display: grid; place-items: center; text-align: center; font-weight: 800; font-size: .8rem; letter-spacing: .08em; color: var(--color-red); background: repeating-linear-gradient(45deg, #FFF3EC, #FFF3EC 10px, #FFE7DA 10px, #FFE7DA 20px); }
.bp-phone { width: 250px; margin: 0 auto; background: #fff; border: 8px solid #1C1C1E; border-radius: 34px; overflow: hidden; box-shadow: 0 18px 50px rgba(20, 33, 43, .2); padding-bottom: 14px; line-height: 1.4; }
.bp-notch { width: 90px; height: 18px; margin: 0 auto 4px; background: #1C1C1E; border-radius: 0 0 12px 12px; }
.bp-store-sp { padding: 10px; gap: 8px; }
.bp-store-sp .bp-logo { min-width: 0; padding: 6px 7px; }
.bp-store-sp .bp-store-name { font-size: .8rem; }
.bp-banner-sp { margin: 10px; min-height: 90px; padding: 12px; }
.bp-banner-sp .bp-banner-title { font-size: 1.2rem; }
.bp-grid-sp { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px 10px 0; gap: 12px 8px; }
.booth-credit { margin-top: 6px; font-size: .8rem; color: var(--color-muted); }
.booth-credit ul { list-style: none; margin-top: 4px; display: grid; gap: 2px; }
.booth-yours { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--color-red); color: #fff; font-size: .85rem; font-weight: 700; padding: 3px 14px; border-radius: 999px; box-shadow: 0 4px 10px rgba(185, 80, 47, .3); }
.booth-points { list-style: none; counter-reset: bp; display: grid; gap: 14px; margin: 28px 0 12px; }
@media (min-width: 800px) { .booth-points { grid-template-columns: repeat(3, 1fr); } }
.booth-points li { counter-increment: bp; background: #fff; border-radius: 8px; padding: 16px 18px 16px 58px; position: relative; border: 1px solid var(--color-border); }
.booth-points li::before { content: counter(bp); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--color-navy); color: #fff; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.booth-points strong { display: block; font-size: 1.1rem; color: var(--color-heading); }

/* ---------- ❹ 世界の広さ ---------- */
.world { background: linear-gradient(160deg, #0B6E8A 0%, #00335C 100%); color: #FFFFFF; }
.world h2 { color: #FFFFFF; }
.world .eyebrow { color: #9FE3F2; }
.world .foot { color: #C9E3EC; }
.stats { display: grid; gap: 16px; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 24px 22px; border-radius: 8px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 1.8rem + 2.6vw, 3.8rem); line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-num small { font-size: .38em; margin-left: 4px; }
.stat-label { margin-top: 8px; font-size: 1rem; color: #E4F2F7; line-height: 1.7; }

/* ---------- ❺ 事例 ---------- */
.cases { display: grid; gap: 16px; }
@media (min-width: 700px) { .cases { grid-template-columns: repeat(2, 1fr); } }
.case {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 22px 20px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    min-width: 0;
}
.case-tag { font-size: .95rem; font-weight: 700; letter-spacing: .08em; color: var(--color-red); }
.case-num { font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1.2; color: var(--color-heading); }
.case p:not([class]) { font-size: 1rem; line-height: 1.8; }
.pioneer {
    margin-top: 24px;
    padding: 24px;
    border: 2px dashed var(--color-red);
    border-radius: 8px;
    text-align: center;
}
.pioneer-title { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--color-red); }

/* ---------- ❻ 料金と値付け ---------- */
.cream { background: var(--color-surface-warm); }
.fees { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; }
.fee {
    flex: 1 1 200px;
    max-width: 280px;
    padding: 20px;
    text-align: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}
.fee-label { font-size: 1rem; color: var(--color-muted); }
.fee-num { font-weight: 700; font-size: 1.15rem; color: var(--color-heading); }
.fee-num strong { font-family: var(--font-display); font-size: 2.4rem; color: var(--color-red); margin: 0 2px; }
.fee-plus { font-size: 1.6rem; color: var(--color-muted); }
@media (max-width: 699px) {
    .fees { flex-direction: column; }
    .fee { width: 100%; max-width: 360px; flex-basis: auto; }
    .fee-plus { line-height: 1; }
}
.price-point { max-width: 720px; margin: 28px auto 0; text-align: center; font-size: 1.05rem; }

.sim {
    margin: 36px auto 0;
    max-width: 760px;
    padding: clamp(20px, 3vw, 32px);
    background: var(--color-surface);
    border: 2px solid var(--color-red);
    border-radius: 12px;
    display: grid;
    gap: 16px;
}
.sim-help { color: var(--color-muted); font-size: 1rem; margin-top: -8px; }
.sim-inputs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.sim-inputs label { display: grid; gap: 6px; font-size: 1rem; font-weight: 500; min-width: 0; }
.sim-inputs span { display: flex; align-items: center; gap: 6px; }
.sim-inputs input {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    font-size: 1.1rem;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
}
.sim-result { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sim-result > div { padding: 16px; border-radius: 8px; background: var(--color-surface-warm); }
.sim-label { font-size: 1rem; color: var(--color-muted); }
.sim-value { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: var(--color-red); font-variant-numeric: tabular-nums; }
.sim-note { font-size: .9rem; color: var(--color-muted); line-height: 1.7; }
.compare { margin-top: 28px; text-align: center; font-size: 1.05rem; }
.compare strong { color: var(--color-red); font-size: 1.2em; }

/* ---------- ❼ いっしょに ---------- */
.join { text-align: center; background: var(--color-surface-warm); border-top: 4px solid var(--color-red); }
.join .wrap { display: grid; gap: 16px; justify-items: center; }
.join-title { margin-bottom: 8px; }
.pending { font-size: .95rem; color: var(--color-muted); }
.sns { list-style: none; display: flex; gap: 16px; font-size: .95rem; color: var(--color-muted); }

/* ---------- GLOWのほかの取り組み ---------- */
.family-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.family-card {
    display: grid;
    gap: 6px;
    padding: 22px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-decoration: none;
    background: var(--color-surface);
    transition: border-color .2s ease;
}
.family-card:hover { border-color: var(--color-red); }
.family-name { font-weight: 700; font-size: 1.1rem; color: var(--color-heading); }

/* ---------- フッター ---------- */
.site-footer { padding-block: 40px; background: var(--color-ink); color: #C7CFD5; font-size: .95rem; line-height: 1.8; }
.footer-name { color: #FFFFFF; font-weight: 700; }
.footer-note { margin-top: 10px; font-size: .85rem; color: #8F9AA3; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
    .btn-line:hover { transform: none; }
}
.bp-store-sp .bp-logo b { font-size: .6rem; letter-spacing: 0; }
.bp-grid-sp .booth-yours { font-size: .62rem; padding: 2px 8px; top: -12px; }
@media (max-width: 899px) { .bp-sp { display: none; } }
