/* ──────────────────────────────────────────────────────────────
   型：シンプル（simple）
   向く相手：小売・個人事業・町の商店・士業

   ★この型は「写真が1枚も無くても成立する」ことが仕事。
     写真を用意できない客を取りこぼさないために置いてある。だから面（色の四角）を
     ほとんど使わず、罫と余白と字の大きさだけで組む。写真の穴が空きようがない作り。

   背骨は「左に貼り付く見出しと、横罫だけの本文」。
     硬派 … 折り目（skewX -18deg）
     スタイリッシュ … 縦組みの見出しと罫
     シンプル … 左の柱に見出しが貼り付き、本文は横罫で仕切るだけ
   ★色を変えただけの3つにしない。切りかたを変えるから、別の型に見える。

   ★色は1色（--accent）。地は白のまま。黒地は用意しない。
     町の商店・士業に黒地は要らないし、印刷して配ったときに真っ黒になる。
   ★動くものを置かない。外の部品を読まない（地図だけ例外）。
   ────────────────────────────────────────────────────────────── */

:root {
  --accent: #1f5f52;          /* 深い緑。1色だけ。客に聞くのはここだけ */

  --ground: #ffffff;
  --panel: #f6f5f2;           /* ごく淡い面。使う場所を数えるほどに絞る */
  --paper: #ffffff;
  --ink: #1c1c1a;
  --muted: #6d6c67;
  --line: #dcdad3;

  --wide: 1080px;
  --narrow: 660px;
  --rail: 232px;              /* 左の柱の幅。この型の背骨 */

  --jp: "Hiragino Sans", "Yu Gothic", YuGothic, "Noto Sans JP", Meiryo, sans-serif;
  --num: Georgia, "Palatino Linotype", Palatino, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--jp);
  font-size: 16.5px;
  line-height: 1.95;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }

/* ── 頭 ───────────────────────────────────────── */

.site-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  max-width: var(--wide); margin: 0 auto; padding: 26px 28px 22px;
  border-bottom: 1px solid var(--line);
}
.brand { text-decoration: none; font-size: 1.06rem; font-weight: 700; letter-spacing: .1em; }
.logo { height: 64px; width: auto; }
.site-head nav { display: flex; gap: 26px; flex-wrap: wrap; }
.site-head nav a {
  text-decoration: none; font-size: .82rem; letter-spacing: .1em; color: var(--muted);
  padding-bottom: 3px; border-bottom: 2px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.site-head nav a:hover { color: var(--ink); }
.site-head nav a.here { color: var(--ink); border-bottom-color: var(--accent); }

/* ── ホームの見せ場（字だけで作る） ─────────────── */

.hero { padding: 76px 28px 66px; border-bottom: 1px solid var(--line); }
.hero-inner { max-width: var(--wide); margin: 0 auto; }
.hero .eyebrow {
  margin: 0 0 26px; color: var(--accent);
  font-size: .78rem; letter-spacing: .2em; font-weight: 700;
}
.hero h1 {
  margin: 0 0 26px; font-weight: 700;
  font-size: clamp(1.9rem, 5.4vw, 3.4rem);
  line-height: 1.45; letter-spacing: .01em;
  max-width: 17em; text-wrap: balance;
}
/* ★字だけで見せるので、一言の下に太い罫を1本置いて重心を作る */
.hero h1::after {
  content: ""; display: block; width: 72px; height: 5px;
  background: var(--accent); margin-top: 26px;
}
.hero .lead { margin: 0 0 34px; max-width: 34em; color: var(--muted); font-size: 1rem; }
.hero-call {
  display: inline-block; text-decoration: none;
  background: var(--accent); color: #fff;
  padding: 15px 40px; font-size: .92rem; font-weight: 700; letter-spacing: .1em;
  transition: opacity .25s ease;
}
.hero-call:hover { opacity: .82; }
/* 写真は無くてよい型なので、窓も背景も作らない。
   ★材料に写真が入っていたら、ヒーローの下に静かに1枚だけ敷く */
.hero.has-back {
  background-image: var(--hero-back);
  background-size: cover; background-position: var(--hero-back-at, 50% 45%);
}
.hero.has-back .hero-inner { background: rgba(255, 255, 255, .88); padding: 40px; }

/* ── 数字 ─────────────────────────────────────── */

.stats { max-width: var(--wide); margin: 0 auto; padding: 0 28px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { padding: 34px 20px 36px; border-bottom: 1px solid var(--line); }
.stat b {
  display: block; font-family: var(--num); font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 2.8rem); line-height: 1.1;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.stat b i {
  font-style: normal; font-family: var(--jp);
  font-size: .34em; letter-spacing: .1em; margin-left: .5em; color: var(--ink);
}
.stat span {
  display: block; margin-top: 10px; font-size: .76rem;
  letter-spacing: .08em; color: var(--muted); line-height: 1.8;
}

/* ──────────────────────────────────────────────
   節：左に見出しの柱、右に本文（この型の背骨）

   見出しが左に貼り付いたまま、本文だけが流れていく。
   長い説明でも「いま何の話か」を見失わない。
   ★狭い画面では、ふつうに上下に並ぶ。
   ────────────────────────────────────────────── */

main > section {
  max-width: var(--wide); margin: 0 auto; padding: 62px 28px;
  border-bottom: 1px solid var(--line);
}
main > section > h2 {
  margin: 0 0 26px; font-size: 1.06rem; font-weight: 700; letter-spacing: .12em;
}

@media (min-width: 900px) {
  main > section:has(> h2):not(#cta) {
    display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); column-gap: 48px;
  }
  main > section:has(> h2):not(#cta) > h2 {
    margin: 0; position: sticky; top: 26px; align-self: start;
    padding-left: 16px; border-left: 5px solid var(--accent);
    font-size: 1.1rem; line-height: 1.7;
  }
}

/* ── 一覧（できること・選ばれる理由） ─────────── */

/* ★面を作らない。横罫だけで仕切る。紙の一覧に近い見え方 */
.cards { display: grid; }
.card { padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.card:last-child { border-bottom: 0; }
.card h3 { margin: 0 0 6px; font-size: .98rem; font-weight: 700; letter-spacing: .06em; }
.card p { margin: 0; color: var(--muted); font-size: .9rem; }
@media (min-width: 640px) {
  .card { display: grid; grid-template-columns: 13em minmax(0, 1fr); column-gap: 28px; }
  .card h3 { margin: 0; }
}
.card.plain h3 { color: var(--accent); }
.band { background: var(--panel); max-width: none; }
.band > * { max-width: var(--wide); margin: 0 auto; }
@media (min-width: 900px) {
  main > section.band:has(> h2) {
    max-width: none;
    padding-left: max(28px, calc((100% - var(--wide)) / 2 + 28px));
    padding-right: max(28px, calc((100% - var(--wide)) / 2 + 28px));
  }
}

/* ── 流れ ─────────────────────────────────────── */

#flow .steps { list-style: none; margin: 0; padding: 0; }
.step {
  position: relative; padding: 20px 0 22px 56px;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }
.step-no {
  position: absolute; left: 0; top: 20px;
  font-family: var(--num); font-size: 1.3rem; color: var(--accent);
}
.step:nth-child(-n+9) .step-no::before { content: "0"; }
.step h3 { margin: 0 0 4px; font-size: .96rem; font-weight: 700; letter-spacing: .06em; }
.step p { margin: 0; color: var(--muted); font-size: .88rem; }

/* ── 声 ───────────────────────────────────────── */

.voice-row { display: grid; gap: 0; }
.voice { margin: 0; padding: 24px 0 26px; border-bottom: 1px solid var(--line); }
.voice:last-child { border-bottom: 0; }
.voice blockquote {
  margin: 0 0 12px; font-size: .95rem;
  padding-left: 18px; border-left: 2px solid var(--accent);
}
.voice figcaption { font-size: .78rem; letter-spacing: .08em; color: var(--muted); }

/* ── 締め ─────────────────────────────────────── */

#cta {
  max-width: none; background: var(--accent); color: #fff;
  padding: 56px 28px 62px; text-align: center; border-bottom: 0;
}
#cta > * { max-width: var(--narrow); margin-left: auto; margin-right: auto; }
#cta h2 { margin: 0 0 12px; font-size: 1.1rem; letter-spacing: .12em; }
#cta .lead { color: rgba(255, 255, 255, .82); font-size: .92rem; }
#cta .big {
  margin: 22px 0 4px; font-family: var(--num);
  font-size: clamp(1.7rem, 4.6vw, 2.4rem); letter-spacing: .04em;
}
#cta .big a { text-decoration: none; }
#cta .big a:hover { text-decoration: underline; }
#cta .small { margin: 0; font-size: .78rem; color: rgba(255, 255, 255, .72); }

/* ──────────────────────────────────────────────
   下層ページ：見出しを左の柱に置く（案C）

   文字だけの型なので、読み進めても見出しが左に残るほうが迷わない。
   ★スタイリッシュの型では使わなかった作りを、ここで使っている。
   ────────────────────────────────────────────── */

.editorial { max-width: var(--wide); margin: 0 auto; padding: 0 28px; }
.editorial > section { max-width: none; padding-left: 0; padding-right: 0; }
@media (min-width: 900px) {
  .editorial {
    display: grid; grid-template-columns: var(--rail) minmax(0, 1fr);
    column-gap: 48px; align-items: start;
  }
  .editorial > .page-head.aside { grid-column: 1; grid-row: 1 / 40; position: sticky; top: 26px; }
  .editorial > section:not(.page-head) { grid-column: 2; }
  .editorial > section:last-child { border-bottom: 0; }
}
.page-head-inner { max-width: var(--wide); margin: 0 auto; }
.page-head.aside { border-bottom: 0; }
.page-head.aside .page-head-inner { padding: 62px 0 20px; }
.page-head.aside h1 {
  margin: 0 0 14px; font-size: clamp(1.5rem, 3.2vw, 1.9rem);
  font-weight: 700; letter-spacing: .08em; line-height: 1.6;
}
.page-head.aside .kicker {
  margin: 0; color: var(--accent); font-size: .72rem; letter-spacing: .2em; font-weight: 700;
  padding-top: 12px; border-top: 5px solid var(--accent); display: inline-block;
}

/* 白のまま（案A）と濃い帯（案B）。この型では使わないが、切り替えられるよう残す */
.page-head.quiet .page-head-inner { padding: 62px 28px 6px; }
.page-head.quiet h1 { margin: 0 0 12px; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.page-head.quiet .kicker { margin: 0; color: var(--accent); font-size: .74rem; letter-spacing: .2em; }
.page-head:not(.quiet):not(.aside) { background: var(--panel); }
.page-head:not(.quiet):not(.aside) .page-head-inner { padding: 54px 28px 58px; }
.page-head:not(.quiet):not(.aside) .eyebrow {
  margin: 0 0 10px; color: var(--accent); font-size: .74rem; letter-spacing: .2em;
}
.page-head:not(.quiet):not(.aside) h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.2rem); }

/* ── 会社概要の表 ─────────────────────────────── */

.profile { width: 100%; border-collapse: collapse; }
.profile th, .profile td {
  text-align: left; padding: 18px 0; vertical-align: top;
  border-bottom: 1px solid var(--line); font-weight: 400;
}
.profile th { width: 9em; font-size: .82rem; letter-spacing: .1em; color: var(--muted); }
.profile td { font-size: .94rem; }
@media (max-width: 560px) {
  .profile th, .profile td { display: block; width: auto; }
  .profile th { border-bottom: 0; padding-bottom: 0; }
}

/* ── 地図 ─────────────────────────────────────── */

.map { border: 1px solid var(--line); overflow: hidden; line-height: 0; }
.map iframe { width: 100%; height: 380px; border: 0; display: block; }
@media (max-width: 640px) { .map iframe { height: 280px; } }
.map-stand-in {
  border: 1px dashed var(--line); padding: 54px 28px; text-align: center;
  color: var(--muted); font-size: .82rem; line-height: 2.1;
}

/* ── 追加ページ（料金の目安・品書き・事例） ────── */

/* ★ここも面を作らない。値段が並ぶことが多いので、表のように読ませる。
   横に流したり、めくったりしない。値段は探すものであって、見せ物ではない。 */
.work-index { display: none; }
.works-track, .works-pin { display: contents; }
.works { display: grid; }
.work { border-bottom: 1px solid var(--line); padding: 20px 0 22px; }
.work:last-child { border-bottom: 0; }
.work-photo { margin: 0 0 14px; max-width: 340px; overflow: hidden; }
.work-photo img { width: 100%; height: 220px; object-fit: cover; }
.work-no {
  display: inline-block; font-family: var(--num);
  color: var(--accent); font-size: .95rem; margin-right: .9em;
}
.work-words h3 { display: inline; font-size: .98rem; font-weight: 700; letter-spacing: .06em; }
.work-words p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
@media (min-width: 640px) {
  .work-words { display: grid; grid-template-columns: minmax(0, 1fr) 22em; column-gap: 28px; align-items: baseline; }
  .work-words p { margin: 0; }
}

.photo { margin: 0; overflow: hidden; border: 1px solid var(--line); }
.photo img { width: 100%; height: 320px; object-fit: cover; }
.photo-band { padding-top: 8px; padding-bottom: 8px; }

.lead { font-size: .96rem; }
.big-lead { max-width: var(--narrow); margin: 0; font-size: 1.02rem; line-height: 2.2; }

/* ── 足 ───────────────────────────────────────── */

.site-foot {
  padding: 30px 28px 40px; text-align: center;
  color: var(--muted); font-size: .76rem; letter-spacing: .08em;
}
.site-foot p { margin: 0; }

/* ──────────────────────────────────────────────
   動き。★この型はいちばん静かにする。

   町の商店や士業のサイトで、字が泳ぐ必要はない。
   探しているのは電話番号と値段と場所であって、演出ではない。
   出るときに軽く上がるだけ。止まっているときは何も動かない。
   ────────────────────────────────────────────── */

@keyframes step-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stat, .card, .step, .voice, .work, .profile tr, .big-lead {
      animation: step-up .6s ease both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important; transition: none !important;
    translate: none !important; rotate: none !important;
  }
}


/* ──────────────────────────────────────────────
   受け皿：CSSのスクロール連動が効かない端末のため

   2026-08-21、JSの決めを直した。外の部品はゼロのまま、自前・インライン・
   数十行だけ使う。CSSのスクロール連動は2023年からの新しい機能で、少し古い端末
   （特にSafari）では効かない＝何も動かない。そこを埋める。

   ★隠す指定は、JSが付ける .js-motion の下にしか置かない。
     JSが死ねば何も隠れず、中身は最初から全部読める。
   ────────────────────────────────────────────── */

html.js-motion .stat, html.js-motion .card, html.js-motion .step,
html.js-motion .voice, html.js-motion .work, html.js-motion .big-lead,
html.js-motion .profile tr { opacity: 0; }
html.js-motion .in { animation: step-up .6s ease both; }

/* ──────────────────────────────────────────────
   見せ場：読んでいる場所が、左の目次で光る

   2026-08-21 作り直し。この型の見せ場は派手さではない。
   ★向く相手（士業・教室）のサイトは説明が長い。長いものを最後まで読ませるのが
     この型の仕事。迷わないことは飾りではないので、ここは端末を選ばず動かす。
   ★JSが死んでも、目次はただのページ内リンクとして働く。消えない。
   ────────────────────────────────────────────── */

.toc {
  max-width: var(--wide); margin: 0 auto; padding: 26px 28px;
  display: flex; flex-wrap: wrap; gap: 4px 26px;
  border-bottom: 1px solid var(--line);
}
.toc a {
  text-decoration: none; color: var(--muted);
  font-size: .82rem; letter-spacing: .08em;
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.toc a:hover { color: var(--ink); }
.toc a.here { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }

/* 広い画面では、左の柱に立てて貼り付かせる。本文を読み進めても、ずっと横にいる */
@media (min-width: 900px) {
  .toc {
    position: sticky; top: 0; z-index: 6;
    background: var(--ground);
    display: grid; grid-template-columns: var(--rail) minmax(0, 1fr);
    column-gap: 48px; padding: 14px 28px;
  }
  .toc a { grid-column: 2; display: inline-block; margin-right: 26px; }
  .toc a:first-of-type { grid-column: 2; }
  .toc { grid-auto-flow: column; }
}
@media (min-width: 900px) {
  /* 節の見出しの柱は、目次のぶんだけ下げて貼り付く */
  main > section:has(> h2):not(#cta) > h2 { top: 70px; }
  .editorial > .page-head.aside { top: 34px; }
}

/* 1枚ずつ遅らせる。★全部が同時に出ると、板が1枚動いただけに見えて、札に見えない。 */
html.js-motion .stat-row > :nth-child(2).in, html.js-motion .cards > :nth-child(2).in,
html.js-motion .steps > :nth-child(2).in, html.js-motion .voice-row > :nth-child(2).in { animation-delay: .09s; }
html.js-motion .stat-row > :nth-child(3).in, html.js-motion .cards > :nth-child(3).in,
html.js-motion .steps > :nth-child(3).in, html.js-motion .voice-row > :nth-child(3).in { animation-delay: .18s; }
html.js-motion .stat-row > :nth-child(4).in, html.js-motion .cards > :nth-child(4).in,
html.js-motion .steps > :nth-child(4).in { animation-delay: .27s; }
html.js-motion .cards > :nth-child(5).in, html.js-motion .steps > :nth-child(5).in { animation-delay: .36s; }
html.js-motion .cards > :nth-child(6).in, html.js-motion .steps > :nth-child(6).in { animation-delay: .45s; }


/* ──────────────────────────────────────────────
   ページを移っても、切り替わらずに繋がる

   2026-08-21、試作で本間さんに見てもらって「いいですね」。本番へ入れる。
   ★これはCSSだけの仕事。JavaScriptは1行も足していない。
     ブラウザに2024年から入った仕組みで、jQuery時代の作りでは原理的にできない。
   ★対応していない端末では、ふつうにページが切り替わるだけ。中身は何も欠けない。
   ★上の並び（店名と献立）には同じ名前を付けてある。ページを移っても、そこだけは
     動かずに残る。動かないものが1つあると、移動が「同じ建物の中の移動」に見える。
   ────────────────────────────────────────────── */

@view-transition { navigation: auto; }

.site-head { view-transition-name: site-head; }

::view-transition-group(*) {
  animation-duration: .6s;
  animation-timing-function: cubic-bezier(.2, .84, .24, 1);
}
::view-transition-group(site-head) { animation-duration: .01s; }

::view-transition-new(root) { animation: page-in .34s ease both; }
::view-transition-old(root) { animation: page-out .2s ease both; }
@keyframes page-in { from { opacity: 0; } }
@keyframes page-out { to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) {
    animation: none !important;
  }
}
