/* ============================================================
   One Ism — 事例ページ 共通CSS（cases.css）
   ・index.html の世界観（Blueprint × モノクロ・罫線グリッド・縦組みラベル）を踏襲。
   ・3本（ryokan / school / auberge）から共通で読み込む（重複を避ける）。
   ・index.html 本体の <style> は触らない。本ファイルは事例ページ専用。
   ============================================================ */

:root {
  --bg:      #070706;
  --ink:     #EEE9DC;
  --ink-2:   #C4BEB2;
  --ink-3:   #A49E91;
  --ink-4:   #4A4640;
  --line:    #211E19;
  --line-2:  rgba(183, 151, 90, .30);
  --hair:    rgba(238,233,220,0.06);
  --accent:  #B7975A;
  --accent-ink: #0D0D0B;
  --serif:   "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --maxw:    980px;
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "IBM Plex Sans", sans-serif;
  font-weight: 400; line-height: 2.05; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  letter-spacing: .02em;
  text-wrap: pretty; word-break: auto-phrase; line-break: strict;
  overflow-wrap: break-word; hanging-punctuation: allow-end;
}
::selection { background: var(--ink); color: #000; }
a { color: inherit; text-decoration: none; }
.mono { font-family: "IBM Plex Mono", monospace; }
:focus:not(:focus-visible) { outline: none; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px;
}
@media (max-width: 680px) { .br-pc { display: none; } }

/* ---- 写真の世界観馴染ませ（index.html と同じ手法） ---- */
.ph-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: contrast(1.04) brightness(0.98) saturate(1.05);
}
.ph-veil { position: absolute; inset: 0; pointer-events: none; }
.ph-veil.soft {
  background: linear-gradient(to top, rgba(7,7,6,0.55) 0%, rgba(7,7,6,0.12) 55%, rgba(7,7,6,0.45) 100%);
}
/* コーナーの図面ティック・キャプションは撤去（社長指摘・写真の装飾を簡素化 2026-07-19） */
.ph-tick { display: none; }

/* ---- 固定の図面枠（sheet） ---- */
.sheet { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.sheet .border { position: absolute; inset: 22px; border: 1px solid var(--line-2); }
.sheet .tick { position: absolute; width: 9px; height: 9px; }
.sheet .tick::before, .sheet .tick::after { content: ""; position: absolute; background: var(--ink-3); }
.sheet .tick::before { width: 9px; height: 1px; top: 0; left: 0; }
.sheet .tick::after  { width: 1px; height: 9px; top: 0; left: 0; }
.sheet .tl { top: 18px; left: 18px; }
.sheet .tr { top: 18px; right: 18px; transform: scaleX(-1); }
.sheet .bl { bottom: 18px; left: 18px; transform: scaleY(-1); }
.sheet .br { bottom: 18px; right: 18px; transform: scale(-1,-1); }

/* ---- 縦組みの図面ラベル（edge）: 撤去（社長指摘・シンプル化 2026-07-19） ---- */

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; position: relative; }
@media (max-width: 680px) { .wrap { padding: 0 22px; } }

/* ============ Header ============ */
#header {
  position: fixed; top: 22px; left: 22px; right: 22px; z-index: 1000;
  transition: background .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
#header.scrolled { background: rgba(0,0,0,0.92); border-bottom: 1px solid var(--line-2); }
.nav { display: flex; align-items: stretch; justify-content: space-between; height: 76px; padding: 0 18px; max-width: var(--maxw); margin: 0 auto; }
.logo {
  font-family: "IBM Plex Mono", monospace; font-weight: 500; font-size: 17px;
  letter-spacing: .38em; color: var(--ink); display: inline-flex; align-items: center;
  position: relative; z-index: 1001;
}
.nav-links { display: flex; gap: 0; align-items: stretch; }
.nav-links a {
  font-family: "IBM Plex Mono", monospace; font-size: 13px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-2);
  padding: 0 22px; border-left: 1px solid var(--line-2); transition: color .3s var(--ease);
  display: inline-flex; align-items: center;
}
.nav-links a:hover { color: var(--ink); }
.nav-back {
  font-family: "IBM Plex Mono", monospace; font-size: 13px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 10px;
  border-left: 1px solid var(--line-2); padding: 0 24px; transition: color .3s var(--ease);
}
.nav-back:hover { color: var(--ink); }
.nav-back svg { width: 14px; height: 14px; }

/* ---- モバイルメニュー（ハンバーガー） ---- */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 44px; height: 44px; margin-left: 8px;
  background: none; border: none; padding: 0; cursor: pointer; flex-shrink: 0;
  position: relative; z-index: 1001;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 680px) {
  #header { left: 14px; right: 14px; top: 14px; background: rgba(6,6,5,0.96); border-bottom: 1px solid var(--line-2); }
  .sheet { display: none; }
  .logo { font-size: 14px; letter-spacing: .22em; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0; z-index: 999;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    background: rgb(5,5,4); padding-top: 96px;
    transform: translateX(100%); transition: transform .4s var(--ease);
    gap: 0;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a {
    border-left: none; border-bottom: 1px solid var(--line-2);
    padding: 20px 28px; font-size: 15px; justify-content: flex-start;
  }
  body.nav-open { overflow: hidden; }
}

/* labels（図面の見出し札） */
.label {
  font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .38em;
  text-transform: uppercase; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 14px;
}
.label .idx { color: var(--ink-3); border: 1px solid var(--line-2); padding: 3px 8px; line-height: 1; letter-spacing: .14em; }
.label .rule { display: inline-block; width: 46px; height: 1px; background: var(--line-2); }

/* ============ パンくず ============ */
.crumb {
  font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .14em;
  color: var(--ink-3); text-transform: uppercase; margin-bottom: 26px;
}
.crumb a { color: var(--ink-2); }
.crumb a:hover { color: var(--ink); }
.crumb .sep { margin: 0 10px; color: var(--ink-4); }

/* ============ 事例ヒーロー ============ */
.case-hero { position: relative; z-index: 2; padding: 160px 0 70px; }
.case-hero .topline {
  display: flex; gap: 26px; flex-wrap: wrap;
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  padding: 13px 0; margin-bottom: 44px;
  font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--ink-2);
}
.case-hero .topline .v { color: var(--ink); }
.case-tag-line {
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 22px;
}
h1.case-h1 {
  font-family: var(--serif); font-weight: 400;
  letter-spacing: .06em; line-height: 1.55;
  font-size: clamp(28px, 4.4vw, 48px); text-wrap: balance;
}
h1.case-h1 .strong { font-weight: 700; }
.case-hero .lede {
  max-width: 640px; margin-top: 30px; color: var(--ink-2);
  font-size: clamp(15px, 1.5vw, 17px); line-height: 2.0;
}
/* 記事の公開日・更新日（コラム記事の h1 直下） */
.article-date {
  margin-top: 18px; color: var(--ink-3);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px; letter-spacing: .1em; line-height: 1.8;
}

/* 事例ヒーロー写真 */
.hero-photo {
  position: relative; margin-top: 52px;
  aspect-ratio: 21 / 9; overflow: hidden;
}
.hero-photo .ph-cap { display: none; }
.hero-photo--blank { background: #060606; }
@media (max-width: 680px) { .hero-photo { aspect-ratio: 16 / 9; } }

/* ---- 代表プロフィール（写真＋文章の2カラム） ---- */
.founder-split { display: grid; grid-template-columns: 260px 1fr; gap: 44px; align-items: start; }
.founder-photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.founder-photo .ph-img { object-position: center; }
.founder-photo .ph-veil.soft { background: linear-gradient(to top, rgba(7,7,6,0.35) 0%, rgba(7,7,6,0) 45%); }
@media (max-width: 680px) {
  .founder-split { grid-template-columns: 1fr; }
  .founder-photo { max-width: 220px; aspect-ratio: 3 / 4; margin: 0 auto; }
}

/* ---- 記事の目次(TOC) ---- */
.toc { border: 1px solid var(--line-2); padding: 28px 32px; }
.toc-label { font-family: var(--serif); font-size: 15px; letter-spacing: .1em; color: var(--ink); margin-bottom: 14px; }
.toc-list { list-style: none; counter-reset: toc; }
.toc-list li { counter-increment: toc; border-top: 1px solid var(--line); }
.toc-list li:first-child { border-top: none; }
.toc-list li a { display: flex; align-items: baseline; gap: 14px; padding: 10px 2px; font-size: 14px; color: var(--ink-2); line-height: 1.7; transition: color .25s var(--ease); }
.toc-list li a::before { content: counter(toc, decimal-leading-zero); font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--accent); flex: none; }
.toc-list li a:hover { color: var(--ink); }

/* ============ セクション ============ */
.section { position: relative; z-index: 2; padding: clamp(64px, 9vh, 110px) 0; border-top: 1px solid var(--line-2); }
.sec-head { margin-bottom: 44px; }
h2.big {
  font-family: var(--serif); font-weight: 400;
  letter-spacing: .05em; line-height: 1.5; font-size: clamp(22px, 3vw, 34px);
  margin-top: 26px; text-wrap: balance;
}
h2.big .strong { font-weight: 600; }
.prose p { color: var(--ink-2); font-weight: 400; line-height: 2.15; font-size: 16.5px; letter-spacing: .03em; margin-bottom: 24px; }
.prose p:last-child { margin-bottom: 0; }
.prose b { color: var(--ink); font-weight: 500; }
.prose h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(19px, 2.2vw, 24px); letter-spacing: .04em; line-height: 1.7;
  margin: 44px 0 18px; color: var(--ink);
}
.prose h3:first-child { margin-top: 0; }

/* 箇条書き（罫線リスト） */
.linelist { border-top: 1px solid var(--line-2); margin-top: 8px; }
.linelist .row {
  display: grid; grid-template-columns: 44px 1fr; gap: 24px; align-items: start;
  padding: 22px 6px; border-bottom: 1px solid var(--line-2);
}
.linelist .row .no {
  font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--ink-3);
  letter-spacing: .14em; padding-top: 4px;
}
.linelist .row .txt { color: var(--ink-2); font-size: 15px; line-height: 1.9; }
.linelist .row .txt b { color: var(--ink); font-weight: 500; }
.linelist .row .txt strong { color: var(--ink); font-weight: 500; }

/* ============ 成果（数字） ============ */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-2); border-bottom: none; }
.metric-cell {
  border-bottom: 1px solid var(--line-2); border-left: 1px solid var(--line-2);
  padding: 32px 28px; display: flex; flex-direction: column;
}
.metric-cell:first-child { border-left: none; }
.metric-cell .m-label {
  font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-3);
}
.metric-cell .m-val {
  font-family: "IBM Plex Mono", monospace; font-weight: 500;
  font-size: clamp(30px, 4vw, 46px); letter-spacing: -.03em; line-height: 1.0;
  margin-top: 14px; color: var(--ink);
}
.metric-cell .m-val .u { font-size: .38em; color: var(--ink-2); letter-spacing: .02em; }
.metric-cell .m-note { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }
.metrics-foot {
  margin-top: 18px;
  font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .12em;
  color: var(--ink-3); text-transform: uppercase;
}

/* ---- 記事内スクリーンショット ---- */
.shot { margin: 30px 0; }
.shot img { width: 100%; display: block; border: 1px solid var(--line-2); background: #0c0c0b; }
.shot .shot-cap {
  margin-top: 10px; font-family: "IBM Plex Mono", monospace; font-size: 11px;
  letter-spacing: .06em; color: var(--ink-3); line-height: 1.7;
}
@media (max-width: 680px) {
  .metrics { grid-template-columns: 1fr; }
  .metric-cell { border-left: none; }
}

/* ============ CTA ============ */
.cta { position: relative; z-index: 2; border-top: 1px solid var(--line-2); }
.cta-inner { padding: clamp(72px, 11vh, 120px) 0; text-align: center; }
.cta-inner .label { justify-content: center; }
.cta-inner h2.big { margin-top: 26px; }
.cta-inner .sub { color: var(--ink-2); max-width: 560px; margin: 26px auto 0; font-size: 15px; line-height: 1.95; }
.cta-actions { display: inline-flex; gap: 0; flex-wrap: wrap; border: 1px solid var(--line-2); margin-top: 40px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; padding: 16px 26px; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease); white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.btn-fill { background: var(--accent); color: var(--accent-ink); }
.btn-fill:hover { background: #dd9863; }
.btn-fill:hover svg { transform: translateX(5px); }
.btn-line { color: var(--ink); border-left: 1px solid var(--line-2); }
.btn-line:hover { background: #080808; }
.cta-note { margin-top: 16px; font-size: 12.5px; color: var(--ink-3); }

/* 関連事例 */
.related { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); border-bottom: none; margin-top: 8px; }
.related a {
  border-bottom: 1px solid var(--line-2); border-left: 1px solid var(--line-2);
  padding: 28px 26px; transition: background .35s var(--ease);
}
.related a:first-child { border-left: none; }
.related a:hover { background: #070707; }
.related a .r-tag {
  font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-3);
}
.related a .r-ttl { font-family: "Noto Sans JP", "IBM Plex Sans", sans-serif; font-weight: 500; font-size: 17px; line-height: 1.6; margin-top: 12px; color: var(--ink); }
.related a .r-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; display: block; }
@media (max-width: 680px) { .related { grid-template-columns: 1fr; } .related a { border-left: none; } }

/* ============ Footer ============ */
.foot { position: relative; z-index: 2; border-top: 1px solid var(--line-2); }
.foot-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  padding: 34px 0;
  font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .14em; color: var(--ink-3);
}
.foot-inner a { color: var(--ink-2); }
.foot-inner a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::after, *::before { animation: none !important; transition: none !important; }
}

/* ===== 2026-07-21 D案スキン全ページ一括反映（ハイブリッド確定版から移植） ===== */
/* ざらつき（フィルムグレイン） */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E"); }
/* 図面枠の金線を撤去 */
.sheet { display: none !important; }
/* セクションの色の呼吸 */
section.section:nth-of-type(odd) { background: #0a0a08; }
/* 可読性（コントラストと文字サイズ） */
:root { --ink-2: #CFC9BD; --ink-3: #ABA495; }
.nav-links a { font-size: 14px; }
.prose p { font-size: 16px; }
.sub { font-size: 16px; }
