/* =========================================================
   有限会社 能美 — style.css
   ========================================================= */
:root {
  --ink: #1c1b19;
  --ink-2: #3a3833;
  --muted: #7a756c;
  --line: #d9d3c8;
  --paper: #f5f2ec;
  --paper-2: #ebe6dc;
  --white: #fff;
  --dark: #171614;
  --dark-2: #22211e;
  --on-dark: #ece8e0;
  --on-dark-muted: #a29d93;
  --accent: #9b7b4f;
  --accent-soft: #c8b08a;

  --serif: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --latin: "Cormorant Garamond", "Times New Roman", serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 2;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 1, "lnum" 1;
  font-variant-numeric: lining-nums;
  line-break: strict;
  overflow-wrap: anywhere;
}
@media (min-width: 900px) { body { font-size: 16px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { font-weight: 500; margin: 0; line-height: 1.5; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 999; background: var(--ink); color: #fff; padding: 8px 16px; }
.skip:focus { left: 8px; top: 8px; }
.sp { display: inline; }
.pc { display: none; }
@media (min-width: 900px) { .sp { display: none; } .pc { display: inline; } }

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

/* ---------- type helpers ---------- */
.eyebrow {
  display: block;
  font-family: var(--latin);
  font-size: 15px;
  font-style: italic;
  letter-spacing: .12em;
  color: var(--accent);
  margin: 0 0 .6em;
  line-height: 1.4;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: .12em;
  margin-bottom: 1em;
}
.section-title--sm { font-size: clamp(20px, 2.4vw, 26px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-head .link-arrow { flex: none; font-size: 13px; }
.section-head .section-title { margin-bottom: .6em; }
.section-lead { color: var(--muted); margin: -.2em 0 2.4em; }
.section--dark .section-lead { color: var(--on-dark-muted); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; letter-spacing: .1em; padding-bottom: 4px; margin-bottom: 1.6em;
  border-bottom: 1px solid currentColor;
}
.link-arrow::after { content: ""; width: 22px; height: 1px; background: currentColor; transition: width .3s var(--ease); }
.link-arrow:hover::after { width: 36px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-width: 220px; padding: 16px 32px;
  border: 1px solid var(--ink); font-size: 14px; letter-spacing: .14em;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); }
.btn--light { border-color: var(--on-dark); color: var(--on-dark); }
.btn--light:hover { background: var(--on-dark); color: var(--ink); }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--tight { padding: clamp(56px, 8vw, 104px) 0; }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--paper { background: var(--paper-2); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * .12s); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter); max-width: 1600px; margin: 0 auto; }
.brand { margin-right: auto; display: block; width: clamp(170px, 18vw, 230px); }
.brand__logo { width: 100%; }
.brand__logo--light { display: none; }
.gnav ul { list-style: none; display: flex; gap: clamp(20px, 2.6vw, 40px); margin: 0; padding: 0; }
.gnav a { display: flex; flex-direction: column; align-items: center; line-height: 1.2; position: relative; padding: 6px 0; }
.gnav .en { font-family: var(--latin); font-size: 17px; letter-spacing: .08em; }
.gnav .ja { font-size: 10px; letter-spacing: .12em; color: var(--muted); margin-top: 3px; }
.gnav a::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 0; height: 1px; background: currentColor; transition: width .3s var(--ease), left .3s var(--ease); }
.gnav a:hover::after, .gnav a[aria-current]::after { width: 100%; left: 0; }
.header-ig { width: 22px; height: 22px; display: grid; place-items: center; }
.icon { width: 100%; height: 100%; }
.menu-btn { display: none; width: 44px; height: 44px; position: relative; margin-right: -10px; }
.menu-btn span:not(.sr) { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn span:nth-child(1) { top: 18px; }
.menu-btn span:nth-child(2) { top: 26px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(20deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-20deg); }

.site-header.is-solid { background: rgba(245, 242, 236, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }

/* transparent-on-dark header for the home hero */
.page-home .site-header:not(.is-solid) { color: var(--on-dark); }
.page-home .site-header:not(.is-solid) .gnav .ja { color: var(--on-dark-muted); }
.page-home .site-header:not(.is-solid) .brand__logo--dark { display: none; }
.page-home .site-header:not(.is-solid) .brand__logo--light { display: block; }
.page-work .site-header:not(.is-solid) { color: var(--ink); }

@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .gnav, .header-ig { display: none; }
  .menu-btn { display: block; }
}

/* drawer (mobile) */
.drawer {
  position: fixed; inset: 0; z-index: 40; background: var(--dark); color: var(--on-dark);
  padding: calc(var(--header-h) + 32px) var(--gutter) 40px; display: flex; flex-direction: column;
  opacity: 0; transition: opacity .4s var(--ease);
}
.drawer.is-open { opacity: 1; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li { border-bottom: 1px solid rgba(255,255,255,.1); }
.drawer li a { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; }
.drawer .en { font-family: var(--latin); font-size: 28px; letter-spacing: .06em; }
.drawer .ja { font-size: 12px; color: var(--on-dark-muted); }
.drawer__foot { margin-top: auto; display: grid; gap: 12px; font-size: 14px; color: var(--on-dark-muted); }
.drawer__foot a { display: inline-flex; align-items: center; gap: 10px; }
.drawer__foot .icon { width: 18px; height: 18px; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { color: var(--on-dark); background: transparent; box-shadow: none; backdrop-filter: none; }
body.menu-open .brand__logo--dark { display: none; }
body.menu-open .brand__logo--light { display: block; }

/* =========================================================
   Home — hero
   ========================================================= */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; background: var(--dark); color: #fff; overflow: hidden; }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,9,.45) 0%, rgba(10,10,9,.2) 40%, rgba(10,10,9,.62) 100%); }
.hero__content { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(88px, 14vh, 140px); }
.hero__kicker { font-family: var(--latin); font-style: italic; font-size: clamp(14px, 1.4vw, 17px); letter-spacing: .14em; color: var(--accent-soft); margin-bottom: 1.4em; }
.hero__title { font-family: var(--serif); font-size: clamp(22px, 7.2vw, 68px); line-height: 1.45; letter-spacing: .08em; }
@media (min-width: 900px) { .hero__title { font-size: clamp(40px, 5.2vw, 68px); letter-spacing: .14em; } }
.hero__title span { white-space: nowrap; }
.hero__title span { display: block; }
.hero__sub { margin-top: 1.6em; font-size: 13px; letter-spacing: .2em; color: rgba(255,255,255,.8); }
.hero__scroll { position: absolute; right: var(--gutter); bottom: 32px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--latin); font-size: 12px; letter-spacing: .2em; writing-mode: vertical-rl; }
.hero__scroll::after { content: ""; width: 1px; height: 64px; background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,0)); animation: scrollLine 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
/* concept */
.concept__grid { display: grid; gap: 48px; align-items: center; }
.concept__word { font-family: var(--serif); font-size: clamp(120px, 20vw, 260px); line-height: 1; color: var(--paper-2); display: flex; gap: .05em; -webkit-text-stroke: 1px var(--line); user-select: none; }
.concept__title { font-family: var(--serif); font-size: clamp(28px, 3.8vw, 44px); letter-spacing: .14em; margin-bottom: 1.2em; line-height: 1.6; }
.concept__text { max-width: 34em; color: var(--ink-2); }
.concept__def { margin: 2.6em 0 0; padding-top: 1.6em; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); max-width: 34em; }
.concept__def dt { font-family: var(--serif); color: var(--ink-2); margin-bottom: .3em; }
.concept__def dd { margin: 0; }
@media (min-width: 900px) {
  .concept__grid { grid-template-columns: 5fr 7fr; gap: 80px; }
  .concept__word { flex-direction: column; color: transparent; }
}

/* =========================================================
   Works grid / cards
   ========================================================= */
.works-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 16px; }
@media (min-width: 900px) { .works-grid { grid-template-columns: repeat(3, 1fr); gap: 64px 32px; } }
.work-card a { display: block; }
.work-card__img { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.work-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.work-card a:hover img { transform: scale(1.05); }
.work-card__meta { padding-top: 14px; }
.work-card__cat { display: block; font-size: 11px; letter-spacing: .14em; color: var(--accent); }
.work-card__title { font-family: var(--serif); font-size: clamp(15px, 1.5vw, 18px); letter-spacing: .08em; line-height: 1.6; margin-top: 2px; }
.work-card.is-hidden { display: none; }

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(36px, 5vw, 56px); }
.filter button { padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; letter-spacing: .08em; transition: all .25s var(--ease); line-height: 1.4; }
.filter button span { font-family: var(--latin); font-size: 13px; margin-left: 8px; color: var(--muted); }
.filter button:hover { border-color: var(--ink); }
.filter button.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter button.is-active span { color: var(--accent-soft); }

/* page hero (inner pages) */
.page-hero { padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(32px, 5vw, 56px); }
.page-hero__title { font-family: var(--serif); font-size: clamp(30px, 4.6vw, 52px); letter-spacing: .14em; }
.page-hero__lead { margin-top: 1.4em; color: var(--muted); max-width: 40em; }
.page-hero--center { text-align: center; min-height: 70vh; display: grid; align-items: center; }
.page-hero--center .page-hero__lead { margin: 1.4em auto 2.4em; }

/* =========================================================
   Work detail
   ========================================================= */
.work-hero { padding-top: var(--header-h); }
.work-hero__img { display: block; width: 100%; height: min(78vh, 880px); overflow: hidden; background: var(--dark); cursor: zoom-in; }
.work-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.work-hero__meta { padding-top: 32px; padding-bottom: clamp(40px, 6vw, 72px); }
.crumbs { font-size: 12px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; letter-spacing: .08em; }
.crumbs a:hover { color: var(--ink); }
.work-hero__title { font-family: var(--serif); font-size: clamp(28px, 4.4vw, 50px); letter-spacing: .1em; }
.work-hero__spec { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.work-hero__spec div { display: flex; gap: 14px; align-items: baseline; }
.work-hero__spec dt { font-family: var(--latin); font-style: italic; color: var(--accent); font-size: 14px; }
.work-hero__spec dd { margin: 0; font-size: 14px; }
.work-detail__text { margin-top: 28px; max-width: 40em; color: var(--ink-2); }
.gallery { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; gap: 24px; } .gallery__item.is-wide { grid-column: 1 / -1; } }
.gallery__item { margin: 0; }
.gallery__item button { display: block; width: 100%; cursor: zoom-in; overflow: hidden; background: var(--paper-2); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery__item:not(.is-wide) button { aspect-ratio: 4 / 3; }
.gallery__item button:hover img { transform: scale(1.03); }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-top: clamp(56px, 8vw, 96px); padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 14px; }
.pager span { display: block; font-family: var(--latin); font-style: italic; color: var(--accent); font-size: 13px; }
.pager__next { text-align: right; }
.pager__list { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; }
.pager__list:hover { border-color: var(--ink); }
.related { background: var(--paper-2); margin-top: clamp(72px, 10vw, 128px); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(14, 13, 12, .96); display: grid; place-items: center; opacity: 0; transition: opacity .3s; }
.lightbox.is-open { opacity: 1; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; object-fit: contain; }
.lightbox__btn { position: absolute; color: #fff; width: 56px; height: 56px; display: grid; place-items: center; font-family: var(--latin); font-size: 28px; opacity: .8; }
.lightbox__btn:hover { opacity: 1; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-family: var(--latin); letter-spacing: .2em; font-size: 14px; }

/* =========================================================
   Instagram (news / blog)
   ========================================================= */
.ig-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .ig-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.ig-grid--list { gap: 40px 16px; }
@media (min-width: 700px) { .ig-grid--list { gap: 56px 28px; } }
.ig-skeleton { aspect-ratio: 1; background: linear-gradient(100deg, rgba(128,128,128,.12) 30%, rgba(128,128,128,.22) 50%, rgba(128,128,128,.12) 70%); background-size: 300% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.ig-post { position: relative; }
.ig-post__btn { display: block; width: 100%; text-align: left; }
.ig-post__img { position: relative; aspect-ratio: 1; overflow: hidden; background: rgba(128,128,128,.15); }
.ig-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .4s; }
.ig-post__btn:hover img { transform: scale(1.05); }
.ig-post__badge { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.ig-post__body { padding-top: 12px; }
.ig-post__date { font-family: var(--latin); font-size: 13px; letter-spacing: .1em; color: var(--accent); }
.ig-post__title { font-family: var(--serif); font-size: 15px; line-height: 1.7; letter-spacing: .06em; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ig-grid--home .ig-post__body { display: none; }
.ig-grid--home .ig-post__img::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background .4s; }
.ig-grid--home .ig-post__btn:hover .ig-post__img::after { background: rgba(0,0,0,.18); }
.ig-follow { display: inline-flex; align-items: center; gap: 12px; margin-top: 40px; font-size: 14px; letter-spacing: .1em; padding: 14px 26px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; transition: border-color .3s, background .3s; }
.ig-follow .icon { width: 18px; height: 18px; }
.ig-follow:hover { border-color: var(--on-dark); background: rgba(255,255,255,.06); }
.ig-follow--dark { border-color: var(--line); margin-top: 0; }
.ig-follow--dark:hover { border-color: var(--ink); background: transparent; }
.ig-actions { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-top: clamp(48px, 7vw, 80px); }
.ig-empty { grid-column: 1 / -1; padding: 40px 0; color: var(--muted); }

/* reader modal */
.reader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 0; background: rgba(14, 13, 12, .78); opacity: 0; transition: opacity .3s; }
.reader.is-open { opacity: 1; }
.reader__panel { position: relative; width: min(1080px, 100%); max-height: 100%; height: 100%; background: var(--paper); color: var(--ink); display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
@media (min-width: 900px) {
  .reader { padding: 40px; }
  .reader__panel { height: auto; max-height: calc(100vh - 80px); grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: none; }
}
.reader__media { position: relative; background: #0e0d0c; display: grid; place-items: center; min-height: 0; }
.reader__media img, .reader__media video { width: 100%; height: 100%; max-height: 62vh; object-fit: contain; }
@media (min-width: 900px) { .reader__media img, .reader__media video { max-height: calc(100vh - 80px); } }
.reader__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.88); color: var(--ink); display: grid; place-items: center; font-size: 18px; }
.reader__nav--prev { left: 12px; }
.reader__nav--next { right: 12px; }
.reader__dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.reader__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); }
.reader__dots i.is-on { background: #fff; }
.reader__body { overflow-y: auto; padding: 28px 24px 40px; -webkit-overflow-scrolling: touch; }
@media (min-width: 900px) { .reader__body { padding: 48px 44px; } }
.reader__date { font-family: var(--latin); font-style: italic; color: var(--accent); letter-spacing: .1em; }
.reader__title { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); letter-spacing: .08em; line-height: 1.6; margin: 6px 0 20px; }
.reader__text { white-space: pre-wrap; color: var(--ink-2); }
.reader__tags { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.reader__link { display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; font-size: 13px; letter-spacing: .1em; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.reader__link .icon { width: 16px; height: 16px; }
.reader__close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: rgba(245,242,236,.92); display: grid; place-items: center; font-size: 22px; line-height: 1; }

/* =========================================================
   Service
   ========================================================= */
.service-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px 24px; }
@media (min-width: 600px) { .service-list { grid-template-columns: repeat(2, 1fr); gap: 56px 28px; } }
@media (min-width: 1100px) { .service-list { grid-template-columns: repeat(4, 1fr); gap: 0 28px; } .service-card:nth-child(even) { margin-top: 72px; } }
.service-card a { display: block; }
.service-card__img { margin: 0 0 22px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
@media (min-width: 1100px) { .service-card__img { aspect-ratio: 3 / 4; } }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; }
.service-card__body { position: relative; }
.service-list__no { font-family: var(--latin); font-style: italic; font-size: 30px; color: var(--accent); line-height: 1; display: block; margin-bottom: 12px; }
.service-card h3 { font-family: var(--serif); font-size: 19px; letter-spacing: .1em; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--ink-2); line-height: 1.95; margin-bottom: 16px; }
.service-card__more { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .14em; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.service-card__more::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .4s var(--ease); }
.service-card a:hover .service-card__more::after { width: 32px; }
.flow { margin-top: clamp(80px, 11vw, 140px); padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); }
.flow__steps { list-style: none; margin: clamp(8px, 2vw, 24px) 0 0; padding: 0; position: relative; display: grid; gap: 36px; }
/* vertical timeline (mobile) */
.flow__steps::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.flow__steps::after { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: var(--accent); transform: scaleY(var(--flow, 1)); transform-origin: top; }
.flow__step { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding-left: 34px; }
.flow__dot { position: absolute; left: 0; top: 10px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--accent); z-index: 1; transition: background .6s ease, transform .6s var(--ease); }
.flow__no { font-family: var(--latin); font-style: italic; font-size: 30px; line-height: 1; color: var(--accent); grid-row: span 2; padding-top: 2px; }
.flow__step h4 { font-family: var(--serif); font-weight: 500; font-size: 17px; letter-spacing: .08em; line-height: 1.6; margin: 0 0 6px; }
.flow__step p { font-size: 13px; line-height: 1.9; color: var(--ink-2); margin: 0; }
@media (min-width: 900px) {
  .flow__steps { grid-template-columns: repeat(5, 1fr); gap: 0 28px; padding-top: 74px; }
  .flow__steps::before, .flow__steps::after { left: 0; right: 0; top: 52px; bottom: auto; width: auto; height: 1px; }
  .flow__steps::after { transform: scaleX(var(--flow, 1)); transform-origin: left; }
  .flow__step { display: block; padding-left: 0; }
  .flow__dot { top: -27px; }
  .flow__no { position: absolute; top: -74px; left: 0; font-size: 26px; }
  .flow__step h4 { margin-bottom: 10px; }
}

/* company on home */
.company-home__grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .company-home__grid { grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; } }
.company-home__lead { color: var(--ink-2); margin-bottom: 2.4em; }

.info-table { margin: 0; border-top: 1px solid var(--line); }
.info-table div { display: grid; grid-template-columns: 7em 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-table dt { color: var(--muted); font-size: 14px; }
.info-table dd { margin: 0; }
.info-table a { border-bottom: 1px solid var(--line); }
.info-table--full { max-width: 880px; }
@media (min-width: 900px) { .info-table--full div { grid-template-columns: 12em 1fr; padding: 22px 0; } }

/* company page */
.message__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .message__grid { grid-template-columns: 1fr 1.4fr; gap: 96px; } }
.message__title { font-family: var(--serif); font-size: clamp(28px, 3.8vw, 44px); letter-spacing: .14em; line-height: 1.6; }
.message__text { color: var(--ink-2); }
.message__sign { font-family: var(--serif); margin-top: 2em; color: var(--ink); letter-spacing: .14em; }
.access__addr { margin-bottom: 20px; }
.map { aspect-ratio: 16 / 9; background: var(--paper-2); margin-bottom: 24px; }
@media (max-width: 699px) { .map { aspect-ratio: 4 / 3; } }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.85) contrast(1.05); }

/* contact */
.contact { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact { grid-template-columns: 300px 1fr; gap: 80px; align-items: start; } .contact__side { position: sticky; top: calc(var(--header-h) + 32px); } }
.contact__box { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact__box:first-child { border-top: 1px solid var(--line); }
.contact__label { font-size: 12px; color: var(--muted); margin-bottom: 4px; letter-spacing: .1em; }
.contact__tel { font-family: var(--latin); font-size: 32px; letter-spacing: .06em; line-height: 1.3; }
.form { display: grid; gap: 28px; }
.form__row { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.form__row > label, .form__row > legend { font-size: 14px; letter-spacing: .08em; display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 10px; }
.form__row > label { margin-bottom: 0; }
.form__cols { display: grid; gap: 28px; }
@media (min-width: 700px) { .form__cols { grid-template-columns: 1fr 1fr; } }
.req, .opt { font-size: 10px; letter-spacing: .1em; padding: 2px 8px; line-height: 1.6; }
.req { background: var(--ink); color: var(--paper); }
.opt { border: 1px solid var(--line); color: var(--muted); }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: 0; padding: 14px 16px; transition: border-color .2s; -webkit-appearance: none; appearance: none;
}
.form select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.form textarea { resize: vertical; line-height: 1.8; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: block; padding: 10px 20px; border: 1px solid var(--line); background: var(--white); font-size: 14px; transition: all .2s; }
.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form__hp { position: absolute; left: -9999px; }
.form__note { font-size: 13px; color: var(--muted); }
.form__note a { border-bottom: 1px solid currentColor; }
.form .btn { justify-self: start; min-width: 260px; }

/* prose */
.prose { max-width: 820px; }
.prose h2 { font-family: var(--serif); font-size: 19px; letter-spacing: .08em; margin: 2.4em 0 .8em; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--dark); color: var(--on-dark); }
.site-footer__cta { text-align: center; padding: clamp(80px, 12vw, 150px) var(--gutter); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-footer__title { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 38px); letter-spacing: .14em; line-height: 1.7; margin-bottom: 1em; }
.site-footer__cta > p:not(.eyebrow) { color: var(--on-dark-muted); }
.site-footer__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 40px; margin-top: 40px; }
.tel-link { font-family: var(--latin); font-size: 30px; letter-spacing: .06em; display: inline-flex; align-items: baseline; gap: 12px; }
.tel-link span { font-size: 14px; color: var(--accent-soft); letter-spacing: .2em; }
.site-footer__bottom { max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 56px var(--gutter) 32px; display: grid; gap: 32px; }
@media (min-width: 900px) { .site-footer__bottom { grid-template-columns: 1fr auto; align-items: end; } }
.site-footer__info img { width: 200px; margin-bottom: 20px; }
.site-footer__info p { font-size: 13px; color: var(--on-dark-muted); line-height: 1.9; }
.site-footer__info strong { color: var(--on-dark); font-weight: 400; }
.site-footer__nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--latin); font-size: 16px; letter-spacing: .06em; }
.site-footer__nav a { color: var(--on-dark-muted); transition: color .2s; }
.site-footer__nav a:hover { color: var(--on-dark); }
.copyright { grid-column: 1 / -1; font-family: var(--latin); font-size: 12px; letter-spacing: .14em; color: #6b675f; margin: 16px 0 0; }
.form__error { color: #a33; font-size: 14px; }
