/* BELINK デザインプロトタイプ
   metaphor: 化粧品の裏面表示ラベル（事業者表示）
   tokens: 実測由来 — 純黒禁止(茶墨)・字間広め・行間2.0・生成り背景・アクセントは臙脂(紅花由来=化粧の色) */

:root {
  --paper: #f6f3ed;        /* 机上の生成り (五島の椿 240,238,236 を暖色側に調整) */
  --box: #fdfcf8;          /* 箱の紙白 */
  --ink: #272220;          /* 茶墨 (純黒禁止) */
  --ink-soft: rgba(39, 34, 32, 0.72);
  --ink-faint: rgba(39, 34, 32, 0.45);
  --rule: rgba(39, 34, 32, 0.30);
  --rule-strong: rgba(39, 34, 32, 0.55);
  --enji: #9d2933;         /* 臙脂 — 紅花由来の伝統色 */
  --serif-jp: "游明朝", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", serif;
  --gothic-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", sans-serif;
  --serif-en: "EB Garamond", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--gothic-jp);
  font-size: 17px;
  font-weight: 400;
  line-height: 2.0;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); text-underline-offset: 4px; }
a:hover { color: var(--enji); }

/* ───────── ナビ ───────── */

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 28px clamp(20px, 5vw, 64px) 0;
}

.site-nav .brand {
  font-family: var(--serif-en);
  font-size: 15px;
  letter-spacing: 0.42em;
  text-decoration: none;
  font-weight: 500;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

.site-nav ul a {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--ink-soft);
}

/* ───────── hero: 実物大の箱裏面 ───────── */

.hero {
  min-height: 92vh;
  display: grid;
  place-items: center;
  padding: 48px 20px 72px;
  perspective: 1200px;
  position: relative;
  background-color: var(--paper);
  background-image: url("img/paper-surface.jpg");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(246, 243, 237, 0), var(--paper));
  pointer-events: none;
}

.box-back {
  width: min(400px, 92vw);
  background: var(--box);
  border: 1px solid rgba(39, 34, 32, 0.12);
  box-shadow:
    0 1px 2px rgba(39, 34, 32, 0.08),
    0 22px 48px -20px rgba(39, 34, 32, 0.35);
  position: relative;
  z-index: 1;
  padding: 44px 36px 30px;
  transform-style: preserve-3d;
}

.js .box-back { transform: rotateY(180deg); opacity: 0; }
.js .box-back.is-turned {
  transform: rotateY(0deg);
  opacity: 1;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease-out;
}

.box-back .logotype {
  font-family: var(--serif-en);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.5em;
  text-indent: 0.5em; /* 字間分の光学中央合わせ */
  text-align: center;
}

.box-back .form-name {
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: var(--ink-soft);
}

.label-table {
  margin-top: 32px;
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

.label-table th,
.label-table td {
  border-top: 1px solid var(--rule);
  padding: 10px 2px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.06em;
  text-align: left;
  vertical-align: top;
}

.label-table tr:first-child th,
.label-table tr:first-child td { border-top: none; }

.label-table th {
  width: 7.5em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.label-table .placeholder { color: var(--ink-faint); }

.box-back .bottom-print {
  margin-top: 26px;
  text-align: center;
  font-family: var(--serif-en);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: var(--ink-faint);
}

.hero .scroll-hint {
  margin-top: 40px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--ink-faint);
}

/* ───────── 宣言: 見出しなし2行帯 ───────── */

.declaration {
  background: var(--ink) url("img/washi-ink.jpg") center / cover;
  color: #f3efe8;
  padding: clamp(64px, 10vw, 120px) clamp(20px, 8vw, 120px);
}

.declaration p {
  max-width: 34em;
  margin-inline: auto;
  font-family: var(--serif-jp);
  font-size: clamp(19px, 2.6vw, 24px);
  line-height: 2.3;
  letter-spacing: 0.08em;
  font-weight: 400;
}

/* ───────── 事業内容: 全成分風1段落 + 横罫3行 ───────── */

.business {
  padding: clamp(72px, 11vw, 140px) clamp(20px, 6vw, 80px);
  max-width: 1120px;
}

.business-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}

.business-photo {
  margin-top: 8px;
}

.business-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.business-photo figcaption {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}

.section-mark {
  font-family: var(--serif-en);
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--enji);
  margin-bottom: 28px;
}

.zenseibun {
  font-size: 15px;
  line-height: 2.4;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  max-width: 40em;
}

.zenseibun .lead-word { color: var(--ink); }

.business-lines {
  margin-top: 56px;
  list-style: none;
  counter-reset: biz;
}

.business-lines li {
  counter-increment: biz;
  display: flex;
  align-items: baseline;
  gap: 24px;
  border-top: 1px solid var(--rule);
  padding: 22px 4px;
  font-size: 18px;
  letter-spacing: 0.06em;
}

.business-lines li:last-child { border-bottom: 1px solid var(--rule); }

.business-lines li::before {
  content: counter(biz, decimal-leading-zero);
  font-family: var(--serif-en);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

.business-lines .note {
  margin-left: auto;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ───────── 代表挨拶: 転調章(明朝・非対称) ───────── */

.greeting {
  background: var(--box);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(80px, 12vw, 150px) clamp(20px, 6vw, 80px);
}

.greeting-inner {
  max-width: 980px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.portrait-frame {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--paper);
}

.portrait-frame p {
  font-size: 12px;
  line-height: 2;
  color: var(--ink-faint);
  text-align: center;
}

.greeting-text { font-family: var(--serif-jp); }

.greeting-text .dummy-mark {
  display: inline-block;
  font-family: var(--gothic-jp);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--enji);
  border: 1px solid currentColor;
  padding: 2px 10px;
  margin-bottom: 24px;
}

.greeting-text h2 {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.greeting-text p {
  font-size: 17px;
  line-height: 2.4;
  letter-spacing: 0.06em;
  max-width: 36em;
}

.greeting-text p + p { margin-top: 1.6em; }

.greeting-text .signature {
  margin-top: 44px;
  font-size: 18px;
  letter-spacing: 0.2em;
}

.greeting-text .signature small {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-right: 1.2em;
}

/* ───────── 会社概要: dl 罫線上下のみ ───────── */

.overview {
  padding: clamp(72px, 11vw, 140px) clamp(20px, 6vw, 80px);
  max-width: 880px;
  margin-inline: auto;
}

.overview dl {
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

.overview .row {
  display: grid;
  grid-template-columns: minmax(7em, 10em) 1fr;
  gap: 16px;
  padding: 20px 4px;
}

.overview .row + .row { border-top: 1px solid var(--rule); }

.overview dt {
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  padding-top: 2px;
}

.overview dd { font-size: 17px; letter-spacing: 0.05em; }

.overview .placeholder { color: var(--ink-faint); }

.blank-line {
  display: inline-block;
  width: 9em;
  border-bottom: 1px solid var(--rule);
  height: 1.1em;
  vertical-align: baseline;
}

/* ───────── お問い合わせ先帯 (ページ唯一の囲み) ───────── */

.contact-band {
  margin: clamp(48px, 8vw, 96px) clamp(20px, 6vw, 80px) clamp(80px, 12vw, 140px);
  display: grid;
  place-items: center;
}

.contact-band .frame {
  width: min(860px, 100%);
  border: 1px solid var(--ink);
  padding: clamp(40px, 7vw, 80px) clamp(24px, 6vw, 72px);
  text-align: center;
}

.contact-band .frame-label {
  font-size: 13px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--ink-soft);
}

.contact-band .tel {
  margin-top: 24px;
  white-space: nowrap;
  font-family: var(--serif-en);
  font-size: clamp(25px, 7vw, 72px);
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none;
  display: block;
}

.contact-band .tel-note {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}

.contact-band .mail-row {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 40px;
  font-size: 15px;
  letter-spacing: 0.08em;
}

/* ───────── footer ───────── */

.site-foot {
  border-top: 1px solid var(--rule);
  padding: 28px clamp(20px, 5vw, 64px) 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

/* ───────── contact ページ: 連絡票 ───────── */

.contact-page {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 6vw, 48px) clamp(80px, 10vw, 120px);
}

.contact-page h1 {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.3em;
}

.contact-page .page-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 36em;
}

.contact-form { margin-top: 48px; }

.contact-form .field { margin-bottom: 36px; }

.contact-form label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--rule-strong);
  background: transparent;
  font-family: var(--gothic-jp);
  font-size: 17px;
  letter-spacing: 0.05em;
  padding: 8px 2px 12px;
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--enji);
}

.contact-form textarea { min-height: 160px; resize: vertical; line-height: 2; }

.contact-form button {
  border: 1px solid var(--ink-faint);
  background: transparent;
  color: var(--ink-faint);
  font-family: var(--gothic-jp);
  font-size: 15px;
  letter-spacing: 0.14em;
  padding: 16px 40px;
  cursor: not-allowed;
}

.contact-form .form-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--enji);
  letter-spacing: 0.08em;
}

.reprint {
  margin-top: 80px;
  border-top: 1px solid var(--rule);
  padding-top: 48px;
}

.reprint .section-mark { margin-bottom: 20px; }

.back-link {
  display: inline-block;
  margin-top: 48px;
  font-size: 14px;
  letter-spacing: 0.12em;
}

/* ───────── ダミー明示帯 (常時固定) ───────── */

.proto-badge {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 50;
  background: var(--ink);
  color: #f3efe8;
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1;
  padding: 9px 14px;
}

/* ───────── reveal (JS任意・落ちても全文表示) ───────── */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .box-back { transform: none; opacity: 1; transition: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ───────── mobile ───────── */

@media (max-width: 700px) {
  .declaration p br { display: none; }
  .business-inner { grid-template-columns: 1fr; }
  .business-photo { max-width: 280px; }
  .greeting-inner { grid-template-columns: 1fr; }
  .portrait-frame { max-width: 240px; }
  .business-lines li { flex-wrap: wrap; gap: 12px; }
  .business-lines .note { margin-left: 0; width: 100%; padding-left: 2.4em; }
  .overview .row { grid-template-columns: 1fr; gap: 4px; padding: 16px 2px; }
}
