/*
Theme Name: FUMIN STORE Modern LP
Author: FUMIYA YAMAGIWA
Description: FUMIN STORE向けのシンプルでモダンな1ページ型WordPressテーマ。事業概要、理念、サービス、運営者情報、プライバシーポリシーを掲載します。
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: fumin-store-modern-lp
*/

/* ------------------------------------------------------------
   基本設定
   藍（紺）を主色、浅葱（青緑）を差し色、生成りを地色にする
------------------------------------------------------------ */
:root {
  --paper: #f6f4ef;
  --surface: #ffffff;
  --ink: #18202d;
  --muted: #5b6372;
  --line: #e3dfd6;
  --line-strong: #cec8bb;
  --ai: #17325a;
  --ai-deep: #0d1d33;
  --accent: #1f7a80;
  --accent-light: #79c2c4;

  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --font-mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  --font-en: "Cormorant Garamond", "Times New Roman", serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 2;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 600; font-feature-settings: "palt"; }
::selection { background: var(--ai); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

/* ------------------------------------------------------------
   ヘッダー
------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  animation: fadeIn .9s var(--ease) .1s both;
}
/* 背景のぼかしは疑似要素に持たせる（スマホメニューの固定表示を崩さないため） */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(246, 244, 239, .8);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled::before {
  background: rgba(255, 255, 255, .94);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px rgba(13, 29, 51, .06);
}
.header-inner {
  position: relative;
  z-index: 1;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  transition: min-height .4s var(--ease);
}
.site-header.is-scrolled .header-inner { min-height: 66px; }

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: .2em;
  line-height: 1;
  color: var(--ai);
}
.brand:hover { color: var(--ai); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid currentColor;
  transition: transform .7s var(--ease-out);
}
.brand-mark::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.brand:hover .brand-mark { transform: rotate(45deg); }

.nav {
  display: flex;
  gap: 40px;
  font-size: .86rem;
  letter-spacing: .16em;
}
.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--ink);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav a:hover { color: var(--ai); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle { display: none; }

/* ------------------------------------------------------------
   ファーストビュー
------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 120px) 0 clamp(120px, 12vw, 168px);
}
/* 縦の罫線（コンテンツ幅を4等分する位置）。読み込み時に上から伸びる */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, transparent calc(50% - 1px), #e4e0d6 calc(50% - 1px), #e4e0d6 50%, transparent 50%);
  background-size: calc(min(1160px, 100% - 48px) / 4) 100%;
  background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 100%);
  transform-origin: top;
  animation: linesIn 1.8s var(--ease-out) both;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-en);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: .12em;
  color: var(--accent);
  animation: fadeUp 1s var(--ease-out) .25s both;
}
.hero .eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
}
.hero h1 {
  margin: 28px 0 32px;
  font-family: var(--font-mincho);
  font-size: clamp(2.5rem, 6vw, 5.1rem);
  line-height: 1.34;
  letter-spacing: .08em;
  color: var(--ai-deep);
}
.hero h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: .06em;
}
.hero h1 .line > span {
  display: inline-block;
  animation: lineUp 1.2s var(--ease-out) both;
}
.hero h1 .line:nth-child(1) > span { animation-delay: .4s; }
.hero h1 .line:nth-child(2) > span { animation-delay: .56s; }
.hero p {
  max-width: 34em;
  margin: 0;
  font-size: 1.02rem;
  color: var(--muted);
  animation: fadeUp 1.1s var(--ease-out) .85s both;
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
  animation: fadeUp 1.1s var(--ease-out) 1s both;
}
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 212px;
  min-height: 58px;
  padding: 0 26px;
  border: 1px solid var(--ai);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .12em;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
/* 右端の矢印線。ホバーで伸びる */
.btn::after {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: width .45s var(--ease-out);
}
/* 背景色が左から流れる */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .55s var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover::after { width: 34px; }
.btn-primary { background: var(--ai); color: #fff; }
.btn-primary:hover { color: #fff; border-color: var(--accent); }
.btn-secondary { background: transparent; color: var(--ai); }
.btn-secondary::before { background: var(--ai); }
.btn-secondary:hover { color: #fff; }

/* 右側のパネル：下からせり上がり、波紋がゆっくり広がる */
.hero-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 500px;
  padding: 40px;
  color: #fff;
  background: linear-gradient(160deg, #1a3a63 0%, var(--ai-deep) 62%, #091526 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: cardIn 1.5s var(--ease-out) .5s both;
}
.hero-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -25%;
  top: -30%;
  width: 85%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(46, 160, 166, .5), transparent 62%);
  animation: drift 16s ease-in-out infinite alternate;
}
.hero-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  pointer-events: none;
}
.ripples {
  position: absolute;
  z-index: -1;
  right: -32%;
  bottom: -40%;
  width: 130%;
  aspect-ratio: 1;
  pointer-events: none;
}
.ripples i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  opacity: 0;
  animation: ripple 12s linear infinite;
}
.ripples i:nth-child(2) { animation-delay: -3s; }
.ripples i:nth-child(3) { animation-delay: -6s; }
.ripples i:nth-child(4) { animation-delay: -9s; }

.hero-card__label {
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .26em;
  color: #cfd8e3;
  animation: fadeIn 1s var(--ease) 1.4s both;
}
.hero-card strong {
  max-width: 11em;
  font-family: var(--font-en);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.22;
  letter-spacing: .01em;
  animation: fadeUp 1.2s var(--ease-out) 1.55s both;
}
/* 縦書きの添え書き */
.hero-card__vertical {
  position: absolute;
  top: 40px;
  right: 36px;
  writing-mode: vertical-rl;
  font-family: var(--font-mincho);
  font-size: .92rem;
  letter-spacing: .42em;
  color: #d7dee8;
  animation: fadeIn 1.4s var(--ease) 1.8s both;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-left: -6px;
  font-family: var(--font-en);
  font-size: .76rem;
  letter-spacing: .3em;
  color: var(--muted);
  animation: fadeIn 1s var(--ease) 2s both;
}
.scroll-cue span { writing-mode: vertical-rl; }
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 56px;
  background-color: var(--line-strong);
  background-image: linear-gradient(var(--ai), var(--ai));
  background-repeat: no-repeat;
  background-size: 1px 24px;
  animation: scrollLine 2.4s var(--ease) infinite;
}

/* ------------------------------------------------------------
   セクション共通（大きな英字＋小さな日本語見出し）
------------------------------------------------------------ */
.section {
  position: relative;
  padding: clamp(88px, 11vw, 152px) 0;
}
.section-title {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-title .eyebrow {
  grid-column: 1;
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(3.2rem, 7.2vw, 6.2rem);
  line-height: .95;
  letter-spacing: .01em;
  color: var(--ai);
}
.section-title h2 {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 22px 0 0;
  font-family: var(--font-mincho);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  letter-spacing: .18em;
}
.section-title h2::before {
  content: "";
  flex: none;
  width: 40px;
  height: 1px;
  background: var(--accent);
  transform-origin: left;
  transition: transform 1.1s var(--ease-out) .3s;
}
.section-title p {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  margin: 0;
  color: var(--muted);
}

/* ------------------------------------------------------------
   カード共通
------------------------------------------------------------ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.card {
  position: relative;
  padding: 44px 36px 48px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: translate .5s var(--ease-out), box-shadow .5s var(--ease-out), background-color .5s var(--ease), border-color .5s var(--ease);
}
.card h1 {
  margin: 0 0 24px;
  font-family: var(--font-mincho);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.4;
  letter-spacing: .08em;
  color: var(--ai-deep);
}
.card h3 {
  margin: 0 0 16px;
  font-family: var(--font-mincho);
  font-size: 1.22rem;
  line-height: 1.6;
  letter-spacing: .1em;
}
.card p {
  margin: 0;
  font-size: .94rem;
  color: var(--muted);
}

/* 事業概要：番号つきカード。ホバーで浮き、上辺に線が走る */
.cards-numbered .card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease-out);
}
.cards-numbered .card:hover {
  translate: 0 -6px;
  box-shadow: 0 22px 48px rgba(13, 29, 51, .08);
}
.cards-numbered .card:hover::before { transform: scaleX(1); }
.num {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--ai);
}
.num::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--line-strong);
}

/* 事業理念：濃紺の帯。青海波風の地紋と漢数字 */
.band {
  overflow: hidden;
  background: var(--ai-deep);
  color: #fff;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-radial-gradient(circle at 50% 100%, transparent 0 7px, rgba(255, 255, 255, .07) 7px 8px),
    repeating-radial-gradient(circle at 50% 100%, transparent 0 7px, rgba(255, 255, 255, .07) 7px 8px);
  background-size: 64px 32px;
  background-position: 0 0, 32px 16px;
  -webkit-mask-image: linear-gradient(115deg, transparent 35%, #000 100%);
  mask-image: linear-gradient(115deg, transparent 35%, #000 100%);
}
.band .container { position: relative; }
.band .section-title .eyebrow { color: #e8edf4; }
.band .section-title h2 { color: #fff; }
.band .section-title h2::before { background: var(--accent-light); }
.band .section-title p { color: #b6c1cf; }

.cards-columns { gap: 0; counter-reset: phil; }
.cards-columns .card {
  padding: 8px clamp(24px, 3vw, 44px);
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, .14);
  counter-increment: phil;
}
.cards-columns .card:first-child { padding-left: 0; border-left: 0; }
.cards-columns .card::before {
  content: counter(phil, cjk-ideographic);
  display: block;
  margin-bottom: 28px;
  font-family: var(--font-mincho);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent-light);
}
.cards-columns .card h3 { color: #fff; }
.cards-columns .card p { color: #b6c1cf; }

/* 事業内容：横長の行。番号・見出し・本文を一列に並べる */
.cards-rows {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line-strong);
  counter-reset: svc;
}
.cards-rows .card {
  display: grid;
  grid-template-columns: 96px minmax(0, 4fr) minmax(0, 7fr);
  column-gap: 32px;
  align-items: baseline;
  padding: 44px 24px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  counter-increment: svc;
}
.cards-rows .card::before {
  content: counter(svc, decimal-leading-zero);
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--ai);
  transition: color .4s var(--ease);
}
.cards-rows .card h3 { margin: 0; }
.cards-rows .card:hover { background-color: var(--surface); }
.cards-rows .card:hover::before { color: var(--accent); }

/* ------------------------------------------------------------
   運営者情報（会社概要風の表）
------------------------------------------------------------ */
.operator { background: linear-gradient(to bottom, var(--paper), #efece5); }
.profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.profile-box {
  padding: clamp(28px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
}
.profile dl {
  display: grid;
  grid-template-columns: minmax(7.5em, auto) 1fr;
  margin: 0;
  border-top: 1px solid var(--ai);
}
.profile dt,
.profile dd {
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.profile dt {
  padding-right: 20px;
  font-size: .86rem;
  letter-spacing: .1em;
  color: var(--muted);
}
.profile dd {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.profile dd a,
.contact-box dd a {
  color: var(--ai);
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size .45s var(--ease-out), color .3s var(--ease);
}
.profile dd a:hover,
.contact-box dd a:hover {
  color: var(--accent);
  background-size: 100% 1px;
}
.profile-box h3 {
  position: relative;
  margin: 0 0 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mincho);
  font-size: 1.3rem;
  letter-spacing: .12em;
  line-height: 1.6;
}
.profile-box h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 48px;
  height: 1px;
  background: var(--accent);
}
.profile-box p {
  margin: 0 0 1.2em;
  font-size: .95rem;
  color: var(--muted);
}
.profile-box p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------
   プライバシーポリシー
------------------------------------------------------------ */
.privacy-page { padding-top: clamp(64px, 8vw, 112px); }
.privacy-wrap { max-width: 960px; }
.privacy-card {
  padding: clamp(32px, 6vw, 88px);
  background: var(--surface);
  border: 1px solid var(--line);
}
.privacy-card .eyebrow {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 1;
  letter-spacing: .01em;
  color: var(--ai);
}
.privacy-card h1 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 48px;
  font-family: var(--font-mincho);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.6;
  letter-spacing: .18em;
  color: var(--ink);
}
.privacy-card h1::before {
  content: "";
  flex: none;
  width: 40px;
  height: 1px;
  background: var(--accent);
  transform-origin: left;
  transition: transform 1.1s var(--ease-out) .3s;
}
.privacy-card h2 {
  position: relative;
  margin: 56px 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mincho);
  font-size: 1.12rem;
  line-height: 1.6;
  letter-spacing: .1em;
}
.privacy-card h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 48px;
  height: 1px;
  background: var(--accent);
}
.privacy-card p,
.privacy-card li { font-size: .95rem; color: var(--muted); }
.privacy-card ul { padding-left: 0; list-style: none; }
.privacy-card li { position: relative; padding-left: 1.4em; }
.privacy-card li::before {
  content: "";
  position: absolute;
  left: .2em;
  top: .9em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.contact-box {
  margin-top: 20px;
  border-top: 1px solid var(--ai);
}
.contact-box dl {
  display: grid;
  grid-template-columns: 10em 1fr;
  margin: 0;
}
.contact-box dt,
.contact-box dd {
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-box dt { font-size: .88rem; color: var(--muted); }
.contact-box dd { font-weight: 500; overflow-wrap: anywhere; }
.policy-date {
  margin-top: 48px;
  text-align: right;
  font-size: .88rem;
}

/* ------------------------------------------------------------
   フッター
------------------------------------------------------------ */
.site-footer {
  padding: 56px 0;
  background: var(--ai-deep);
  color: #9eabbd;
  font-size: .84rem;
  letter-spacing: .08em;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-links a {
  position: relative;
  color: #d5dce6;
}
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--accent-light);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.footer-links a:hover { color: #fff; }
.footer-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ------------------------------------------------------------
   スクロール表示（JSが有効なときだけ隠す）
------------------------------------------------------------ */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition:
    opacity 1s var(--ease-out),
    transform 1.2s var(--ease-out),
    clip-path 1.4s var(--ease-out),
    translate .5s var(--ease-out),
    box-shadow .5s var(--ease-out),
    background-color .5s var(--ease),
    border-color .5s var(--ease);
}
.js [data-reveal="clip"] {
  opacity: 1;
  transform: none;
  clip-path: inset(-20% 100% -20% 0);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"].is-in { clip-path: inset(-20% -10% -20% 0); }
.js .section-title h2[data-reveal]:not(.is-in)::before,
.js .privacy-card h1[data-reveal]:not(.is-in)::before { transform: scaleX(0); }

/* ------------------------------------------------------------
   アニメーション定義
------------------------------------------------------------ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes lineUp {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}
@keyframes cardIn {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes linesIn {
  from { opacity: 0; transform: scaleY(0); }
  to { opacity: 1; transform: scaleY(1); }
}
@keyframes ripple {
  0% { opacity: 0; transform: scale(.12); }
  12% { opacity: .85; }
  100% { opacity: 0; transform: scale(1); }
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(45%, 60%) scale(1.25); }
}
@keyframes scrollLine {
  from { background-position: 0 -24px; }
  to { background-position: 0 56px; }
}

/* ------------------------------------------------------------
   スマホ・タブレット
------------------------------------------------------------ */
@media (max-width: 860px) {
  body { font-size: 15px; }
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 68px; }
  .site-header.is-scrolled .header-inner { min-height: 60px; }

  .nav-toggle {
    position: relative;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ai);
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 26px;
    height: 1px;
    background: currentColor;
    transition: transform .45s var(--ease-out);
  }
  .nav-open .nav-toggle { color: #fff; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .nav-open .brand { color: #fff; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 96px 32px 48px;
    background: var(--ai-deep);
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s var(--ease), visibility 0s linear .45s;
  }
  .nav-open .nav {
    opacity: 1;
    visibility: visible;
    transition: opacity .45s var(--ease);
  }
  .nav a {
    padding: 12px 0;
    font-family: var(--font-mincho);
    font-size: 1.55rem;
    letter-spacing: .14em;
    color: #fff;
    opacity: 0;
    translate: 0 16px;
    transition: opacity .5s var(--ease), translate .7s var(--ease-out), color .3s var(--ease);
  }
  .nav a::after { background: var(--accent-light); }
  .nav a:hover { color: #fff; }
  .nav-open .nav a { opacity: 1; translate: 0 0; }
  .nav-open .nav a:nth-child(1) { transition-delay: .1s; }
  .nav-open .nav a:nth-child(2) { transition-delay: .16s; }
  .nav-open .nav a:nth-child(3) { transition-delay: .22s; }
  .nav-open .nav a:nth-child(4) { transition-delay: .28s; }

  .hero { padding: 48px 0 96px; }
  /* スマホでは罫線を左右の端だけにする（本文に線が重ならないように） */
  .hero::before {
    background-image: linear-gradient(to right, #e9e5dc 1px, transparent 1px);
    background-size: calc(100% - 40px) 100%;
  }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { margin: 20px 0 24px; }
  .btns { margin-top: 32px; }
  .btn { min-width: 0; flex: 1 1 200px; }
  .hero-card { min-height: 420px; padding: 32px; }
  .hero-card__vertical { top: 32px; right: 28px; font-size: .8rem; letter-spacing: .3em; }
  .hero-card strong { max-width: calc(100% - 36px); font-size: 1.75rem; }
  .scroll-cue { display: none; }

  .section-title { grid-template-columns: 1fr; }
  .section-title p { grid-column: 1; grid-row: auto; margin-top: 24px; }

  .grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 32px 26px 36px; }

  .cards-columns { gap: 0; }
  .cards-columns .card,
  .cards-columns .card:first-child {
    padding: 32px 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
  }
  .cards-columns .card:first-child { padding-top: 0; border-top: 0; }

  .cards-rows { gap: 0; }
  .cards-rows .card {
    grid-template-columns: 52px minmax(0, 1fr);
    row-gap: 10px;
    padding: 32px 4px;
  }
  .cards-rows .card::before { font-size: 1.7rem; }
  .cards-rows .card p { grid-column: 2; }

  .profile { grid-template-columns: 1fr; }
  .profile dl { grid-template-columns: 1fr; }
  .profile dt { padding-bottom: 0; border-bottom: 0; }
  .profile dd { padding-top: 4px; }

  .contact-box dl { grid-template-columns: 1fr; }
  .contact-box dt { padding-bottom: 0; border-bottom: 0; }
  .contact-box dd { padding-top: 4px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 20px; }
}

/* 動きを減らす設定の端末では、アニメーションを止める */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .ripples, .scroll-cue::after { display: none; }
}
