/* =========================================================================
   益子 陶房 緑風窯 — 侘び寂び × 墨
   素材の景色を活かす・不完全さの美・茶室で一服する静けさ
   ========================================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* 墨 / sumi palette */
  --cp-primary: #0a0a0a;     /* 墨 */
  --cp-accent:  #2c2c2c;     /* accent */
  --cp-text:    #1a1a1a;     /* body */
  --cp-muted:   #5f5950;     /* labels / dates (AA on cream) */
  --cp-bg:      #f5f2ed;     /* warm cream */
  --cp-white:   #ffffff;
  --cp-line:    #cfc7b8;     /* warm earthen dashed border */

  /* wabi-sabi 補助（控えめ） */
  --cp-cream-deep: #ece6db;
  --cp-cream-card: #fbf9f4;
  --cp-ink-wash:   #221f1b;
  --cp-clay:       #6b5d4f;  /* 土の whisper */
  --cp-moss:       #5c6b52;  /* 緑風 — 唯一の有彩 accent */

  --cp-container: 1200px;
  --cp-pad: clamp(1rem, 3vw, 3rem);

  --font-mincho: "Shippori Mincho", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-display: "Yuji Syuku", "Shippori Mincho", serif;
  --font-hand: "Caveat", "Shippori Mincho", cursive;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-mincho);
  font-weight: 400;
  font-feature-settings: 'palt' 1;
  letter-spacing: 0.04em;
  line-height: 2.0;
  color: var(--cp-text);
  background: var(--cp-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.5; letter-spacing: 0.02em; }

::selection { background: var(--cp-primary); color: var(--cp-bg); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--cp-primary); color: var(--cp-bg);
  padding: 0.6rem 1.1rem; font-size: 0.85rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--cp-moss); outline-offset: 3px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--cp-container); margin-inline: auto; padding-inline: var(--cp-pad); }
.section { padding-block: clamp(4rem, 8vw, 8rem); position: relative; }
.section--deep { background: var(--cp-cream-deep); }
.section--ink { background: var(--cp-primary); color: var(--cp-bg); }

/* ---------- Eyebrow / Section heading ---------- */
.eyebrow {
  font-family: var(--font-hand);
  color: var(--cp-moss);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.eyebrow::before {
  content: "";
  width: 2.2rem; height: 1px;
  background: var(--cp-moss);
  opacity: 0.7;
  transform: rotate(-0.6deg);
}
.label-en {
  font-family: var(--font-mincho);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--cp-muted);
  text-transform: uppercase;
}
.section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); max-width: 46rem; }
.section-head__title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-top: 0.7rem;
  color: var(--cp-ink-wash);
  display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap;
}
.section-head__lead {
  margin-top: 1.1rem;
  color: var(--cp-text);
  max-width: 40rem;
}
.section--ink .section-head__title { color: var(--cp-bg); }
.section--ink .eyebrow,
.section--ink .eyebrow::before { color: #b9c2ab; background: #b9c2ab; }
.section--ink .label-en { color: #b6b0a6; }

/* inkblot beside heading */
.inkblot { display: inline-block; width: 1.4em; height: 1.4em; vertical-align: middle; opacity: 0.9; }
.inkblot path { fill: var(--cp-primary); }
.section--ink .inkblot path { fill: var(--cp-bg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mincho); font-weight: 500;
  font-size: 0.95rem; letter-spacing: 0.06em;
  padding: 0.9rem 1.65rem;
  border-radius: 11px 3px 9px 2px;       /* 不揃い */
  transition: background 900ms ease, color 900ms ease, border-color 900ms ease, transform 900ms ease;
}
.btn--primary { background: var(--cp-primary); color: var(--cp-bg); }
.btn--primary:hover { background: var(--cp-accent); transform: translateY(-1px) rotate(-0.3deg); }
.btn--outline { border: 1.5px solid var(--cp-primary); color: var(--cp-primary); border-radius: 3px 11px 2px 9px; }
.btn--outline:hover { background: var(--cp-primary); color: var(--cp-bg); transform: rotate(0.3deg); }
.section--ink .btn--outline { border-color: var(--cp-bg); color: var(--cp-bg); }
.section--ink .btn--outline:hover { background: var(--cp-bg); color: var(--cp-primary); }
.btn--ghost { color: var(--cp-primary); padding-inline: 0; gap: 0.4rem; }
.btn--ghost .arrow { transition: transform 600ms ease; }
.btn--ghost:hover .arrow { transform: translateX(5px); }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--cp-bg) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 600ms ease, background 600ms ease;
}
.site-header.is-stuck { border-bottom-color: var(--cp-line); }
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.brand__mark {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--cp-line);
  overflow: hidden;
  flex: none;
}
.brand__mark img { width: 70%; height: 70%; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__en { font-size: 0.62rem; letter-spacing: 0.24em; color: var(--cp-muted); text-transform: uppercase; }
.brand__name { font-size: 0.98rem; letter-spacing: 0.1em; color: var(--cp-ink-wash); }

.main-nav { justify-self: center; }
.main-nav ul { display: flex; gap: clamp(1.2rem, 2.4vw, 2.6rem); }
.main-nav a {
  font-size: 0.92rem; letter-spacing: 0.06em; color: var(--cp-text);
  position: relative; padding-block: 0.35rem;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--cp-primary);
  transform: scaleX(0); transform-origin: left; transition: transform 500ms ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--cp-primary); }

.header-cta { justify-self: end; }
.header-cta .btn--outline { padding: 0.7rem 1.3rem; font-size: 0.85rem; }

/* burger */
.burger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center; gap: 6px;
  align-items: center; justify-self: end;
}
.burger span { width: 24px; height: 1.5px; background: var(--cp-primary); transition: transform 400ms ease, opacity 300ms ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* drawer */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(20,18,15,0.42);
  opacity: 0; visibility: hidden; transition: opacity 400ms ease, visibility 400ms;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; z-index: 95;
  width: min(82vw, 340px); height: 100dvh;
  background: var(--cp-bg);
  border-left: 1px solid var(--cp-line);
  transform: translateX(100%); transition: transform 500ms cubic-bezier(0.4,0,0.1,1);
  padding: 1.5rem 1.75rem; display: flex; flex-direction: column;
}
.drawer.is-open { transform: translateX(0); }
.drawer__close {
  align-self: flex-end; width: 42px; height: 42px;
  display: grid; place-items: center; color: var(--cp-primary);
  border: 1px solid var(--cp-line); border-radius: 9px 2px 8px 2px;
}
.drawer__nav { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.drawer__nav a {
  font-size: 1.15rem; padding: 0.85rem 0.25rem; color: var(--cp-text);
  border-bottom: 1px dashed var(--cp-line);
}
.drawer__nav a .en { display: block; font-size: 0.62rem; letter-spacing: 0.2em; color: var(--cp-muted); }
.drawer__cta { margin-top: auto; }
.drawer__cta .btn { width: 100%; justify-content: center; }

/* =========================================================================
   Hero (split — text × image)
   ========================================================================= */
.hero { padding-block: clamp(2.5rem, 5vw, 5rem) clamp(3rem, 6vw, 6rem); position: relative; }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero__text { padding-block: clamp(1rem, 4vw, 3rem); }
.hero__eyebrow { margin-bottom: 1.6rem; }
.hero__title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 500;
  line-height: 1.72;
  color: var(--cp-ink-wash);
  letter-spacing: 0.06em;
}
.hero__title .accent { color: var(--cp-primary); }
.hero__lead {
  margin-top: 1.9rem;
  color: var(--cp-text);
  font-size: 1.02rem;
  max-width: 26rem;
}
.hero__rule { margin-top: 2.4rem; display: flex; align-items: center; gap: 1rem; max-width: 22rem; }
.hero__rule::before { content: ""; flex: 1; height: 1px; background: var(--cp-line); }
.hero__rule-label {
  font-family: var(--font-hand); color: var(--cp-muted);
  font-size: 1.1rem; white-space: nowrap;
}
.hero__actions { margin-top: 2.4rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero__media { position: relative; }
.hero__media::after {
  /* paper-edge frame — 不完全な手漉き縁 */
  content: ""; position: absolute; inset: -10px;
  border: 1px dashed var(--cp-line); border-radius: 6px 18px 4px 16px;
  z-index: -1; transform: rotate(-0.6deg);
}
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 4px 14px 3px 12px;
  transform: rotate(0.5deg);
  filter: saturate(0.84) contrast(1.02) sepia(0.05);
}
.hero__caption {
  position: absolute; left: -0.5rem; bottom: 1.4rem;
  writing-mode: vertical-rl;
  font-family: var(--font-hand); color: var(--cp-muted); font-size: 1.05rem;
  background: color-mix(in oklab, var(--cp-bg) 80%, transparent);
  padding: 0.6rem 0.2rem;
}

/* =========================================================================
   強み (features) — asymmetric dashed cards
   ========================================================================= */
.features { position: relative; isolation: isolate; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.feature-card {
  background: var(--cp-cream-card);
  border: 1px dashed var(--cp-line);
  padding: 2rem 1.75rem 2.25rem;
  transition: border-style 500ms ease, transform 800ms ease, border-color 500ms ease;
}
.feature-card:nth-child(1) { border-radius: 16px 3px 14px 2px; }
.feature-card:nth-child(2) { border-radius: 3px 14px 2px 16px; margin-top: clamp(0px, 2vw, 28px); }
.feature-card:nth-child(3) { border-radius: 14px 2px 16px 3px; }
.feature-card:hover { border-style: solid; border-color: var(--cp-clay); transform: translateY(-4px) rotate(-0.3deg); }
.feature-card__icon {
  width: 48px; height: 48px; color: var(--cp-primary);
  display: grid; place-items: center; margin-bottom: 1.2rem;
  border: 1px solid var(--cp-line); border-radius: 50%;
}
.feature-card__no { font-family: var(--font-hand); color: var(--cp-moss); font-size: 1.2rem; }
.feature-card h3 { font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 600; margin: 0.4rem 0 0.9rem; color: var(--cp-ink-wash); }
.feature-card p { color: var(--cp-text); font-size: 0.96rem; }

/* =========================================================================
   実績数値 (stats)
   ========================================================================= */
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.stat { text-align: left; }
.stat:nth-child(even) { margin-top: clamp(0px, 1.6vw, 22px); }
.stat__num {
  font-family: var(--font-mincho);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 500; line-height: 1; color: var(--cp-ink-wash);
  display: inline-flex; align-items: baseline; gap: 0.2rem;
}
.stat__unit { font-family: var(--font-hand); font-size: clamp(1rem, 1.6vw, 1.4rem); color: var(--cp-moss); }
.stat__label { margin-top: 0.8rem; color: var(--cp-muted); font-size: 0.9rem; letter-spacing: 0.08em; }
.stat__divider { width: 2.5rem; height: 1px; background: var(--cp-line); margin-top: 0.9rem; }
.section--ink .stat__num { color: var(--cp-bg); }
.section--ink .stat__label { color: #c5beb2; }
.section--ink .stat__unit { color: #aebb9f; }
.section--ink .stat__divider { background: rgba(245,242,237,0.25); }

/* =========================================================================
   作品 / サービス preview
   ========================================================================= */
.works__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.work-card {
  display: flex; flex-direction: column;
  border: 1px dashed var(--cp-line);
  background: var(--cp-cream-card);
  overflow: hidden;
  transition: border-style 500ms ease, transform 800ms ease;
}
.work-card:nth-child(odd) { border-radius: 14px 3px 12px 2px; }
.work-card:nth-child(even) { border-radius: 3px 14px 2px 12px; }
.work-card:hover { border-style: solid; transform: translateY(-3px); }
.work-card__media { overflow: hidden; }
.work-card__media img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover;
  filter: saturate(0.84) contrast(1.02) sepia(0.05);
  transition: transform 1400ms ease, filter 1400ms ease;
}
.work-card:hover .work-card__media img { transform: scale(1.04); filter: saturate(1) contrast(1.02); }
.work-card__body { padding: 1.5rem 1.6rem 1.75rem; }
.work-card__no { font-family: var(--font-hand); color: var(--cp-moss); font-size: 1.05rem; }
.work-card__body h3 { font-size: 1.18rem; font-weight: 600; margin: 0.3rem 0 0.7rem; color: var(--cp-ink-wash); }
.work-card__body p { font-size: 0.95rem; color: var(--cp-text); }
.work-card__price { margin-top: 1rem; font-family: var(--font-hand); color: var(--cp-clay); font-size: 1.15rem; }

/* =========================================================================
   代表メッセージ
   ========================================================================= */
.message { position: relative; isolation: isolate; }
.message__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.16; z-index: -1; filter: saturate(0.6) sepia(0.1); }
.message__grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.message__portrait { position: relative; }
.message__portrait::after {
  content: ""; position: absolute; inset: -12px;
  border: 1px dashed var(--cp-line); border-radius: 8px 20px 6px 18px;
  z-index: -1; transform: rotate(-0.8deg);
}
.message__portrait img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 6px 16px 4px 14px; transform: rotate(0.6deg);
  filter: saturate(0.82) contrast(1.03) sepia(0.06);
}
.message__body h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); color: var(--cp-ink-wash); margin: 0.7rem 0 1.4rem; line-height: 1.7; }
.message__body p { margin-bottom: 1.2rem; color: var(--cp-text); }
.message__sign { margin-top: 1.8rem; display: flex; align-items: baseline; gap: 0.8rem; }
.message__sign-role { font-size: 0.82rem; color: var(--cp-muted); letter-spacing: 0.1em; }
.message__sign-name { font-family: var(--font-display); font-size: 1.5rem; color: var(--cp-ink-wash); }

/* =========================================================================
   お客様の声
   ========================================================================= */
.voices { position: relative; isolation: isolate; }
.voices__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.14; z-index: -1; filter: saturate(0.5) sepia(0.12); }
.voices__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.voice-card {
  background: var(--cp-cream-card);
  border: 1px dashed var(--cp-line);
  padding: 2.2rem 2rem;
  position: relative;
}
.voice-card:nth-child(odd) { border-radius: 18px 4px 16px 3px; transform: rotate(-0.4deg); }
.voice-card:nth-child(even) { border-radius: 4px 18px 3px 16px; transform: rotate(0.4deg); }
.voice-card__quote { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--cp-line); }
.voice-card p { font-size: 1.02rem; color: var(--cp-text); margin-top: 0.4rem; }
.voice-card__author { margin-top: 1.2rem; font-family: var(--font-hand); color: var(--cp-moss); font-size: 1.1rem; }

/* =========================================================================
   お知らせ (news / details)
   ========================================================================= */
.news-list { display: flex; flex-direction: column; }
.news-item { border-bottom: 1px dashed var(--cp-line); }
.news-item:first-child { border-top: 1px dashed var(--cp-line); }
.news-item summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: auto auto 1fr auto; gap: 1.2rem;
  align-items: center; padding: 1.5rem 0.5rem;
  transition: background 500ms ease;
}
.news-item summary::-webkit-details-marker { display: none; }
.news-item summary:hover { background: color-mix(in oklab, var(--cp-cream-deep) 60%, transparent); }
.news-item__date { font-family: var(--font-hand); color: var(--cp-muted); font-size: 1.1rem; letter-spacing: 0.04em; white-space: nowrap; }
.news-item__cat {
  font-size: 0.7rem; letter-spacing: 0.12em; color: var(--cp-bg);
  background: var(--cp-clay); padding: 0.25rem 0.7rem; border-radius: 7px 2px 6px 2px; white-space: nowrap;
}
.news-item__cat--kiln { background: var(--cp-primary); }
.news-item__cat--event { background: var(--cp-moss); }
.news-item__title { font-size: 1rem; color: var(--cp-ink-wash); }
.news-item__chev { color: var(--cp-muted); transition: transform 400ms ease; }
.news-item[open] .news-item__chev { transform: rotate(180deg); }
.news-item__body { padding: 0 0.5rem 1.75rem; color: var(--cp-text); max-width: 52rem; }
.news-item__body p { margin-bottom: 0.8rem; }

/* =========================================================================
   最終 CTA
   ========================================================================= */
.cta-band { position: relative; isolation: isolate; overflow: hidden; }
.cta-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.22; z-index: -1; filter: grayscale(0.3) saturate(0.8); }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, var(--cp-primary) 30%, color-mix(in oklab, var(--cp-primary) 70%, var(--cp-clay)) 100%);
  opacity: 0.92;
}
.cta-band__inner { text-align: center; max-width: 40rem; margin-inline: auto; }
.cta-band__inner .eyebrow { justify-content: center; }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); color: var(--cp-bg); margin: 0.8rem 0 1.2rem; line-height: 1.6; }
.cta-band p { color: #ddd6cb; margin-bottom: 2rem; }
.cta-band__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-band .btn--primary { background: var(--cp-bg); color: var(--cp-primary); }
.cta-band .btn--primary:hover { background: var(--cp-cream-card); }
.cta-band .btn--outline { border-color: var(--cp-bg); color: var(--cp-bg); }
.cta-band .btn--outline:hover { background: var(--cp-bg); color: var(--cp-primary); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { position: relative; isolation: isolate; background: var(--cp-primary); color: var(--cp-bg); padding-block: clamp(3.5rem, 6vw, 5.5rem) 2rem; overflow: hidden; }
.cp-footer__particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.footer-inner { position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); padding-bottom: 2.5rem; border-bottom: 1px dashed rgba(245,242,237,0.2); }
.footer-brand__mark { display: inline-flex; align-items: center; gap: 0.7rem; margin-bottom: 1.2rem; }
.footer-brand__mark img { width: 48px; height: 48px; object-fit: contain; }
.footer-brand__name { font-size: 1.1rem; letter-spacing: 0.1em; }
.footer-brand__en { font-size: 0.6rem; letter-spacing: 0.22em; color: #b6b0a6; display: block; }
.footer-tagline { font-family: var(--font-display); font-size: 1.25rem; color: #ddd6cb; margin-bottom: 1rem; line-height: 1.7; }
.footer-desc { font-size: 0.88rem; color: #c5beb2; max-width: 22rem; }
.footer-col h3 { font-size: 0.8rem; letter-spacing: 0.16em; color: #b6b0a6; margin-bottom: 1.1rem; font-weight: 500; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a, .footer-col li { font-size: 0.92rem; color: #d8d1c6; }
.footer-col a:hover { color: var(--cp-bg); }
.footer-contact-line { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.8rem; font-size: 0.9rem; color: #d8d1c6; }
.footer-contact-line svg { flex: none; margin-top: 0.35rem; color: #aebb9f; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 1.8rem; }
.footer-bottom small { font-size: 0.8rem; color: #b6b0a6; letter-spacing: 0.06em; }
.footer-sns a { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(245,242,237,0.25); border-radius: 50%; color: #d8d1c6; transition: all 400ms ease; }
.footer-sns a:hover { background: var(--cp-bg); color: var(--cp-primary); }

/* =========================================================================
   中ページ hero (generator が背景を CSS 変数で注入)
   ========================================================================= */
.cp-page-hero {
  position: relative;
  min-height: 44vh;
  display: flex; align-items: flex-end;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(2.5rem, 5vw, 4rem);
  background: var(--cp-cream-deep);
  overflow: hidden;
  border-bottom: 1px solid var(--cp-line);
}
.cp-page-hero.aihp-subpage-hero--with-image {
  background-image:
    linear-gradient(180deg, rgba(10,10,10,0.32) 0%, rgba(10,10,10,0.5) 100%),
    var(--aihp-subpage-hero-image, none);
  background-size: cover;
  background-position: center;
  color: var(--cp-bg);
  border-bottom: none;
}
.cp-page-hero__inner { position: relative; z-index: 1; width: 100%; max-width: var(--cp-container); margin-inline: auto; padding-inline: var(--cp-pad); }
.cp-page-hero .eyebrow { color: #cdd4c2; }
.cp-page-hero .eyebrow::before { background: #cdd4c2; }
.cp-page-hero .label-en { color: #d8d1c6; }
.cp-page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 500;
  color: var(--cp-bg); margin-top: 0.7rem; letter-spacing: 0.06em;
  text-shadow: 0 1px 24px rgba(0,0,0,0.3);
}
.cp-page-hero__crumb { margin-top: 1rem; font-size: 0.8rem; color: #d8d1c6; letter-spacing: 0.08em; }
.cp-page-hero__crumb a:hover { color: var(--cp-bg); text-decoration: underline; }

/* =========================================================================
   Generic page content blocks
   ========================================================================= */
.prose { max-width: 44rem; }
.prose p { margin-bottom: 1.3rem; color: var(--cp-text); }
.prose h3 { font-size: 1.3rem; color: var(--cp-ink-wash); margin: 2.2rem 0 1rem; }

.split-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-block--rev .split-block__media { order: -1; }
.split-block__media { position: relative; }
.split-block__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 6px 16px 4px 14px;
  filter: saturate(0.84) contrast(1.02) sepia(0.05);
  transform: rotate(-0.5deg);
}
.split-block__media::after {
  content: ""; position: absolute; inset: -10px; border: 1px dashed var(--cp-line);
  border-radius: 8px 18px 6px 16px; z-index: -1; transform: rotate(0.5deg);
}

/* timeline (沿革) */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 0.4rem; bottom: 0.4rem; width: 1px; background: var(--cp-line); }
.timeline-item { position: relative; padding-bottom: 2.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -2rem; top: 0.5rem;
  width: 13px; height: 13px; background: var(--cp-bg);
  border: 1.5px solid var(--cp-primary); border-radius: 50% 30% 50% 40%;
}
.timeline-item__year { font-family: var(--font-hand); color: var(--cp-moss); font-size: 1.5rem; line-height: 1; }
.timeline-item h3 { font-size: 1.15rem; color: var(--cp-ink-wash); margin: 0.4rem 0 0.6rem; font-weight: 600; }
.timeline-item p { color: var(--cp-text); font-size: 0.96rem; }

/* price table (services) */
.price-list { display: grid; gap: 1.2rem; }
.price-row {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: baseline;
  padding: 1.3rem 0; border-bottom: 1px dashed var(--cp-line);
}
.price-row__name { color: var(--cp-ink-wash); font-size: 1.05rem; }
.price-row__name small { display: block; color: var(--cp-muted); font-size: 0.82rem; margin-top: 0.3rem; letter-spacing: 0.04em; }
.price-row__value { font-family: var(--font-mincho); font-size: 1.25rem; color: var(--cp-clay); white-space: nowrap; }

/* feature list with check icons */
.tick-list { display: grid; gap: 0.9rem; }
.tick-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--cp-text); }
.tick-list svg { flex: none; margin-top: 0.45rem; color: var(--cp-moss); }

/* info table (営業情報) */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; padding: 1.1rem 0.5rem; border-bottom: 1px dashed var(--cp-line); vertical-align: top; }
.info-table th { width: 8.5rem; color: var(--cp-muted); font-weight: 500; font-size: 0.9rem; letter-spacing: 0.06em; }
.info-table td { color: var(--cp-text); }

/* =========================================================================
   Google Maps
   ========================================================================= */
.cp-map { border-radius: 6px 16px 4px 14px; overflow: hidden; border: 1px dashed var(--cp-line); }
.cp-map iframe { display: block; width: 100%; height: 420px; border: 0; }

/* =========================================================================
   Contact form
   ========================================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-form { display: grid; gap: 1.4rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.88rem; color: var(--cp-ink-wash); letter-spacing: 0.06em; }
.field .req { color: var(--cp-clay); font-family: var(--font-hand); margin-left: 0.3rem; }
.field input, .field select, .field textarea {
  font-family: var(--font-mincho); font-size: 1rem; color: var(--cp-text);
  background: var(--cp-cream-card);
  border: 1px solid var(--cp-line); border-radius: 8px 2px 7px 2px;
  padding: 0.8rem 1rem; width: 100%; line-height: 1.7;
  transition: border-color 400ms ease;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cp-moss); }
.field--check { display: flex; flex-direction: row; align-items: flex-start; gap: 0.6rem; }
.field--check input { width: auto; margin-top: 0.55rem; accent-color: var(--cp-primary); }
.field--check label { font-size: 0.85rem; line-height: 1.8; }
.field--check a { text-decoration: underline; }
#contact-otp-block { padding: 1.2rem; border: 1px dashed var(--cp-line); border-radius: 10px 2px 9px 2px; background: var(--cp-cream-deep); }
#contact-otp-block p { font-size: 0.8rem; color: var(--cp-muted); margin-top: 0.6rem; line-height: 1.8; }
.contact-submit-wrap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.contact-submit-wrap .btn { padding: 0.95rem 2.2rem; }
#contact-status { font-size: 0.9rem; }
.contact-aside { background: var(--cp-cream-card); border: 1px dashed var(--cp-line); border-radius: 16px 3px 14px 2px; padding: 2rem 1.9rem; }
.contact-aside h3 { font-size: 1.2rem; color: var(--cp-ink-wash); margin-bottom: 1.2rem; }

/* =========================================================================
   Back to top
   ========================================================================= */
.back-to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 80;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  background: var(--cp-primary); color: var(--cp-bg);
  border-radius: 14px 4px 12px 3px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 500ms ease, transform 500ms ease, visibility 500ms, background 400ms ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--cp-accent); }

/* =========================================================================
   Scroll fade-in (initial opacity 1 維持)
   ========================================================================= */
.fade-in { opacity: 1; transform: none; transition: transform 1200ms cubic-bezier(0.16,1,0.3,1); }
html.js-enabled .fade-in:not(.is-in) { transform: translateY(10px) rotate(-0.3deg); }
.fade-in:nth-child(even):not(.is-in) { transform: translateY(10px) rotate(0.3deg); }

/* inkblot reveal (draw) */
.inkblot-reveal path { stroke-dasharray: 1200; stroke-dashoffset: 0; }
html.js-enabled .inkblot-reveal:not(.is-in) path { stroke-dashoffset: 1200; }
.inkblot-reveal.is-in path { transition: stroke-dashoffset 1800ms ease; stroke-dashoffset: 0; }

/* section break divider */
.ink-divider { display: flex; justify-content: center; padding-block: clamp(1rem, 3vw, 2.5rem); }
.ink-divider svg { width: clamp(80px, 14vw, 140px); height: auto; opacity: 0.5; }
.ink-divider svg path { fill: var(--cp-clay); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .features__grid { grid-template-columns: 1fr; }
  .feature-card:nth-child(2) { margin-top: 0; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .works__grid { grid-template-columns: 1fr; }
  .message__grid { grid-template-columns: 1fr; }
  .message__portrait { max-width: 22rem; }
  .voices__grid { grid-template-columns: 1fr; }
  .split-block { grid-template-columns: 1fr; }
  .split-block--rev .split-block__media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .main-nav, .header-cta { display: none; }
  .burger { display: flex; }
  .header-inner { grid-template-columns: auto auto; justify-content: space-between; }
}

@media (max-width: 560px) {
  .header-inner { display: flex; justify-content: space-between; align-items: center; }
  .brand__name { font-size: 0.78rem; letter-spacing: 0.06em; }
  .brand__en { font-size: 0.56rem; }
  .brand__mark { width: 38px; height: 38px; }
  .section { padding-block: 4rem; }
  .container { padding-inline: 1.25rem; }
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__media { order: 1; }
  .hero__title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero__caption { writing-mode: horizontal-tb; left: 0.5rem; bottom: -1.6rem; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .news-item summary { grid-template-columns: auto 1fr auto; gap: 0.7rem; }
  .news-item__cat { grid-row: 1; }
  .news-item__date { grid-column: 1 / -1; font-size: 0.95rem; }
  .cp-map iframe { height: 280px; }
  .price-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .info-table th { width: auto; display: block; padding-bottom: 0.3rem; }
  .info-table td { display: block; padding-top: 0.3rem; }
}

/* =========================================================================
   prefers-reduced-motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  html.js-enabled .fade-in:not(.is-in),
  .fade-in:nth-child(even):not(.is-in) { transform: none; }
  html.js-enabled .inkblot-reveal:not(.is-in) path { stroke-dashoffset: 0; }
  .hero__media img, .message__portrait img, .split-block__media img,
  .voice-card, .hero__media::after { transform: none !important; }
}

/* ai-hp enforced subpage hero backgrounds */
.aihp-subpage-hero--with-image {
  position: relative;
  background-image:
    linear-gradient(135deg, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.72)),
    var(--aihp-subpage-hero-image) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  overflow: hidden;
  isolation: isolate;
}
.aihp-subpage-hero--with-image > * {
  position: relative;
  z-index: 1;
}

