/* ソラコミュ LP v2（水彩・ルートマップ）
 * デザイン: 宮脇さん作のモック（ChatGPT Image 2026-09-21 09_46_30）に忠実に。
 * 素材: assets/（parts・brand・parts-2x）＋ media-gen の水彩バンド。
 * スマホ先行。本文16px以上・タップ44px以上・白文字はコントラストAAを満たす色に調整。
 */
:root {
  --navy: #0b3d7b;          /* 見出し・濃い面。白文字 11.4:1 */
  --navy-deep: #082d5c;
  --blue: #1e88e5;          /* ブランド青（面・線） */
  --blue-btn: #1567b8;      /* 白文字 5.1:1 */
  --blue-soft: #e8f3fc;
  --orange: #f2aa3c;        /* 装飾のオレンジ（文字は載せない） */
  --orange-btn: #cc5f14;    /* 白文字 4.7:1 */
  --orange-soft: #fdf0e3;
  --green: #63b54b;
  --green-btn: #3e7f2e;     /* 白文字 4.8:1 */
  --green-soft: #eef7e9;
  --ink: #16324f;           /* 本文 10.4:1 */
  --muted: #4a6785;          /* 補足 6.1:1 */
  --line: #dbe7f1;
  --sky: #f2f9fd;
  --cream: #fbf8f1;
  --white: #fff;
  --wrap: 1120px;
  --gutter: 16px;
  --radius: 16px;
  --shadow: 0 6px 18px rgba(11, 61, 123, .08);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  line-break: strict;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px; line-height: 1.85; color: var(--ink);
  background: var(--white);
  padding-bottom: var(--sticky-h, 0);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-btn); text-underline-offset: 3px; }
h1, h2, h3, .maru {
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif; font-weight: 700; color: var(--navy);
  margin: 0; line-height: 1.45;
  font-feature-settings: "palt" 1;   /* かなの間延びを詰める */
  text-wrap: balance;                /* 1〜2文字だけ次行に落ちるのを避ける */
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid #f2aa3c; outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.section { padding: 56px 0; scroll-margin-top: 64px; }
.section--sky { background: var(--sky); }
.section--cream { background: var(--cream); }
.sec-head { text-align: center; margin-bottom: 28px; }
.sec-head h2 { font-size: 26px; }
.sec-head .en { display: block; margin-top: 6px; font-size: 13px; letter-spacing: .18em; color: var(--blue); font-weight: 700; }
.sec-head .lead { margin-top: 10px; color: var(--ink); }
.hand { display: block; }
.nb { display: inline-block; white-space: nowrap; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 8px 26px; border-radius: 9999px;
  font-family: "Zen Maru Gothic", sans-serif; font-weight: 700; font-size: 17px; line-height: 1.4;
  font-feature-settings: "palt" 1;
  text-decoration: none; border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(11, 61, 123, .18);
  transition: background-color .15s, transform .08s;
}
.btn .ico, .btn .arw { flex: none; }
.btn--blue { background: var(--blue-btn); color: #fff; }
.btn--blue:hover { background: #10538f; color: #fff; }
.btn--orange { background: var(--orange-btn); color: #fff; }
.btn--orange:hover { background: #a94b0c; color: #fff; }
.btn--green { background: var(--green-btn); color: #fff; }
.btn--green:hover { background: #316525; color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); color: #fff; }
.btn--line { background: #fff; color: var(--navy); border-color: var(--navy); box-shadow: none; }
.btn--line:hover { background: var(--blue-soft); color: var(--navy); }
.btn--sm { min-height: 48px; font-size: 16px; padding: 6px 20px; }
.btn--block { display: flex; width: 100%; }
.btn:active { transform: translateY(2px); }

.textlink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; font-size: 16px; }

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.site-header .logo { display: flex; align-items: center; min-height: 48px; }
.site-header .logo img { height: 40px; width: auto; }
.gnav { display: none; }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.head-actions .btn { min-height: 44px; font-size: 15px; padding: 4px 16px; box-shadow: none; }
.head-login { display: none; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; overflow: hidden; background: #dff0fa; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-bg-veil { position: absolute; inset: 0; background: rgba(255,255,255,.34); }
.hero .wrap { position: relative; padding-top: 40px; padding-bottom: 44px; text-align: center; }
.hero-tag { font-size: 16px; font-weight: 700; color: var(--navy); letter-spacing: .04em; }
.hero h1 { margin-top: 10px; font-size: 34px; line-height: 1.4; letter-spacing: .02em; text-shadow: 0 2px 10px rgba(255,255,255,.85); }
.hero-lead { margin: 16px auto 0; max-width: 30em; font-size: 16px; font-weight: 500; text-wrap: pretty; text-shadow: 0 1px 8px rgba(255,255,255,.9); }
.hero-cta { margin-top: 26px; display: grid; gap: 12px; }
.hero-note { margin-top: 18px; display: flex; justify-content: center; }
.hero-note img { width: 180px; }
.hero-points { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hero-points li {
  background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 9999px;
  padding: 4px 14px; font-size: 16px; font-weight: 700; color: var(--navy);
}
.mock-note { background: #fff8e8; color: #8a5200; font-size: 13px; text-align: center; padding: 6px 12px; }

/* ---------- ルート選択 ---------- */
.routes { position: relative; }
.routes-head { display: grid; gap: 10px; justify-items: center; text-align: center; margin-bottom: 28px; }
.routes-head img { width: 230px; }
.routes-head img { width: 210px; }
.routes-head h2 { font-size: 26px; }
.routes-head .lead { margin-top: 8px; color: var(--muted); }
.route-grid { display: grid; gap: 20px; position: relative; }
.route-card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; text-align: center; border-top: 6px solid var(--blue);
}
.route-card .say { flex: 1; }
.route-card .btn { margin-top: auto; }
.route-card--owner { border-top-color: var(--orange); }
.route-card--investor { border-top-color: var(--blue); }
.route-card--biz { border-top-color: var(--green); }
.route-figure { position: relative; width: 132px; margin: 0 auto; }
.route-figure .ph { width: 132px; height: 132px; border-radius: 50%; object-fit: contain; object-position: 50% 100%; background: var(--blue-soft); }
.route-card--owner .route-figure .ph { background: var(--orange-soft); }
.route-card--biz .route-figure .ph { background: var(--green-soft); }
.route-figure .badge { position: absolute; right: -6px; bottom: -6px; width: 54px; height: 54px; }
.route-card h3 { margin-top: 14px; font-size: 20px; }
.route-card .who { margin-top: 4px; color: var(--muted); font-size: 16px; }
.route-card .say { margin-top: 10px; font-size: 16px; }
.route-card .btn { margin-top: 16px; }

/* ---------- できること（駅） ---------- */
.stations { position: relative; }
.station-grid { display: grid; gap: 16px; position: relative; z-index: 1; }
.route-lines-wrap, .station-lines { display: none; }
.station {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
}
.station .pic { aspect-ratio: 16/9; width: 100%; object-fit: cover; object-position: 50% 62%; background: var(--blue-soft); }
.station .pic--p { object-fit: contain; object-position: 50% 20%; padding: 6px; background: var(--blue-soft); }
.station .body { padding: 14px 16px 18px; }
.station .ttl { display: flex; align-items: center; gap: 10px; }
.station .ttl img { width: 40px; height: 40px; flex: none; }
.station h3 { font-size: 18px; }
.station p { margin-top: 8px; font-size: 16px; }
.station .free { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--blue-btn); background: var(--blue-soft); border-radius: 6px; padding: 2px 10px; }
.stations-foot { margin-top: 24px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.stations-foot .balloon { width: 200px; }
.stations-foot .train { width: 200px; }

/* ---------- 2つのルート ---------- */
.flow-wrap { display: grid; gap: 16px; position: relative; }
.flow {
  background: #fff; border: 2px solid var(--blue); border-radius: 22px; padding: 18px 16px 22px;
}
.flow--sell { border-color: var(--orange-btn); }
.flow-head { display: flex; align-items: center; gap: 12px; }
.flow-head img { width: 76px; flex: none; }
.flow-head { padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.flow-head h3 { font-size: 20px; }
.flow-head .sub { font-size: 16px; color: var(--muted); }
.flow-head h3 strong { white-space: nowrap; }
.flow--sell h3 strong { color: var(--orange-btn); }
.flow--buy h3 strong { color: var(--blue-btn); }
.flow-steps { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 8px; }
.flow-step { text-align: center; }
.flow-step .circle {
  width: 58px; height: 58px; margin: 0 auto; border-radius: 50%;
  background: var(--blue-soft); display: flex; align-items: center; justify-content: center;
}
.flow--sell .flow-step .circle { background: var(--orange-soft); }
.flow-step .circle img { width: 32px; height: 32px; }
.flow-step .nm { margin-top: 8px; font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.4; }
.flow-step .sm { font-size: 14px; color: var(--muted); line-height: 1.5; font-feature-settings: "palt" 1; letter-spacing: -.01em; }
.match {
  justify-self: center; text-align: center; background: #fff; border-radius: 50%;
  width: 150px; height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.match img { width: 46px; }
.match .nm { font-size: 16px; font-weight: 700; color: var(--navy); font-family: "Zen Maru Gothic", sans-serif; }
.match .sm { font-size: 14px; color: var(--muted); line-height: 1.4; }

/* ---------- 水彩バンド ---------- */
.band { position: relative; overflow: hidden; background: #e9f4fb; }
.band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-veil { position: absolute; inset: 0; background: rgba(255,255,255,.42); }
.band .wrap { position: relative; padding-top: 52px; padding-bottom: 52px; }
.band h2 { font-size: 22px; text-align: center; text-shadow: 0 2px 10px rgba(255,255,255,.85); }
.band .lead { margin: 14px auto 0; max-width: 40em; text-align: center; text-shadow: 0 1px 8px rgba(255,255,255,.9); }
.band-cards { margin-top: 26px; display: grid; gap: 12px; }
.band-card { background: rgba(255,255,255,.95); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; text-align: center; }
.band-card img { width: 52px; margin: 0 auto; }
.band-card h3 { margin-top: 8px; font-size: 17px; }
.band-card p { margin-top: 4px; font-size: 15px; }

/* ---------- 安心 ---------- */
.safe-grid { display: grid; gap: 14px; }
.safe { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.safe img { width: 52px; height: 52px; flex: none; }
.safe h3 { font-size: 17px; }
.safe p { margin-top: 4px; font-size: 15px; }

/* ---------- 費用 ---------- */
.fee-grid { display: grid; gap: 14px; }
.fee-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.fee-card h3 { font-size: 19px; }
.fee-card .amount { margin-top: 6px; font-size: 26px; font-family: "Zen Maru Gothic", sans-serif; font-weight: 700; color: var(--blue-btn); }
.fee-card .amount small { font-size: 16px; }
.fee-card ul { margin-top: 10px; display: grid; gap: 6px; }
.fee-card li { position: relative; padding-left: 20px; font-size: 16px; }
.fee-card li::before { content: ""; position: absolute; left: 4px; top: .75em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.fee-note { margin-top: 16px; font-size: 15px; color: var(--muted); text-align: center; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; max-width: 840px; margin: 0 auto; }
.faq { background: #fff; border-radius: 12px; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: center; min-height: 58px; padding: 12px 16px; font-weight: 700; color: var(--navy); font-family: "Zen Maru Gothic", sans-serif; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--blue); font-size: 18px; flex: none; }
.faq summary::after { content: ""; margin-left: auto; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-top: -4px; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq-a { padding: 0 16px 16px 42px; }

/* ---------- コラム ---------- */
.col-grid { display: grid; gap: 14px; }
.col-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: block; text-decoration: none; color: var(--ink); }
.col-card .pic { aspect-ratio: 16/9; width: 100%; object-fit: cover; object-position: 50% 50%; background: var(--blue-soft); }
.col-card .body { padding: 12px 14px 16px; }
.col-card .meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.col-card .chip { background: var(--blue-soft); color: var(--blue-btn); font-weight: 700; border-radius: 6px; padding: 1px 8px; }
.col-card h3 { margin-top: 6px; font-size: 16px; line-height: 1.6; }
.col-card:hover h3 { text-decoration: underline; }
.col-card h3 {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}


/* ---------- 相談 ---------- */
.consult { margin: 28px auto 0; max-width: 780px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; gap: 16px; align-items: center; }
.consult img { width: 84px; flex: none; }
.consult h3 { font-size: 18px; }
.consult p { margin-top: 4px; font-size: 15px; }

/* ---------- 事業者の帯 ---------- */
.biz { background: var(--green-soft); }
.biz .wrap { display: grid; gap: 14px; padding-top: 32px; padding-bottom: 32px; }
.biz h2 { font-size: 20px; }
.biz p { font-size: 16px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy); color: #e4eefb; padding: 40px 0 28px; font-size: 15px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; gap: 22px; }
.foot-brand img { height: 44px; width: auto; }
.foot-company { margin-top: 10px; font-size: 14px; color: #c6d8ef; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; }
.foot-links a { display: flex; align-items: center; min-height: 44px; }
.foot-sns { display: flex; gap: 12px; }
.foot-sns a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; }
.copyright { margin-top: 22px; font-size: 13px; color: #b9cbe4; }

/* ---------- スマホ下部の固定バー ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  transform: translateY(115%); transition: transform .2s;
}
.sticky-cta.is-shown { transform: none; }
.sticky-cta .btn { min-height: 48px; font-size: 16px; padding: 6px 10px; box-shadow: none; }

/* 装飾（背景に置く雲・太陽など） */
.deco { position: absolute; pointer-events: none; user-select: none; }

/* ============ 768px 以上 ============ */
@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .section { padding: 84px 0; }
  .sec-head h2 { font-size: 32px; }
  .hero .wrap { padding-top: 72px; padding-bottom: 84px; }
  .hero h1 { font-size: 52px; }
  .hero-lead { font-size: 17px; }
  .hero-cta { grid-auto-flow: column; justify-content: center; gap: 16px; }
  .route-grid { grid-template-columns: repeat(3, 1fr); }
  .station-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .flow-wrap { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
  .band-cards { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .band h2 { font-size: 30px; }
  .flow-steps { grid-template-columns: repeat(4, 1fr); }
  .safe-grid { grid-template-columns: repeat(3, 1fr); }
  .fee-grid { grid-template-columns: 1fr 1fr; }
  .col-grid { grid-template-columns: repeat(4, 1fr); }
  .biz .wrap { grid-template-columns: 1fr auto; align-items: center; }
  .foot-grid { grid-template-columns: 1.2fr 1fr auto; align-items: start; }
  .foot-links { grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
  .head-login { display: inline-flex; }
}

/* ============ タブレット（768〜1023px）の詰まりを解く ============ */
@media (min-width: 768px) and (max-width: 1199px) {
  .flow-wrap { grid-template-columns: 1fr; }   /* 2つのルートは横に入りきらないので縦に積む */
  .match { margin: 4px auto; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .safe-grid { grid-template-columns: 1fr 1fr; } /* 3列だと1行2〜3文字になる */
  .col-grid { grid-template-columns: 1fr 1fr; }
}

/* ============ 1024px 以上 ============ */
@media (min-width: 1024px) {
  .gnav { display: flex; gap: 2px; margin-left: 24px; }
  .gnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--navy); text-decoration: none; font-size: 15px; font-weight: 500; }
  .gnav a:hover { color: var(--blue-btn); text-decoration: underline; }
  .hero h1 { font-size: 58px; }
  .route-lines-wrap { display: block; height: 96px; margin: -4px 0 4px; }
  .route-lines { width: 100%; height: 96px; }
  .stations .wrap { position: relative; }
  .station-lines { display: block; position: absolute; left: 0; width: 100%; height: calc(100% - 200px); top: 160px; z-index: 0; }
  .routes-head { grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 24px; }
  .stations-foot { grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 24px; }
}
