/* 株式会社相原 共通スタイル
   レイアウト: 余白の多い1カラム。ロゴの墨と朱(オレンジ)を軸に、蔵の写真で帯を区切る */
:root {
  --paper: #f6f5f1;      /* 地色: 麹のような白 */
  --paper-2: #ebe8df;    /* 帯の地色 */
  --ink: #231f20;        /* 文字・ブランド色: ロゴの墨 */
  --ink-soft: #5a5350;   /* 補足テキスト */
  --line: #d6d2c6;       /* 罫線 */
  --soy: #c4400e;        /* 差し色: ロゴの朱を文字用に深めた色 */
  --brand: #f2561a;      /* ロゴの朱(装飾・線のみ) */
  --miso: #b8925a;       /* 補助色: 味噌 */
  --on-dark: #f6f5f1;

  --f-display: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --f-label: "Cormorant Garamond", "Shippori Mincho B1", serif;

  --wrap: 1120px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --radius: 2px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .03em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--soy); outline-offset: 3px;
}
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.45; text-wrap: balance; margin: 0; letter-spacing: .06em; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.band { padding-block: clamp(64px, 10vw, 120px); }
.band--tint { background: var(--paper-2); }
.band--ink { background: var(--ink); color: var(--on-dark); }

/* 英字の小見出し */
.eyebrow {
  display: block; font-family: var(--f-label); font-style: italic; font-size: 1.05rem;
  letter-spacing: .12em; color: var(--soy); margin-bottom: 8px;
}
.band--ink .eyebrow { color: var(--miso); }
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.lead { color: var(--ink-soft); max-width: 40em; margin-top: 20px; }
.band--ink .lead { color: #cfc8c4; }
.ph { background: rgba(184,146,90,.22); padding-inline: .2em; } /* 【】未確定情報のマーカー */

/* ヘッダー */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(246,245,241,.94); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1.2; }
.logo-ja { font-family: var(--f-display); font-size: 1.3rem; font-weight: 700; letter-spacing: .14em; }
.logo-en { font-family: var(--f-label); font-size: .78rem; letter-spacing: .3em; color: var(--ink-soft); }
.nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; align-items: center; }
.nav a { text-decoration: none; font-size: .92rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--soy); }
.nav .btn { color: var(--on-dark); }
.nav .btn:hover { color: var(--on-dark); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; font: inherit; font-size: .85rem; color: var(--ink); cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; inset: 100% 0 auto; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav:not(.is-open) { display: none; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter-r) 20px var(--gutter-l); }
  .nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav li:last-child a { margin-top: 16px; text-align: center; border-bottom: 0; }
}

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: var(--radius); text-decoration: none;
  background: var(--soy); color: var(--on-dark); font-weight: 500; font-size: .95rem; letter-spacing: .08em;
  border: 1px solid var(--soy); transition: background .2s, color .2s;
}
.btn:hover { background: #9f330a; border-color: #9f330a; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.band--ink .btn--ghost { color: var(--on-dark); border-color: var(--on-dark); }
.band--ink .btn--ghost:hover { background: var(--on-dark); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ファーストビュー */
.hero { padding-block: clamp(72px, 12vw, 150px) clamp(64px, 9vw, 110px); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; }
.hero h1 { font-size: clamp(2.1rem, 5.6vw, 4rem); letter-spacing: .1em; line-height: 1.5; }
.hero p { margin-top: 28px; max-width: 34em; color: var(--ink-soft); }
.hero-vert {
  writing-mode: vertical-rl; font-family: var(--f-display); font-size: 1rem; letter-spacing: .5em;
  color: var(--soy); border-right: 1px solid var(--miso); padding-right: 14px; height: max-content;
}
@media (max-width: 700px) { .hero .wrap { grid-template-columns: 1fr; } .hero-vert { display: none; } }

/* 3事業カード */
.biz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 56px; border-top: 1px solid var(--line); }
.biz {
  display: flex; flex-direction: column; gap: 14px; padding: 36px 28px 32px;
  border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s;
}
.biz + .biz { border-left: 1px solid var(--line); }
.biz:hover { background: var(--paper); }
.biz-kanji { font-family: var(--f-display); font-size: 3.2rem; line-height: 1; color: var(--soy); }
.biz h3 { font-size: 1.3rem; }
.biz p { color: var(--ink-soft); font-size: .94rem; flex: 1; }
.biz .more { font-size: .88rem; color: var(--soy); letter-spacing: .1em; }
@media (max-width: 860px) {
  .biz-grid { grid-template-columns: 1fr; }
  .biz + .biz { border-left: 0; }
}

/* 選ばれる理由 */
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 56px; }
.reason h3 { font-size: 1.15rem; padding-top: 18px; border-top: 2px solid var(--miso); }
.reason p { margin-top: 12px; color: #cfc8c4; font-size: .95rem; }
@media (max-width: 860px) { .reasons { grid-template-columns: 1fr; gap: 32px; } }

/* 数字 */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.fact { border-left: 1px solid var(--miso); padding-left: 20px; }
.fact dt { font-size: .85rem; color: var(--ink-soft); }
.fact dd { margin: 4px 0 0; font-family: var(--f-display); font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-variant-numeric: tabular-nums; }
.fact dd small { font-size: .9rem; margin-left: 4px; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }

/* お知らせ */
.news { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.news li { display: grid; grid-template-columns: 8em 6em minmax(0, 1fr); gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); align-items: baseline; }
.news time { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: .9rem; }
.news .tag { font-size: .75rem; border: 1px solid var(--line); text-align: center; padding: 2px 6px; }
@media (max-width: 640px) { .news li { grid-template-columns: auto auto; } .news li span:last-child { grid-column: 1 / -1; } }

/* 問い合わせ帯 */
.cta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.cta-grid a {
  display: flex; flex-direction: column; gap: 6px; padding: 24px; text-decoration: none;
  border: 1px solid rgba(246,245,241,.35); border-radius: var(--radius); transition: background .2s;
}
.cta-grid a:hover { background: rgba(246,245,241,.08); }
.cta-grid strong { font-family: var(--f-display); font-size: 1.1rem; font-weight: 600; }
.cta-grid span { font-size: .88rem; color: #cfc8c4; }
.cta-note { margin-top: 24px; font-size: .9rem; color: #cfc8c4; }
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; } }

/* 下層ページ見出し */
.page-head { padding-block: clamp(56px, 9vw, 104px) clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
.page-head p { margin-top: 20px; max-width: 38em; color: var(--ink-soft); }
.crumbs { font-size: .8rem; color: var(--ink-soft); margin-bottom: 20px; }
.crumbs a { text-decoration: none; }

/* 2カラム本文 */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); }
.split .body { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* 工程・流れ(番号付き) */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); border-top: 1px solid var(--line); counter-reset: step; }
.steps li { padding: 28px 20px 24px 0; counter-increment: step; display: flex; flex-direction: column; gap: 8px; }
.steps li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--f-label); font-size: 1.4rem; color: var(--soy); }
.steps strong { font-family: var(--f-display); font-size: 1.08rem; font-weight: 600; }
.steps span { font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* 一覧(商品・支援メニュー) */
.items { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.item { display: flex; flex-direction: column; gap: 10px; }
.item-img { aspect-ratio: 4 / 3; max-width: 100%; background: var(--paper-2); border: 1px dashed var(--line); display: grid; place-items: center; color: var(--ink-soft); font-size: .8rem; }
.item h3 { font-size: 1.12rem; }
.item p { font-size: .93rem; color: var(--ink-soft); }
.item .meta { font-size: .85rem; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .items { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .items { grid-template-columns: 1fr; } }

/* 表(会社概要・料金) */
.table-wrap { overflow-x: auto; margin-top: 40px; }
.spec { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec th, .spec td { text-align: left; padding: 18px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 11em; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }

/* 事例 */
.cases { display: grid; gap: 24px; margin-top: 48px; }
.case { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 28px; background: var(--paper); border: 1px solid var(--line); }
.case dt { font-size: .8rem; letter-spacing: .1em; color: var(--soy); }
.case dd { margin: 6px 0 0; font-size: .94rem; }
@media (max-width: 760px) { .case { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--soy); font-size: 1.2rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 20px; color: var(--ink-soft); }

/* フォーム */
.form { display: grid; gap: 24px; max-width: 720px; margin-top: 40px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: .92rem; font-weight: 500; }
.req { font-size: .72rem; color: var(--on-dark); background: var(--soy); padding: 1px 6px; margin-left: 8px; vertical-align: 2px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink);
}
.form textarea { min-height: 180px; resize: vertical; }
.radios { display: flex; flex-wrap: wrap; gap: 10px 24px; border: 0; padding: 0; margin: 0; }
.radios label { font-weight: 400; display: flex; align-items: center; gap: 8px; }
.form-note { font-size: .85rem; color: var(--ink-soft); }
.form-done { padding: 24px; border: 1px solid var(--miso); background: var(--paper-2); }

/* フッター */
.site-footer { background: var(--ink); color: var(--on-dark); padding-block: 64px 32px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; }
.footer-grid address { font-style: normal; margin-top: 16px; color: #cfc8c4; line-height: 1.8; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 8px 40px; }
.footer-nav a { text-decoration: none; color: #cfc8c4; }
.footer-nav a:hover { color: var(--on-dark); }
.site-footer .logo-en { color: #cfc8c4; }
.copy { margin-top: 48px; font-size: .78rem; color: #9a918c; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* 企業理念の一文 */
.philosophy-main { font-family: var(--f-display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; letter-spacing: .08em; line-height: 1.5; }

/* ---- ロゴ・写真 ---- */
.logo { flex-direction: row; align-items: center; gap: 12px; }
.logo-mark { width: 44px; height: auto; flex: none; }
.logo-text { display: flex; flex-direction: column; }
.site-footer .logo-mark { background: #fff; border-radius: 50%; padding: 3px; }

.hero--photo { color: #fff; background: var(--ink) url("../img/top/hero-okebara.jpg") center 50% / cover no-repeat; }
.hero--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,16,15,.86) 0%, rgba(20,16,15,.6) 55%, rgba(20,16,15,.25) 100%); }
.hero--photo .wrap { position: relative; }
.hero--photo p { color: #e8e1dc; }
.hero--photo .eyebrow { color: var(--brand); }
.hero--photo .btn--ghost { color: #fff; border-color: #fff; }
.hero--photo .btn--ghost:hover { background: #fff; color: var(--ink); }
.hero--photo .hero-vert { color: #fff; border-color: var(--brand); }

.biz-img { aspect-ratio: 3 / 2; max-width: 100%; width: 100%; object-fit: cover; margin-bottom: 6px; }
.biz-kanji { color: var(--brand); }
.reason h3 { border-top-color: var(--brand); }
.fact { border-left-color: var(--brand); }

.media { margin: 0; }
.media img { width: 100%; max-width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.media--tall img { aspect-ratio: 3 / 4; }
.media figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: 8px; }
.photo-band { height: clamp(220px, 38vw, 460px); background: var(--ink) center / cover no-repeat; }
.page-head--photo { position: relative; color: #fff; border-bottom: 0; background: var(--ink) center / cover no-repeat; }
.page-head--photo::before { content: ""; position: absolute; inset: 0; background: rgba(20,16,15,.62); }
.page-head--photo .wrap { position: relative; }
.page-head--photo p, .page-head--photo .crumbs { color: #e8e1dc; }
.page-head--photo .eyebrow { color: var(--brand); }

/* ---- 商品 ---- */
.products { display: grid; gap: clamp(48px, 7vw, 88px); margin-top: 48px; }
.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.product:nth-child(even) .product-main { order: 2; }
.product-main { margin: 0; }
.product-main img { width: 100%; max-width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-main--plain img { background: #fff; object-fit: contain; }
.product-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.product-body h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.product-body h3 small { display: block; font-family: var(--f-body); font-size: .85rem; font-weight: 400; color: var(--ink-soft); letter-spacing: .1em; margin-top: 4px; }
.product-body > p { color: var(--ink-soft); }
.sizes { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sizes li { background: #fff; border: 1px solid var(--line); padding: 10px 10px 14px; font-variant-numeric: tabular-nums; }
.sizes img { width: 100%; max-width: 100%; aspect-ratio: 1; object-fit: contain; margin-bottom: 6px; }
.sizes .size { font-weight: 500; font-size: .95rem; }
.sizes .price { font-size: .82rem; color: var(--ink-soft); }
.item-photo { width: 100%; max-width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid var(--line); }
@media (max-width: 760px) {
  .product { grid-template-columns: 1fr; }
  .product:nth-child(even) .product-main { order: 0; }
}
@media (max-width: 420px) { .sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- ブログ ---- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 40px 32px; }
.post { display: flex; flex-direction: column; gap: 10px; }
.post img { width: 100%; max-width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-meta { display: flex; gap: 12px; align-items: center; font-size: .85rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.post-meta .tag { font-size: .75rem; border: 1px solid var(--line); padding: 1px 8px; }
.post h3 { font-size: 1.15rem; }
.post p { font-size: .92rem; color: var(--ink-soft); }
.sizes a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; height: 100%; }
.sizes li:has(a:hover) { border-color: var(--soy); }
.sizes .noimg { display: grid; place-items: center; aspect-ratio: 1; margin-bottom: 6px; background: var(--paper-2); font-family: var(--f-display); font-size: 1.3rem; color: var(--ink-soft); }
.sizes .price { color: var(--soy); font-weight: 500; font-size: .9rem; }

/* ---- 蔵の写真 ---- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .gallery { grid-template-columns: 1fr; } }
.spec-mini { display: grid; gap: 8px; margin: 4px 0 0; font-size: .9rem; }
.spec-mini div { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.spec-mini dt { color: var(--ink-soft); }
.spec-mini dd { margin: 0; }

/* 会社情報の蔵写真：桶が欠けないよう全体を表示 */
.company-photo { padding-top: clamp(24px, 4vw, 48px); }
.company-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; }
.gallery--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .gallery--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.story-photo { margin-top: 28px; max-width: 320px; }
@media (max-width: 760px) { .story-photo { max-width: 260px; margin-left: auto; margin-right: auto; } .story-photo figcaption { text-align: center; } }
.sizes .price small { font-size: .72em; font-weight: 400; margin-left: 2px; }

/* 企業ビジョン */
.vision-head { font-size: 1.05rem; letter-spacing: .12em; margin-top: 16px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); }
.vision { list-style: none; counter-reset: v; padding: 0; margin: 0; display: grid; gap: 28px; }
.vision li { counter-increment: v; position: relative; padding-left: 48px; }
.vision li::before { content: counter(v, decimal-leading-zero); position: absolute; left: 0; top: 2px; font-family: "Cormorant Garamond", serif; font-size: 1.4rem; color: var(--brand); }
.vision h4 { font-family: var(--f-display); font-size: 1.15rem; margin: 0 0 8px; letter-spacing: .06em; }
.vision p { margin: 0; }
.vision-note { margin-top: 12px; font-size: .88rem; opacity: .85; }
.vision-note summary { cursor: pointer; color: var(--brand); letter-spacing: .08em; }
.vision-note p { margin-top: 10px; }

/* SDGs */
.sdgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
@media (max-width: 760px) { .sdgs { grid-template-columns: 1fr; } }
.sdg { background: #fff; border: 1px solid var(--paper-2); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 12px; }
.sdg p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.sdg-goals { list-style: none; padding: 0; margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 12px; }
.sdg-goals li { display: flex; flex-direction: column; gap: 6px; width: 96px; font-size: .72rem; line-height: 1.4; color: var(--ink-soft); }
.sdg-goals img { width: 96px; height: 96px; display: block; }
.sdgs-head { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); }
.sdgs-head img { width: clamp(64px, 9vw, 104px); height: auto; flex: none; }
.sdgs-head .lead { margin-bottom: 0; }
.sdg-goals--row li { width: 64px; } .sdg-goals--row img { width: 64px; height: 64px; }

/* ブログ記事 */
.post-link { display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none; }
.post-link:hover h3 { color: var(--soy); }
.post-link img { transition: opacity .2s; }
.post-link:hover img { opacity: .85; }
.post .more { font-size: .82rem; color: var(--soy); letter-spacing: .06em; }
.news a { display: contents; color: inherit; text-decoration: none; }
.news a:hover span:last-child { color: var(--soy); text-decoration: underline; }
.article-wrap { max-width: 800px; }
.article-title { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.5; margin-top: 12px; }
.article-hero { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.article-body { margin-top: 40px; line-height: 2; }
.article-body > * + * { margin-top: 1.2em; }
.article-body h2 { font-size: 1.3rem; margin-top: 2.2em; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li + li { margin-top: .5em; }
.article-body a { color: var(--soy); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; font-size: .92rem; }
.pager a:hover { color: var(--soy); }
.pager small { color: var(--ink-soft); font-size: .78rem; letter-spacing: .06em; }
.pager-next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager-next { grid-column: 1; } }
.page-head h1.article-title { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.section-title + .posts { margin-top: 32px; }
.article-wrap .post-meta { margin-top: 12px; }
.band:has(> .article-wrap) { padding-top: clamp(32px, 5vw, 56px); }

/* =========================================================
   動き・オリジナル演出（2026-10-21）
   ========================================================= */

/* 和紙の質感 */
body, .band--tint { background-image: url("../img/common/washi.png"); background-size: 480px 480px; }
.band--tint { background-color: var(--paper-2); }

/* 読み込み画面：朱の筆円が描かれ、ロゴが現れる（1セッション1回） */
.loader { display: none; }
.is-loading .loader {
  display: flex; position: fixed; inset: 0; z-index: 1000; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: var(--paper) url("../img/common/washi.png"); background-size: 480px 480px;
  transition: opacity .7s ease, visibility .7s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader-mark { position: relative; width: 120px; height: 120px; }
.loader-mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.loader-brush {
  --sweep: 0deg;
  -webkit-mask: conic-gradient(from -30deg, #000 var(--sweep), transparent var(--sweep));
          mask: conic-gradient(from -30deg, #000 var(--sweep), transparent var(--sweep));
  animation: brush-sweep 1s cubic-bezier(.6,.05,.3,1) forwards;
}
.loader-logo { opacity: 0; animation: fade-in .5s ease .9s forwards; }
.loader-name { font-family: var(--f-display); letter-spacing: .4em; color: var(--ink); opacity: 0; animation: fade-up .6s ease 1.05s forwards; }
@keyframes brush-sweep { to { --sweep: 360deg; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* トップ写真：ゆっくりズーム */
.hero--photo { background: var(--ink); }
.hero-bg { position: absolute; inset: 0; background: url("../img/top/hero-okebara.jpg") center 50% / cover no-repeat; transform-origin: 60% 50%; animation: slow-zoom 24s ease-out both; }
.hero--photo::before { z-index: 1; }
.hero--photo .wrap { z-index: 2; }
@keyframes slow-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }

/* 縦書きキャッチ：一文字ずつ墨がにじむように */
.hero-vert .ink { display: inline-block; opacity: 0; filter: blur(6px); animation: ink-in 1.1s ease forwards; }
@keyframes ink-in { 60% { opacity: .85; filter: blur(1px); } to { opacity: 1; filter: none; } }

/* スクロールで現れる */
.js .rv-up { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .rv-up.is-in { opacity: 1; transform: none; }
.js .rv-img { clip-path: inset(100% 0 0 0); transform: scale(1.06); transition: clip-path 1.2s cubic-bezier(.6,.05,.25,1), transform 1.6s cubic-bezier(.2,.7,.2,1); }
.js .rv-img.is-in { clip-path: inset(0 0 0 0); transform: none; }

/* 写真つき年表：中央の線を挟んで写真と文章を左右に振り分ける */
.timeline { list-style: none; margin: 56px auto 0; padding: 0; position: relative; display: grid; gap: clamp(32px, 5vw, 56px); max-width: 920px; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.tl-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 88px); align-items: center; position: relative; }
.tl-photo { margin: 0; justify-self: end; width: min(100%, 280px); }
.tl-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.tl-text { position: relative; max-width: 22em; }
.tl-text::before { content: ""; position: absolute; left: calc(-1 * clamp(40px, 7vw, 88px) / 2 - 6px); top: .55em; width: 11px; height: 11px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--paper-2); }
.tl-item:nth-child(even) .tl-photo { order: 2; justify-self: start; }
.tl-item:nth-child(even) .tl-text { justify-self: end; text-align: right; }
.tl-item:nth-child(even) .tl-text::before { left: auto; right: calc(-1 * clamp(40px, 7vw, 88px) / 2 - 5px); }
.tl-year { display: block; font-family: var(--f-display); font-size: clamp(1.15rem, 2.4vw, 1.5rem); letter-spacing: .06em; color: var(--soy); }
.tl-text p { margin: 6px 0 0; }
@media (max-width: 640px) {
  .timeline::before { left: 7px; }
  .tl-item, .tl-item:nth-child(even) { grid-template-columns: 1fr; gap: 14px; padding-left: 32px; }
  .tl-photo, .tl-item:nth-child(even) .tl-photo { order: 0; justify-self: start; width: min(100%, 240px); }
  .tl-item:nth-child(even) .tl-text { justify-self: start; text-align: left; }
  .tl-text::before, .tl-item:nth-child(even) .tl-text::before { left: -31px; right: auto; }
}

/* 動きを減らす設定の端末では止める */
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero-vert .ink, .loader-brush, .loader-logo, .loader-name { animation: none !important; opacity: 1 !important; filter: none !important; }
  .js .rv-up, .js .rv-img { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
}
.article-body figure { margin-left: 0; margin-right: 0; }
.article-body figure img { width: 100%; height: auto; display: block; }
.article-body figure img.fig-tall { max-width: 420px; margin: 0 auto; }
.article-body figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: 6px; line-height: 1.6; }
.article-body .fig-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.article-body .fig-row figure { margin: 0; }
@media (max-width: 560px) { .article-body .fig-row { grid-template-columns: 1fr; } }
.article-body figure:has(.fig-tall) figcaption { text-align: center; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { padding: 16px 20px; margin-bottom: 20px; border: 1px solid var(--soy); color: var(--soy); background: var(--paper-2); }
[hidden] { display: none !important; }
/* 相原こうじやの歩み: 見出しの下で、写真と本文の上端をそろえる */
.story-split { margin-top: 28px; }
.story-split .story-photo { margin-top: 0; }
.sns { margin-top: 14px; }
.sns-link { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-size: .85rem; }
.sns-link:hover { text-decoration: underline; }
.sns-icon { flex: none; }

/* ---- スライドショー（トップページ） ---- */
.slideshow { position: relative; margin-top: 32px; background: var(--ink); color: var(--on-dark); overflow: hidden; touch-action: pan-y; }
.slideshow-track { position: relative; aspect-ratio: 16 / 9; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); }
.slide.is-active img { animation: slide-zoom 8s ease-out forwards; }
@keyframes slide-zoom { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,17,16,.78), rgba(20,17,16,0) 45%); pointer-events: none; }
.slide figcaption { position: absolute; left: clamp(20px, 4vw, 48px); bottom: clamp(64px, 8vw, 88px); z-index: 1; display: flex; flex-direction: column; gap: 6px; max-width: 80%; }
.slide figcaption strong { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.15rem, 2.6vw, 1.9rem); letter-spacing: .08em; line-height: 1.5; opacity: 0; transform: translateY(12px); transition: opacity .9s ease .5s, transform .9s ease .5s; }
.slide figcaption span { font-size: .8rem; letter-spacing: .12em; color: #d8d0c8; opacity: 0; transition: opacity .9s ease .8s; }
.slide.is-active figcaption strong { opacity: 1; transform: none; }
.slide.is-active figcaption span { opacity: 1; }
.slideshow-ui { position: absolute; left: clamp(20px, 4vw, 48px); right: clamp(12px, 3vw, 32px); bottom: clamp(16px, 2.5vw, 28px); z-index: 2; display: flex; align-items: center; gap: 20px; }
.slideshow-count { font-family: var(--f-label); font-size: 1rem; letter-spacing: .1em; color: #d8d0c8; }
.slideshow-count b { font-weight: 600; color: var(--on-dark); font-size: 1.25rem; }
.slideshow-dots { display: flex; gap: 6px; flex: 1; }
.slideshow-dot { width: 22px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.slideshow-dot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(246,245,241,.35); transition: background .3s; }
.slideshow-dot.is-active::before { background: var(--brand); }
.slideshow-arrows { display: flex; gap: 8px; }
.slideshow-arrows button { width: 44px; height: 44px; border: 1px solid rgba(246,245,241,.5); border-radius: 50%; background: rgba(20,17,16,.25); color: var(--on-dark); font-size: 1rem; cursor: pointer; transition: background .3s, border-color .3s; }
.slideshow-arrows button:hover, .slideshow-arrows button:focus-visible { background: var(--brand); border-color: var(--brand); }
.slideshow-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(246,245,241,.12); z-index: 2; }
.slideshow-bar span { display: block; height: 100%; width: 0; background: var(--brand); }
.slideshow.is-playing .slideshow-bar span { animation: slide-bar var(--slide-ms, 6000ms) linear forwards; }
@keyframes slide-bar { from { width: 0; } to { width: 100%; } }
.slideshow-more { margin-top: 16px; text-align: right; font-size: .9rem; }
.slideshow-more a { color: var(--soy); text-decoration: none; letter-spacing: .06em; }
.slideshow-more a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .slideshow-track { aspect-ratio: 4 / 5; }
  .slideshow-dots { display: none; }
  .slideshow-ui { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide figcaption strong, .slide figcaption span { transition: none; }
  .slide.is-active img { animation: none; }
  .slideshow-bar { display: none; }
}
.post-notice { margin: 28px 0; padding: 16px 20px; border: 1px solid var(--brand); border-left-width: 4px; background: #fff; font-size: .92rem; line-height: 1.8; }
.post-notice strong { display: block; color: var(--brand); letter-spacing: .1em; margin-bottom: 4px; }
.slide figcaption strong { text-shadow: 0 1px 12px rgba(0,0,0,.45); }
@media (max-width: 640px) {
  .slide::after { background: linear-gradient(to top, rgba(20,17,16,.9), rgba(20,17,16,.55) 35%, rgba(20,17,16,0) 65%); }
}

/* 英語版（/en/）: 見出しは欧文書体、行間と字間を英語向けに */
html[lang="en"] body { letter-spacing: .01em; line-height: 1.75; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] .philosophy-main { font-family: "Cormorant Garamond", var(--f-display); letter-spacing: .01em; }
html[lang="en"] h1 { line-height: 1.15; }
html[lang="en"] .slide figcaption strong { font-family: "Cormorant Garamond", var(--f-display); letter-spacing: .02em; }
