/* 株式会社Chibana&Co. 共通スタイル
   色を変えたいときは下の :root の値を変えます */
:root {
  --ink: #1f1d1a;        /* 文字色（墨） */
  --sub: #5f5a52;        /* 補足の文字 */
  --line: #dcd6cb;       /* 罫線 */
  --base: #ffffff;       /* 背景 */
  --paper: #f6f3ee;      /* 生成りの面 */
  --dark: #23211e;       /* 濃い面（フッターなど） */
  --accent: #a8791f;     /* アクセント（はちみつの琥珀色） */
  --f-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --f-en: "Cormorant Garamond", "Noto Serif JP", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--base);
  line-height: 2;
  font-size: 15px;
  letter-spacing: .06em;
}
@media (min-width: 768px) { body { font-size: 16px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-serif); font-weight: 500; line-height: 1.6; margin: 0; letter-spacing: .08em; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.wrap-narrow { width: min(860px, 100% - 48px); margin-inline: auto; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { text-decoration: none; color: var(--ink); line-height: 1.2; }
.logo-en { display: block; font-family: var(--f-en); font-size: 1.6rem; font-weight: 600; letter-spacing: .04em; }
.logo-ja { display: block; font-size: .66rem; color: var(--sub); letter-spacing: .14em; }

.nav { display: flex; gap: 36px; }
.nav a { text-decoration: none; font-size: .88rem; letter-spacing: .12em; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--ink); }

.menu-btn { display: none; }
@media (max-width: 820px) {
  .site-header .wrap { height: 60px; }
  .logo-en { font-size: 1.35rem; }
  .menu-btn {
    display: grid; place-items: center;
    width: 44px; height: 44px; border: 1px solid var(--line); background: var(--base);
    color: var(--ink); font-size: 1rem; cursor: pointer; border-radius: 0;
  }
  .nav {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--base); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 16px 24px; border-top: 1px solid var(--line); border-bottom: 0; }
}

/* ---------- ボタン・リンク ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 52px; min-width: 220px; padding: 12px 22px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  text-decoration: none; font-size: .88rem; letter-spacing: .12em;
  transition: background .2s, color .2s;
}
.btn::after { content: "→"; font-family: var(--f-sans); }
.btn:hover { background: var(--ink); color: #fff; }
.btn-light { border-color: #fff; color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn.ext::after { content: "↗"; }

/* ---------- メインビジュアル ---------- */
.hero { position: relative; min-height: min(72vh, 600px); display: flex; align-items: flex-end; color: #fff; background: var(--dark); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, rgba(20,18,15,.78) 0%, rgba(20,18,15,.55) 45%, rgba(20,18,15,.15) 100%); }
@media (max-width: 820px) { .hero::before { background: rgba(20,18,15,.6); } }
.hero .wrap { position: relative; z-index: 2; padding: 0 0 72px; }
.hero .en { font-family: var(--f-en); font-size: clamp(.9rem, 2vw, 1.05rem); letter-spacing: .3em; opacity: .9; margin-bottom: 18px; }
.hero h1 { font-size: clamp(1.6rem, 4.6vw, 2.8rem); font-weight: 500; letter-spacing: .12em; line-height: 1.7; margin-bottom: 22px; }
.hero p { max-width: 36em; font-size: clamp(.88rem, 2.2vw, 1rem); opacity: .95; }
@media (max-width: 820px) { .hero { min-height: 72vh; } .hero .wrap { padding-bottom: 48px; } }

/* ---------- セクション ---------- */
.section { padding: 112px 0; }
.section.paper { background: var(--paper); }
@media (max-width: 820px) { .section { padding: 72px 0; } }

.sec-head { margin-bottom: 56px; }
.sec-head .en { display: block; font-family: var(--f-en); font-size: 1rem; letter-spacing: .28em; color: var(--accent); margin-bottom: 8px; text-transform: uppercase; }
.sec-head h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); }
.sec-head p { margin-top: 20px; color: var(--sub); }
.sec-head.center { text-align: center; }
@media (max-width: 820px) { .sec-head { margin-bottom: 36px; } }

/* ---------- メッセージ ---------- */
.message { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.message h2 { font-size: clamp(1.35rem, 3.2vw, 1.9rem); line-height: 1.9; }
@media (max-width: 820px) { .message { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- 事業 ---------- */
.biz { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.biz:last-child { border-bottom: 1px solid var(--line); }
.biz-photo { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper); }
.biz-photo img { width: 100%; height: 100%; object-fit: cover; }
.biz-body { padding: 44px 0 44px 56px; display: flex; flex-direction: column; justify-content: center; }
.biz-no { font-family: var(--f-en); font-size: 1rem; letter-spacing: .2em; color: var(--accent); margin-bottom: 6px; }
.biz-body h3 { font-size: clamp(1.3rem, 3vw, 1.65rem); margin-bottom: 4px; }
.biz-tag { font-size: .82rem; color: var(--sub); margin-bottom: 18px; letter-spacing: .1em; }
.biz-body .btn { margin-top: 12px; align-self: flex-start; }
.biz:nth-child(even) .biz-photo { order: 2; }
.biz:nth-child(even) .biz-body { padding: 44px 56px 44px 0; }
@media (max-width: 820px) {
  .biz { grid-template-columns: 1fr; border-top: 0; margin-bottom: 48px; }
  .biz:last-child { border-bottom: 0; margin-bottom: 0; }
  .biz:nth-child(even) .biz-photo { order: 0; }
  .biz-body, .biz:nth-child(even) .biz-body { padding: 24px 0 0; }
}

/* ---------- 会社概要（表） ---------- */
.info-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.info-table th, .info-table td { padding: 22px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; }
.info-table th { width: 26%; color: var(--sub); white-space: nowrap; }
.info-table ul { margin: 0; padding-left: 1.2em; }
@media (max-width: 600px) {
  .info-table th, .info-table td { display: block; width: 100%; padding: 0 4px; }
  .info-table th { padding-top: 18px; font-size: .82rem; }
  .info-table td { padding-bottom: 18px; }
}

/* ---------- お問い合わせ ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.contact a { display: block; padding: 32px 8px; text-decoration: none; border-bottom: 1px solid var(--line); }
.contact a + a { border-left: 1px solid var(--line); padding-left: 32px; }
.contact .k { display: block; font-size: .8rem; color: var(--sub); letter-spacing: .14em; margin-bottom: 4px; }
.contact .v { display: block; font-family: var(--f-serif); font-size: clamp(1.1rem, 3.6vw, 1.5rem); letter-spacing: .06em; overflow-wrap: anywhere; }
.contact a:hover .v { color: var(--accent); }
@media (max-width: 640px) {
  .contact { grid-template-columns: 1fr; }
  .contact a + a { border-left: 0; padding-left: 8px; }
}

/* ---------- フッター ---------- */
.site-footer { background: var(--dark); color: #d9d4ca; padding: 64px 0 32px; font-size: .85rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-name { font-family: var(--f-en); font-size: 1.5rem; color: #fff; letter-spacing: .04em; line-height: 1.3; }
.footer-name small { display: block; font-family: var(--f-sans); font-size: .72rem; color: #b5afa4; letter-spacing: .14em; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.copy { margin-top: 48px; padding-top: 24px; border-top: 1px solid #45413b; font-size: .75rem; color: #9a948a; letter-spacing: .1em; }

/* ============ 下層ページ ============ */
.page-hero { position: relative; color: #fff; background: var(--dark); padding: 120px 0 80px; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.page-hero .wrap-narrow { position: relative; }
.page-hero .crumb { font-size: .78rem; letter-spacing: .1em; opacity: .85; margin-bottom: 28px; }
.page-hero .crumb a { text-decoration: none; }
.page-hero .en { font-family: var(--f-en); letter-spacing: .28em; font-size: .95rem; opacity: .9; margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); letter-spacing: .14em; margin-bottom: 24px; }
.page-hero .lead { max-width: 34em; }
@media (max-width: 820px) { .page-hero { padding: 88px 0 56px; } }

/* 目次 */
.toc { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); counter-reset: t; }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: flex; align-items: baseline; gap: 20px; padding: 16px 4px; text-decoration: none; }
.toc a::before { counter-increment: t; content: "0" counter(t); font-family: var(--f-en); color: var(--accent); font-size: 1.05rem; }
.toc a::after { content: "↓"; margin-left: auto; color: var(--sub); }
.toc a:hover { color: var(--accent); }

/* 章見出し */
.chapter { display: grid; grid-template-columns: 200px 1fr; gap: 48px; }
.chapter-head .no { font-family: var(--f-en); font-size: 3.2rem; line-height: 1; color: var(--accent); }
.chapter-head .en { font-family: var(--f-en); letter-spacing: .24em; font-size: .9rem; color: var(--sub); margin-top: 10px; }
.chapter-body h2 { font-size: clamp(1.35rem, 3.4vw, 1.9rem); margin-bottom: 24px; }
@media (max-width: 820px) {
  .chapter { grid-template-columns: 1fr; gap: 16px; }
  .chapter-head { display: flex; align-items: baseline; gap: 16px; }
  .chapter-head .no { font-size: 2.4rem; }
  .chapter-head .en { margin-top: 0; }
}

/* 大きな数字 */
.figure-num { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 32px 0; margin: 36px 0; }
.figure-num .num { font-family: var(--f-en); font-size: clamp(3.2rem, 10vw, 5rem); line-height: 1; font-weight: 500; }
.figure-num .num small { font-family: var(--f-serif); font-size: 1.2rem; margin-left: 6px; }
.figure-num .lbl { font-family: var(--f-serif); font-size: 1.05rem; margin-top: 12px; }

/* 項目リスト */
.items { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin-top: 12px; }
.item { padding: 28px 0; border-top: 1px solid var(--line); }
.item h3 { font-size: 1.1rem; margin-bottom: 10px; }
.item p { font-size: .94rem; }
.items.three { grid-template-columns: repeat(3, 1fr); gap: 0 36px; }
@media (max-width: 820px) { .items, .items.three { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); margin: 36px 0 20px; }
.stats.two { grid-template-columns: repeat(2, 1fr); }
.stat { padding: 28px 20px 28px 0; border-bottom: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat .num { font-family: var(--f-serif); font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.2; font-weight: 500; }
.stat .num small { font-size: 1rem; margin-left: 2px; }
.stat .lbl { font-weight: 500; margin: 6px 0 8px; }
.stat p { font-size: .88rem; color: var(--sub); }
@media (max-width: 820px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { padding-left: 0; border-left: 0; }
}

.voice { margin-top: 40px; padding: 32px 36px; background: var(--paper); border-left: 3px solid var(--accent); }
.voice .k { font-family: var(--f-serif); font-size: 1.05rem; margin-bottom: 10px; }
@media (max-width: 640px) { .voice { padding: 24px 22px; } }

/* 手順 */
.steps { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--ink); counter-reset: s; }
.steps li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.steps .label { font-family: var(--f-en); color: var(--accent); letter-spacing: .14em; font-size: .95rem; }
.steps .label b { display: block; font-family: var(--f-serif); color: var(--ink); font-weight: 500; font-size: 1.15rem; letter-spacing: .1em; }
.steps h3 { font-size: 1.08rem; margin-bottom: 8px; }
@media (max-width: 640px) { .steps li { grid-template-columns: 1fr; gap: 8px; } }

.status-list { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--ink); }
.status-list li { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.status-list h3 { font-size: 1.05rem; }
.status-list .badge { font-size: .75rem; letter-spacing: .14em; border: 1px solid var(--accent); color: var(--accent); padding: 2px 10px; align-self: start; white-space: nowrap; }
.status-list p { grid-column: 1 / -1; font-size: .94rem; }

.network-figure { margin: 40px 0 8px; border: 1px solid var(--line); }

.regions { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 32px; }
.regions div { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); }
.regions div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.regions b { display: block; font-family: var(--f-serif); font-weight: 500; }
.regions span { font-size: .85rem; color: var(--sub); }
@media (max-width: 820px) {
  .regions { grid-template-columns: 1fr 1fr; }
  .regions div:nth-child(odd) { padding-left: 0; border-left: 0; }
}

.closing { background: var(--dark); color: #fff; padding: 112px 0; text-align: center; }
.closing h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); letter-spacing: .16em; margin-bottom: 28px; }
.closing p { opacity: .9; line-height: 2.2; }
@media (max-width: 820px) { .closing { padding: 72px 0; } }

.note { font-size: .8rem; color: var(--sub); letter-spacing: .04em; }
.sources { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 20px; }
.sources summary { cursor: pointer; font-size: .9rem; letter-spacing: .1em; }
.sources ol { padding-left: 1.4em; margin-top: 16px; }
.sources li { margin-bottom: 6px; }

/* 補助クラス（CSPでstyle属性が使えないため） */
.pos-hero { object-position: 70% 50%; }
.pos-low { object-position: 50% 70%; }
.pb-0 { padding-bottom: 0; }
.mt-40 { margin-top: 40px; }
.figure-num .note { margin-top: 8px; }
.nf { text-align: center; }
.nf h1 { font-size: 1.5rem; margin-bottom: 16px; }
.nf-btn { margin-top: 32px; }
