/* Shore Paper — 生成り紙と水平線のトーン */
:root {
  --paper: #f6f2ea;
  --paper-2: #efeadd;
  --paper-3: #e8e1cf;
  --ink: #14140f;
  --ink-mute: #3f3a30;
  --ink-soft: #6a6355;
  --rule: #c2b9a4;
  --rule-thin: #d4cbb6;
  --brand: #005d82;
  --brand-ink: #ffffff;
  --accent: #005d82;
  --accent-soft: rgba(0, 93, 130, 0.10);
  --gutter: clamp(24px, 5vw, 88px);
  --measure: 62ch;
}

body { font-size: 15.5px; font-weight: 400; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: clamp(48px, 8vw, 120px);
  padding: 22px var(--gutter);
  background: color-mix(in oklab, var(--paper) 90%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule-thin);
}
.site-header .brand { font-size: 14px; letter-spacing: 0.16em; display: flex; align-items: center; gap: 14px; color: var(--ink); }
.site-header .brand .mark { width: 56px; height: 56px; display: inline-block; flex: 0 0 auto; }
.site-header .brand .mark svg, .site-header .brand .mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.site-header .brand .wordmark { display: inline-flex; align-items: center; line-height: 1.2; white-space: nowrap; font-weight: 500; }
.site-header nav { display: flex; justify-content: flex-end; gap: 28px; font-size: 12px; letter-spacing: 0.2em; }
.site-header nav a { color: var(--ink-mute); }
.site-header nav a:hover { color: var(--ink); }
.site-header .lang { justify-self: end; font-size: 11px; letter-spacing: 0.24em; color: var(--ink-mute); }
.site-header .lang em { font-style: normal; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
@media (max-width: 780px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
}

/* ---------- Section frame ---------- */
section { padding: clamp(112px, 14vw, 200px) var(--gutter); position: relative; }
section + section { border-top: 1px solid var(--rule-thin); }

/* Section index — 案Bはより余白広く */
.section-index {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: clamp(64px, 8vw, 120px);
  max-width: 1200px;
}
.section-index .num { font-size: 14px; color: var(--ink); letter-spacing: 0.28em; font-weight: 500; }
.section-index .num::before { content: "―― "; letter-spacing: 0; color: var(--ink-mute); }
.section-index h2 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: 0.03em;
  line-height: 1.55;
  max-width: 22ch;
  text-wrap: pretty;
}
.section-index h2 .en {
  display: block;
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.24em;
  margin-top: 16px;
  text-transform: lowercase;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 96vh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: clamp(88px, 12vw, 160px);
  padding-bottom: clamp(64px, 8vw, 120px);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(56px, 8vw, 120px);
  align-items: end;
  position: relative;
  z-index: 2;
}
.hero-mark {
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--ink);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 14px;
}
.hero-mark::before {
  content: "";
  display: inline-block; width: 32px; height: 1px; background: var(--ink-mute);
}
.hero-copy {
  max-width: 22ch;
  margin: 40px 0 0;
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 60px);
  line-height: 1.55;
  letter-spacing: 0.03em;
  text-wrap: pretty;
}
.hero-copy .drop { color: var(--accent); }
.hero-sub {
  max-width: 46ch;
  margin: 44px 0 0;
  color: var(--ink-mute);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 2.1;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--rule-thin);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  position: relative; z-index: 2;
}
.hero-meta div span { display: block; color: var(--ink); margin-top: 8px; font-size: 13px; letter-spacing: 0.08em; }

.hero-figure {
  position: absolute;
  right: calc(var(--gutter) - clamp(40px, 6vw, 96px));
  top: clamp(40px, 5vw, 90px);
  width: min(72%, 780px);
  aspect-ratio: 1 / 1;
  pointer-events: none;
  opacity: 0.55;
  z-index: 1;
  mix-blend-mode: multiply;
}
@media (max-width: 900px) {
  .hero-figure { position: relative; right: auto; top: auto; width: 92%; margin: 32px 0 0 auto; opacity: 0.7; }
  .hero-copy { font-size: clamp(28px, 6.6vw, 42px); }
}

/* ---------- About ---------- */
.about-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 64px);
  max-width: 1200px;
}
.about-body .lede {
  max-width: 40ch;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.95;
  margin: 0 0 40px;
  color: var(--ink);
  font-weight: 400;
  text-wrap: pretty;
}
.about-body .two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 80px);
}
.about-body .two p { margin: 0; color: var(--ink-mute); font-size: 15px; line-height: 2.05; max-width: 40ch; }
@media (max-width: 780px) { .about-body .two { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule-thin);
  border-top: 1px solid var(--rule-thin);
  border-bottom: 1px solid var(--rule-thin);
}
.service-cell {
  background: var(--paper);
  padding: clamp(40px, 4vw, 64px) clamp(28px, 3vw, 40px);
  min-height: 320px;
  display: flex; flex-direction: column;
}
.service-cell .num { font-size: 11.5px; color: var(--accent); letter-spacing: 0.24em; margin-bottom: 32px; }
.service-cell h3 {
  margin: 0 0 20px;
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 24px);
  letter-spacing: 0.04em;
  line-height: 1.7;
  max-width: 14ch;
}
.service-cell h3 .en {
  display: block;
  font-size: 11.5px;
  color: var(--ink-mute);
  letter-spacing: 0.24em;
  margin-top: 10px;
  font-weight: 400;
}
.service-cell p { margin: 0; color: var(--ink-mute); font-size: 14.5px; line-height: 2.0; max-width: 30ch; }
@media (max-width: 900px) { .services-list { grid-template-columns: 1fr; } .service-cell { min-height: 0; } }

/* ---------- Initiative ---------- */
.initiative {
  background: var(--paper-2);
  border-top: 1px solid var(--rule-thin);
  border-bottom: 1px solid var(--rule-thin);
}
.initiative .tag {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.28em;
  color: var(--brand);
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--brand);
  margin-bottom: 32px;
}
.initiative .tag::before {
  content: ""; width: 6px; height: 6px; background: var(--brand); border-radius: 50%;
}
.initiative .tag-accent {
  font-size: 13px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  padding: 10px 20px 10px 18px;
  margin-bottom: 36px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 14px 28px -18px var(--brand);
  animation: tagPulse 2.6s ease-in-out infinite;
}
.initiative .tag-accent::before {
  width: 8px; height: 8px; background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
  animation: tagDot 1.8s ease-out infinite;
}
@keyframes tagPulse {
  0%, 100% { box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 14px 28px -18px var(--brand); }
  50%      { box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 20px 36px -14px var(--brand); }
}
@keyframes tagDot {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(255,255,255,0);   }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0);     }
}
.initiative-figure .node .en { color: var(--brand); font-weight: 500; }
.initiative-body { max-width: 900px; }
.initiative .lede {
  max-width: 44ch;
  font-size: clamp(18px, 1.7vw, 22px);
  color: var(--ink);
  line-height: 2.0;
  margin: 0 0 40px;
  text-wrap: pretty;
}
.initiative p { max-width: 58ch; margin: 0 0 24px; color: var(--ink-mute); font-size: 15px; line-height: 2.05; }

.initiative-figure {
  margin-top: 64px;
  padding: 32px 0;
  border-top: 1px solid var(--rule-thin);
  border-bottom: 1px solid var(--rule-thin);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.initiative-figure::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: repeating-linear-gradient(to right, var(--rule) 0 4px, transparent 4px 10px);
}
.initiative-figure .node {
  padding: 24px 20px;
  border-left: 1px solid var(--rule-thin);
  font-size: 13px;
  letter-spacing: 0.06em;
  position: relative;
  background: var(--paper-2);
}
.initiative-figure .node:first-child { border-left: 0; }
.initiative-figure .node .en {
  display: block;
  font-size: 11px; color: var(--accent);
  letter-spacing: 0.24em; margin-bottom: 10px;
}
.initiative-figure .node small { display: block; margin-top: 6px; color: var(--ink-mute); font-size: 11.5px; letter-spacing: 0.06em; }
@media (max-width: 780px) {
  .initiative-figure { grid-template-columns: repeat(2, 1fr); }
  .initiative-figure .node:nth-child(3) { border-left: 0; }
}

/* ---------- Works ---------- */
.records-list { border-top: 1px solid var(--rule-thin); }
.record {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: clamp(20px, 3vw, 44px);
  padding: 32px 0;
  border-bottom: 1px solid var(--rule-thin);
  align-items: baseline;
}
.record .num { color: var(--accent); font-size: 13px; letter-spacing: 0.16em; }
.record h4 { margin: 0 0 8px; font-weight: 500; font-size: 16px; letter-spacing: 0.03em; }
.record p { margin: 0; color: var(--ink-mute); font-size: 14px; max-width: 62ch; line-height: 1.95; }
.record .cat { font-size: 11px; letter-spacing: 0.22em; color: var(--ink-mute); }
.records-note { margin-top: 32px; font-size: 12px; color: var(--ink-mute); letter-spacing: 0.06em; }
@media (max-width: 780px) {
  .record { grid-template-columns: 60px 1fr; }
  .record .cat { grid-column: 2; margin-top: 4px; }
}

/* ---------- Strengths ---------- */
.strengths-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule-thin);
}
.strength-row {
  display: grid;
  grid-template-columns: 80px 1fr 1.4fr;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(40px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--rule-thin);
  align-items: baseline;
}
.strength-row .num { color: var(--accent); font-size: 13px; letter-spacing: 0.2em; }
.strength-row h4 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 24px);
  letter-spacing: 0.04em;
  line-height: 1.6;
  max-width: 22ch;
  text-wrap: pretty;
}
.strength-row p { margin: 0; color: var(--ink-mute); font-size: 15px; line-height: 2.05; max-width: 48ch; }
@media (max-width: 900px) {
  .strength-row { grid-template-columns: 60px 1fr; }
  .strength-row p { grid-column: 2; margin-top: 12px; }
}

/* ---------- Corporate info ---------- */
.corp dl {
  margin: 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  border-top: 1px solid var(--rule-thin);
  max-width: 960px;
}
.corp dt, .corp dd {
  padding: 26px 0;
  border-bottom: 1px solid var(--rule-thin);
  margin: 0;
}
.corp dt {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
}
.corp dt .en { display: block; font-size: 10.5px; letter-spacing: 0.26em; margin-top: 4px; color: var(--ink-soft); }
.corp dd { font-size: 15.5px; letter-spacing: 0.04em; }
@media (max-width: 780px) {
  .corp dl { grid-template-columns: 1fr; }
  .corp dt { padding-bottom: 4px; border-bottom: 0; }
  .corp dd { padding-top: 4px; }
}

/* ---------- Contact ---------- */
.contact {
  background: var(--paper-3);
  border-top: 1px solid var(--rule-thin);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 56px);
  max-width: 960px;
}
.contact .lede {
  max-width: 40ch;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.95;
  margin: 0 0 56px;
  color: var(--ink);
  text-wrap: pretty;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(24px, 3vw, 48px);
  max-width: 820px;
}
.field { grid-column: span 1; border-bottom: 1px solid var(--rule); padding: 22px 0 14px; position: relative; }
.field.wide { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.field label .en { display: inline-block; margin-left: 10px; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 6px 0;
  font-size: 15.5px;
  color: var(--ink);
  resize: vertical;
}
.field textarea { min-height: 140px; }
.field:focus-within { border-bottom-color: var(--accent); }

.contact-submit {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.contact-submit .note { font-size: 12px; color: var(--ink-mute); letter-spacing: 0.06em; max-width: 40ch; line-height: 1.7; }
.btn-submit {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 16px 32px;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  font-size: 12px; letter-spacing: 0.28em;
  transition: background 200ms ease, color 200ms ease;
}
.btn-submit:hover { background: var(--accent); border-color: var(--accent); }
.btn-submit .arrow { font-family: 'EB Garamond', serif; font-style: italic; letter-spacing: 0; }

/* ---------- Footer (brand-colored) ---------- */
.site-footer {
  padding: clamp(72px, 8vw, 120px) var(--gutter);
  background: var(--brand);
  color: color-mix(in oklab, var(--brand-ink) 78%, transparent);
  border-top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(20px, 3vw, 48px);
  align-items: end;
  font-size: 12px;
  letter-spacing: 0.14em;
}
.site-footer .brandmark { width: 48px; height: 48px; }
.site-footer .brandmark svg, .site-footer .brandmark img { width: 100%; height: 100%; display: block; }
.site-footer .brandmark svg path { fill: var(--brand-ink) !important; }
.site-footer .mark { font-size: 20px; color: var(--brand-ink); letter-spacing: 0.16em; font-weight: 500; line-height: 1.5; }
.site-footer .mark .en { display: block; font-size: 12px; letter-spacing: 0.18em; color: color-mix(in oklab, var(--brand-ink) 88%, transparent); margin-top: 10px; font-style: italic; font-weight: 400; }
.site-footer .colophon { justify-self: end; text-align: right; font-size: 11.5px; letter-spacing: 0.18em; color: color-mix(in oklab, var(--brand-ink) 82%, transparent); }
@media (max-width: 780px) {
  .site-footer { grid-template-columns: auto 1fr; }
  .site-footer .colophon { grid-column: 1 / -1; justify-self: start; text-align: left; margin-top: 8px; }
}

@media (max-width: 780px) {
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .contact-form { grid-template-columns: 1fr; }
}
