/* =========================================================
   EGAKU Studio — Landing Page styles (lp.css)
   D2C 情緒訴求 LP. 余白多め / 明朝見出し / 暖色。
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --paper: #FAF7F2;
  --paper-deep: #F2EBE1;
  --card: #FFFFFF;
  --ink: #262220;
  --ink-soft: #6F6259;
  --accent: #C96F4B;
  --accent-deep: #A85838;
  --accent-soft: #F3DDD2;
  --sage: #8A9B8E;
  --line: #E7DDD1;

  --shadow-card: 0 8px 30px rgba(38, 34, 32, .06);
  --shadow-hover: 0 16px 44px rgba(38, 34, 32, .12);
  --radius-card: 18px;
  --radius-img: 20px;

  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  --font-label: "DM Sans", "Noto Sans JP", sans-serif;

  --container: 1160px;
  --pad-x: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 10vw, 128px);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; font-family: var(--font-serif); font-weight: 700; line-height: 1.35; }

p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--section-y); }

.bg-deep { background: var(--paper-deep); }

.section-head {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.eyebrow {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: .01em;
}

.section-sub {
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.6vw, 17px);
}

.section-head .section-title { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .22s ease, color .22s ease,
    border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.btn svg { flex: 0 0 auto; }

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(168, 88, 56, .28);
}
.btn-accent:hover { background: var(--accent-deep); transform: translateY(-2px); }

.btn-light {
  background: var(--paper);
  color: var(--ink);
}
.btn-light:hover { background: #fff; transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(250, 247, 242, .38);
}

.btn-sm { padding: 11px 22px; font-size: 14px; }

.is-disabled {
  opacity: .5;
  pointer-events: none;
  cursor: default;
}

/* ---------- Focus visibility ---------- */
a:focus-visible,
.btn:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn-accent:focus-visible,
.btn-light:focus-visible { outline-offset: 4px; }

/* ---------- Image frame (placeholder-safe) ---------- */
.media {
  position: relative;
  background: var(--paper-deep);
  overflow: hidden;
  border-radius: var(--radius-img);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media.square { aspect-ratio: 1 / 1; }
.media.wide { aspect-ratio: 3 / 2; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, box-shadow .3s ease,
    border-color .3s ease, backdrop-filter .3s ease;
}
.nav.scrolled {
  background: rgba(250, 247, 242, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(38, 34, 32, .06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}
.nav-links a:not(.btn) {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s ease;
  white-space: nowrap;
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-menu { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }

@media (max-width: 860px) {
  /* リンクのみ隠し、App Store ピルはモバイルでも残す */
  .nav-links { display: none; }
  .nav-menu .btn-sm { padding: 9px 16px; font-size: 13px; }
}

/* =========================================================
   HERO
   full-bleed editorial hero: background photo + gradient overlay
   + left-aligned copy. Nav is 68px (sticky) + 1px border = 69px,
   subtracted below so the hero fills the rest of the first view.
   ========================================================= */
.hero {
  position: relative;
  height: min(100svh - 69px, 860px);
  min-height: 600px;
  overflow: hidden;
  background: #3a2f28; /* warm dark fallback while hero-bg.jpg is unavailable/loading */
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(96deg, rgba(28, 22, 18, .66) 0%, rgba(28, 22, 18, .42) 38%, rgba(28, 22, 18, .10) 68%, rgba(28, 22, 18, 0) 85%),
    linear-gradient(to top, rgba(28, 22, 18, .30), transparent 30%);
}

.hero-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}

.hero-copy { max-width: 600px; }
.hero-copy .eyebrow {
  color: #EDB59A;
  margin-bottom: 22px;
}
.hero-title {
  font-weight: 600;
  font-size: clamp(42px, 6.2vw, 68px);
  line-height: 1.3;
  letter-spacing: .01em;
  color: var(--paper);
}
.hero-title em { color: #EDB59A; font-style: normal; }
.hero-lead {
  margin-top: 26px;
  max-width: 30em;
  color: rgba(250, 247, 242, .88);
  font-size: clamp(15px, 1.55vw, 17px);
}
.hero-cta {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.hero-cta .microcopy {
  font-size: 13px;
  color: rgba(250, 247, 242, .7);
  margin-left: 4px;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(250, 247, 242, .6);
}
.hero-scroll-line {
  width: 1px;
  height: 32px;
  background: rgba(250, 247, 242, .6);
  animation: hero-scroll-move 1.8s ease-in-out infinite;
}
.hero-scroll-text {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
@keyframes hero-scroll-move {
  0%, 100% { transform: scaleY(1); opacity: .5; }
  50% { transform: scaleY(.55); opacity: 1; }
}

@media (max-width: 880px) {
  .hero { height: auto; min-height: 88svh; }
  .hero-bg img { object-position: 70% center; }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(28, 22, 18, .20) 0%, rgba(28, 22, 18, .62) 70%),
      linear-gradient(to top, rgba(28, 22, 18, .30), transparent 30%);
  }
  .hero-inner {
    align-items: flex-end;
    padding-bottom: clamp(56px, 12vw, 88px);
  }
  .hero-cta { align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-cta .microcopy { text-align: center; margin-left: 0; }
  .hero-lead { max-width: none; }
  .hero-scroll { display: none; }
}

/* =========================================================
   STEPS
   ========================================================= */
#steps {
  position: relative;
  /* plain paper-deep fallback while the background photo is unavailable/loading */
  background-color: var(--paper-deep);
  /* translucent paper-deep wash over the craft-table photo keeps cards/text fully readable */
  background-image:
    linear-gradient(rgba(242, 235, 225, .82), rgba(242, 235, 225, .82)),
    url('/img/v2/steps-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.steps-grid {
  --step-pad-top: clamp(28px, 3vw, 40px);
  --step-gap: clamp(20px, 2.8vw, 32px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--step-gap);
}
/* horizontal connector line, behind cards, roughly centered on the card media (photo) */
.steps-grid::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 22%;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--line);
}
.step-card {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
/* accent arrow-head sitting in the gap, over the connector line */
.step-card:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 3;
  top: 22%;
  right: calc(var(--step-gap) / -2);
  transform: translate(50%, -50%);
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  background: var(--paper-deep);
  padding: 0 7px;
}
.step-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--paper-deep);
  overflow: hidden;
}
.step-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.step-card:hover .step-media img { transform: scale(1.02); }
.step-body {
  position: relative;
  padding: var(--step-pad-top) clamp(24px, 2.6vw, 34px) clamp(28px, 3vw, 36px);
}
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 22px;
  transition: background-color .25s ease, color .25s ease;
}
.step-icon svg { width: 26px; height: 26px; }
.step-card:hover .step-icon { background: var(--accent); color: var(--paper); }
.step-num {
  position: absolute;
  z-index: 0;
  top: clamp(8px, 1.2vw, 16px);
  right: clamp(16px, 2vw, 24px);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 72px;
  color: rgba(201, 111, 75, .12);
  line-height: 1;
  pointer-events: none;
}
.step-card h3 { font-size: clamp(18px, 2vw, 22px); margin-bottom: 10px; }
.step-card p { color: var(--ink-soft); font-size: 15px; }

@media (max-width: 780px) {
  .steps-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  /* vertical flow: hide horizontal line, arrows point down between stacked cards */
  .steps-grid::before { display: none; }
  .step-card:not(:last-child)::after {
    content: "↓";
    top: auto;
    bottom: 0;
    right: 50%;
    transform: translate(50%, 50%);
    padding: 6px 0;
  }
}

/* =========================================================
   BEFORE / AFTER
   ========================================================= */
.ba-rows {
  display: flex;
  flex-direction: column;
  gap: clamp(44px, 6vw, 80px);
}
.ba-row {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 56px);
}
.ba-row:nth-child(even) { flex-direction: row-reverse; }

.ba-before { flex: 0 1 34%; }
.ba-after { flex: 1 1 54%; }
.ba-arrow {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
  transition: transform .3s ease;
}
.ba-row:nth-child(even) .ba-arrow { transform: rotate(180deg); }

.polaroid {
  background: #fff;
  padding: 12px 12px 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  transform: rotate(-2deg);
  transition: transform .3s ease, box-shadow .3s ease;
  max-width: 300px;
  margin-inline: auto;
}
.polaroid .media { border-radius: 3px; }
.ba-before:hover .polaroid { transform: rotate(0deg); box-shadow: var(--shadow-hover); }

.after-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.after-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
/* image fills the whole card; product favoured near the top on any crop */
.after-card .media { border-radius: 0; }
.after-card .media img {
  object-position: center 40%;
  transition: transform .45s ease;
}
.after-card:hover .media img { transform: scale(1.02); }
/* bottom gradient + overlaid label & caption */
.ba-overlay {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(30px, 5vw, 46px) clamp(20px, 2.6vw, 30px) clamp(18px, 2.4vw, 26px);
  background: linear-gradient(to top, rgba(28, 22, 18, .72), rgba(28, 22, 18, .28) 45%, transparent 70%);
  pointer-events: none;
}

.chip {
  display: inline-block;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.chip-muted { background: var(--paper-deep); color: var(--ink-soft); border: 1px solid var(--line); }
.chip-accent { background: var(--accent); color: #fff; }

.ba-caption {
  margin-top: 14px;
  display: block;
  color: var(--ink-soft);
  font-size: 14px;
}
.ba-before .ba-caption { text-align: center; }
.after-card .ba-caption {
  margin-top: 12px;
  color: var(--paper);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.6;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}

@media (max-width: 768px) {
  .ba-row,
  .ba-row:nth-child(even) { flex-direction: column; }
  .ba-before,
  .ba-after { flex: 1 1 auto; width: 100%; max-width: 420px; margin-inline: auto; }
  .ba-arrow,
  .ba-row:nth-child(even) .ba-arrow { transform: rotate(90deg); }
}

/* =========================================================
   PRODUCTS
   ========================================================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(16px, 2.2vw, 26px);
}
.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.product-card .media { border-radius: 0; }
.product-body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 6px; }
.product-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 10px;
  /* 幅が足りないときは価格を下の行へ落とし、商品名の単語内改行を防ぐ */
  flex-wrap: wrap;
}
.product-name { font-family: var(--font-sans); font-weight: 700; font-size: 16px; white-space: nowrap; }
.product-price {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 17px;
  color: var(--accent);
  white-space: nowrap;
}
.product-desc { color: var(--ink-soft); font-size: 13.5px; line-height: 1.75; }

.fineprint {
  margin-top: 28px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 12.5px;
}

/* =========================================================
   SCENES
   ========================================================= */
.scenes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(16px, 2.2vw, 26px);
}
.scene-card {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #3a2f28; /* warm dark fallback while the scene image is unavailable/loading */
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.scene-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.scene-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
}
.scene-card:hover img { transform: scale(1.03); }
.scene-overlay {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(30px, 4vw, 44px) clamp(18px, 2vw, 24px) clamp(18px, 2.2vw, 24px);
  background: linear-gradient(to top, rgba(28, 22, 18, .72), rgba(28, 22, 18, .28) 45%, transparent 70%);
}
.scene-card h3 {
  color: var(--paper);
  font-size: clamp(18px, 1.8vw, 22px);
  margin-bottom: 8px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
.scene-card p {
  color: rgba(250, 247, 242, .85);
  font-size: 13.5px;
  line-height: 1.7;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .3);
}

/* tablet: clean 2x2 (avoids a lonely 4th card from auto-fit near 1024px) */
@media (max-width: 1024px) {
  .scenes-grid { grid-template-columns: 1fr 1fr; }
}
/* mobile: single column */
@media (max-width: 520px) {
  .scenes-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
}

/* =========================================================
   AI ART
   ========================================================= */
.ai-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: clamp(24px, 4vw, 48px);
}

.ai-compare { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.ai-compare-caption h3 {
  font-size: clamp(16px, 1.8vw, 19px);
  margin-bottom: 8px;
}
.ai-compare-caption p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2vw, 20px);
}
.ai-compare .ai-grid { max-width: none; margin-inline: 0; }
.ai-card {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.ai-card .media { border-radius: 0; }
.ai-card .ai-label {
  padding: 14px 18px;
  text-align: center;
}
.ai-card .ai-label .chip { margin: 0; }

.ai-feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(26px, 3vw, 36px) clamp(22px, 2.6vw, 32px);
  transition: transform .25s ease, box-shadow .25s ease, border-top-color .25s ease;
}
.ai-feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-top-color: var(--accent); }
.ai-feature-card > * + * {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.ai-feature h3 { font-size: clamp(17px, 1.9vw, 20px); margin-bottom: 8px; }
.ai-feature p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.75; }
.ai-feature-closing {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--accent);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
}

@media (max-width: 780px) {
  .ai-showcase { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .ai-compare .ai-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
}

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band { background: var(--ink); color: var(--paper); }
.cta-inner { text-align: center; max-width: 640px; margin-inline: auto; }
.cta-title {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.4;
  color: var(--paper);
}
.cta-sub {
  margin-top: 20px;
  color: rgba(250, 247, 242, .74);
  font-size: clamp(15px, 1.6vw, 17px);
}
.cta-buttons {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.gp-wrap { position: relative; display: inline-flex; }
.coming-soon {
  position: absolute;
  top: -10px;
  right: -8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--paper); border-top: 1px solid var(--line); padding-block: clamp(40px, 5vw, 60px); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand .brand img { width: 24px; height: 24px; }
.footer-brand .brand-name { font-size: 15px; }
.copyright { color: var(--ink-soft); font-size: 13px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.footer-links a {
  font-size: 13px;
  color: var(--ink-soft);
  transition: color .2s ease;
}
.footer-links a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   Scroll fade-up animation
   ========================================================= */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; }
}

/* 見出しの単語内改行を防ぐ（単語間では改行を許可） */
.hero-title em span { white-space: nowrap; }
