/* =========================================================
   SIMONO — 制作サービスサイト
   デザイントークンは docs/handoff-spec.md に準拠
   ========================================================= */

:root {
  --bg: #101416;            /* 主背景 */
  --bg-sub: #1a2023;        /* 補助背景 */
  --ivory: #f2f1eb;         /* 明るい面・主文字 */
  --text-dim: #c3cbcc;      /* 暗い面の本文 */
  --accent: #a9eee4;        /* アクセント（暗い面） */
  --accent-light: #22706a;  /* アクセント（明るい面：コントラスト調整済み） */
  --line: #394347;          /* 暗い面の罫線 */
  --ink: #171c1f;           /* 明るい面の文字 */
  --line-light: #cfcdc4;    /* 明るい面の罫線 */

  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-en: "Inter", "Helvetica Neue", Arial, var(--font-ja);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --header-h: 64px;
  --gutter: 24px;
  --container: 1280px;
  --section-y: 88px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 40px; --section-y: 104px; }
}
@media (min-width: 1024px) {
  :root { --header-h: 80px; --gutter: 80px; --section-y: 120px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 1024px) {
  body { font-size: 17px; }
}

body.is-menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.section--light :focus-visible { outline-color: var(--accent-light); }
[tabindex="-1"]:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 300;
  padding: 12px 20px;
  background: var(--ivory);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 英字小ラベル */
.label {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: .04em;
}
.accent { color: var(--accent); }

.br-pc { display: none; }
@media (min-width: 1024px) { .br-pc { display: inline; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-ja);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .06em;
  cursor: pointer;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.btn__icon {
  display: inline-block;
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 16px;
  transition: transform .3s var(--ease);
}
.btn:hover .btn__icon { transform: translate(3px, -3px); }
.btn:hover .btn__icon--down { transform: translateY(3px); }

.btn--light {
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--ivory);
}
.btn--light:hover { border-color: var(--accent); }

.btn--ghost {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(242, 241, 235, .55);
}
.btn--ghost:hover { border-color: var(--ivory); }

.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; gap: 14px; }
.btn--block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(16, 20, 22, .94);
  border-bottom-color: rgba(57, 67, 71, .7);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .28em;
  white-space: nowrap;
  color: var(--ivory);
}
.logo span { margin-inline: .35em; }

.global-nav { display: none; }

@media (min-width: 1024px) {
  .global-nav {
    display: flex;
    align-items: center;
    gap: 48px;
  }
  .global-nav__list { display: flex; gap: 36px; }
  .global-nav__list a {
    position: relative;
    display: inline-block;
    padding: 10px 0;
    font-size: 14px;
    letter-spacing: .08em;
    color: var(--ivory);
  }
  .global-nav__list a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 4px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
  }
  .global-nav__list a:hover::after { transform: scaleX(1); }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-right: -12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-toggle__bars,
.menu-toggle__bars::before {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ivory);
}
.menu-toggle__bars { position: relative; transform: translateY(-4px); }
.menu-toggle__bars::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
}
@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter) 40px;
  background: var(--bg);
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__close {
  width: 48px; height: 48px;
  margin-right: -12px;
  border: 0;
  background: transparent;
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}
.mobile-menu__list { margin: 24px 0 40px; }
.mobile-menu__list a {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  letter-spacing: .08em;
}
.mobile-menu__list .mono { font-size: 12px; color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .mobile-menu:not([hidden]) { animation: fade-in .3s var(--ease) both; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-h) + 40px);
  background: var(--bg);
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; }

.hero__eyebrow { margin-bottom: 20px; color: var(--text-dim); letter-spacing: .24em; }

.hero__title {
  font-size: clamp(28px, 9.2vw, 40px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .02em;
}
.hero__title span { display: block; white-space: nowrap; }

.hero__rule {
  display: block;
  width: 32px; height: 1px;
  margin: 28px 0 24px;
  background: var(--ivory);
}
.hero__lead { color: var(--ivory); font-size: 15px; line-height: 1.9; }

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}
.hero__actions .btn { width: 100%; }

.hero__note { display: none; }

/* スマートフォン：キャラクターは文章の下に配置 */
.hero__visual {
  position: relative;
  order: 2;
  margin-top: 40px;
  aspect-ratio: 1 / .9;
  max-height: 440px;
  overflow: hidden;
}
.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}
.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, var(--bg) 0%, rgba(16, 20, 22, 0) 16%, rgba(16, 20, 22, 0) 82%, var(--bg) 100%),
    rgba(16, 20, 22, .18);
}

@media (min-width: 600px) and (max-width: 1023px) {
  .hero__actions { flex-direction: row; }
  .hero__actions .btn { width: auto; }
  .hero__visual { width: 100%; max-width: 640px; max-height: none; margin-inline: auto; }
  .hero__visual::after {
    background:
      linear-gradient(to right, var(--bg) 0%, rgba(16, 20, 22, 0) 12%, rgba(16, 20, 22, 0) 88%, var(--bg) 100%),
      linear-gradient(to bottom, var(--bg) 0%, rgba(16, 20, 22, 0) 16%, rgba(16, 20, 22, 0) 82%, var(--bg) 100%),
      rgba(16, 20, 22, .18);
  }
  .hero__title { font-size: clamp(40px, 6.6vw, 56px); }
}

/* PC：左に文字、右にキャラクター */
@media (min-width: 1024px) {
  .hero {
    min-height: clamp(680px, 100svh, 860px);
    justify-content: center;
    padding-top: var(--header-h);
  }
  .hero__visual {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    order: 0;
    width: 60%;
    max-height: none;
    margin: 0;
    aspect-ratio: auto;
  }
  .hero__visual img { object-position: 60% 45%; }
  .hero__visual::after {
    background:
      linear-gradient(to right, var(--bg) 0%, rgba(16, 20, 22, .72) 14%, rgba(16, 20, 22, 0) 38%),
      linear-gradient(to bottom, rgba(16, 20, 22, .55) 0%, rgba(16, 20, 22, 0) 22%, rgba(16, 20, 22, 0) 80%, var(--bg) 100%),
      rgba(16, 20, 22, .2);
  }

  .hero__content { max-width: 620px; padding-block: 64px; }
  .hero__title { font-size: clamp(48px, 4.6vw, 68px); line-height: 1.25; }
  .hero__lead { font-size: 16px; }
  .hero__actions { flex-direction: row; gap: 16px; margin-top: 40px; }
  .hero__actions .btn { width: auto; min-width: 184px; justify-content: space-between; }

  .hero__note {
    display: block;
    margin-top: 56px;
    padding-left: 14px;
    border-left: 1px solid var(--line);
    font-size: 12px;
    letter-spacing: .18em;
    color: #8f9a9c;
  }
}

/* ---------- Strip ---------- */
.strip {
  position: relative;
  z-index: 2;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.strip__list { display: grid; }
.strip__list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.strip__list li:last-child { border-bottom: 0; }
.strip__num { grid-row: span 2; font-size: 12px; color: var(--accent); line-height: 2; }
.strip__en { color: var(--ivory); }
.strip__ja { font-size: 14px; color: var(--text-dim); }

@media (min-width: 768px) {
  .strip__list { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .strip__list li {
    display: block;
    padding: 24px 0 28px 20px;
    border-bottom: 0;
    border-left: 1px solid var(--line);
  }
  .strip__num { display: block; margin: 0 0 6px -20px; line-height: 1.5; }
  .strip__en, .strip__ja { display: block; }
}

/* ---------- Sections (common) ---------- */
.section { padding-block: var(--section-y); }
.section--light { background: var(--ivory); color: var(--ink); }
.section--dark { background: var(--bg); }
.section--sub { background: var(--bg-sub); }

.section-label { margin-bottom: 12px; }
.section--light .section-label { color: var(--accent-light); }

.section-title {
  font-size: clamp(26px, 8.4vw, 34px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .03em;
}
@media (min-width: 768px) {
  .section-title { font-size: clamp(36px, 3.6vw, 48px); }
}
.section-title--rule {
  display: flex;
  align-items: center;
  gap: 24px;
}
.section-title--rule::after {
  content: "";
  width: 32px; height: 1px;
  background: var(--text-dim);
}

.section-head { margin-bottom: 48px; }
.section-head__text { margin-top: 24px; color: var(--text-dim); font-size: 15px; }
.section--light .section-head__text { color: #3c4448; }

@media (min-width: 1024px) {
  .section-head { margin-bottom: 72px; }
  .section-head--split {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 24px;
    align-items: center;
  }
  .section-head--split .section-head__text {
    margin-top: 0;
    padding: 12px 0 12px 48px;
    border-left: 1px solid var(--line);
    font-size: 16px;
  }
  .section--light .section-head--split .section-head__text { border-left-color: var(--line-light); }
}

/* ---------- Services ---------- */
.service-list { display: grid; gap: 0; }
.service {
  display: flex;
  flex-direction: column;
  padding: 40px 0;
  border-top: 1px solid var(--line-light);
}
.service:first-child { padding-top: 8px; border-top: 0; }
.service__head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.service__num {
  font-family: var(--font-en);
  font-size: 44px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0;
  color: var(--accent-light);
}
.service__title { font-size: 22px; font-weight: 700; line-height: 1.4; letter-spacing: .06em; }
.service__text { color: #2d3437; }
.service__tags {
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--accent-light);
}
.service__figure {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 32px;
}
.service__figure svg {
  flex: 0 1 180px;
  min-width: 0;
  height: auto;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  overflow: visible;
}
.service__figure svg * { vector-effect: non-scaling-stroke; }
.service__en {
  padding-top: 12px;
  border-top: 1px solid var(--ink);
  font-size: 12px;
  color: var(--ink);
  white-space: nowrap;
}

@media (min-width: 900px) {
  .service-list { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .service,
  .service:first-child {
    padding: 0 32px 0 32px;
    border-top: 0;
    border-left: 1px solid var(--line-light);
  }
  .service:first-child { padding-left: 0; border-left: 0; }
  .service__num { font-size: 52px; }
  .service__text { font-size: 15px; }
}

/* ---------- Works ---------- */
.work-grid { display: grid; gap: 48px; }
@media (min-width: 900px) {
  .work-grid { grid-template-columns: 1.3fr 1fr; gap: 16px; }
}

.work { display: flex; flex-direction: column; }
.work__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b0e0f;
}
@media (min-width: 900px) {
  .work__media { aspect-ratio: auto; height: clamp(300px, 28vw, 400px); }
}
.work__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work--large .work__media img { object-position: 50% 12%; }

.work__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(to right, rgba(11, 14, 15, .85) 0%, rgba(11, 14, 15, .35) 45%, rgba(11, 14, 15, 0) 70%);
}
.work__display {
  font-family: var(--font-en);
  font-size: clamp(32px, 9vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: .22em;
  color: var(--ivory);
}
.work__catch { margin-top: 16px; font-size: 13px; line-height: 1.8; color: var(--ivory); }
@media (max-width: 599px) {
  /* スマートフォンでは写真上の文章を省き、見出し文字のみ残す */
  .work__catch { display: none; }
}
@media (min-width: 900px) {
  .work__overlay { padding: 40px; }
}

/* 広告方向性：アイボリー地＋大きな文字＋シアンの細いアクセント */
.work__media--ad {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  background: var(--ivory);
}
.work__media--ad img { object-position: 76% 44%; }
.work__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 16px 16px 20px;
  background: linear-gradient(to right, rgba(242, 241, 235, .9), var(--ivory) 24%);
  color: var(--ink);
}
.work__panel-copy {
  font-size: clamp(15px, 4.4vw, 22px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .06em;
}
.work__panel-sub { margin-top: 12px; font-size: 12px; line-height: 1.8; color: #3c4448; }
.work__panel-rule {
  display: block;
  width: 40px; height: 1px;
  margin-top: 20px;
  background: #5fbfb3;
}
@media (min-width: 900px) {
  .work__media--ad { grid-template-columns: 1.1fr 1fr; }
  .work__panel { padding: 32px 28px; }
  .work__panel-copy { font-size: clamp(18px, 1.6vw, 22px); }
}

.work__meta {
  margin-top: 20px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
.work__badge { color: var(--accent); }
.work__title { margin-top: 6px; font-size: 17px; font-weight: 500; line-height: 1.6; letter-spacing: .04em; }
.work__desc { margin-top: 6px; font-size: 14px; color: var(--text-dim); }

.service__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  min-height: 44px;
  margin-top: 8px;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
}
.service__link:hover .btn__icon { transform: translate(3px, -3px); }

.sample-link {
  position: relative;
  display: grid;
  gap: 6px;
  margin-top: 48px;
  padding: 28px 64px 28px 24px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: var(--bg-sub);
  transition: border-color .3s var(--ease);
}
.sample-link:hover { border-color: var(--text-dim); border-left-color: var(--accent); }
.sample-link__label { color: var(--accent); }
.sample-link__title { font-size: 18px; font-weight: 700; letter-spacing: .06em; line-height: 1.5; }
.sample-link__text { font-size: 14px; color: var(--text-dim); }
.sample-link__icon {
  position: absolute;
  right: 24px; top: 50%;
  font-family: var(--font-en);
  font-size: 22px;
  transform: translateY(-50%);
  transition: transform .3s var(--ease);
}
.sample-link:hover .sample-link__icon { transform: translate(3px, calc(-50% - 3px)); }
@media (min-width: 900px) {
  .sample-link { padding: 32px 88px 32px 40px; }
  .sample-link__title { font-size: 20px; }
  .sample-link__icon { right: 40px; }
}

.works__note { margin-top: 24px; font-size: 13px; color: var(--text-dim); }

/* ---------- Flow ---------- */
.flow-list { display: grid; position: relative; }
.flow-step {
  position: relative;
  padding: 0 0 36px 32px;
}
/* 縦の細い線（スマートフォン） */
.flow-step::before {
  content: "";
  position: absolute;
  left: 4px; top: 8px; bottom: -8px;
  width: 1px;
  background: var(--line);
}
.flow-step:last-child::before { display: none; }
.flow-step::after {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 9px; height: 9px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--bg-sub);
}
.flow-step:last-child { padding-bottom: 0; }
.flow-step__num { display: block; font-size: 12px; color: var(--accent); line-height: 1.8; }
.flow-step__title { margin-top: 4px; font-size: 18px; font-weight: 700; letter-spacing: .06em; line-height: 1.5; }
.flow-step__text { margin-top: 8px; font-size: 14px; color: var(--text-dim); }

@media (min-width: 900px) {
  .flow-list { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .flow-step { padding: 32px 16px 0 0; }
  /* 横方向の細い線 */
  .flow-step::before {
    left: 0; right: -24px; top: 4px; bottom: auto;
    width: auto; height: 1px;
  }
  .flow-step:last-child::before { display: block; right: 0; }
  .flow-step::after { top: 0; }
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  /* スマートフォンでは写真の上に本文を乗せない */
  background: linear-gradient(to bottom, var(--bg-sub), var(--bg));
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .contact {
    background:
      linear-gradient(to bottom, rgba(16, 20, 22, .82), rgba(16, 20, 22, .7) 60%, rgba(16, 20, 22, .9)),
      url("images__character-1254.webp") 50% 96% / cover no-repeat,
      var(--bg);
  }
}
.contact__inner { position: relative; display: grid; gap: 32px; }
.contact__side { font-size: 12px; letter-spacing: .18em; }
.contact__title {
  font-size: clamp(30px, 9vw, 40px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .04em;
}
.contact__body p:first-child { color: var(--text-dim); }
.contact__btn { width: 100%; margin-top: 28px; }
.contact__mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  margin-top: 16px;
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: .04em;
}
.contact__mail a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  word-break: break-all;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 5px;
}
.contact__mail a:hover { text-decoration-color: var(--accent); }

@media (min-width: 900px) {
  .contact__inner {
    grid-template-columns: 180px auto 1fr;
    align-items: center;
    gap: 48px;
  }
  .contact__side { align-self: start; }
  .contact__title { font-size: clamp(40px, 3.8vw, 52px); padding-right: 48px; border-right: 1px solid var(--line); }
  .contact__btn { width: auto; min-width: 220px; justify-content: space-between; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 32px 40px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.site-footer__inner {
  display: grid;
  gap: 16px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  letter-spacing: .06em;
}
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); }
.copyright {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--text-dim);
}

@media (min-width: 1024px) {
  .site-footer__inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
  }
  .footer-nav { justify-content: center; gap: 0 36px; }
}

/* ---------- Motion ---------- */
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  /* 初回表示：短いフェード */
  .intro { animation: fade-up .6s var(--ease) both; animation-delay: var(--delay, 0ms); }
  .hero__visual.intro { animation-name: fade-in; animation-duration: .9s; }

  /* 下層：12px以内・500msの控えめな出現（JS有効時のみ） */
  .js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
    transition-delay: var(--delay, 0ms);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .site-header, .menu-toggle, .mobile-menu { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Four services and portfolio detail pages */
.service { min-width: 0; }
.service__head { align-items: flex-start; }
.hero__eyebrow { line-height: 1.9; }
@media (min-width: 768px) { .strip__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } .strip__en { font-size: 11px; letter-spacing: .08em; } }
@media (min-width: 900px) { .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; } .service, .service:first-child { padding: 0 24px; border-left: 1px solid var(--line-light); } }
.detail-header { border-bottom: 1px solid var(--line); padding: 24px 0; }
.detail-header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.detail-header a:last-child { font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.detail-main { padding-block: 32px 64px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 56px; }
.detail-main > .page-actions:last-child { margin: 64px 0 0; padding-top: 32px; border-top: 1px solid var(--line); }
.detail-lead { margin: 24px 0 32px; color: var(--text-dim); max-width: 760px; }
.detail-contact { margin-top: 48px; }
.sample-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 24px; }
.sample-card { min-width: 0; }
.sample-image { aspect-ratio: 4 / 5; background: #202729; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); padding: 12px; }
.sample-image img { width: 100%; height: 100%; object-fit: contain; }
.sample-card h3 { margin-top: 16px; font-size: 17px; font-weight: 500; }
.sample-caption { color: var(--accent); font-size: 14px; }
.sample-card a { display: block; }
.sample-card a:hover .sample-image { border-color: var(--accent); }
@media (min-width: 600px) { .sample-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1100px) { .sample-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.profile { display: grid; gap: 40px; align-items: center; margin-top: 48px; }
.profile img { width: 100%; max-width: 480px; height: auto; }
.profile h2 { font-size: 32px; font-weight: 500; }
.profile-name { color: var(--text-dim); letter-spacing: .15em; }
@media (min-width: 768px) { .profile { grid-template-columns: 1fr 1fr; gap: 64px; } }
.full-artwork { width: auto; max-width: 100%; height: auto; margin: 32px auto; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-decoration: underline; }

.sample-category { margin-top: 56px; }
.category-title { font-size: 24px; font-weight: 500; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 24px; }
.sample-card h4 { margin: 16px 0 0; font-size: 17px; font-weight: 500; }
.sample-category .sample-image { aspect-ratio: 4 / 3; }
