@charset "UTF-8";
/* ============================================================
   東造園 リニューアル提案用デモサイト
   配色・書体・文字組みは 13_Web構成.md 第5章に準拠
   ============================================================ */

/* ---- トークン ---- */
:root {
  --white: #FFFFFF;      /* ベース */
  --base2: #F5F5F3;      /* ベース補助 */
  --accent: #8CC63F;     /* アクセント（面） */
  --accent-txt: #5A8126; /* アクセント（白地の文字用） */
  --sub: #1F3864;        /* サブ（面・見出し文字） */
  --ink: #1A1A1A;        /* 本文 */
  --ink-70: rgba(26, 26, 26, .70);
  --line: rgba(31, 56, 100, .18);

  --serif: "Noto Serif JP", "Yu Mincho", "游明朝", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --container: 1120px;
  --gap: 96px;
  --radius: 4px;

  --t-fast: 180ms;   /* 150〜200ms */
  --t-mid: 600ms;    /* 400〜700ms */
  --t-slow: 1600ms;  /* 1000ms以上 */
  --ease-out: cubic-bezier(.16, .84, .44, 1);
  --ease-in: cubic-bezier(.55, 0, .85, .35);
}

/* ---- リセット ---- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.9;
  font-weight: 400;
  letter-spacing: .02em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-txt); }
button, input, textarea, select { font: inherit; color: inherit; }

/* ---- 共通レイアウト ---- */
.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.section { padding-block: var(--gap); }
.section--tint { background: var(--base2); }
.measure { max-width: 42em; }
.stack > * + * { margin-top: 1.1em; }

/* ---- 見出し ---- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--sub); margin: 0; }
.h-lead {
  font-size: 34px; line-height: 1.4; letter-spacing: .04em;
  padding-left: 20px; border-left: 3px solid var(--sub);
  margin-bottom: 32px;
}
.h-lead .sub {
  display: block; font-family: var(--sans); font-size: 14px; font-weight: 500;
  color: var(--accent-txt); letter-spacing: .16em; line-height: 1.6; margin-bottom: 6px;
}
.h-sub { font-size: 22px; line-height: 1.6; letter-spacing: .04em; margin-bottom: 12px; }
.h-card { font-size: 20px; line-height: 1.6; margin-bottom: 8px; }

/* ---- テキストリンク（下線が左から右へ 200ms） ---- */
.tlink { position: relative; text-decoration: none; color: var(--accent-txt); font-weight: 500; }
.tlink::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-fast) var(--ease-out);
}
.tlink:hover::after, .tlink:focus-visible::after { transform: scaleX(1); }

/* ---- ボタン ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border-radius: var(--radius);
  font-weight: 500; text-decoration: none; border: 1px solid transparent;
  transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: #7cb733; }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .6); }
.btn--outline:hover { background: rgba(255, 255, 255, .12); }
.btn--sub { background: var(--sub); color: var(--white); }
.btn--sub:hover { background: #172b4d; }
.btn--ghost { background: var(--white); color: var(--sub); border-color: var(--line); }
.btn--ghost:hover { background: var(--base2); }
.btn .ico { width: 20px; height: 20px; }
.btn--primary .ico, .btn--ghost .ico { filter: none; }
.btn--outline .ico, .btn--sub .ico { filter: brightness(0) invert(1); }
.btn__num { font-size: 19px; letter-spacing: .04em; }

:where(a, button, input, textarea, summary):focus-visible {
  outline: 3px solid var(--accent-txt); outline-offset: 2px;
}

/* ---- ヘッダー ---- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: var(--sub); color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.header__inner {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h, 84px);
  transition: height var(--t-fast) var(--ease-out);
}
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--white); }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: .16em; }
.brand__sub { font-size: 12px; letter-spacing: .12em; color: rgba(255, 255, 255, .72); }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__list a { color: var(--white); text-decoration: none; font-size: 15px; letter-spacing: .06em; position: relative; }
.nav__list a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-fast) var(--ease-out);
}
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.header .btn { min-height: 44px; padding: 8px 18px; }
.nav-toggle { display: none; }
body { padding-top: 84px; }

/* ---- ヒーロー ---- */
.hero { position: relative; min-height: 620px; display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(31, 56, 100, .82) 0%, rgba(31, 56, 100, .58) 42%, rgba(31, 56, 100, .12) 100%);
}
.hero__inner { position: relative; z-index: 1; padding-block: 96px; }
.hero__body { max-width: 40em; color: var(--white); }
.hero h1 { color: var(--white); font-size: 46px; line-height: 1.45; letter-spacing: .06em; margin-bottom: 20px; }
.hero__lead { font-size: 17px; line-height: 1.9; color: rgba(255, 255, 255, .92); max-width: 34em; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 28px; padding: 0; list-style: none; }
.hero__badges li {
  font-size: 13px; letter-spacing: .04em; line-height: 1.6;
  padding: 5px 12px; border-radius: var(--radius);
  background: var(--accent); color: var(--ink);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255, 255, 255, .8); font-size: 11px; letter-spacing: .18em;
}
.scroll-cue__line { width: 1px; height: 42px; background: rgba(255, 255, 255, .5); position: relative; overflow: hidden; }
.scroll-cue__line::after {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  animation: cue var(--t-slow) var(--ease-out) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---- 下層ヒーロー ---- */
.phero { position: relative; min-height: 300px; display: flex; align-items: center; overflow: hidden; }
.phero__bg { position: absolute; inset: 0; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; }
.phero__bg::after { content: ""; position: absolute; inset: 0; background: rgba(31, 56, 100, .72); }
.phero__inner { position: relative; z-index: 1; padding-block: 64px; color: var(--white); }
.phero h1 { color: var(--white); font-size: 36px; line-height: 1.4; letter-spacing: .06em; }
.phero p { max-width: 38em; color: rgba(255, 255, 255, .9); margin: 12px 0 0; }
.crumbs { font-size: 13px; letter-spacing: .08em; color: rgba(255, 255, 255, .78); margin-bottom: 14px; }
.crumbs a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.crumbs a:hover { color: var(--white); }

/* ---- 写真枠（CSSホバーズーム 1.05） ---- */
.photo { overflow: hidden; border-radius: var(--radius); background: var(--base2); }
.photo img { width: 100%; transition: transform var(--t-mid) var(--ease-out); }
.photo--4x3 img { aspect-ratio: 4 / 3; object-fit: cover; }
.photo--16x9 img { aspect-ratio: 16 / 9; object-fit: cover; }
a:hover > .photo img, .card:hover .photo img, .photo:hover img { transform: scale(1.05); }
.credit { font-size: 14px; line-height: 1.7; color: var(--ink-70); margin: 8px 0 0; }

/* ---- カード ---- */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; will-change: transform;
}
.card--flat { border: none; padding: 0; background: transparent; }
.card__ico { width: 40px; height: 40px; margin-bottom: 14px; }
.card p { margin: 0; font-size: 16px; }
.card ul { margin: 12px 0 0; padding-left: 1.2em; font-size: 16px; }

/* ---- 作庭記録カード ---- */
.work { text-decoration: none; color: inherit; display: block; }
.work__meta { font-size: 13px; letter-spacing: .08em; color: var(--accent-txt); margin: 12px 0 4px; }
.work__title { font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1.6; color: var(--sub); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.tags li, .tag {
  font-size: 12px; letter-spacing: .04em; line-height: 1.6;
  padding: 3px 10px; border-radius: var(--radius);
  background: var(--accent); color: var(--ink); text-decoration: none;
}
.tag--ghost { background: var(--white); color: var(--sub); border: 1px solid var(--line); }
.tag--ghost:hover { background: var(--base2); }

/* ---- 3カラムの信頼情報 ---- */
.trust { background: var(--sub); color: var(--white); }
.trust h2, .trust h3 { color: var(--white); }
.trust .h-lead { border-left-color: var(--accent); }
.trust .h-lead .sub { color: var(--accent); }
.trust__col { border-top: 1px solid rgba(255, 255, 255, .28); padding-top: 20px; }
.trust__col p, .trust__col li { color: rgba(255, 255, 255, .9); font-size: 16px; }
.trust__col ul { margin: 0; padding-left: 1.2em; }

/* ---- CTA帯 ---- */
.cta {
  background: var(--accent); color: var(--ink);
  padding-block: 56px; text-align: center;
}
.cta h2 { color: var(--ink); font-size: 26px; line-height: 1.6; }
.cta p { max-width: 40em; margin: 10px auto 22px; }
.cta__row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta--sub { background: var(--sub); color: var(--white); }
.cta--sub h2 { color: var(--white); }

/* ---- 区切り帯 ---- */
.band { height: 220px; position: relative; overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; }

/* ---- 会社概要表 ---- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--line); font-size: 16px; vertical-align: top; }
.table th { width: 200px; font-family: var(--serif); font-weight: 600; color: var(--sub); white-space: nowrap; }

/* ---- 定義リスト ---- */
.deflist { margin: 0; }
.deflist dt { font-family: var(--serif); font-weight: 600; color: var(--sub); font-size: 17px; margin-top: 18px; }
.deflist dd { margin: 4px 0 0; font-size: 16px; }

/* ---- アコーディオン（Motionで開閉） ---- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; display: flex; align-items: center; gap: 16px; justify-content: space-between;
  background: none; border: 0; padding: 22px 4px; cursor: pointer; text-align: left;
  font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--sub);
}
.acc__mark { flex: none; width: 22px; height: 22px; position: relative; }
.acc__mark::before, .acc__mark::after {
  content: ""; position: absolute; inset: 50% 0 auto 0; height: 2px; background: var(--accent-txt);
  transition: transform var(--t-fast) var(--ease-out);
}
.acc__mark::after { transform: rotate(90deg); }
.acc__btn[aria-expanded="true"] .acc__mark::after { transform: rotate(0deg); }
.acc__panel { overflow: hidden; }
.acc__inner { padding: 0 4px 26px; }
.acc__inner p { margin: 0; max-width: 42em; }
.acc__inner p + p { margin-top: 1em; }

/* ---- フォーム（見た目のみ） ---- */
.form { max-width: 42em; }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 500; font-size: 16px; margin-bottom: 6px; color: var(--sub); }
.field .req { font-size: 12px; background: var(--accent); color: var(--ink); padding: 2px 8px; border-radius: var(--radius); margin-left: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); font-size: 17px; line-height: 1.7;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent-txt); outline: none; box-shadow: 0 0 0 3px rgba(90, 129, 38, .18); }
.field .help { font-size: 14px; color: var(--ink-70); margin: 6px 0 0; }
.form__note {
  background: var(--base2); border-left: 3px solid var(--sub);
  padding: 14px 18px; font-size: 16px; margin: 0 0 18px;
}

/* ---- 電話ブロック ---- */
.telbox { background: var(--base2); border-radius: var(--radius); padding: 32px; }
.telbox__label { font-size: 14px; letter-spacing: .12em; color: var(--accent-txt); font-weight: 500; }
.telbox__num {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--serif); font-weight: 600; font-size: 42px; line-height: 1.3;
  color: var(--sub); text-decoration: none; letter-spacing: .04em; margin: 4px 0 8px;
}
.telbox__num .ico { width: 34px; height: 34px; }
.telbox__num:hover { color: var(--accent-txt); }
.telbox__note { font-size: 16px; margin: 0; }
.telbox__sub { font-size: 16px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.telbox__sub a { color: var(--sub); text-decoration: none; font-weight: 500; }

/* ---- 進捗バー（column.html のみ） ---- */
.progress { position: absolute; left: 0; bottom: -3px; height: 3px; width: 100%; background: rgba(255, 255, 255, .18); }
.progress__bar { height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* ============================================================
   水琴窟のしくみ（主役層）
   ============================================================ */
.wk { background: var(--base2); }
.wk__pin { min-height: 100vh; display: flex; align-items: center; padding-block: 40px; }
.wk__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; width: 100%; }
.wk__figure { position: relative; }
.wk__svg { width: 100%; height: auto; display: block; }
.wk__caption { position: relative; min-height: 8.6em; }
.wk__step {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity var(--t-fast) var(--ease-out);
}
.wk__step[data-active="true"] { opacity: 1; }
.wk__stepno {
  font-family: var(--serif); font-size: 13px; letter-spacing: .18em;
  color: var(--accent-txt); font-weight: 600;
}
.wk__steptitle { font-size: 26px; line-height: 1.5; margin: 6px 0 10px; }
.wk__step p { margin: 0; font-size: 17px; max-width: 24em; }
.wk__count {
  position: absolute; right: 0; bottom: 8px;
  font-family: var(--serif); font-size: 15px; letter-spacing: .12em; color: var(--sub);
}
.wk__count .now { font-size: 26px; }
.wk__reveal { margin-top: 26px; opacity: 0; }
.wk__reveal .copy { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.5; color: var(--sub); letter-spacing: .06em; }
.wk__after { padding-bottom: var(--gap); text-align: center; }
/* 静的表示（prefers-reduced-motion）用 */
.wk__static { display: none; }
.wk--static .wk__static { display: block; }
.wk__static .wk__staticitem {
  width: min(100% - 48px, var(--container)); margin-inline: auto;
  padding-block: 40px; border-top: 1px solid var(--line);
}
.wk__static .wk__staticitem:first-child { border-top: 0; }
.wk__static .wk__grid { align-items: start; }

/* SVGの段階表示：data-stage 指定時（静的表示） */
.wk__svg[data-stage] .s2, .wk__svg[data-stage] .s3, .wk__svg[data-stage] .s4 { opacity: 0; }
.wk__svg[data-stage="2"] .s2, .wk__svg[data-stage="3"] .s2, .wk__svg[data-stage="4"] .s2 { opacity: 1; }
.wk__svg[data-stage="3"] .s3, .wk__svg[data-stage="4"] .s3 { opacity: 1; }
.wk__svg[data-stage="4"] .s4 { opacity: 1; }

/* ---- フッター ---- */
.footer { background: var(--sub); color: rgba(255, 255, 255, .9); padding-block: 64px 32px; }
.footer h2, .footer h3 { color: var(--white); }
.footer a { color: rgba(255, 255, 255, .9); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__brand .brand__name { font-size: 26px; }
.footer__list { list-style: none; margin: 12px 0 0; padding: 0; font-size: 15px; }
.footer__list li + li { margin-top: 8px; }
.footer__list a { text-decoration: none; }
.footer__list a:hover { color: var(--accent); }
.footer__tel { font-family: var(--serif); font-size: 26px; color: var(--white); text-decoration: none; letter-spacing: .04em; }
.footer__note {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .24);
  font-size: 14px; line-height: 1.9; color: rgba(255, 255, 255, .88);
}
.footer__copy { font-size: 13px; color: rgba(255, 255, 255, .6); margin: 10px 0 0; }

/* ---- 404 ---- */
.err { padding-block: 120px; text-align: center; }
.err h1 { font-size: 32px; line-height: 1.5; margin-bottom: 16px; }
.err p { max-width: 34em; margin: 0 auto 28px; }
.err__row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .wk__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --gap: 64px; }
  body { font-size: 17px; padding-top: 68px; }
  .header__inner { height: var(--header-h, 68px); }
  .brand__name { font-size: 20px; }
  .brand__sub { display: none; }
  .nav { display: none; }
  .header .btn { margin-left: auto; }
  .hero { min-height: 520px; }
  .hero h1 { font-size: 30px; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(31, 56, 100, .74) 0%, rgba(31, 56, 100, .82) 100%); }
  .h-lead { font-size: 26px; }
  .phero h1 { font-size: 26px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .table th, .table td { display: block; width: auto; border-bottom: 0; padding: 4px 0; }
  .table th { padding-top: 16px; }
  .table tr { display: block; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .telbox { padding: 24px; }
  .telbox__num { font-size: 32px; }
  .wk__caption { min-height: 11em; }
  .wk__reveal .copy { font-size: 22px; }
  .band { height: 150px; }
}

/* ============================================================
   prefers-reduced-motion：全アニメーションを無効化
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .photo img { transition: none; }
  a:hover > .photo img, .card:hover .photo img, .photo:hover img { transform: none; }
  .scroll-cue__line::after { animation: none; }
  .progress { display: none; }
  /* 水琴窟：ピン留めを行わず、4段階を縦に並べた静的な図にする */
  .wk__count { display: none; }
  .wk__pin { min-height: 0; display: block; padding-block: 0; }
  .wk__caption { min-height: 0; }
  .wk__step { position: static; opacity: 1; margin-bottom: 28px; }
  .wk__reveal { opacity: 1; }
}

/* 印刷時の最低限 */
@media print {
  .header, .footer, .cta, .scroll-cue { display: none; }
  body { padding-top: 0; }
}
