/* ==============================================================================
   corance — site stylesheet
   index.html / about.html 共通。静的HTML用、フレームワークなし。
   ============================================================================== */

/* ------------------------------------------------------------------------------
   Tokens
------------------------------------------------------------------------------- */
:root {
  /* text — 背景（bedge_grunge.jpg ≒ #dcd8d2）上で 4.5:1 以上 */
  --text: #1d1d1f;
  --text-2: #57534e;
  --accent: #9a2f27;

  /* surfaces */
  --surface: rgba(255, 255, 255, 0.55);
  --surface-hover: rgba(255, 255, 255, 0.72);
  --surface-line: rgba(255, 255, 255, 0.7);
  --hairline: rgba(29, 29, 31, 0.14);
  --nav-bg: rgba(226, 222, 216, 0.72);

  /* footer */
  --footer-bg: #2c2c2e;
  --footer-text: #a1a1a6;
  --footer-text-hover: #ffffff;

  /* type */
  --font-sans: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  --fs-body: 17px;

  /* layout */
  --nav-h: 52px;
  --gutter: clamp(18px, 5vw, 48px);
  --max: 1240px;
  --radius: 22px;
  --radius-sm: 14px;

  /* motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.7s;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  /* 背景は旧 main.css の値をそのまま継承 */
  background-color: #fff;
  background-image: url(../images/bedge_grunge.jpg);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: 8px;
  z-index: 200;
  padding: 8px 14px;
  background: var(--text);
  color: #fff;
  border-radius: 8px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ------------------------------------------------------------------------------
   Header / Navigation
------------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  transition: transform 0.4s var(--ease-out);
}
/* 背景ぼかしと下線はスクロール開始でふわっと出す（opacityのみ） */
.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}
.site-header::before {
  inset: 0;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.site-header::after {
  bottom: 0;
  height: 1px;
  background: var(--hairline);
}
.site-header.is-scrolled::before,
.site-header.is-scrolled::after,
.menu-open .site-header::before { opacity: 1; }
.site-header.is-hidden { transform: translate3d(0, -100%, 0); }

.nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav__logo { display: block; padding: 8px 0; }
.nav__logo img { width: 120px; height: 17px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.nav__links a { color: var(--text); }
.nav__links a:hover { color: var(--accent); text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--accent); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle__bar {
  position: absolute;
  left: 12px;
  width: 20px; height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out);
}
.nav-toggle__bar--top { top: 18px; }
.nav-toggle__bar--bottom { top: 25px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar--top { transform: translate3d(0, 3.5px, 0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar--bottom { transform: translate3d(0, -3.5px, 0) rotate(-45deg); }

/* full-screen menu (mobile) */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: calc(var(--nav-h) + 16px) var(--gutter) 48px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(226, 222, 216, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0s linear 0.35s;
}
.menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s var(--ease-out), visibility 0s;
}
.menu__primary a {
  display: block;
  padding: 6px 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.menu__group { margin-top: 28px; }
.menu__group-title a {
  display: block;
  padding: 4px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.menu__group ul a {
  display: block;
  padding: 7px 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.menu a:hover { color: var(--accent); text-decoration: none; }
.menu__item {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.menu.is-open .menu__item { opacity: 1; transform: none; }
.menu.is-open .menu__item:nth-child(2) { transition-delay: 40ms; }
.menu.is-open .menu__item:nth-child(3) { transition-delay: 80ms; }
.menu.is-open .menu__item:nth-child(4) { transition-delay: 120ms; }
.menu.is-open .menu__item:nth-child(5) { transition-delay: 160ms; }
.menu.is-open .menu__item:nth-child(6) { transition-delay: 200ms; }

.menu-open { overflow: hidden; }

/* ------------------------------------------------------------------------------
   Reveal (scroll-in) — JS有効時のみ隠す
------------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* セクション見出しの下線：左から伸びる */
.rule-title { position: relative; padding-bottom: 14px; }
.rule-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--hairline);
  transform-origin: left center;
  transition: transform 1.1s var(--ease-out) 0.15s;
}
.js .rule-title::after { transform: scaleX(0); }
.js .is-visible .rule-title::after,
.js .rule-title.is-visible::after { transform: scaleX(1); }

/* ------------------------------------------------------------------------------
   Hero
------------------------------------------------------------------------------- */
.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 48px) 0 72px;
  text-align: center;
}
.hero { overflow-x: clip; }
.hero__title { will-change: transform, opacity; }

.hero__title {
  font-size: clamp(38px, 9.4vw, 184px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--text);
}
.hero__line { display: block; }
.hero__line {
  animation: hero-rise 0.85s var(--ease-out) both;
}
.hero__line:nth-child(2) { animation-delay: 0.14s; }

@keyframes hero-rise {
  from { opacity: 0; transform: translate3d(0, 0.28em, 0); }
  to   { opacity: 1; transform: none; }
}

.hero__services {
  max-width: 860px;
  margin: clamp(32px, 5vw, 56px) auto 0;
  font-size: clamp(15px, 1.45vw, 19px);
  font-weight: 400;
  line-height: 2;
  color: var(--text-2);
}
.hero__services span { display: inline-block; }
/* 事業内容：散った状態から集合（動きは JS の Web Animations） */
.js .hero__services > span { opacity: 0; will-change: transform, opacity; }
.js .hero__services.is-in > span { opacity: 1; }
.hero__services .sep { margin: 0 0.35em; opacity: 0.5; }

.hero__scroll {
  display: block;
  width: 1px; height: 48px;
  margin: clamp(40px, 7vh, 72px) auto 0;
  background: var(--hairline);
  transform-origin: top center;
  animation: scroll-hint 2.4s var(--ease-out) 1.2s infinite;
}
@keyframes scroll-hint {
  0%   { transform: scaleY(0); opacity: 1; }
  60%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ------------------------------------------------------------------------------
   Brands — bento grid
------------------------------------------------------------------------------- */
.brands { padding: clamp(40px, 8vw, 120px) 0 0; overflow-x: clip; }

.group + .group { margin-top: clamp(72px, 10vw, 140px); }

.group__head { margin-bottom: clamp(24px, 3vw, 40px); }
.group__num {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-2);
}
.group__title {
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.tile { grid-column: span 3; min-width: 0; }
.tile--wide  { grid-column: span 6; }
.tile--third { grid-column: span 2; }

.tile__link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  color: var(--text);
  isolation: isolate;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--ease-out);
}
/* 光沢：カーソル位置に追従 */
.tile__link::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  z-index: 2;
  width: 520px; height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 62%);
  transform: translate3d(var(--gx, 50%), var(--gy, 50%), 0);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}
.tile__link:hover::before { opacity: 1; }
/* 影は疑似要素の opacity で出す */
.tile__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 18px 40px -18px rgba(40, 30, 20, 0.35), 0 2px 8px rgba(40, 30, 20, 0.06);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  pointer-events: none;
}
.tile__link:hover,
.tile__link:focus-visible {
  text-decoration: none;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(0, -4px, 0) scale(1.02);
}
.tile__link:hover::after,
.tile__link:focus-visible::after { opacity: 1; }

.tile__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: rgba(29, 29, 31, 0.06);
}
.tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1.1;
  will-change: transform;
  transition: scale 1.7s var(--ease-out) calc(var(--delay, 0ms) + 0.2s);
}
.js .tile:not(.is-visible) .tile__media img { scale: 1.32; }
.tile.is-done .tile__media img { transition: scale 0.9s var(--ease-out); }
.tile.is-done .tile__link:hover .tile__media img { scale: 1.16; }

/* 幕：タイルごとに開く向きが違う */
.js .tile__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--footer-bg);
  transform-origin: right center;
  transition: transform 1.05s cubic-bezier(0.77, 0, 0.18, 1) calc(var(--delay, 0ms) + 0.15s);
}
.js .tile[data-anim="from-right"] .tile__media::after { transform-origin: left center; }
.js .tile[data-anim="rise"] .tile__media::after,
.js .tile[data-anim="tilt"] .tile__media::after { transform-origin: center top; }
.js .tile[data-anim="zoom"] .tile__media::after { transform-origin: center center; }
.js .tile.is-visible .tile__media::after { transform: scaleX(0); }
.js .tile.is-visible[data-anim="rise"] .tile__media::after,
.js .tile.is-visible[data-anim="tilt"] .tile__media::after,
.js .tile.is-visible[data-anim="zoom"] .tile__media::after { transform: scaleY(0); }

/* 登場パターン */
.js .tile[data-reveal] { transition-duration: 1s, 1.1s; }
.js .tile[data-anim="rise"]:not(.is-visible)       { transform: translate3d(0, 72px, 0); }
.js .tile[data-anim="from-left"]:not(.is-visible)  { transform: translate3d(-80px, 32px, 0) rotate(-2deg); }
.js .tile[data-anim="from-right"]:not(.is-visible) { transform: translate3d(80px, 32px, 0) rotate(2deg); }
.js .tile[data-anim="tilt"]:not(.is-visible)       { transform: perspective(1200px) rotateX(22deg) translate3d(0, 80px, 0); transform-origin: center top; }
.js .tile[data-anim="zoom"]:not(.is-visible)       { transform: scale(0.88); }

.tile__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(20px, 2.2vw, 30px);
}
.tile__name {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.tile__kana {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.tile__desc {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}
.tile__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  word-break: break-all;
}
.tile__arrow {
  display: inline-block;
  font-size: 1.25em;
  line-height: 1;
  transition: transform 0.35s var(--ease-out);
}
.tile__link:hover .tile__arrow,
.tile__link:focus-visible .tile__arrow { transform: translate3d(4px, 0, 0); }

/* wide tile: 画像左・テキスト右 */
.tile--wide .tile__link { flex-direction: row; }
.tile--wide .tile__media { flex: 0 0 58%; aspect-ratio: 3 / 2; }
.tile--wide .tile__body { justify-content: center; padding: clamp(24px, 3.4vw, 52px); }
.tile--wide .tile__name { font-size: clamp(28px, 3.4vw, 48px); }
.tile--wide .tile__desc { font-size: 16px; }
.tile--wide .tile__cta { margin-top: 0; padding-top: 24px; }

/* ------------------------------------------------------------------------------
   Masked headings — 下からせり上がる
------------------------------------------------------------------------------- */
.mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.mask__in { display: inline-block; }
.js .mask__in {
  transform: translate3d(0, 110%, 0);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}
.js .is-visible .mask__in { transform: none; }

/* ------------------------------------------------------------------------------
   Marquee — ブランド名の帯（JSで生成）
------------------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  padding: clamp(16px, 4vw, 56px) 0 clamp(8px, 2vw, 24px);
  user-select: none;
}
.marquee__row { white-space: nowrap; }
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding-right: 0.45em;
  font-size: clamp(40px, 7.5vw, 112px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text);
  will-change: transform;
}
.marquee__row--outline .marquee__track {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text-2);
}
.marquee__dot {
  font-size: 0.32em;
  color: var(--accent);
  -webkit-text-stroke: 0;
}

/* ------------------------------------------------------------------------------
   About CTA (index)
------------------------------------------------------------------------------- */
.about-cta-section { padding: clamp(96px, 14vw, 200px) 0 0; }

.about-cta {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding: clamp(32px, 6vw, 88px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: calc(var(--radius) + 6px);
  color: var(--text);
}
.about-cta:hover, .about-cta:focus-visible { text-decoration: none; }
.about-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--surface-hover);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  z-index: -1;
}
.about-cta:hover::after { opacity: 1; }
.about-cta { isolation: isolate; }

.about-cta__eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}
.about-cta__title {
  margin-top: 10px;
  font-size: clamp(44px, 9vw, 140px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.about-cta__text {
  margin-top: clamp(16px, 2vw, 28px);
  font-size: clamp(15px, 1.4vw, 19px);
  color: var(--text-2);
}

/* 矢印：線が伸び、山形が右へ */
.about-cta__arrow {
  position: relative;
  display: block;
  width: clamp(72px, 9vw, 140px);
  height: clamp(44px, 6vw, 88px);
  color: var(--accent);
}
.about-cta__arrow::before {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 100%;
  height: 3px;
  margin-top: -1.5px;
  background: currentColor;
  border-radius: 2px;
  transform-origin: right center;
  transform: scaleX(0.35);
  transition: transform 0.6s var(--ease-out);
}
.about-cta__arrow::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: clamp(22px, 2.6vw, 38px);
  height: clamp(22px, 2.6vw, 38px);
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  border-radius: 2px;
  transform: translate3d(0, -50%, 0) rotate(45deg);
  transform-origin: center;
}
.about-cta:hover .about-cta__arrow::before,
.about-cta:focus-visible .about-cta__arrow::before { transform: scaleX(1); }

/* ------------------------------------------------------------------------------
   Contact — Let's work together
------------------------------------------------------------------------------- */
.contact {
  padding: clamp(110px, 16vw, 220px) 0 clamp(110px, 14vw, 200px);
  text-align: center;
}
.contact__title {
  font-size: clamp(40px, 8vw, 120px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(32px, 4vw, 52px);
  padding: 18px clamp(28px, 4vw, 44px);
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}
.pill:hover, .pill:focus-visible {
  text-decoration: none;
  transform: translate3d(0, -2px, 0) scale(1.02);
  opacity: 0.9;
}
.pill__label { opacity: 0.7; }

/* ------------------------------------------------------------------------------
   Footer
------------------------------------------------------------------------------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: 12px;
  line-height: 1.6;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a {
  color: var(--footer-text);
  transition: color 0.3s var(--ease-out);
}
.site-footer a:hover, .site-footer a:focus-visible {
  color: var(--footer-text-hover);
  text-decoration: none;
}
.site-footer :focus-visible { outline-color: #fff; }

/* ------------------------------------------------------------------------------
   About page
------------------------------------------------------------------------------- */
.page-hero {
  padding: calc(var(--nav-h) + clamp(72px, 12vw, 160px)) 0 clamp(48px, 7vw, 96px);
}
.page-hero__eyebrow {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  animation: hero-rise 0.85s var(--ease-out) both;
}
.page-hero__title {
  margin-top: 8px;
  font-size: clamp(52px, 11vw, 168px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  animation: hero-rise 0.85s var(--ease-out) 0.12s both;
}

.about-section { padding-top: clamp(56px, 9vw, 128px); }
.section-title {
  margin-bottom: clamp(24px, 3vw, 40px);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* 会社概要 dl */
.profile {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
}
.profile__row {
  display: grid;
  grid-template-columns: minmax(120px, 220px) 1fr;
  gap: 24px;
  padding: clamp(18px, 2.2vw, 28px) clamp(20px, 3vw, 44px);
}
.profile__row + .profile__row { border-top: 1px solid var(--hairline); }
.profile dt {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  padding-top: 2px;
}
.profile dd { font-size: 17px; }
.profile__services span { display: inline-block; }
.profile__services .sep { margin: 0 0.35em; opacity: 0.5; }
.todo {
  display: inline-block;
  padding: 0 8px;
  border: 1.5px dashed var(--accent);
  border-radius: 6px;
  background: rgba(154, 47, 39, 0.08);
  color: var(--accent);
  font-weight: 700;
}

/* 沿革 timeline */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 10px; bottom: 10px;
  width: 1px;
  background: rgba(29, 29, 31, 0.25);
}
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(96px, 160px) 1fr;
  gap: 8px 24px;
  padding: clamp(16px, 2vw, 24px) 0;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: calc(clamp(16px, 2vw, 24px) + 0.55em);
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(226, 222, 216, 0.9);
}
.js .timeline__item[data-reveal]:not(.is-visible) { transform: translate3d(-48px, 0, 0); }
.timeline__item::before { transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s; }
.js .timeline__item:not(.is-visible)::before { transform: scale(0); }
.timeline__year {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.timeline__text { font-size: 17px; padding-top: 4px; }

/* ------------------------------------------------------------------------------
   Responsive
------------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile--third { grid-column: span 1; }
  .tile--wide, .tile--md-full { grid-column: span 2; }
  .tile--md-full .tile__link { flex-direction: row; }
  .tile--md-full .tile__media { flex: 0 0 50%; }
  .tile--md-full .tile__body { justify-content: center; }
  .tile--md-full .tile__cta { margin-top: 0; }
  .tile--wide .tile__media { flex-basis: 52%; }
}

@media (max-width: 767px) {
  .nav__links { display: none; }
  .nav-toggle { display: block; }

  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile, .tile--third, .tile--wide, .tile--md-full { grid-column: span 1; }
  .tile--wide .tile__link,
  .tile--md-full .tile__link { flex-direction: column; }
  .tile--wide .tile__media,
  .tile--md-full .tile__media { flex: none; }
  .tile--wide .tile__body { padding: 22px; }
  .tile__desc { font-size: 15px; }

  .about-cta { grid-template-columns: 1fr; }
  .about-cta__arrow { justify-self: end; }

  .profile__row { grid-template-columns: 1fr; gap: 4px; }
  .timeline__item { grid-template-columns: 1fr; gap: 2px; }
  .timeline { padding-left: 28px; }
  .timeline__item::before { left: -27px; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 768px) {
  .menu { display: none; }
}

/* ------------------------------------------------------------------------------
   Reduced motion — 全アニメーション無効
------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero__services > span { opacity: 1; transform: none !important; }
  .js .tile__media::after { display: none; }
  .js .mask__in { transform: none; }
  .tile__link::before { display: none; }
  .js .rule-title::after { transform: none; }
  .hero__scroll { display: none; }
  .tile__link:hover, .tile__link:focus-visible,
  .pill:hover, .pill:focus-visible { transform: none; }
}
