/* =========================================================
   Akerun学校サービスアプリ LP
   フライヤーのデザイントークンを踏襲:
   薄青グレー地 / 濃紺インク / akerunブルー→スカイのグラデカード
   ========================================================= */

:root {
  /* 配色は solutions.akerun.com/id の実測値に合わせている */
  --ink: #303030;
  --ink-soft: #595959;
  --base: #ffffff;
  --white: #ffffff;
  --blue: #0083ff;
  --blue-deep: #0083ff;
  --sky: #00a2ef;
  --line: #e4ecf7;
  --grad-blue: linear-gradient(45deg, #0083ff 0%, #674cff 100%);
  /* /id のヒーロー背景 */
  --grad-hero: linear-gradient(90deg, #0083ff 0%, #cce6ff 100%);
  /* /id の淡いセクション背景 */
  --grad-light: linear-gradient(90deg, #e8f0ff 0%, #f8fcfe 100%);
  /* solutions.akerun.com/id のボタンと同一のグラデーション */
  --grad-cta: linear-gradient(45deg, #0083ff 0%, #674cff 100%);
  /* 参照サイト準拠のカラー */
  --cta-blue: #0083ff;
  --foot-gray: #616161;
  --field-border: #eeeeee;
  --field-text: #333333;
  --req-red: #f23a3c;
  /* 機能一覧カードの面色。フライヤーの配色で、スクショ素材(jpg)に
     焼き込まれた背景色と同一にしてシームレスに見せる（実測値） */
  --card-fnavy: #446492;   /* ユーザー管理（shot-users の地色） */
  --card-fazure: #5c99d8;  /* shot-kyomu / shot-map の背景色 */
  --card-findigo: #5f79c4; /* shot-studentid の背景色 */
  --card-fteal: #2dbbe1;   /* shot-checkin の背景色 */
  --card-fcyan: #41b6ec;   /* shot-notice の背景色 */
  --card-fsteel: #408fd4;  /* shot-links の背景色 */
  --radius-lg: 28px;
  --radius-md: 16px;
  --shadow-card: 0 10px 30px rgba(23, 40, 75, 0.08);
  --shadow-hover: 0 18px 44px rgba(23, 40, 75, 0.14);
  /* solutions.akerun.com/id に合わせ、書体は Noto Sans JP に統一 */
  --font-display: "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
  --font-en: "Noto Sans JP", sans-serif;
  /* ロゴ・ボタン(42px) + 上下13px */
  --header-h: 68px;
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--base);
  line-height: 2;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.en { font-family: var(--font-en); letter-spacing: 0.01em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: 1px 3px 10px rgba(0, 0, 0, 0.1);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(70, 100, 255, 0.35); }
.btn-ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }
/* 明るい面に置く枠線ボタン */
.btn-outline {
  background: #fff;
  color: var(--cta-blue);
  box-shadow: inset 0 0 0 2px var(--cta-blue);
}
.btn-outline:hover { background: rgba(0, 131, 255, 0.08); transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: 16px; }
/* 参照サイトのヘッダーボタンと同寸 */
.btn-header {
  background: var(--grad-cta);
  color: #fff;
  padding: 10px 30px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  border-radius: 21px;
  box-shadow: 1px 3px 10px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}
.btn-header:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(70, 100, 255, 0.35); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  /* ヒーローと同じ横方向グラデーション。ヒーロー背景は縦方向に一様なので
     最上部では継ぎ目なく重なり、スクロール後も色付きバーとして残る
     （透過のままだと白背景のセクション上で白ロゴが消え、本文と重なって見えるため） */
  background: var(--grad-hero);
  z-index: 100;
  transition: box-shadow 0.3s ease;
}
/* スクロール後は白いコンテンツとの境目を影で分ける */
.site-header.scrolled { box-shadow: 0 2px 14px rgba(23, 40, 75, 0.18); }
/* /id のヘッダーは全幅・左右24pxパディング */
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; max-width: none; padding: 0 30px; }
.brand { display: flex; align-items: center; text-decoration: none; }
/* お問い合わせボタンと同じ高さに揃える（幅はautoで縦横比を保持） */
.brand-logo { height: 42px; width: auto; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 80px) 0 88px;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grad-hero);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: 40px;
  align-items: center;
}
.hero-title {
  font-family: var(--font-display);
  /* /id のヒーロー見出しと同じ 36px/700/1.5 */
  font-weight: 700;
  font-size: clamp(26px, 2.9vw, 36px);
  line-height: 1.5;
  letter-spacing: normal;
  margin: 0 0 20px;
  color: #fff;
}
.hero-title .line { display: block; white-space: nowrap; }
.hero-title em { font-style: normal; color: #fff; }
/* /id のヒーローにある「ロゴ＋サービス名」ロックアップ。
   ロゴと名前は互いに中央揃えで一体に見せ、ブロック自体は左揃えのまま
   （width:max-content で内容幅に縮め、親の左揃えを引き継ぐ） */
.hero-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 24px;
}
.hero-lockup img { width: 300px; height: auto; }
.hero-lockup span { font-size: 28px; font-weight: 800; line-height: 1.2; color: #fff; text-align: center; }
/* /id の本文と同じ 16px/800/2.0 */
.hero-lead { color: #fff; max-width: 34em; font-size: 16px; font-weight: 800; line-height: 2; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  padding-top: 22px;
}
.hero-proof dt { font-size: 12px; color: rgba(255, 255, 255, 0.85); }
.hero-proof dd { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #fff; }
.hero-proof sup { font-size: 10px; color: rgba(255, 255, 255, 0.85); font-weight: 400; }

/* hero visual: フライヤー表紙のビジュアルをそのまま使用 */
.hero-visual { position: relative; }
.hero-photo {
  width: 100%;
  max-width: 620px;
  margin-left: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ---------- sections common ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2, .results h2 {
  font-family: var(--font-display);
  /* /id のセクション見出しと同じ 32px/800 */
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.7;
  letter-spacing: normal;
}
/* /id のリード文と同じ 20px/700 */
.section-lead { color: var(--ink-soft); margin-top: 18px; font-size: clamp(16px, 1.6vw, 20px); font-weight: 700; line-height: 2; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); }
.reveal.shown { opacity: 1; transform: none; }

/* ---------- features: 1機能 = 1行（yaritori.jp のポイント節を参照） ---------- */
.features { background: #fff; border-radius: 48px 48px 0 0; }
.feature-list { display: flex; flex-direction: column; gap: 104px; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
}
/* 偶数行はビジュアルを左に置き、視線が左右に振れるリズムを作る */
.feature:nth-of-type(even) .feature-media { order: -1; }

.feature-body { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.feature-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  color: var(--blue);
}
.feature-eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.feature h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.5;
  letter-spacing: normal;
}
.feature .tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 131, 255, 0.1);
  color: var(--blue);
  letter-spacing: 0.05em;
  line-height: 1.6;
}
.feature-lead { font-weight: 700; font-size: 17px; line-height: 1.9; }
.feature-note { font-size: 15px; line-height: 1.95; font-weight: 400; color: var(--ink-soft); }
.fineprint { font-size: 12px; line-height: 1.6; opacity: 0.75; font-weight: 400; }

/* ペルソナ付きの訴求行（フライヤーの吹き出し風チップ） */
.points { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.points li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f4f8fd;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 14px 8px 8px;
}
.points .who { flex: 0 0 auto; width: 46px; text-align: center; }
.points .who img {
  width: 40px; height: 40px;
  border-radius: 10px;
  object-fit: cover;
  margin: 0 auto;
}
.points .who figcaption { font-size: 10px; line-height: 1.3; margin-top: 3px; font-weight: 700; color: var(--ink-soft); }
.points li > p { flex: 1; font-size: 13px; line-height: 1.75; font-weight: 500; color: var(--ink-soft); }

/* ビジュアル面。素材(jpg)に焼き込まれた背景色と同じ色を敷くので、
   画像を内側に置いても縁が見えず、面と一体に見える */
.feature-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 320px;
  box-shadow: var(--shadow-card);
}
.tone-navy { background: var(--card-fnavy); color: #fff; }
.tone-azure { background: var(--card-fazure); color: #fff; }
.tone-indigo { background: var(--card-findigo); color: #fff; }
.tone-teal { background: var(--card-fteal); color: #fff; }
.tone-cyan { background: var(--card-fcyan); color: #fff; }
.tone-steel { background: var(--card-fsteel); color: #fff; }

/* 端が切れたスマホが面の下から立ち上がる見せ方。
   素材は透過PNG由来なので、面のブランドカラーがそのまま背景になる。
   縦横比は素材ごとに違うため、高さに上限を設けて面の高さを揃える */
.shot-tall {
  width: 74%;
  max-width: 340px;
  margin-top: 40px;
  max-height: 380px;
  object-fit: cover;
  object-position: top center;
}
/* 余白まで作り込まれた合成画像は面いっぱいに敷く */
.shot-full { width: 100%; }

/* 実機の写真は面いっぱいに敷く。高さは写真の比率で決めるので min-height は外す */
.feature-media.media-photo { min-height: 0; align-items: stretch; position: relative; }
.media-photo-bg {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  /* 左半分は余白なので、錠前が中央寄りに来る位置で切り出す */
  object-position: 62% center;
}
/* ドア写真の左側にできる余白へ、タッチ認証する端末を重ねる */
.media-photo-front {
  position: absolute;
  left: 8%;
  top: 50%;
  width: 37%;
  transform: translateY(-50%);
  filter: drop-shadow(0 20px 32px rgba(8, 14, 26, 0.5));
}

/* 機能ブロック内のボタン行 */
.feature-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px; }

/* 拡張性のクロージング行 */
.feature-more {
  margin-top: 104px;
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.feature-more h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.feature-more p { color: var(--ink-soft); font-size: 15px; line-height: 1.9; margin-top: 6px; }
.text-link { color: var(--blue); font-weight: 700; text-decoration: none; font-size: 14px; }
.text-link:hover { text-decoration: underline; }


/* ---------- architecture（構成図はインラインSVG） ---------- */
.architecture { background: var(--grad-light); }
.arch-figure {
  /* 図は縦横比を保って縮小。狭い画面では最小幅を保って横スクロールさせる */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.arch-svg {
  display: block;
  width: 100%;
  min-width: 860px;
  height: auto;
}

/* --- 面（パネル） --- */
.arch-svg .p-soft  { fill: #dbe5f0; stroke: #c3d2e1; stroke-width: 2; }
.arch-svg .p-cyan  { fill: #cfe7f2; }
.arch-svg .p-inner { fill: #dce7f1; stroke: #4b5c6b; stroke-width: 3; }
.arch-svg .p-teal  { fill: #d9eaf2; stroke: #7ac6ce; stroke-width: 3; }

/* --- 箱 --- */
.arch-svg .b-purple   { fill: #7b7fb2; }
.arch-svg .b-blue     { fill: #4a7fb5; }
.arch-svg .b-teal     { fill: #61bfc4; }
.arch-svg .b-app      { fill: #4cb9d6; }
.arch-svg .b-outlined { stroke: #3d4a56; stroke-width: 3; }

/* --- 文字 --- */
.arch-svg text { font-family: var(--font-display); }
.arch-svg .lbl   { fill: #2b3d4f; font-size: 30px; font-weight: 700; }
.arch-svg .t-box { fill: #fff; font-size: 27px; font-weight: 700; text-anchor: middle; }
.arch-svg .t-app { fill: #fff; font-size: 34px; font-weight: 700; text-anchor: middle; }
.arch-svg .t-note{ fill: #fff; font-size: 21px; font-weight: 700; text-anchor: middle; }

/* --- 接続線 --- */
.arch-svg .arch-line path,
.arch-svg .arch-dash path { fill: none; stroke: #3d4a56; stroke-width: 3; }
.arch-svg .arch-dash path { stroke-dasharray: 10 8; }

.arch-users {
  margin-top: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.arch-users-label { font-size: 13px; font-weight: 700; color: var(--blue-deep); }
.arch-users ul { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; }
.arch-users li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.arch-users img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }

/* ---------- results ---------- */
.results {
  /* /id の濃色セクションと同じグラデーション */
  background: var(--grad-cta);
  color: #fff;
}
.results .section-lead { color: rgba(255, 255, 255, 0.92); }
.results-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.stat { margin: 30px 0 20px; }
.stat-label { font-size: 13px; opacity: 0.8; }
.stat-value { font-family: var(--font-en); font-weight: 700; font-size: clamp(44px, 5vw, 60px); line-height: 1.2; }
.stat-unit { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-left: 8px; }
.results-note { font-size: 15px; font-weight: 400; opacity: 0.92; }
.results .fineprint { margin-top: 16px; opacity: 0.55; }
.logos-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 20px 50px rgba(10, 20, 50, 0.35);
}

/* ---------- CTA（参照サイトのクロージング部と同構成） ---------- */
.cta { background: #fff; padding: 60px 0 0; text-align: center; }
.cta-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--cta-blue);
}
.cta-sub {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--cta-blue);
  margin-top: 16px;
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: 50px;
  margin-top: 58px;
  border-radius: 24.5px;
  background: var(--grad-cta);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(70, 100, 255, 0.35); }

/* ---------- footer（参照サイト準拠） ---------- */
/* /id のフッター: 横並び・中央寄せ・gap200px・各カラム300px */
.site-footer { background: #fff; padding: 24px 0; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.footer-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 200px;
  padding: 0 40px;
  width: 100%;
  max-width: 1280px;
}
.footer-brand, .footer-nav { width: 300px; }
.footer-company { font-size: 20px; font-weight: 600; line-height: 24px; color: var(--foot-gray); margin-bottom: 5px; }
.footer-address { font-size: 12px; font-weight: 400; line-height: 16.8px; color: var(--foot-gray); }
.footer-nav { display: flex; flex-direction: column; gap: 0; }
.footer-nav a {
  font-size: 12px;
  font-weight: 400;
  line-height: 16.8px;
  padding: 5px;
  color: var(--foot-gray);
  text-decoration: none;
}
.footer-nav a:hover { text-decoration: underline; }
.copyright {
  text-align: center;
  font-size: 13px;
  font-weight: 300;
  line-height: 18.2px;
  color: var(--foot-gray);
  margin-top: 12px;
}

/* =========================================================
   お問い合わせページ（solutions.akerun.com/contact 準拠）
   ========================================================= */
.page-contact { background: #fff; }
.contact-header { padding: 21px 34px; }
.contact-logo { height: 37px; width: auto; }

.contact-main { padding: 60px 24px 0; }
.contact-inner { max-width: 600px; margin: 0 auto; }
.contact-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 54px;
  color: var(--cta-blue);
  text-align: center;
  letter-spacing: normal;
}
.contact-sub {
  font-size: 18px;
  font-weight: 700;
  line-height: 25px;
  color: var(--cta-blue);
  text-align: center;
  margin-top: 18px;
}

.contact-form { margin-top: 44px; }
.field + .field { margin-top: 19px; }
.field label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 21px;
  color: #000;
  margin-bottom: 10px;
}
.req { color: var(--req-red); font-weight: 700; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  display: block;
  width: 100%;
  height: 50px;
  border: 1px solid var(--field-border);
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--field-text);
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field textarea { height: 160px; padding: 10px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #c7c7c7; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cta-blue);
  box-shadow: 0 0 0 3px rgba(0, 131, 255, 0.15);
}
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field-consent { margin-top: 15px; }
.consent { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.consent input { width: 13px; height: 13px; accent-color: var(--cta-blue); }
.consent a { color: inherit; }

.form-error {
  color: #c53030;
  background: #fdeeee;
  border: 1px solid #f5c6c6;
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 14px;
  margin-top: 20px;
}
.form-actions { text-align: center; margin-top: 40px; }
.btn-submit {
  width: 300px;
  height: 50px;
  border: 0;
  border-radius: 24.5px;
  background: var(--grad-cta);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(70, 100, 255, 0.35); }
.btn-submit[disabled] { opacity: 0.6; pointer-events: none; }

.contact-done { text-align: center; padding: 60px 0 0; }
.done-title { font-size: 24px; font-weight: 700; color: var(--cta-blue); margin-bottom: 14px; }
.contact-done p { color: var(--field-text); font-size: 15px; }
.contact-done .text-link { display: inline-block; margin-top: 24px; color: var(--cta-blue); }

.page-contact .site-footer { padding: 129px 0 24px; }

@media (max-width: 680px) {
  .contact-header { padding: 12px 20px; }
  .contact-logo { height: 40px; }
  .contact-main { padding-top: 40px; }
  .contact-title { font-size: 26px; line-height: 40px; }
  .contact-sub { font-size: 16px; }
  .btn-submit, .btn-cta { width: 100%; max-width: 300px; }
  .page-contact .site-footer { padding-top: 80px; }
  .footer-inner { flex-direction: column; gap: 24px; padding: 0 20px; }
  .footer-brand, .footer-nav { width: 100%; }
  .copyright { margin-top: 24px; }
}

/* ---------- focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(59, 130, 232, 0.5);
  outline-offset: 2px;
}

/* =========================================================
   responsive
   ========================================================= */
@media (max-width: 1020px) {
  /* 1機能1行は保ったまま、行の中身を縦積みに */
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature:nth-of-type(even) .feature-media { order: 0; }
  .feature-body { max-width: none; }
  .feature-list { gap: 72px; }
  .feature-more { margin-top: 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { margin: 0 auto; }
  .results-grid { grid-template-columns: 1fr; gap: 40px; }
  .arch {
    grid-template-columns: 1fr;
  }
  .arch-link { min-height: 44px; transform: rotate(90deg); max-width: 60px; margin: 0 auto; }
}

@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .header-inner { gap: 12px; }
  .btn-header { padding: 9px 20px; font-size: 14px; }
  /* モバイルはボタンが約38pxになるので、ロゴも同じ高さに揃える */
  .brand-logo { height: 38px; }
  .hero { padding-top: calc(var(--header-h) + 36px); padding-bottom: 64px; }
  .hero-proof { gap: 10px 24px; }
  .feature-list { gap: 56px; }
  .feature { gap: 24px; }
  .feature-media { min-height: 240px; border-radius: var(--radius-md); }
  /* 幅が狭いと面が低くなりすぎるので、ドア写真を縦長に切り出して端末の置き場所を確保 */
  .media-photo-bg { aspect-ratio: 4 / 3; }
  .media-photo-front { width: 40%; }
  .feature-more { margin-top: 56px; padding: 28px 24px; }
  .feature-more .btn-lg { width: 100%; }
  .feature-actions .btn-lg { width: 100%; }
  .features { border-radius: 28px 28px 0 0; }
  .arch-users { gap: 14px; padding: 18px; }
  .arch-users ul { gap: 12px; }
  .cta { padding-top: 48px; }
  .cta-title { font-size: 26px; line-height: 38px; }
  .cta-sub { font-size: 16px; }
  .btn-cta { margin-top: 40px; }
  .site-footer { padding-top: 64px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .arch-box { transition: none; }
}
