﻿/* === Aminome Corporate Renewal === */
:root {
  --bg: #fbfbfa;
  --bg-2: #f3f3f1;
  --ink: #0e0f0d;
  --ink-2: #2b2d2a;
  --muted: #6c6f6a;
  --line: #e3e3df;
  --accent: oklch(0.55 0.15 25);
  --accent-soft: oklch(0.96 0.025 25);
  --accent-ink: oklch(0.45 0.15 25);
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --sans: "Inter", "Noto Sans JP", -apple-system, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-feature-settings: "palt";
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  font-size: 15px;
  letter-spacing: 0.01em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* Header */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 32px; height: 32px; }
.brand-name { font-weight: 600; letter-spacing: .04em; font-size: 15px; }
.brand-name small { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: .14em; font-weight: 500; margin-top: 1px;}

.nav { display: flex; gap: clamp(14px, 1.6vw, 22px); align-items: center; }
.nav a,
.nav-group > a {
  position: relative; font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  padding: 6px 0;
}
.nav a::after,
.nav-group > a::after {
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.nav a:hover::after,
.nav-group:hover > a::after { transform: scaleX(1); }
.nav-group { position: relative; padding: 10px 0; }
.nav-sub {
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in oklab, var(--bg) 96%, white);
  box-shadow: 0 18px 45px rgba(0,0,0,.08);
  transform: translate(-50%, 8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.nav-group:hover .nav-sub,
.nav-group:focus-within .nav-sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav-sub a {
  display: block;
  padding: 10px 12px;
  border-radius: 4px;
  color: var(--ink-2);
  white-space: nowrap;
}
.nav-sub a:hover { background: var(--bg-2); }
.nav-sub a::after { display: none; }
.nav .cta {
  background: var(--ink); color: var(--bg);
  padding: 10px 18px; border-radius: 999px; font-size: 12.5px;
  letter-spacing: .04em; transition: transform .2s ease, background .2s ease;
}
.nav .cta:hover { background: var(--accent-ink); transform: translateY(-1px); }
.nav .cta::after { display:none; }
.lang {
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  display: flex; gap: 6px; align-items: center;
}
.lang b { color: var(--ink); font-weight: 500; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(60px, 9vw, 120px) 0 clamp(80px, 10vw, 140px);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.hero h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--ink);
}
.hero h1 .em { color: var(--accent-ink); font-style: normal; }
.hero h1 .jp {
  display: block; font-family: var(--sans);
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: 0;
  margin-top: 22px;
  color: var(--ink-2);
  line-height: 1.5;
}
.hero p.lede {
  font-size: 14px; color: var(--muted); max-width: 36ch;
  line-height: 1.9;
}
.hero-meta {
  display: flex; gap: 32px; margin-top: 36px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: .12em; text-transform: uppercase;
}
.hero-meta span b { display:block; color: var(--ink); font-size: 22px; font-family: var(--sans); font-weight: 500; letter-spacing: 0; margin-bottom: 4px;}

/* Network canvas behind hero */
.net {
  position: absolute; inset: 0; z-index: -1; opacity: .55;
  pointer-events: none;
}

/* Eyebrow */
.eyebrow {
  display: inline-flex; gap: 10px; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  color: var(--muted); text-transform: uppercase;
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; display:block; }

/* Hero deco 窶・minimal network-inspired ornament */
.hero-deco { color: var(--ink); margin-bottom: 28px; line-height: 0; }
.hero-deco svg { display: block; }

/* Section */
section.block { padding: clamp(80px, 10vw, 140px) 0; border-bottom: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: 280px 1fr; gap: 48px; margin-bottom: 64px; align-items: end; }
.sec-head h2 {
  font-size: clamp(28px, 3.6vw, 44px); margin: 0;
  font-weight: 600; letter-spacing: -.01em; line-height: 1.25;
}
.sec-head .sec-num {
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em;
  color: var(--muted); text-transform: uppercase;
}
.sec-head p { color: var(--muted); font-size: 14.5px; max-width: 56ch; margin: 0; }

/* About / Philosophy */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.about-quote {
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.7; font-weight: 500; letter-spacing: -.005em;
  color: var(--ink);
}
.about-quote em { font-style: normal; background: linear-gradient(transparent 60%, var(--accent-soft) 60%); padding: 0 2px; }
.about-body p { color: var(--ink-2); font-size: 14.5px; line-height: 1.95; margin: 0 0 16px; }
.about-body p + p { color: var(--muted); }

/* Services */
.svc-tabs {
  display: flex; gap: 8px; margin-bottom: 40px; flex-wrap: wrap;
}
.svc-tab {
  background: transparent; border: 1px solid var(--line);
  padding: 10px 18px; border-radius: 999px;
  font-size: 13px; color: var(--ink-2); letter-spacing: .02em;
  display: inline-flex; gap: 10px; align-items: center;
  transition: all .2s ease;
}
.svc-tab .num { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.svc-tab:hover { border-color: var(--ink-2); }
.svc-tab.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.svc-tab.active .num { color: color-mix(in oklab, var(--bg) 60%, transparent); }

.svc-panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; min-height: 360px; }
.svc-illust {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px;
  aspect-ratio: 4/3; position: relative; overflow: hidden;
}
.svc-illust .label {
  position: absolute; left: 16px; top: 16px;
  font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .1em;
}
.svc-illust .pattern { position: absolute; inset: 0; }
.svc-info h3 {
  font-size: clamp(22px, 2.4vw, 30px); margin: 0 0 6px; font-weight: 600; letter-spacing: -.005em;
}
.svc-info .svc-en { font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 24px; display: block; }
.svc-info p { color: var(--ink-2); font-size: 14.5px; line-height: 1.9; margin: 0 0 20px; }
.svc-info ul { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.svc-info ul li {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-2);
}
.svc-info ul li span:last-child { color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.svc-info ul li.is-featured { padding: 0; }
.svc-info ul li.is-featured a {
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 16px 0; margin: 0;
  font-size: 13.5px; color: var(--ink-2); text-decoration: none;
  transition: color .2s ease, padding-left .2s ease;
}
.svc-info ul li.is-featured a:hover { color: var(--ink); padding-left: 8px; }
.svc-info ul li.is-featured a span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 500;
}
.svc-info ul li.is-featured b {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 7px;
  font-weight: 500;
}

/* News */
.news-tools {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; gap: 16px; flex-wrap: wrap;
}
.news-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.news-filter button {
  background: transparent; border: 0; padding: 6px 10px; font-size: 12.5px;
  color: var(--muted); border-radius: 4px;
}
.news-filter button.active { color: var(--ink); background: var(--bg-2); }
.news-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a {
  display: grid; grid-template-columns: 130px max-content minmax(0, 1fr);
  gap: 20px; padding: 22px 8px; align-items: center;
  transition: padding-left .25s ease, background .25s ease;
}
.news-list a:hover { padding-left: 18px; background: linear-gradient(90deg, var(--accent-soft), transparent 60%);}
.news-list time { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .04em;}
.news-list .tag {
  font-size: 11px; letter-spacing: .04em; text-transform: none;
  border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px;
  color: var(--ink-2); justify-self: start; white-space: nowrap;
}
.news-list .tag.column { border-color: var(--accent-ink); color: var(--accent-ink); }
.news-list .ttl { font-size: 14.5px; color: var(--ink); }

.news-more {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}
.news-more a {
  color: var(--accent-ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
}
.news-more a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.breadcrumb {
  padding: 18px 0 0;
  background: var(--bg);
}
.breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.breadcrumb li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: .55;
  flex: 0 0 auto;
}
.breadcrumb a {
  color: var(--muted);
}
.breadcrumb a:hover {
  color: var(--accent-ink);
}
.breadcrumb span {
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(64vw, 720px);
}

/* Company table */
.co-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; }
.co-table { border-top: 1px solid var(--line); }
.co-table .row {
  display: grid; grid-template-columns: 160px 1fr; gap: 24px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.co-table .row dt { color: var(--muted); font-weight: 500; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; padding-top: 2px;}
.co-table .row dd { margin: 0; color: var(--ink-2); }
.co-map {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px;
  aspect-ratio: 4/3; position: relative; overflow: hidden;
}
.co-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.company-statement {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-2);
}
.company-statement p {
  margin: 0 0 16px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.85;
}
.corporate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .55fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.corporate-table .row {
  grid-template-columns: minmax(150px, .36fr) minmax(0, 1fr);
}
.corporate-table dd {
  line-height: 1.85;
}
.corporate-side {
  display: grid;
  gap: 18px;
}
.office-card-mini {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
}
.office-card-mini h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.45;
}
.office-card-mini p {
  margin: 0 0 14px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.85;
}

/* SDGs strip 窶・official-style colored tiles */
.sdgs {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
  margin-top: 32px;
}
.sdgs .cell {
  aspect-ratio: 1; position: relative; overflow: hidden;
  border-radius: 4px;
  transition: transform .25s ease, filter .35s ease, box-shadow .25s ease;
  background: #fff;
}
.sdgs .cell img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sdgs .cell:not(.on) img { filter: none; opacity: .38; }
.sdgs .cell:not(.on)::after {
  content: ""; position: absolute; inset: 0;
  background: color-mix(in oklab, var(--bg) 34%, transparent);
  pointer-events: none;
}
.sdgs .cell.on { box-shadow: 0 8px 22px -10px rgba(0,0,0,.35); }
.sdgs .cell:hover { transform: translateY(-3px); }
.sdgs .cell.is-wheel { background: #fff; }
@media (max-width: 880px) {
  .sdgs { grid-template-columns: repeat(3, 1fr); gap: 4px; }
}

/* Sustainability page */
.sustainability-intro {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(260px, .55fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
}
.sustainability-intro h2 {
  margin: 0 0 24px;
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.3;
  font-weight: 600;
}
.sustainability-wheel {
  width: min(100%, 360px);
  margin-left: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(18px, 3vw, 32px);
}
.sustainability-wheel img {
  width: 100%;
  height: auto;
  display: block;
}
.sdg-goal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.sdg-goal-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 40px);
  padding: clamp(26px, 4vw, 44px);
  background: var(--bg);
  align-items: start;
}
.sdg-goal-icon {
  width: 128px;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.sdg-goal-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.sdg-goal-num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
}
.sdg-goal-card h3 {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
}
.sustainability-goals .sec-head h2 {
  white-space: nowrap;
}
.sustainability-goals .sec-head {
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}
.sustainability-goals .sec-head p {
  max-width: 64ch;
}
.sdg-goal-content { min-width: 0; }
.sdg-goal-card ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.85;
}
.sdg-goal-card li + li { margin-top: 6px; }
@media (min-width: 881px) {
  .sdg-goal-card {
    grid-template-columns: 128px minmax(0, 1fr);
  }
  .sdg-goal-icon {
    grid-column: 1;
  }
  .sdg-goal-content {
    grid-column: 2;
  }
}
.sdg-projects {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.sdg-projects-label {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.sdg-project {
  padding: 16px 0 0;
  color: var(--ink-2);
}
.sdg-project + .sdg-project {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}
.sdg-project-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}
.sdg-project-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 48px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}
.sdg-project-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}
.sdg-project h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
}
.sdg-project p {
  margin: 0 0 10px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.85;
}
.sdg-project a {
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.sdg-project a:hover { color: var(--ink); }

/* CTA */
.cta-block {
  padding: clamp(70px, 9vw, 140px) 0;
  background: var(--ink); color: var(--bg);
}
.cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.cta-block h2 { font-size: clamp(28px, 4vw, 56px); margin: 0; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.cta-block h2 small { display: block; font-size: 13px; color: color-mix(in oklab, var(--bg) 55%, transparent); font-family: var(--mono); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; font-weight: 400;}
.cta-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 22px 32px; background: var(--bg); color: var(--ink);
  border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: transform .2s ease;
}
.cta-btn:hover { transform: translateY(-2px); }
.cta-btn .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }

/* Footer */
.ft { background: var(--ink); color: color-mix(in oklab, var(--bg) 70%, transparent); padding: 80px 0 32px; }
.ft-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid color-mix(in oklab, var(--bg) 15%, transparent);}
.ft-brand .brand-name { color: var(--bg); }
.ft-brand p { font-size: 12.5px; line-height: 1.9; color: color-mix(in oklab, var(--bg) 55%, transparent); margin: 16px 0 0;}
.ft-col h4 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: color-mix(in oklab, var(--bg) 55%, transparent); margin: 0 0 18px; font-weight: 500; font-family: var(--mono);}
.ft-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ft-col a { font-size: 13px; color: color-mix(in oklab, var(--bg) 80%, transparent);}
.ft-col a:hover { color: var(--bg); }
.ft-bot { padding-top: 24px; display: flex; justify-content: center; font-size: 11.5px; font-family: var(--mono); color: color-mix(in oklab, var(--bg) 50%, transparent); letter-spacing: .04em;}
.to-top {
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 60;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in oklab, var(--bg) 94%, white);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, background .2s ease, color .2s ease;
}
.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.to-top:hover { background: var(--ink); color: var(--bg); }
.to-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Scroll reveal primitives */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }

.reveal-x { opacity: 0; transform: translateX(40px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal-x.in { opacity: 1; transform: none; }

.reveal-clip {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s cubic-bezier(.7,0,.2,1);
}
.reveal-clip.in { clip-path: inset(0 0 0 0); }

.reveal-mask {
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 0%, transparent 0%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0%, #000 0%, transparent 0%, transparent 100%);
  -webkit-mask-size: 200% 100%; mask-size: 200% 100%;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  transition: mask-position 1.2s cubic-bezier(.7,0,.2,1), -webkit-mask-position 1.2s cubic-bezier(.7,0,.2,1);
}
.reveal-mask.in { -webkit-mask-position: 0 0; mask-position: 0 0; }

/* Word-by-word reveal */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: baseline;
  line-height: 1.18;
  padding-bottom: .08em;
  margin-bottom: -.08em;
}
.split-word > span {
  display: inline-block; transform: translateY(110%);
  transition: transform .9s cubic-bezier(.2,.8,.2,1);
}
.in .split-word > span,
.split-word.in > span { transform: none; }
.split-word.delay-1 > span { transition-delay: .05s; }
.split-word.delay-2 > span { transition-delay: .12s; }
.split-word.delay-3 > span { transition-delay: .19s; }
.split-word.delay-4 > span { transition-delay: .26s; }
.split-word.delay-5 > span { transition-delay: .33s; }
.split-word.delay-6 > span { transition-delay: .40s; }

/* Parallax image */
.par {
  --shift: 0px;
  transform: translate3d(0, var(--shift), 0) scale(1.06);
  transition: transform .1s linear;
  will-change: transform;
}

/* Photo treatments */
.photo {
  position: relative; overflow: hidden; border-radius: 4px;
  background: var(--bg-2);
}
.photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1), filter 1s ease;
}
.photo:hover img { transform: scale(1.04); }
.photo .photo-tag {
  position: absolute; left: 16px; top: 16px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase;
  background: var(--bg); color: var(--ink);
  padding: 6px 10px; border-radius: 999px; z-index: 2;
}
.photo .photo-pin {
  position: absolute; right: 16px; bottom: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center;
  color: white; font-family: var(--mono); font-size: 11px;
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 20%, transparent);
}
.photo .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, color-mix(in oklab, var(--ink) 50%, transparent));
  pointer-events: none;
}
.photo-cap {
  position: absolute; left: 24px; bottom: 20px; right: 24px;
  color: var(--bg); font-size: 13px; font-weight: 500; z-index: 2;
  display: flex; justify-content: space-between; gap: 16px;
}
.photo-cap span:last-child { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; opacity: .8;}

/* Marquee */
.marquee {
  overflow: hidden; padding: 18px 0; border-block: 1px solid var(--line);
  background: var(--ink); color: var(--bg);
}
.marquee-track {
  display: flex; gap: 48px; width: max-content;
  animation: scroll-x 40s linear infinite;
  font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  align-items: center;
}
.marquee-track span { display:inline-flex; gap: 48px; align-items: center;}
.marquee-track .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block;}
@keyframes scroll-x { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* Sticky number column for hero */
.hero-num {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  color: var(--muted); text-transform: uppercase;
}
.hero-num b {
  display: block; font-family: var(--sans); font-weight: 500;
  font-size: clamp(28px, 3vw, 40px); color: var(--ink); letter-spacing: -.02em;
  margin-bottom: 4px;
}
.hero-num b em { font-style: normal; color: var(--accent-ink); }
.hero-meta { gap: clamp(20px, 3vw, 48px); flex-wrap: wrap; }

/* Accent emphasis */
.accent-bar { display: inline-block; width: 36px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 12px;}
.eyebrow::before { background: var(--accent); height: 2px; }
.sec-num { color: var(--accent-ink) !important; }
.sec-num::before { content: "笳・"; color: var(--accent); }
.about-quote em { background: linear-gradient(transparent 60%, color-mix(in oklab, var(--accent) 35%, transparent) 60%); }

.hero h1 .em {
  position: relative;
}
.hero h1 .em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6%;
  height: 14%; background: color-mix(in oklab, var(--accent) 35%, transparent);
  z-index: -1; transform-origin: left;
  animation: hl 1.2s .6s cubic-bezier(.7,0,.2,1) both;
}
@keyframes hl { from { transform: scaleX(0);} to { transform: scaleX(1);}}

/* Big section index that scrolls in */
.big-index {
  position: absolute; right: var(--gutter); top: 64px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .25em;
  color: var(--muted); writing-mode: vertical-rl; text-orientation: mixed;
}

/* Metric cards on hero */
.metric-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border-block: 1px solid var(--line);
  margin-top: clamp(48px, 7vw, 96px);
}
.metric-cell { background: var(--bg); padding: 28px 24px;}
.metric-cell .num {
  font-size: clamp(36px, 4.4vw, 64px); font-weight: 500; letter-spacing: -.03em;
  line-height: 1; color: var(--ink); display: flex; align-items: baseline; gap: 6px;
}
.metric-cell .num em { color: var(--accent-ink); font-style: normal;}
.metric-cell .num small { font-size: 14px; color: var(--muted); font-weight: 400; letter-spacing: 0;}
.metric-cell .lab { margin-top: 14px; font-size: 12.5px; color: var(--muted);}

@media (max-width: 880px) {
  .metric-grid { grid-template-columns: 1fr; }
}

/* Service: full-bleed photo treatment */
.svc-illust { aspect-ratio: 5/4; }
.svc-illust img { width: 100%; height: 100%; object-fit: cover; }

/* Photo strip in About */
.about-photos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 56px;
}
.philo {
  display: grid; grid-template-rows: auto 1fr;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden; height: 100%;
}
.philo-media { position: relative; aspect-ratio: 16/9; overflow: hidden;}
.philo-media .photo-tag, .philo-media .photo-pin, .philo-media .scrim, .philo-media .photo-cap { position: absolute; }
.philo-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.philo-body { padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 14px;}
.philo-kicker {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-ink);
}
.philo-kicker::before { content: "笳・"; color: var(--accent); }
.philo-title {
  font-family: var(--serif); font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.5; letter-spacing: -.005em; font-weight: 500; margin: 0;
  color: var(--ink);
}
.philo-body p { color: var(--ink-2); font-size: 14px; line-height: 1.9; margin: 0;}
.philo-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px;}
.philo-list li {
  display: grid; grid-template-columns: 92px 1fr; gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2);
}
.philo-list li:last-child { border-bottom: 1px solid var(--line); }
.philo-list b { font-family: var(--sans); font-weight: 600; color: var(--ink); letter-spacing: .02em;}
.philo-stats { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.philo-stats li {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--bg);
}
.philo-stats b { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: -.01em;}
.philo-stats span { font-size: 11px; color: var(--muted); line-height: 1.4;}
@media (max-width: 880px) {
  .about-photos { grid-template-columns: 1fr;}
  .philo-body { padding: 22px;}
  .philo-list li { grid-template-columns: 80px 1fr;}
}

/* Cursor accent dot under section header */
.sec-head h2 .dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); margin-left: 8px; vertical-align: top; margin-top: 14px;
}

/* Reveal helpers shouldn't collapse layout */
.reveal, .reveal-x, .reveal-clip, .reveal-mask { display: block; }
.svc-panel > .reveal-clip,
.about-photos > .reveal-clip,
.co-grid > .reveal-clip { height: 100%; }
.svc-illust img, .co-map img { position: absolute; inset: 0; }
.svc-illust, .co-map { isolation: isolate; }

/* Failsafe: if reveal never triggers, still show after delay */
@keyframes reveal-fallback { to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); -webkit-mask-position: 0 0; mask-position: 0 0; } }
.reveal, .reveal-x, .reveal-clip, .reveal-mask {
  animation: reveal-fallback 0s 2s forwards;
}
.reveal.in, .reveal-x.in, .reveal-clip.in, .reveal-mask.in { animation: none; }

/* Hamburger / mobile nav */
.nav-toggle {
  display: none; background: transparent; border: 0; padding: 8px;
  width: 40px; height: 40px; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span {
  width: 22px; height: 1.5px; background: var(--ink); display: block;
  transition: transform .3s ease, opacity .3s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg);}
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0;}
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg);}

/* Responsive */
@media (max-width: 1080px) {
  .nav { gap: 12px; }
  .nav a, .nav-group > a { font-size: 12.2px;}
  .nav .cta { padding: 9px 14px; }
}
@media (max-width: 880px) {
  :root { --gutter: clamp(16px, 5vw, 28px); }
  section.block { padding: clamp(56px, 10vw, 86px) 0; }
  .hero-grid, .about-grid, .svc-panel, .co-grid, .cta-inner, .sustainability-intro, .sdg-goal-grid, .corporate-layout { grid-template-columns: 1fr; gap: 32px; }
  .sec-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px;}
  .sec-head p,
  .hero p.lede { max-width: none; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-top: 1px solid var(--line);
    padding: 24px var(--gutter) 32px; gap: 0;
    transform: translateY(-110%); transition: transform .35s cubic-bezier(.7,0,.2,1);
    z-index: 49; box-shadow: 0 12px 40px rgba(0,0,0,.04);
  }
  body.nav-open .nav { transform: translateY(0); }
  .nav a {
    font-size: 15px; padding: 16px 0; border-bottom: 1px solid var(--line);
  }
  .nav-group { padding: 0; }
  .nav-group > a {
    display: block;
    font-size: 15px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-sub {
    position: static;
    min-width: 0;
    padding: 8px 0 8px 18px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-sub a {
    padding: 8px 0;
    font-size: 13.5px;
    color: var(--muted);
    border-bottom: 0;
  }
  .nav .cta {
    margin-top: 16px;
    align-self: flex-start;
    border: 0;
    padding: 12px 20px;
    font-size: 13px;
  }
  .nav a::after,
  .nav-group > a::after { display: none; }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 32px;}
  .news-list a { grid-template-columns: 90px max-content minmax(0, 1fr); gap: 12px; padding: 18px 4px;}
  .news-list .ttl { font-size: 13.5px; line-height: 1.5;}
  .sdgs { grid-template-columns: repeat(6, 1fr);}
  .hero { padding: 56px 0 76px;}
  .hero h1 { font-size: clamp(34px, 8vw, 54px); margin-bottom: 20px;}
  .hero h1 .jp { font-size: clamp(18px, 4vw, 26px); margin-top: 16px; }
  .about-quote { font-size: clamp(20px, 4.5vw, 26px);}
  .philo-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .svc-panel { min-height: 0; }
  .svc-tabs { gap: 6px;}
  .svc-tab { padding: 8px 14px; font-size: 12px;}
  .cta-inner { text-align: left;}
  .cta-btn { padding: 18px 24px; font-size: 13px;}
  .ft-bot { flex-direction: column; gap: 8px; align-items: center;}
  .sustainability-wheel { margin-left: 0; }
  .sdg-goal-grid { gap: 1px; }
  .page-template-page-privacy-policy .sub-hero-inner,
  .page-template-page-consumer-oriented-declaration .sub-hero-inner { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .ft-grid { grid-template-columns: 1fr; }
  .ft-col ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; row-gap: 10px; }
  .sdgs { grid-template-columns: repeat(4, 1fr);}
  .sec-head h2 { font-size: clamp(26px, 8vw, 34px); }
  .news-tools { flex-direction: column; align-items: flex-start; gap: 12px;}
  .news-filter { gap: 8px; width: 100%; }
  .news-filter button { padding: 7px 10px; }
  .news-list a {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0;
  }
  .news-list time,
  .news-list .tag,
  .news-list .ttl {
    grid-column: 1;
  }
  .news-list .tag {
    width: fit-content;
    max-width: 100%;
  }
  .news-more {
    justify-content: flex-start;
    margin-top: 18px;
  }
  .hdr-inner { height: 64px;}
  .nav { top: 64px;}
  .photo-cap { left: 16px; right: 16px; bottom: 14px; font-size: 12px;}
  .photo-cap span:last-child { display: none;}
  .co-table .row { grid-template-columns: 110px 1fr; gap: 16px;}
  .philo-stats { grid-template-columns: 1fr; }
  .philo-list li { grid-template-columns: 1fr; gap: 4px; }
  .svc-tabs { display: grid; grid-template-columns: 1fr; }
  .svc-tab { justify-content: flex-start; }
  .sdg-goal-card { grid-template-columns: 64px 1fr; gap: 16px; }
  .sdg-goal-icon { width: 64px; }
  .sdg-project-head { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .sdg-project-logo { width: 56px; height: 44px; }
  .page-template-page-privacy-policy .sub-hero h1,
  .page-template-page-consumer-oriented-declaration .sub-hero h1 { font-size: clamp(28px, 8vw, 38px); }
}

/* WordPress sub pages */
.sub-hero {
  position: relative;
  padding: clamp(54px, 8vw, 104px) 0 clamp(34px, 5.5vw, 64px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, color-mix(in oklab, var(--accent-soft) 55%, transparent), transparent 42%),
    var(--bg);
}
.sub-hero-inner {
  display: grid;
  grid-template-columns: minmax(max-content, .7fr) minmax(260px, 1fr);
  gap: clamp(24px, 4.5vw, 56px);
  align-items: end;
}
.sub-hero h1 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}
.sub-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.page-template-page-privacy-policy .sub-hero-inner,
.page-template-page-consumer-oriented-declaration .sub-hero-inner {
  grid-template-columns: minmax(max-content, .76fr) minmax(0, 1fr);
}
.page-template-page-privacy-policy .sub-hero h1,
.page-template-page-consumer-oriented-declaration .sub-hero h1,
.corporate-hero h1 {
  white-space: nowrap;
}
.archive-desc {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.9;
}
.archive-desc p {
  margin: 0;
}
.narrow {
  max-width: 860px;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.post-card {
  min-height: 270px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--accent) 40%, var(--line));
  box-shadow: 0 18px 36px -30px rgba(0,0,0,.45);
}
.post-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px;
}
.post-card.has-thumb a {
  padding: 0;
  overflow: hidden;
}
.post-thumb {
  aspect-ratio: 16 / 10;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.post-card:hover .post-thumb img {
  transform: scale(1.04);
}
.post-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 24px;
}
.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
}
.post-meta span {
  display: inline-flex;
  max-width: 58%;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .02em;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-card h2 {
  margin: 20px 0 12px;
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.55;
  letter-spacing: 0;
}
.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}
.post-more {
  margin-top: auto;
  padding-top: 26px;
  color: var(--accent-ink);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
}
.pager {
  margin-top: 46px;
  display: flex;
  justify-content: center;
}
.pager .nav-links,
.pager {
  gap: 8px;
}
.pager .page-numbers {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}
.pager .current,
.pager a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.empty-state {
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-2);
}
.empty-state h2 {
  margin: 0 0 8px;
  font-size: 24px;
}
.empty-state p {
  margin: 0;
  color: var(--muted);
}
.entry-content {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 2;
}
.entry-content > *:first-child {
  margin-top: 0;
}
.entry-content h2,
.entry-content h3 {
  color: var(--ink);
  line-height: 1.45;
  margin: 2em 0 .7em;
}
.entry-content h2 {
  margin-top: 2.4em;
  padding: 16px 0 16px 22px;
  border-left: 4px solid var(--accent);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--accent-soft), transparent 70%);
  font-size: clamp(22px, 2.7vw, 32px);
}
.entry-content h3 {
  margin-top: 2em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(18px, 2vw, 24px);
}
.entry-content p {
  margin: 0 0 1.4em;
}
.entry-content a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.6em;
  padding-left: 1.35em;
}
.entry-content li {
  margin: .45em 0;
  padding-left: .15em;
}
.entry-content li::marker {
  color: var(--accent-ink);
  font-weight: 600;
}
.entry-toc {
  position: relative;
  margin: 2em 0 2.4em;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    repeating-linear-gradient(-45deg, rgba(0,0,0,.025) 0 1px, transparent 1px 4px),
    var(--bg-2);
  overflow: hidden;
}
.entry-toc-title {
  margin: 0 0 16px !important;
  color: var(--ink);
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}
.entry-toc ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.1em;
}
.entry-toc li {
  margin: 0;
  color: var(--accent-ink);
  line-height: 1.65;
}
.entry-toc .toc-h3 {
  margin-left: 1em;
  font-size: .94em;
}
.entry-toc a {
  color: var(--ink-2);
  text-decoration: none;
}
.entry-toc a:hover {
  color: var(--accent-ink);
}
.entry-toc.is-collapsible.is-collapsed ol {
  max-height: 430px;
  overflow: hidden;
}
.entry-toc.is-collapsible.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 58px;
  height: 86px;
  background: linear-gradient(to bottom, transparent, var(--bg-2));
  pointer-events: none;
}
.entry-toc-toggle {
  position: relative;
  z-index: 1;
  display: block;
  margin: 18px auto 0;
  border: 1px solid color-mix(in oklab, var(--ink) 28%, var(--line));
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  padding: 8px 24px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.entry-toc-toggle:hover {
  border-color: var(--accent-ink);
  color: var(--accent-ink);
}
.entry-content figure.wp-block-table {
  margin: 2em 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
}
.entry-content table {
  width: 100%;
  min-width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: auto !important;
  background: var(--bg);
}
.entry-content tbody,
.entry-content thead,
.entry-content tr {
  width: 100%;
}
.entry-content th,
.entry-content td {
  min-width: 160px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  vertical-align: top;
  font-size: 14px;
  line-height: 1.75;
}
.entry-content th {
  background: var(--bg-2);
  color: var(--ink);
  font-weight: 600;
}
.entry-content blockquote {
  margin: 2em 0;
  padding: 18px 22px;
  border-left: 4px solid var(--line);
  background: var(--bg-2);
  color: var(--ink-2);
}
body.single-news .sub-hero {
  padding: clamp(18px, 3vw, 36px) 0 clamp(14px, 2vw, 24px);
}
body.single-news .sub-hero-inner {
  grid-template-columns: minmax(0, 1fr);
  max-width: 860px;
  align-items: start;
  gap: 8px;
}
body.single-news .sub-hero h1 {
  max-width: 860px;
  font-size: clamp(21px, 2.25vw, 32px);
  line-height: 1.34;
  letter-spacing: 0;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
body.single-news .sub-hero p {
  margin-top: 6px;
}
.legal-content {
  max-width: 880px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.95;
}
.legal-content > *:first-child { margin-top: 0; }
.legal-content h2 {
  margin: 44px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.45;
}
.legal-content h3 {
  margin: 28px 0 10px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.55;
}
.legal-content p { margin: 0 0 1.2em; }
.legal-content ul {
  margin: 0 0 1.4em;
  padding-left: 1.3em;
}
.legal-content li + li { margin-top: 6px; }
.single-thumb {
  max-width: 860px;
  margin: 18px auto 0;
  border-radius: 6px;
  background: var(--bg-2);
}
.single-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: inherit;
}
.single-cats {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.single-nav {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
body.single-news .single-post > .block {
  padding-top: clamp(18px, 3vw, 34px);
}
.inline-link,
.single-nav a {
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
}
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(36px, 6vw, 76px);
  align-items: start;
}
.access-lead {
  max-width: 860px;
  margin-bottom: clamp(56px, 7vw, 92px);
}
.access-lead h2,
.contact-copy h2 {
  margin: 0 0 26px;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.35;
}
.office-list {
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 4vw, 48px);
}
.office-card {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}
.office-card:not(:last-child) {
  margin-bottom: 0 !important;
}
.office-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  padding: clamp(28px, 4vw, 46px);
  background: var(--bg);
}
.office-body .inline-link {
  margin-top: 8px;
}
.office-label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.office-label::before {
  content: "笳・";
  color: var(--accent);
}
.office-body h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.35;
}
.office-body p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.95;
}
.access-map {
  min-height: 360px;
  overflow: hidden;
  background: var(--bg-2);
}
.access-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  filter: grayscale(.18);
}
.contact-copy p {
  color: var(--muted);
  margin: 0 0 28px;
  line-height: 1.9;
}
.contact-notes {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.contact-notes li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13.5px;
}
.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-2);
}
.contact-form label {
  display: grid;
  gap: 4px;
}
.contact-form label span {
  display: flex;
  justify-content: space-between;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
}
.contact-form label b {
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink);
  padding: 13px 14px;
  font: inherit;
  outline: none;
}
.contact-form .contact-sales-note {
  margin: 0 0 2px;
  color: var(--accent-ink);
  font-size: 12px;
  line-height: 1.7;
  font-weight: 600;
}
.contact-form .wpcf7-form .contact-sales-note {
  display: none;
}
.contact-form .wpcf7-form {
  display: grid;
  gap: 18px;
}
.contact-form .wpcf7-form p {
  margin: 0;
}
.contact-form .wpcf7-form > p:first-of-type {
  display: grid;
  gap: 16px;
}
.contact-form .wpcf7-form br {
  display: none;
}
.contact-form .wpcf7-form-control-wrap {
  display: block;
  margin-top: 4px;
}
.contact-form .wpcf7-not-valid-tip,
.contact-form .wpcf7-response-output {
  color: var(--accent-ink);
  font-size: 12px;
  line-height: 1.7;
}
.contact-form .wpcf7-response-output {
  margin: 0 !important;
  padding: 12px 14px !important;
  border-color: var(--line) !important;
  border-radius: 4px;
}
.contact-form textarea {
  resize: vertical;
}
.contact-form input[type="submit"] {
  width: auto;
  justify-self: start;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  padding: 14px 24px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.contact-form input[type="submit"]:hover {
  transform: translateY(-2px);
  background: var(--accent-ink);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-ink);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
}
.submit-btn {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  padding: 14px 24px;
  transition: transform .2s ease, background .2s ease;
}
.submit-btn:hover {
  transform: translateY(-2px);
  background: var(--accent-ink);
}
.form-message {
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.7;
}
.form-message.success {
  background: color-mix(in oklab, #2f8f5b 13%, white);
  color: #1f6841;
}
.form-message.error {
  background: color-mix(in oklab, var(--accent) 12%, white);
  color: var(--accent-ink);
}

@media (max-width: 960px) {
  .post-grid,
  .sub-hero-inner,
  .office-card,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .sub-hero {
    padding: clamp(42px, 8vw, 72px) 0 clamp(30px, 6vw, 48px);
  }
  .sub-hero h1 {
    font-size: clamp(28px, 7vw, 42px);
  }
  .sub-hero p {
    max-width: 720px;
  }
  .office-card {
    gap: 0;
  }
  .office-card + .office-card {
    margin-top: 0 !important;
  }
  .post-grid {
    gap: 14px;
  }
  .breadcrumb {
    padding-top: 14px;
  }
  .post-body {
    padding: 22px;
  }
}

@media (max-width: 540px) {
  .post-body,
  .contact-form,
  .empty-state {
    padding: 22px;
  }
  .post-thumb {
    aspect-ratio: 16 / 9;
  }
  .post-meta {
    flex-direction: column;
    gap: 6px;
  }
  .post-meta span {
    max-width: 100%;
  }
  .breadcrumb span {
    max-width: 72vw;
  }
  .sub-hero {
    padding: 34px 0 28px;
  }
  .sub-hero h1 {
    font-size: clamp(24px, 8.2vw, 34px);
  }
  .page-template-page-privacy-policy .sub-hero h1,
  .page-template-page-consumer-oriented-declaration .sub-hero h1 {
    font-size: clamp(22px, 7.4vw, 30px);
  }
  body.single-news .single-thumb {
    margin-top: 14px;
  }
  body.single-news .sub-hero h1 {
    font-size: clamp(20px, 6.2vw, 28px);
  }
  .entry-toc.is-collapsible.is-collapsed ol {
    max-height: 360px;
  }
  .entry-content {
    font-size: 14.5px;
    line-height: 1.9;
  }
  .entry-content h2 {
    padding: 13px 0 13px 16px;
  }
  .entry-content th,
  .entry-content td {
    min-width: 140px;
    padding: 11px 12px;
  }
  .access-map,
  .access-map iframe {
    min-height: 300px;
  }
}

@media (min-width: 881px) {
  body .sdg-goal-card {
    display: flex !important;
    align-items: flex-start;
    gap: clamp(28px, 4vw, 48px);
  }
  body .sdg-goal-icon {
    flex: 0 0 128px;
    width: 128px;
  }
  body .sdg-goal-content {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 2px;
  }
}

