/* ============================================================
   Lilac — Light Luxury Redesign (v10 mock)
   名刺準拠: 白/クリーム × ゴールド × ライラック紫 × ニアブラック
   Figma 前のたたき台 / design tokens & components
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* paper / ink */
  --paper:      #faf8f4;   /* warm white (base) */
  --paper-2:    #f4eee2;   /* cream tint (alt sections) */
  --paper-3:    #efe7d8;   /* deeper cream */
  --ink:        #16181a;   /* near-black (card name) */
  --ink-2:      #4a463f;   /* secondary warm grey */
  --ink-3:      #6b6458;   /* muted — 4.76:1 on --paper-3 (the darkest surface it lands on) */

  /* gold */
  --gold:       #c8a96a;   /* primary metallic accent (rules/marks) */
  --gold-l:     #dec48f;   /* light gold */
  --gold-ink:   #7d5f22;   /* readable gold for caps labels — 4.84:1 on --paper-3 */

  /* lilac */
  --lilac:      #ad8fc6;   /* lilac accent (decorative) */
  --lilac-d:    #7d4f8e;   /* deep lilac (text/icons/links) */
  --lilac-soft: #efe7f4;   /* lilac wash (chips/cards) */

  /* lines / surfaces */
  --line:       rgba(22,24,26,.10);
  --line-soft:  rgba(22,24,26,.06);
  --line-gold:  rgba(200,169,106,.55);
  --surface:    #ffffff;

  /* type */
  --f-serif-en: "Playfair Display", "Noto Serif JP", Georgia, serif;
  --f-caps:     "Marcellus", "Noto Serif JP", serif;
  --f-serif-jp: "Noto Serif JP", "Playfair Display", serif;
  --f-jp:       "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --t-hero:     clamp(2.6rem, 6.4vw, 5.3rem);
  --t-display:  clamp(1.9rem, 3.8vw, 3.1rem);
  --t-h3:       clamp(1.25rem, 2vw, 1.6rem);
  --eyebrow:    .76rem;
  --track-wide: .26em;
  --track-caps: .2em;

  /* layout */
  --container:  1180px;
  --gutter:     clamp(20px, 5vw, 64px);
  --radius:     14px;
  --radius-lg:  22px;
  --shadow-sm:  0 2px 10px rgba(40,30,15,.05);
  --shadow-md:  0 18px 50px rgba(60,45,20,.10);
  --shadow-lg:  0 30px 80px rgba(60,45,20,.14);

  --ease:       cubic-bezier(.22,1,.36,1);
  --dur:        .55s;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* scroll-padding-top clears the fixed header for EVERY anchor landing.
   Keep it here rather than adding per-target scroll-margin-top rules. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--f-jp);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.85;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* faint warm paper wash */
  background-image:
    radial-gradient(120% 80% at 88% -8%, rgba(200,169,106,.10), transparent 46%),
    radial-gradient(90% 60% at 8% 4%, rgba(173,143,198,.07), transparent 50%);
  background-attachment: fixed;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--lilac-soft); color: var(--ink); }

/* Keyboard focus — one rule for every link, button and control on the site. */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 132px); position: relative; }
.section--tint { background: var(--paper-2); }
.section--cream { background: linear-gradient(180deg, var(--paper-2), var(--paper-3)); }
.narrow { max-width: 760px; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--f-caps);
  font-size: var(--eyebrow); letter-spacing: var(--track-wide);
  text-transform: uppercase; color: var(--gold-ink);
}
.eyebrow::before {
  content: ""; width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow--center::after {
  content: ""; width: 34px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.eyebrow--center { justify-content: center; }

.display {
  font-family: var(--f-serif-jp);
  font-weight: 600; line-height: 1.28; letter-spacing: .01em;
  font-size: var(--t-display); color: var(--ink);
}
.display em { font-family: var(--f-serif-en); font-style: italic; color: var(--lilac-d); font-weight: 500; }
.lead { color: var(--ink-2); font-size: 1.02rem; max-width: 60ch; }

.section__head { margin-bottom: clamp(34px, 5vw, 60px); }
.section__head .display { margin-top: .5rem; }
.section__head .lead { margin-top: 1.1rem; }
.section__head--center { text-align: center; }
.section__head--center .lead { margin-inline: auto; }

/* Lilac wordmark */
.wordmark {
  font-family: var(--f-serif-en);
  font-weight: 600; font-style: italic;
  color: var(--gold-ink); letter-spacing: .01em;
  display: inline-flex; align-items: center; gap: .42em;
}
.wordmark .dia { width: .5em; height: .5em; rotate: 45deg; background: var(--lilac); border-radius: 1px; }

/* ---------- Floret / ornament ---------- */
.floret { color: var(--lilac); }
.divider {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-block: clamp(40px, 6vw, 72px);
}
.divider::before, .divider::after {
  content: ""; height: 1px; width: min(140px, 22vw);
  background: linear-gradient(90deg, transparent, var(--line-gold));
}
.divider::after { background: linear-gradient(90deg, var(--line-gold), transparent); }
.divider .dia {
  width: 9px; height: 9px; rotate: 45deg; background: var(--lilac);
  box-shadow: 0 0 0 4px rgba(173,143,198,.16);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: 1em 1.8em; border-radius: 999px;
  font-family: var(--f-jp); font-weight: 600; font-size: .94rem; letter-spacing: .04em;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--primary {
  background: var(--ink); color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), var(--shadow-sm);
}
.btn--primary:hover { background: var(--lilac-d); transform: translateY(-2px); box-shadow: 0 16px 36px rgba(125,79,142,.28); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-gold); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--gold); transform: translateY(-2px); color: var(--gold-ink); }
.btn--gold { background: linear-gradient(135deg, var(--gold-l), var(--gold)); color: #2b2412; box-shadow: var(--shadow-sm); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(200,169,106,.34); }
.btn--sm { padding: .7em 1.3em; font-size: .85rem; }

.textlink { color: var(--lilac-d); font-weight: 600; display: inline-flex; align-items: center; gap: .4em;
  border-bottom: 1px solid var(--line-gold); padding-bottom: 2px; transition: border-color .3s; }
.textlink:hover { border-color: var(--lilac-d); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center;
  padding: 16px var(--gutter);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(250,248,244,.86); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line-soft), 0 8px 30px rgba(60,45,20,.06);
  padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: .65em; margin-right: auto; }
/* width/height属性はCLS対策で全imgに入れてある。CSSでwidthだけ上書きすると
   height属性が残って画像が歪むので、既定はheight:autoにしておく。
   高さを固定したい画像（.brand img / .work-card__media img）は個別に指定する。 */
img { height: auto; }

.brand img { width: 38px; height: 38px; }
.brand .wordmark { font-size: 1.5rem; }
.brand small { display: block; font-family: var(--f-jp); font-style: normal; font-weight: 500;
  font-size: .56rem; letter-spacing: .42em; color: var(--lilac-d); margin-top: -2px; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a { font-size: .9rem; font-weight: 500; color: var(--ink-2); position: relative; padding: 4px 0; transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--gold); transition: width .35s var(--ease); }
.nav a:hover { color: var(--ink); } .nav a:hover::after { width: 100%; }
.header-cta { margin-left: 8px; }
.hamburger { display: none; width: 44px; height: 44px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.hamburger span { width: 24px; height: 1.6px; background: var(--ink); transition: .35s var(--ease); }
.hamburger.is-open span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* mobile menu */
.menu-overlay {
  position: fixed; inset: 0; z-index: 99; background: var(--paper);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: var(--gutter); transform: translateY(-100%); transition: transform .5s var(--ease);
  background-image: radial-gradient(80% 50% at 90% 6%, rgba(200,169,106,.12), transparent 50%);
}
.menu-overlay.is-open { transform: translateY(0); }
.menu-overlay a { font-family: var(--f-serif-jp); font-size: clamp(1.6rem, 7vw, 2.4rem); font-weight: 600; padding: 10px 0; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: baseline; }
.menu-overlay a span { font-family: var(--f-caps); font-size: .8rem; color: var(--gold-ink); letter-spacing: .2em; }
.menu-foot { margin-top: 30px; color: var(--ink-3); font-size: .85rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: 120px; padding-bottom: 60px; overflow: hidden; }
.hero__glow { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(46% 50% at 82% 22%, rgba(173,143,198,.30), transparent 60%),
    radial-gradient(40% 44% at 92% 10%, rgba(200,169,106,.26), transparent 60%);
  filter: blur(6px); }
.hero__emblem { position: absolute; right: clamp(-60px, -2vw, 0px); top: 14%; width: clamp(220px, 34vw, 460px);
  opacity: .9; z-index: 0; animation: floaty 9s ease-in-out infinite;
  /* emblem-trans.pngは全面にアルファ50〜63の白板が焼き付いている（完全透明0.006%）。
     multiplyで白＝背景と同化させて板を消す（1401px以上でopacity .9のとき四角い板が
     露出していた）。drop-shadowも板の矩形に付いて四角い影になるため外した。 */
  mix-blend-mode: multiply; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero__inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { font-family: var(--f-serif-jp); font-weight: 700; font-size: var(--t-hero); line-height: 1.22; letter-spacing: .005em; margin: 1.1rem 0 0; }
.hero h1 .accent { color: var(--lilac-d); white-space: nowrap; }
/* screenshot/cap helper: collapse full-height hero so long pages flow */
.cap .hero { min-height: auto; padding-top: 150px; padding-bottom: 90px; }
.hero h1 .en { display: block; font-family: var(--f-serif-en); font-style: italic; font-weight: 500; color: var(--gold-ink); font-size: .42em; letter-spacing: .04em; margin-top: .5rem; }
.hero__sub { margin-top: 1.6rem; font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--ink-2); font-weight: 500; }
.hero__desc { margin-top: 1rem; color: var(--ink-3); max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.4rem; }
.hero__meta { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft); }
.hero__meta div { font-size: .82rem; color: var(--ink-3); }
.hero__meta strong { display: block; font-family: var(--f-caps); font-size: 1.45rem; color: var(--ink); letter-spacing: .02em; font-weight: 400; }
.hero__scroll { position: absolute; left: var(--gutter); bottom: 26px; z-index: 1; font-family: var(--f-caps); font-size: .68rem; letter-spacing: .3em; color: var(--gold-ink); writing-mode: vertical-rl; display: flex; align-items: center; gap: 12px; }
.hero__scroll::after { content: ""; width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); }

/* ---------- Works ---------- */
.works-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.6vw, 34px); }
.work-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s; }
/* カード全体はリンクではない（中の .textlink だけが押せる）ので、hoverで浮かせない。
   浮かせると「カードごと押せる」と読めてしまい、押しても何も起きない。
   代わりに、中のリンクにフォーカスが入ったときだけ枠を反応させる（キーボード操作の手がかり）。 */
.work-card:focus-within { box-shadow: var(--shadow-md); border-color: var(--line-gold); }
.work-card__media { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--paper-2), var(--lilac-soft)); position: relative; overflow: hidden; display: grid; place-items: center; }
.work-card__media .ph { font-family: var(--f-caps); letter-spacing: .2em; color: var(--lilac-d); opacity: .5; font-size: .8rem; text-transform: uppercase; }
.work-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(22,24,26,.04)); }
/* Real screenshot fills the 16/10 plate. */
.work-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.work-card__media video { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
/* No screenshot available (undisclosed / pre-release work): say so instead of
   showing an empty plate. Readable text, not a faded decorative label. */
.work-card__media--note { background: linear-gradient(135deg, var(--paper-2), var(--paper-3)); }
.work-card__media .note { text-align: center; padding: 0 18px; font-family: var(--f-caps); letter-spacing: .16em; font-size: .84rem; color: var(--ink-2); }
.work-card__media .note small { display: block; margin-top: 7px; font-family: var(--f-jp); letter-spacing: .02em; font-size: .74rem; color: var(--ink-3); }
.work-card__body { padding: 22px 24px 26px; }
/* 和文の行頭禁則: 既定のline-break:autoだと「ー」が行頭に落ちる（採点3周目🟡）。
   h1折返し位置に依存するヒーローのテストがあるため、カード本文だけに絞って適用する。 */
.work-card__body p { line-break: strict; }
.work-card__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tag { font-family: var(--f-caps); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); border: 1px solid var(--line-gold); border-radius: 999px; padding: 4px 11px; }
.tag--lilac { color: var(--lilac-d); border-color: rgba(125,79,142,.3); background: var(--lilac-soft); }
.work-card h3 { font-family: var(--f-serif-jp); font-size: var(--t-h3); font-weight: 600; line-height: 1.4; }
.work-card p { color: var(--ink-3); font-size: .92rem; margin-top: 8px; }
.work-card__result { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: .86rem; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.work-card__result b { color: var(--lilac-d); }

/* ---------- Services ---------- */
.services-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 56px 1fr auto; gap: clamp(18px, 3vw, 44px); align-items: start;
  padding: clamp(26px, 4vw, 44px) 0; border-bottom: 1px solid var(--line); transition: background .4s; }
.service-row:hover { background: rgba(255,255,255,.5); }
.service-row__no { font-family: var(--f-caps); color: var(--gold-ink); font-size: 1.1rem; letter-spacing: .1em; padding-top: 4px; }
.service-row h3 { font-family: var(--f-serif-jp); font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 600; }
.service-row h3 .en { display: block; font-family: var(--f-caps); font-size: .72rem; letter-spacing: .24em; color: var(--lilac-d); text-transform: uppercase; margin-bottom: 6px; }
.service-row p { color: var(--ink-3); margin-top: 10px; max-width: 52ch; }
.service-row .meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.service-row .meta span { font-size: .82rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.service-row .meta span::before { content: ""; width: 5px; height: 5px; rotate: 45deg; background: var(--lilac); }
.service-row__cta { align-self: center; }
.svc-icon { width: 50px; height: 50px; color: var(--lilac-d); }

/* ---------- Why choose ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(16px, 2vw, 24px); }
.why-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; position: relative; box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.why-card__no { font-family: var(--f-serif-en); font-size: 2.4rem; color: var(--gold); line-height: 1; opacity: .85; }
.why-card h3 { font-family: var(--f-serif-jp); font-size: 1.18rem; font-weight: 600; margin: 14px 0 10px; line-height: 1.5; }
.why-card p { color: var(--ink-3); font-size: .9rem; }
.why-card::after { content: ""; position: absolute; left: 28px; right: 28px; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--gold), var(--lilac)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); border-radius: 2px; }
.why-card:hover::after { transform: scaleX(1); }

/* ---------- Pricing band ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px; position: relative; box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.price-card.is-featured { border-color: var(--line-gold); box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(200,169,106,.25); }
.price-card.is-featured::before { content: "人気"; position: absolute; top: -12px; left: 50%; translate: -50% 0; background: linear-gradient(135deg, var(--gold-l), var(--gold)); color: #2b2412; font-size: .72rem; font-weight: 700; letter-spacing: .1em; padding: 5px 16px; border-radius: 999px; }
.price-card .plan-en { font-family: var(--f-caps); letter-spacing: .22em; text-transform: uppercase; color: var(--lilac-d); font-size: .72rem; }
.price-card .plan { font-family: var(--f-serif-jp); font-size: 1.3rem; font-weight: 600; margin-top: 4px; }
.price-card .amount { font-family: var(--f-serif-en); font-size: 2.5rem; color: var(--ink); margin: 14px 0 4px; }
.price-card .amount small { font-size: .9rem; color: var(--ink-3); font-family: var(--f-jp); }
.price-card ul { margin-top: 18px; display: grid; gap: 10px; }
.price-card li { font-size: .88rem; color: var(--ink-2); display: flex; gap: 10px; }
.price-card li::before { content: "✦"; color: var(--gold); }
.pricing-note { margin-top: 28px; text-align: center; color: var(--ink-3); font-size: .88rem; }
.pricing-note b { color: var(--lilac-d); }

/* ---------- Process ---------- */
.process { counter-reset: step; display: grid; gap: 0; }
.process-step { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 40px); padding: clamp(22px, 3.5vw, 36px) 0; border-bottom: 1px solid var(--line); position: relative; }
.process-step:last-child { border-bottom: 0; }
.process-step__no { counter-increment: step; font-family: var(--f-serif-en); font-size: clamp(2rem, 4vw, 3.2rem); color: var(--gold); line-height: 1; min-width: 2ch; }
.process-step__no::before { content: "0" counter(step); }
.process-step h3 { font-family: var(--f-serif-jp); font-size: 1.25rem; font-weight: 600; }
.process-step h3 .en { font-family: var(--f-caps); font-size: .68rem; letter-spacing: .22em; color: var(--lilac-d); text-transform: uppercase; margin-left: 12px; }
.process-step p { color: var(--ink-3); margin-top: 8px; max-width: 60ch; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.about-portrait { position: relative; }
.about-portrait .frame { aspect-ratio: 4/5; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--paper-2), var(--lilac-soft)); display: grid; place-items: center; box-shadow: var(--shadow-md); border: 1px solid var(--line); overflow: hidden; }
.about-portrait .frame .ph { font-family: var(--f-caps); letter-spacing: .2em; color: var(--lilac-d); opacity: .5; font-size: .8rem; }
.about-portrait .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 「秋田から、ひとりで全部。」が375/1280以上で「全/部。」に泣き別れるのを防ぐ
   （320〜1920の全幅でemがはみ出さないことは採点役が実測済み） */
#about-title em { white-space: nowrap; }
/* 金の細枠: 似顔絵のスーツ(ほぼ同じ黒)に輪郭が溶けないように（採点🟡） */
.about-portrait .badge { position: absolute; right: -14px; bottom: 24px; background: var(--ink); color: var(--paper); padding: 14px 20px; border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--line-gold); }
.about-portrait .badge span { display: block; font-family: var(--f-caps); font-size: .64rem; letter-spacing: .24em; color: var(--gold-l); }
.about-portrait .badge strong { font-family: var(--f-serif-jp); font-size: 1.05rem; }
/* ケーススタディ（works.html）だけのバリエーション。肖像写真ではなくデモ動画が主役なので、
   about.html の 1fr 1.2fr（縦長の写真＋長文）をそのまま使うと逆に主役が縮む。
   1440pxでは一覧カードの動画が約507px幅なのに対し、この枠は約442pxしか取れず
   「大きく見せたはずが一覧より小さい」状態になっていた（UI採点 2026-08-28 の指摘）。
   左カラムを広げ・段間を詰めて、常に一覧カードより大きい映像にする。
   about.html / services.html の .about-grid には影響させないため、モディファイアで上書きする。 */
.about-grid--case { grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 3.4vw, 48px); align-items: start; }
.about-grid--case .frame { aspect-ratio: 16/10; }
.about-grid--case .frame video { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
/* align-items:center のままだと短い方（動画）が縦中央へ落ちて上下に大きな余白が出る。
   start に変えたうえで、テキスト列の先頭 h2 の margin-top を落として動画の上端と揃える。 */
.about-grid--case .prose h2:first-child { margin-top: 0; }
.about-body .display { margin: .4rem 0 1.2rem; }
.about-body p { color: var(--ink-2); margin-bottom: 1rem; }
.about-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.about-stats div strong { display: block; font-family: var(--f-serif-en); font-size: 1.8rem; color: var(--lilac-d); }
.about-stats div span { font-size: .78rem; color: var(--ink-3); }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.contact-aside .display { margin: .4rem 0 1rem; }
.contact-aside .lead { margin-bottom: 1.8rem; }
/* With the form removed these three cards ARE the primary CTA, so they get
   button-scale padding and the mail card is marked as the recommended route. */
.contact-channels { display: grid; gap: 12px; margin-top: 1.4rem; align-content: start; }
.contact-channels a { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .35s, transform .35s, box-shadow .35s; }
.contact-channels a:hover { border-color: var(--line-gold); transform: translateX(4px); }
.contact-channels a.is-primary { border-color: var(--line-gold); box-shadow: var(--shadow-sm); }
.contact-channels a.is-primary .ico { background: var(--ink); color: var(--gold-l); }
.contact-channels .ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--lilac-soft); color: var(--lilac-d); flex: none; }
.contact-channels small { display: block; font-family: var(--f-caps); letter-spacing: .18em; font-size: .62rem; color: var(--gold-ink); text-transform: uppercase; }
.contact-channels b { font-weight: 600; }
/* "What do I even write?" — three example lines so U1 is never staring at a blank mail. */
.contact-hint { margin-top: 1.6rem; }
.contact-hint > p { color: var(--ink-2); font-size: .94rem; font-weight: 600; }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .82rem; color: var(--ink-2); margin-bottom: 7px; font-weight: 600; }
.field label .req { color: var(--lilac-d); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink); font: inherit; font-size: .94rem; transition: border-color .3s, box-shadow .3s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 3px rgba(173,143,198,.18); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .78rem; color: var(--ink-3); margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-3); border-top: 1px solid var(--line); padding-block: clamp(48px, 7vw, 84px) 30px; position: relative; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 5vw, 60px); }
.footer-brand .wordmark { font-size: 1.7rem; }
.footer-brand p { color: var(--ink-3); font-size: .88rem; margin-top: 14px; max-width: 34ch; }
.footer-brand .tagline { font-family: var(--f-caps); letter-spacing: .22em; font-size: .68rem; color: var(--gold-ink); text-transform: uppercase; margin-top: 18px; }
.footer-col h4 { font-family: var(--f-caps); font-size: .72rem; letter-spacing: .2em; color: var(--lilac-d); text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--ink-2); font-size: .9rem; padding: 5px 0; transition: color .3s; }
.footer-col a:hover { color: var(--gold-ink); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  margin-top: clamp(36px, 5vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .8rem; }
.footer-bottom .links { display: flex; gap: 18px; }
.footer-bottom a:hover { color: var(--ink); }

/* ---------- Floating CTA (mobile) ---------- */
.floating-cta { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  display: none; gap: 10px; padding: 10px; background: rgba(250,248,244,.92); backdrop-filter: blur(12px);
  border: 1px solid var(--line-gold); border-radius: 16px; box-shadow: var(--shadow-md);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s var(--ease); }
.floating-cta .btn { flex: 1; justify-content: center; }
/* Once #contact is on screen the follower has nothing left to do — and it can no
   longer collide with the content it points at. Toggled by app.js. */
.floating-cta.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(10px); }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { padding-top: 150px; padding-bottom: clamp(40px, 6vw, 70px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -4%; top: 0; width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(200,169,106,.18), transparent 65%); pointer-events: none; }
.page-hero h1 { font-family: var(--f-serif-jp); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 1rem 0; line-height: 1.2; }
.page-hero h1 .en { display: block; font-family: var(--f-serif-en); font-style: italic; color: var(--gold-ink); font-size: .4em; font-weight: 500; margin-bottom: .3rem; }
.breadcrumb { font-family: var(--f-caps); font-size: .72rem; letter-spacing: .16em; color: var(--ink-3); text-transform: uppercase; }
.breadcrumb a { color: var(--gold-ink); }

/* prose for content pages */
.prose { max-width: 720px; }
.prose h2 { font-family: var(--f-serif-jp); font-size: 1.5rem; font-weight: 600; margin: 2.2rem 0 1rem; }
.prose p { color: var(--ink-2); margin-bottom: 1rem; }
.prose ul.check { display: grid; gap: 10px; margin: 1rem 0; }
.prose ul.check li { display: flex; gap: 10px; color: var(--ink-2); }
.prose ul.check li::before { content: "✦"; color: var(--gold); }
.prose .muted-note { font-size: .8rem; color: var(--ink-3); background: var(--lilac-soft); border-radius: 10px; padding: 12px 16px; }

/* News list */
.news-list { border-top: 1px solid var(--line); }
.news-row { display: grid; grid-template-columns: 132px 1fr auto; gap: 22px; align-items: center; padding: 22px 4px; border-bottom: 1px solid var(--line); transition: background .3s, padding-left .3s; }
a.news-row:hover { background: rgba(255,255,255,.6); padding-left: 12px; }
.news-row time { font-family: var(--f-caps); color: var(--gold-ink); font-size: .86rem; letter-spacing: .08em; }
.news-row h3 { font-family: var(--f-serif-jp); font-size: 1.05rem; font-weight: 600; line-height: 1.5; }
.news-row .tag { justify-self: start; }
@media (max-width: 680px) { .news-row { grid-template-columns: 1fr; gap: 6px; } .news-row .tag { order: -1; } }

/* Blog cards */
.blog-card { display: flex; flex-direction: column; }
.blog-card .work-card__media { aspect-ratio: 16/9; }
/* The article pages do not exist yet, so blog cards are not links. Drop the hover
   lift — it is the affordance that makes a card look clickable. Restore it (delete
   this rule) when each card gets a real href. */
.blog-card:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--line); }
.blog-card time { font-family: var(--f-caps); color: var(--ink-3); font-size: .76rem; letter-spacing: .08em; }

/* Legal table */
.legal-table { width: 100%; border-collapse: collapse; margin-top: 1.4rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 15px 14px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.legal-table th { width: 32%; color: var(--ink-2); font-weight: 600; background: rgba(125,79,142,.04); }
@media (max-width: 600px) { .legal-table, .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td { display: block; width: 100%; } .legal-table th { border-bottom: 0; } }

/* 404 */
.error-page { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 140px var(--gutter) 80px; }
.error-page img { width: 130px; margin: 0 auto 24px; opacity: .9; }
.error-page .code { font-family: var(--f-serif-en); font-size: clamp(4rem, 16vw, 9rem); line-height: 1; color: var(--gold); }
.error-page h1 { font-family: var(--f-serif-jp); font-size: 1.5rem; margin: 10px 0 16px; }

/* ---------- Reveal animation (progressive enhancement) ----------
   Visible by default (no-JS / SEO friendly). Only hidden once .js is set. */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-d="1"] { transition-delay: .08s; }
.js .reveal[data-d="2"] { transition-delay: .16s; }
.js .reveal[data-d="3"] { transition-delay: .24s; }
.js .reveal[data-d="4"] { transition-delay: .32s; }

/* ---------- Responsive ---------- */
/* Intermediate widths (iPad portrait, laptops). Between 761px and 1400px the hero
   copy is already at its 760px max while the emblem still sits at the top-right,
   so the two collide. Send the emblem down behind the meta row and fade it instead
   of narrowing .hero__inner (that would break h1 into more lines).
   上限を1100→1400にした理由（2026-08-18・実測）：
   文字の実占有領域（Rangeの矩形）と絵の実効領域（薄い白板を除いた内側）で測ると、
   重なりは 1101px=44px / 1150px=63px / 1200px=82px で、1210px以降は+67pxの余白に転じる。
   ⚠️ この境界は h1 の折り返し点に乗っているだけで、10px広げると150px動く（1200→1210）。
   つまりフォントの読み込み状況や字形が変われば境界も動くので、1240px付近に合わせるのは危険。
   1401pxまで余裕を取って「絵を下へ逃がす」扱いを適用する。
   1401px以上は文字と絵が70px以上離れるので、従来どおり右上に大きく出す。 */
@media (max-width: 1400px) {
  .hero__emblem { top: auto; bottom: 2%; right: -7%; width: clamp(230px, 27vw, 300px); opacity: .38; }
}
@media (max-width: 980px) {
  .about-grid, .contact-wrap { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  /* 1カラム時に肖像がビューポート幅90%まで肥大しないように（採点⚪） */
  .about-portrait { max-width: 420px; margin-inline: auto; }
}
@media (max-width: 480px) {
  /* right:-14pxのままだと画面端6pxまで迫りガターを破る（採点🟡） */
  .about-portrait .badge { right: 8px; }
}
@media (max-width: 760px) {
  .nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .works-grid, .pricing { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 40px 1fr; }
  .service-row__cta { grid-column: 2; justify-self: start; margin-top: 10px; }
  .hero__emblem { opacity: .42; width: 280px; top: auto; bottom: 6%; right: clamp(-60px, -2vw, 0px); }
  .hero { min-height: auto; padding-top: 130px; }
  .floating-cta { display: flex; }
  .footer-top { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
  body { padding-bottom: 84px; }
}

/* ============================================================
   Loading screen (preloader) — Concept A
   Emblem + gold progress ring + Lilac wordmark + hairline bar
   + % counter + tagline + skip. Instant first paint and the
   CSS-only safety fade live in each page's inline <head> CSS;
   this block is the full styling + the leaving animation.
   ============================================================ */
.loader {
  font-family: var(--f-jp);
  color: var(--ink);
  text-align: center;
  isolation: isolate;
}
/* Leaving: soft fade + slight scale-up + faint blur (~0.6s). */
body.is-loaded .loader {
  transform: scale(1.02);
  filter: blur(3px);
  transition:
    opacity .6s var(--ease), visibility .6s var(--ease),
    transform .6s var(--ease), filter .6s var(--ease);
}

.loader__glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(46% 50% at 82% 20%, rgba(173,143,198,.22), transparent 60%),
    radial-gradient(40% 44% at 90% 8%,  rgba(200,169,106,.22), transparent 60%);
  filter: blur(6px);
}

.loader__stage {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(13px, 2.2vw, 20px);
  padding: 24px;
}

/* Emblem + progress ring */
.loader__emblem-wrap {
  position: relative;
  width: clamp(96px, 22vw, 132px);
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  margin-bottom: 2px;
}
.loader__emblem {
  position: relative; z-index: 1;
  width: 74%; height: auto;
  opacity: 0;
  filter: drop-shadow(0 14px 30px rgba(125,79,142,.16));
  animation: loader-emblem-in .8s var(--ease) .05s forwards;
}
@keyframes loader-emblem-in {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1); }
}
.loader__ring {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);     /* start the arc at 12 o'clock */
  overflow: visible;
}
.loader__ring-track {
  stroke: var(--line-gold);
  stroke-width: 1.4;
  opacity: .55;
}
.loader__ring-fill {
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;        /* empty until JS drives it */
  filter: drop-shadow(0 0 4px rgba(200,169,106,.55));
  transition: stroke-dashoffset .25s linear;
}

/* Wordmark: dia  Lilac  dia */
.loader__word {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--f-serif-en);
  font-weight: 600; font-style: italic;
  font-size: clamp(1.85rem, 5.4vw, 2.7rem);
  line-height: 1;
  color: var(--gold-ink); letter-spacing: .015em;
  opacity: 0; animation: loader-rise .7s var(--ease) .28s forwards;
}
.loader__dia {
  width: .4em; height: .4em; rotate: 45deg;
  background: var(--lilac); border-radius: 1px;
  box-shadow: 0 0 0 3px rgba(173,143,198,.14);
}
.loader__jp {
  font-family: var(--f-jp); font-weight: 500;
  font-size: clamp(.62rem, 1.5vw, .72rem);
  letter-spacing: .44em; text-indent: .44em;
  color: var(--lilac-d);
  margin-top: -.35em;
  opacity: 0; animation: loader-rise .7s var(--ease) .36s forwards;
}

/* Hairline progress bar */
.loader__bar {
  position: relative; overflow: hidden;
  width: clamp(150px, 32vw, 232px);
  height: 2px; border-radius: 2px;
  background: rgba(200,169,106,.24);
  margin-top: 6px;
  opacity: 0; animation: loader-rise .7s var(--ease) .44s forwards;
}
.loader__bar-fill {
  display: block; width: 0%; height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-l), var(--gold));
  box-shadow: 0 0 6px rgba(200,169,106,.5);
  transition: width .25s linear;
}

/* % counter */
.loader__pct {
  font-family: var(--f-caps);
  font-size: clamp(.78rem, 1.9vw, .92rem);
  letter-spacing: .12em;
  color: var(--gold-ink);
  font-variant-numeric: tabular-nums;
  opacity: 0; animation: loader-rise .7s var(--ease) .5s forwards;
}
.loader__pct-sym { margin-left: .12em; opacity: .65; }

/* Tagline */
.loader__tag {
  font-family: var(--f-caps);
  font-size: clamp(.6rem, 1.4vw, .72rem);
  letter-spacing: .34em; text-indent: .34em;
  text-transform: uppercase;
  color: var(--gold-ink);
  opacity: 0; animation: loader-rise .7s var(--ease) .58s forwards;
}

@keyframes loader-rise {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Skip button (ghost pill, top-right, keyboard-focusable) */
.loader__skip {
  position: absolute; z-index: 2;
  top: clamp(16px, 3vw, 28px); right: clamp(16px, 3vw, 28px);
  font-family: var(--f-jp); font-size: .8rem; font-weight: 600;
  letter-spacing: .08em; color: var(--ink-3);
  padding: .5em 1.15em; border-radius: 999px;
  background: rgba(255,255,255,.55);
  box-shadow: inset 0 0 0 1px var(--line-gold);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.loader__skip:hover { color: var(--gold-ink); box-shadow: inset 0 0 0 1px var(--gold); transform: translateY(-1px); }
.loader__skip:focus-visible {
  color: var(--gold-ink);
  box-shadow: inset 0 0 0 1px var(--gold);
}

/* Responsive */
@media (max-width: 760px) {
  .loader__emblem-wrap { width: 96px; }
  .loader__word { font-size: 1.7rem; }
  .loader__stage { gap: 12px; }
  .loader__skip { font-size: .74rem; padding: .45em 1em; }
}

/* Reduced motion: no scale / blur / entrance — just a fast opacity fade */
@media (prefers-reduced-motion: reduce) {
  .loader__emblem,
  .loader__word,
  .loader__jp,
  .loader__bar,
  .loader__pct,
  .loader__tag {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .loader__ring-fill,
  .loader__bar-fill { transition: none !important; }
  body.is-loaded .loader {
    transform: none !important;
    filter: none !important;
    transition: opacity .2s linear, visibility .2s linear !important;
  }
}
