/* ============================================================
   ３代目ざぼん株式会社 — 土と風(tsuchitokaze.co.jp)テイスト
   温かいクリーム地 × 明朝 × 大地色アクセント × 縦書き × 余白
   ブランドの濃紺(#1b2a5e)を文字色に採用し、ざぼんらしさを合成
   ============================================================ */

:root {
  /* paper / ink */
  --paper:    #faf6ef;   /* 温かいクリーム地（土と風 #fff9f4 を踏襲） */
  --paper-2:  #f4ece0;   /* 一段深いクリーム（alt セクション） */
  --ink:      #1b2a5e;   /* ブランド濃紺。見出し・主要テキスト */
  --ink-2:    #45507a;   /* くすませた紺。本文 */
  --sub:      #a89c89;   /* 温かいグレー。EN ラベル・キャプション */
  --line:     #e6ddcd;   /* 温かいヘアライン */

  /* earthy section accents（くすんだ大地色） */
  --mauve:    #b89a92;   /* ダスティローズ */
  --slate:    #6e7a83;   /* スレートブルーグレー */
  --moss:     #6f7355;   /* 苔・茶畑系の深い緑 */
  --deep:     #141d3b;   /* 深い紺（ダーク／フッター） */
  --sun-1:    #e9b27a;   /* 夕焼けグラデ */
  --sun-2:    #c98b6d;

  /* type */
  --serif-ja: "Shippori Mincho", "Noto Serif JP", serif;
  --serif-en: "Cormorant Garamond", "EB Garamond", serif;
  --sans-ja:  "Zen Kaku Gothic Antique", "Noto Sans JP", "Hiragino Sans", sans-serif;

  --pad:   clamp(22px, 6vw, 96px);
  --pad-y: clamp(96px, 16vw, 200px);
  --maxw:  1180px;
}
@media (max-width: 720px) {
  :root { --pad: 22px; --pad-y: 88px; }
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }
html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-ja);
  font-weight: 400;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { font-size: 15px; line-height: 2.0; letter-spacing: 0.04em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ============================================================
   primitives
   ============================================================ */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--pad-y) 0; position: relative; }
.section--paper2 { background: var(--paper-2); }

.eyebrow {
  font-family: var(--serif-en);
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--sub);
  font-style: italic;
  font-weight: 500;
}
.eyebrow .ja {
  font-family: var(--serif-ja);
  font-style: normal;
  letter-spacing: 0.22em;
  margin-left: 14px;
  font-size: 11px;
}
@media (max-width: 720px) { .eyebrow .ja { display: block; margin: 8px 0 0; } }

.section-title {
  font-family: var(--serif-ja);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.55;
  letter-spacing: 0.1em;
  margin: 26px 0 0;
  color: var(--ink);
  text-wrap: balance;
}
.lede {
  font-size: 15.5px;
  line-height: 2.4;
  color: var(--ink-2);
  letter-spacing: 0.06em;
  text-wrap: pretty;
}

/* refined text link (土と風風: テキスト＋細い丸アロー) */
.tlink {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--serif-ja);
  font-size: 14px; font-weight: 500; letter-spacing: 0.14em;
  color: var(--ink);
  position: relative;
}
.tlink .dot { font-size: 10px; color: var(--sub); }
.tlink .arrow {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--ink);
  display: grid; place-items: center;
  transition: background .35s ease, color .35s ease, transform .35s ease;
}
.tlink .arrow::after {
  content: "→"; font-family: var(--serif-en); font-size: 14px; line-height: 1;
}
.tlink:hover .arrow { background: var(--ink); color: var(--paper); transform: translateX(3px); }
.tlink--light { color: var(--paper); }
.tlink--light .arrow { border-color: var(--paper); }
.tlink--light:hover .arrow { background: var(--paper); color: var(--ink); }

/* ============================================================
   Loader
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--paper);
  display: grid; place-items: center;
  transition: opacity .9s ease 0.2s, visibility 0s linear 1.1s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-mark {
  font-family: var(--serif-ja); font-weight: 500;
  font-size: clamp(34px, 7vw, 64px); letter-spacing: 0.5em;
  color: var(--ink); padding-left: 0.5em;
  display: flex; gap: 0;
}
.loader-mark span { opacity: 0; transform: translateY(8px); animation: loadIn .9s ease forwards; }
.loader-mark span:nth-child(1){ animation-delay:.1s }
.loader-mark span:nth-child(2){ animation-delay:.28s }
.loader-mark span:nth-child(3){ animation-delay:.46s }
@keyframes loadIn { to { opacity: 1; transform: none; } }
.loader-bar {
  position: absolute; bottom: 18%; left: 50%; transform: translateX(-50%);
  width: 60px; height: 1px; background: var(--line); overflow: hidden;
}
.loader-bar::after {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform: translateX(-100%); animation: loadBar 1.1s ease forwards;
}
@keyframes loadBar { to { transform: translateX(0); } }

/* ============================================================
   Header  +  縦書きナビ
   ============================================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: clamp(20px, 3vw, 38px) var(--pad);
  pointer-events: none;
}
/* スクロール時の可読性確保: ヘッダー全体ではなく上部の短い帯だけを覆う
   （縦書きナビでヘッダーが縦に長いため、box 背景にすると大きく被ってしまう） */
.header::before {
  content: ""; position: fixed; top: 0; left: 0; right: 0; height: 132px;
  background: linear-gradient(to bottom, var(--paper) 22%, transparent);
  opacity: 0; transition: opacity .4s ease; pointer-events: none; z-index: -1;
}
.header.scrolled::before { opacity: 1; }
.header > * { pointer-events: auto; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand-logo { width: 30px; height: auto; flex: 0 0 auto; }
.brand-name {
  font-family: var(--serif-ja); font-weight: 500; line-height: 1.4;
  font-size: 17px; letter-spacing: 0.16em; color: var(--ink);
}
.brand-name small {
  display: block; font-family: var(--serif-en); font-style: italic;
  font-size: 9.5px; letter-spacing: 0.24em; color: var(--sub);
  margin-top: 3px; text-transform: uppercase; font-weight: 500;
}
@media (max-width: 480px) { .brand-name { font-size: 15px; } .brand-name small { font-size: 8.5px; } }

/* desktop: 縦書きナビ */
.nav-vert {
  display: flex; gap: clamp(18px, 2vw, 30px);
  writing-mode: vertical-rl; text-orientation: upright;
}
.nav-vert a {
  font-family: var(--serif-ja); font-weight: 500;
  font-size: 14px; letter-spacing: 0.3em; color: var(--ink);
  transition: color .3s ease; position: relative; padding: 2px 0;
}
.nav-vert a:hover { color: var(--sub); }
@media (max-width: 880px) { .nav-vert { display: none; } }

/* hamburger */
.hamburger {
  display: none; width: 46px; height: 46px;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  z-index: 130; position: relative;
}
.hamburger span { display: block; width: 24px; height: 1.4px; background: var(--ink); transition: transform .35s ease, opacity .35s ease; }
.hamburger.open span:nth-child(1){ transform: translateY(7.4px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity: 0; }
.hamburger.open span:nth-child(3){ transform: translateY(-7.4px) rotate(-45deg); }
@media (max-width: 880px) { .hamburger { display: flex; } }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 120;
  background: var(--paper);
  padding: 120px var(--pad) 48px;
  display: flex; flex-direction: column; justify-content: center;
  transform: translateY(-100%); transition: transform .6s cubic-bezier(.76,0,.24,1);
  pointer-events: none;
}
.drawer.open { transform: translateY(0); pointer-events: auto; }
.drawer ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.drawer li { border-bottom: 1px solid var(--line); }
.drawer a {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 24px 2px; font-family: var(--serif-ja); font-weight: 500;
  font-size: 24px; letter-spacing: 0.14em;
}
.drawer a small { font-family: var(--serif-en); font-style: italic; font-size: 11px; letter-spacing: 0.2em; color: var(--sub); text-transform: uppercase; }
.drawer-foot { margin-top: 40px; font-size: 13px; line-height: 2; color: var(--ink-2); letter-spacing: 0.06em; }
.drawer-foot strong { display: block; font-size: 19px; color: var(--ink); margin-top: 8px; letter-spacing: 0.08em; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding: clamp(150px, 22vh, 230px) var(--pad) clamp(80px, 10vw, 130px); }
.hero-inner { max-width: var(--maxw); margin: 0 auto; }

.hero-mark { display: flex; flex-direction: column; gap: 10px; }
.hero-mark h1 {
  font-family: var(--serif-ja); font-weight: 500; margin: 0;
  font-size: clamp(40px, 8vw, 100px); letter-spacing: 0.18em;
  line-height: 1.1; color: var(--ink);
}
.hero-mark .en {
  font-family: var(--serif-en); font-style: italic; letter-spacing: 0.28em;
  font-size: clamp(13px, 1.4vw, 17px); color: var(--sub); text-transform: uppercase;
}

/* two letterboxed bands + connector */
.hero-bands {
  margin-top: clamp(46px, 6vw, 78px);
  display: grid; grid-template-columns: 1fr; gap: 22px;
  position: relative;
}
.hero-band {
  position: relative; overflow: hidden;
  height: clamp(150px, 22vw, 260px);
  background: linear-gradient(120deg, var(--paper-2), #e7dccc);
}
.hero-band img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.02); }
.hero-band figcaption {
  position: absolute; left: 18px; top: 14px;
  font-family: var(--serif-en); font-style: italic; font-size: 12px;
  letter-spacing: 0.22em; color: var(--paper); text-shadow: 0 1px 10px rgba(0,0,0,.4);
}
.hero-cap {
  margin-top: 20px; display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--serif-en); font-style: italic; letter-spacing: 0.2em;
  font-size: 12px; color: var(--sub);
}
.hero-cap .ja { font-family: var(--serif-ja); font-style: normal; letter-spacing: 0.34em; color: var(--ink-2); }
@media (max-width: 720px) { .hero-cap .ja { font-size: 11px; letter-spacing: 0.2em; } }

.hero-lead {
  margin-top: clamp(54px, 7vw, 92px);
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end;
}
@media (max-width: 880px) { .hero-lead { grid-template-columns: 1fr; gap: 36px; } }
.hero-lead h2 {
  margin: 0; font-family: var(--serif-ja); font-weight: 500;
  font-size: clamp(24px, 3.4vw, 40px); line-height: 1.85; letter-spacing: 0.1em;
  color: var(--ink); text-wrap: balance;
}
.hero-lead p { margin: 18px 0 0; max-width: 40ch; color: var(--ink-2); font-size: 15px; line-height: 2.3; }
.hero-cta { display: flex; flex-direction: column; gap: 18px; }

.scroll-hint {
  position: absolute; right: var(--pad); bottom: 30px;
  font-family: var(--serif-en); font-style: italic; font-size: 11px;
  letter-spacing: 0.24em; color: var(--sub);
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 14px;
}
.scroll-hint::after { content: ""; width: 1px; height: 56px; background: var(--sub); animation: sline 2.6s ease-in-out infinite; transform-origin: top; }
@keyframes sline { 0%{transform:scaleY(0)} 50%{transform:scaleY(1)} 100%{transform:scaleY(0);transform-origin:bottom} }
@media (max-width: 720px) { .scroll-hint { display: none; } }

/* ============================================================
   Statement — full-bleed photo + 縦書きオーバーレイ
   ============================================================ */
.statement { position: relative; height: clamp(560px, 90vh, 860px); overflow: hidden; background: var(--deep); }
.statement-bg { position: absolute; inset: -8% 0; }
.statement-bg img { width: 100%; height: 116%; object-fit: cover; filter: saturate(.9) brightness(.82); will-change: transform; }
.statement::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,15,35,.45), rgba(10,15,35,.06) 55%, rgba(10,15,35,.30)); }
.statement-inner {
  position: absolute; inset: 0; z-index: 2;
  max-width: var(--maxw); margin: 0 auto; padding: clamp(60px,8vw,110px) var(--pad);
  display: flex; align-items: center;
}
.statement-vert {
  writing-mode: vertical-rl; font-family: var(--serif-ja); font-weight: 500;
  font-size: clamp(28px, 4.4vw, 56px); line-height: 2.0; letter-spacing: 0.28em;
  color: var(--paper); text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.statement-vert .small { font-size: 0.42em; letter-spacing: 0.3em; color: rgba(250,246,239,.78); }
.statement-en {
  position: absolute; right: var(--pad); bottom: clamp(40px,6vw,80px);
  font-family: var(--serif-en); font-style: italic; font-size: 13px;
  letter-spacing: 0.22em; color: rgba(250,246,239,.7); writing-mode: horizontal-tb;
}
@media (max-width: 720px) { .statement-vert { font-size: clamp(24px, 8vw, 38px); letter-spacing: 0.22em; } }

/* ============================================================
   About
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; gap: 44px; } }
.about-figure { position: relative; }
.about-figure .main { aspect-ratio: 4/5; overflow: hidden; background: var(--paper-2); }
.about-figure .main img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; filter: saturate(.95); will-change: transform; }
.about-figure .sub {
  position: absolute; right: -6%; bottom: -8%;
  width: 42%; aspect-ratio: 1/1; border-radius: 50%; overflow: hidden;
  border: 6px solid var(--paper); box-shadow: 0 20px 60px rgba(27,42,94,.14); background: var(--paper-2);
}
.about-figure .sub img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) { .about-figure .sub { width: 36%; right: 4%; } }
.about-body { margin-top: 30px; font-size: 15.5px; line-height: 2.5; color: var(--ink-2); letter-spacing: 0.06em; text-wrap: pretty; }
.about-body strong { font-weight: 600; color: var(--ink); }
.about-sign { margin-top: 38px; display: flex; align-items: center; gap: 16px; }
.about-sign .line { width: 40px; height: 1px; background: var(--ink); }
.about-sign .name { font-family: var(--serif-ja); font-weight: 500; font-size: 15px; letter-spacing: 0.1em; }
.about-sign .name small { display: block; font-family: var(--serif-en); font-style: italic; font-size: 10px; letter-spacing: 0.22em; color: var(--sub); margin-bottom: 4px; text-transform: uppercase; }

/* ============================================================
   Service — editorial, asymmetric
   ============================================================ */
.service-head { max-width: 720px; }
.service-list { margin-top: clamp(54px, 7vw, 96px); display: flex; flex-direction: column; gap: clamp(64px, 9vw, 130px); }
.service-row { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.service-row.rev .service-fig { order: 2; }
@media (max-width: 880px) { .service-row, .service-row.rev .service-fig { grid-template-columns: 1fr; order: 0; } .service-row { grid-template-columns: 1fr; gap: 32px; } }
.service-fig { position: relative; overflow: hidden; aspect-ratio: 16/11; background: var(--paper-2); }
.service-fig img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.94); transition: transform 1.1s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.service-row:hover .service-fig img { transform: scale(1.05); }
.service-num { font-family: var(--serif-en); font-style: italic; font-size: clamp(40px, 6vw, 74px); color: var(--line); line-height: 1; }
.service-tag { display: inline-block; margin-top: 10px; font-family: var(--serif-en); font-style: italic; letter-spacing: 0.24em; font-size: 12px; color: var(--sub); text-transform: uppercase; }
.service-title { margin: 16px 0 0; font-family: var(--serif-ja); font-weight: 500; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: 0.1em; color: var(--ink); }
.service-body { margin: 22px 0 0; font-size: 15px; line-height: 2.4; color: var(--ink-2); letter-spacing: 0.05em; max-width: 42ch; }

/* ============================================================
   Company
   ============================================================ */
.company-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
@media (max-width: 880px) { .company-grid { grid-template-columns: 1fr; gap: 36px; } }
.company-list { margin: 0; padding: 0; border-top: 1px solid var(--line); }
.company-row { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.company-row dt { font-family: var(--serif-en); font-style: italic; font-size: 12px; letter-spacing: 0.16em; color: var(--sub); text-transform: uppercase; }
.company-row dt .ja { display: block; font-family: var(--serif-ja); font-style: normal; font-size: 13px; letter-spacing: 0.14em; color: var(--ink-2); margin-top: 4px; }
.company-row dd { margin: 0; font-size: 15.5px; line-height: 1.95; letter-spacing: 0.05em; color: var(--ink); }
@media (max-width: 720px) { .company-row { grid-template-columns: 1fr; gap: 6px; } }
.company-map { position: relative; }
.company-map iframe { width: 100%; height: clamp(320px, 42vw, 480px); border: 0; filter: grayscale(.45) sepia(.08) contrast(.96); }
.company-map-link { margin-top: 16px; display: inline-flex; }

/* ============================================================
   Contact
   ============================================================ */
.contact { background: var(--paper-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-title { margin: 26px 0 0; font-family: var(--serif-ja); font-weight: 500; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.6; letter-spacing: 0.1em; color: var(--ink); }
.contact-sub { margin: 24px 0 0; color: var(--ink-2); font-size: 15px; line-height: 2.4; max-width: 46ch; letter-spacing: 0.05em; }
.contact-tel { margin-top: 38px; }
.contact-tel a { font-family: var(--serif-en); font-size: clamp(30px, 4vw, 46px); letter-spacing: 0.06em; color: var(--ink); display: inline-flex; align-items: center; gap: 16px; }
.contact-tel a:hover { color: var(--ink-2); }
.contact-tel small { display: block; font-family: var(--serif-ja); font-size: 12px; letter-spacing: 0.2em; color: var(--sub); margin-bottom: 8px; }
.contact-info { display: flex; flex-direction: column; gap: 26px; border-left: 1px solid var(--line); padding-left: clamp(28px, 4vw, 56px); }
@media (max-width: 880px) { .contact-info { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 36px; } }
.contact-info .item small { display: block; font-family: var(--serif-en); font-style: italic; font-size: 11px; letter-spacing: 0.2em; color: var(--sub); text-transform: uppercase; margin-bottom: 8px; }
.contact-info .item strong { font-family: var(--serif-ja); font-weight: 500; font-size: 15.5px; line-height: 2; letter-spacing: 0.06em; color: var(--ink); }

/* ============================================================
   Footer — 巨大タイポグラフィ
   ============================================================ */
.footer { background: var(--paper); padding: clamp(64px, 8vw, 110px) 0 0; overflow: hidden; }
.footer-top { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.footer-brand .name { font-family: var(--serif-ja); font-weight: 500; font-size: 19px; letter-spacing: 0.14em; color: var(--ink); }
.footer-brand .name small { display: block; font-family: var(--serif-en); font-style: italic; font-size: 10px; letter-spacing: 0.22em; color: var(--sub); margin-top: 5px; text-transform: uppercase; }
.footer-brand p { margin: 18px 0 0; font-size: 13px; line-height: 2; color: var(--ink-2); letter-spacing: 0.05em; }

.footer-giant {
  margin-top: clamp(48px, 7vw, 90px);
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--line);
}
.footer-giant .cell { padding: clamp(20px, 3vw, 40px) var(--pad) clamp(8px, 2vw, 22px); position: relative; overflow: hidden; }
.footer-giant .cell + .cell { border-left: 1px solid var(--line); }
.footer-giant .lbl { font-family: var(--serif-en); font-style: italic; font-size: 12px; letter-spacing: 0.3em; color: var(--sub); text-transform: uppercase; }
.footer-giant .big { font-family: var(--serif-ja); font-weight: 500; font-size: clamp(64px, 15vw, 200px); line-height: 1; letter-spacing: 0.02em; color: var(--ink); margin-top: 10px; }
.footer-base { max-width: var(--maxw); margin: 0 auto; padding: 26px var(--pad) 36px; display: flex; justify-content: space-between; font-family: var(--serif-en); font-style: italic; font-size: 11px; letter-spacing: 0.16em; color: var(--sub); }
@media (max-width: 720px) { .footer-base { flex-direction: column; gap: 8px; } }

/* ============================================================
   sumi-e accents（墨絵風アクセント）
   ============================================================ */
.brush { position: absolute; pointer-events: none; opacity: .9; z-index: 1; }
.brush svg { display: block; width: 100%; height: 100%; }
.brush--bird-1 { width: clamp(70px, 9vw, 130px); top: 14%; right: 8%; }

/* ============================================================
   reveal-on-scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; } .reveal.d3 { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint::after, .loader-mark span, .loader-bar::after { animation: none; }
}
