/* =========================================================
   竹添裕馬｜AI実装 — 共通スタイル
   前提: 訪問者は既接点（確認サイト）。落ち着き・誠実・実物感。
   ========================================================= */

:root {
  --bg: #fafaf5;
  --surface: #ffffff;
  --ink: #24241f;
  --muted: #5c5b53;
  --faint: #8c8b82;
  --line: #e4e1d5;
  --accent: #2e5744;        /* 深緑(庭) */
  --accent-deep: #1e3c2e;
  --accent-tint: #edf2ec;
  --line-green: #06c755;    /* LINE公式ボタン専用 */
  --ph-bg: #f4f2ec;
  --ph-ink: #8a8578;
  --serif: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap { max-width: 1060px; margin-inline: auto; padding-inline: 24px; }

/* ---------- ヘッダー ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 861px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(250, 250, 245, .86);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 18px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .06em;
  line-height: 1.3;
}
.brand:hover { text-decoration: none; }

.brand-sub {
  display: inline-block;
  margin-left: .7em;
  font-family: var(--sans);
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .18em;
  vertical-align: .18em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5em;
  flex-wrap: wrap;
  font-size: .86rem;
  letter-spacing: .03em;
}

.site-nav a { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }

.nav-cta {
  background: var(--line-green);
  color: #fff !important;
  padding: .45em 1.1em;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { opacity: .88; text-decoration: none; }

/* ---------- ヒーロー ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(76px, 11vw, 118px) clamp(60px, 8vw, 92px);
}

.hero::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -16px;
  width: min(300px, 42vw);
  aspect-ratio: 250 / 160;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 250 160'%3E%3Cg fill='none' stroke='%232e5744' stroke-opacity='.13' stroke-width='1.6'%3E%3Cpath d='M14,152 C70,128 160,80 244,18'/%3E%3Cellipse cx='60' cy='128' rx='15' ry='6' transform='rotate(-35 60 128)'/%3E%3Cellipse cx='95' cy='108' rx='15' ry='6' transform='rotate(-28 95 108)'/%3E%3Cellipse cx='132' cy='88' rx='15' ry='6' transform='rotate(-40 132 88)'/%3E%3Cellipse cx='168' cy='66' rx='15' ry='6' transform='rotate(-25 168 66)'/%3E%3Cellipse cx='200' cy='46' rx='15' ry='6' transform='rotate(-38 200 46)'/%3E%3Cellipse cx='226' cy='30' rx='15' ry='6' transform='rotate(-25 226 30)'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--accent);
  margin-bottom: 1.1em;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.6vw, 3.05rem);
  line-height: 1.42;
  letter-spacing: .05em;
  font-feature-settings: "palt";
  text-wrap: balance;
  margin-bottom: .6em;
}

.lead {
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 1.8em;
}

.fact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.8em;
}

.fact-chips span {
  font-size: .82rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: .35em 1em;
  color: var(--muted);
}

/* ---------- ボタン ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
  display: inline-block;
  padding: .82em 1.9em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .93rem;
  letter-spacing: .02em;
  line-height: 1.5;
  transition: transform .25s ease, opacity .25s ease;
}
.btn:hover { text-decoration: none; opacity: .9; transform: translateY(-1px); }

.btn-line { background: var(--line-green); color: #fff; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); }

/* ---------- セクション ---------- */

section { padding-block: clamp(72px, 10vw, 110px); }

.section-alt { background: var(--surface); border-block: 1px solid #efece0; }

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 1.95rem);
  line-height: 1.5;
  letter-spacing: .06em;
  font-feature-settings: "palt";
  text-wrap: balance;
  margin-bottom: .6em;
}

main h2::before {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 1.3em;
}

.num-band h2::before { background: rgba(255, 255, 255, .45); }

.cta-band h2::before { margin-inline: auto; }

.section-note {
  color: var(--muted);
  max-width: 40em;
  margin-bottom: 2.6em;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: .5em;
}

/* ---------- カード ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cards-4 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid #eceadf;
  border-radius: 14px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: .5em;
  box-shadow: 0 1px 2px rgba(36, 36, 31, .03), 0 12px 32px rgba(36, 36, 31, .04);
}

.section-alt .card { background: var(--bg); }

.card p { color: var(--muted); font-size: .92rem; flex: 1; }

.card .card-label {
  font-size: .74rem;
  letter-spacing: .14em;
  color: var(--accent);
  font-weight: 600;
  flex: none;
}

.card a.more { font-size: .88rem; font-weight: 600; }

a.more { display: inline-block; transition: transform .25s ease; }
a.more:hover { transform: translateX(3px); text-decoration: none; }

/* ---------- 数字バンド ---------- */

.num-band {
  background: linear-gradient(150deg, #234a33 0%, #152b1d 100%);
  color: #fff;
  padding-block: clamp(64px, 9vw, 96px);
}

.num-band h2 { color: #fff; }

.num-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-block: 1.8em 1em;
}

@media (min-width: 861px) {
  .num-item + .num-item { border-left: 1px solid rgba(255, 255, 255, .16); padding-left: 30px; }
}

.num-item .num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 5.2vw, 3.4rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  font-feature-settings: "palt";
  line-height: 1.2;
}

.num-item .num small { font-size: .45em; margin-left: .15em; }

.num-item p { color: #c9d6cc; font-size: .88rem; line-height: 1.7; }

.num-band .foot { color: #8ea99a; font-size: .78rem; }

/* ---------- テーブル ---------- */

.table-scroll { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: .92rem;
}

th, td {
  text-align: left;
  padding: .95em 1.1em;
  border-bottom: 1px solid #eee9dc;
  vertical-align: top;
  line-height: 1.7;
}

thead th, th[scope="row"] {
  background: var(--accent-tint);
  font-weight: 600;
  letter-spacing: .03em;
  white-space: nowrap;
}

td em.win { font-style: normal; color: var(--accent); font-weight: 600; }

/* ---------- サイクル図 ---------- */

.cycle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-block: 1.4em;
}

.cycle .step {
  font-family: var(--serif);
  background: var(--surface);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: .4em 1.2em;
  font-size: .95rem;
  font-weight: 600;
}

.cycle .arrow { color: var(--faint); }

/* ---------- 手順 ---------- */

.flow { list-style: none; counter-reset: flow; display: grid; gap: 18px; }

.flow li {
  counter-increment: flow;
  background: var(--surface);
  border: 1px solid #eceadf;
  border-radius: 14px;
  padding: 24px 28px 24px 76px;
  position: relative;
}

.flow li::before {
  content: counter(flow);
  position: absolute;
  left: 24px;
  top: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.flow li p { color: var(--muted); font-size: .9rem; }

/* ---------- FAQ ---------- */

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  padding: 1.1em 0;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 2em;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "＋";
  position: absolute;
  right: .2em;
  color: var(--accent);
}

.faq details[open] summary::after { content: "－"; }

.faq .faq-body { padding: 0 0 1.4em; color: var(--muted); font-size: .93rem; max-width: 44em; }

/* ---------- プレースホルダー ---------- */

.ph {
  border: 2px dashed #beb9ab;
  background: var(--ph-bg);
  color: var(--ph-ink);
  border-radius: 10px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: .84rem;
  line-height: 1.6;
  padding: 16px;
  min-height: 180px;
}

.ph-portrait { aspect-ratio: 4 / 5; min-height: 0; }
.ph-shot { aspect-ratio: 16 / 10; min-height: 0; }

/* ---------- 制作物ギャラリー ---------- */

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.work { display: flex; flex-direction: column; gap: 12px; }

.work .tag {
  align-self: flex-start;
  font-size: .72rem;
  letter-spacing: .12em;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-tint);
  border-radius: 4px;
  padding: .25em .8em;
}

.work p { color: var(--muted); font-size: .92rem; }

.work .effect {
  font-size: .88rem;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: .9em;
  font-weight: 600;
}

/* ---------- 口上(代表挨拶) ---------- */

.kojo {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 2.3;
  max-width: 38em;
  color: var(--ink);
}

.kojo-sign {
  margin-top: 1.4em;
  color: var(--muted);
  font-size: .9rem;
}

/* ---------- 引用・ボックス ---------- */

.honest-box {
  background: var(--surface);
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  padding: 32px 34px;
  max-width: 640px;
}

.honest-box .big {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: .5em;
}

.honest-box p { color: var(--muted); font-size: .92rem; }

.notice { font-size: .8rem; color: var(--faint); }

/* ---------- 事例 ---------- */

.case {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px;
  display: grid;
  gap: 1.2em;
}

.case + .case { margin-top: 28px; }

.case .who {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.case dl { display: grid; grid-template-columns: 7em 1fr; gap: .6em 1.4em; }

.case dt {
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .08em;
  padding-top: .25em;
}

.case dd { color: var(--muted); font-size: .93rem; }

.case .result { color: var(--ink); font-weight: 600; }

/* ---------- CTAバンド ---------- */

.cta-band {
  background: var(--accent-tint);
  border-block: 1px solid #e3e8e0;
  padding-block: clamp(76px, 10vw, 104px);
  text-align: center;
}

.cta-band h2 { margin-bottom: .4em; }

.cta-band p { color: var(--muted); max-width: 36em; margin: 0 auto 1.6em; }

.cta-band .btn-row { justify-content: center; }

/* ---------- フッター ---------- */

.site-footer {
  background: #161c17;
  color: #b6beb6;
  padding-block: 64px 36px;
  font-size: .86rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.foot-brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: .06em;
}

.foot-desc { color: #85917f; font-size: .82rem; margin-top: .5em; max-width: 30em; }

.foot-nav { display: grid; gap: .5em; justify-items: start; }

.foot-nav a { color: #b6beb6; }
.foot-nav a:hover { color: #fff; }

.foot-small { color: #79857b; font-size: .76rem; border-top: 1px solid #2a322b; padding-top: 20px; }

/* ---------- レスポンシブ ---------- */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-grid .ph-portrait { max-width: 300px; }
  .cards, .cards-4, .works-grid, .num-grid, .foot-grid { grid-template-columns: 1fr; }
  .case dl { grid-template-columns: 1fr; gap: .1em; }
  .case dd { margin-bottom: .8em; }
  .site-nav { gap: 1em; font-size: .84rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- イラスト・図解 ---------- */

.icn { width: 52px; margin-bottom: .3em; }
.icn-wide { width: 84px; }
.icn svg { width: 100%; height: auto; display: block; }

.workfig {
  border: 1px solid #eceadf;
  background: var(--surface);
  border-radius: 10px;
  padding: 18px 8px 6px;
}
.workfig svg { width: 100%; height: auto; display: block; }

.cycle-fig { max-width: 440px; margin-block: 1.6em; }
.cycle-fig svg { width: 100%; height: auto; display: block; }

.leaves-row { max-width: 230px; margin-top: 1.6em; }
.leaves-row svg { width: 100%; height: auto; display: block; }

.motif-holder { position: relative; }
.motif {
  position: absolute;
  right: 0;
  bottom: -34px;
  width: 230px;
  opacity: .3;
  pointer-events: none;
}
@media (max-width: 860px) { .motif { width: 150px; opacity: .2; } }

/* ---------- 仕上げ: 詰め組みとスクロール登場 ---------- */

.honest-box .big, .case .who, .kojo, .foot-brand, .brand {
  font-feature-settings: "palt";
  letter-spacing: .04em;
}

.js .rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .75s ease, transform .75s ease;
}

.js .rv.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------- 生成画像スロット（差し替え待ち） ---------- */

.img-slot { min-height: 0; }

.slot-band {
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 500px;
  border-radius: 0;
  border-inline: none;
}

.slot-wide {
  aspect-ratio: 2 / 1;
  border-radius: 16px;
  margin-bottom: 2.6em;
}

.slot-sq {
  aspect-ratio: 1 / 1;
  max-width: 480px;
  border-radius: 16px;
  margin-bottom: 2.6em;
}

.slot-3to1 {
  aspect-ratio: 3 / 1;
  border-radius: 16px;
  margin-top: 1.6em;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

.split .slot-sq { margin-bottom: 0; justify-self: end; width: 100%; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split .slot-sq { justify-self: start; }
}

/* ---------- 資料カード ---------- */

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.doc-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid #eceadf;
  border-radius: 14px;
  padding: 28px 28px;
  box-shadow: 0 1px 2px rgba(36, 36, 31, .03), 0 12px 32px rgba(36, 36, 31, .04);
}

.section-alt .doc-card { background: var(--bg); }

.doc-icn { width: 42px; flex: none; }
.doc-icn svg { width: 100%; height: auto; display: block; }

.doc-card h3 { font-size: 1rem; margin-bottom: .2em; }
.doc-card p { color: var(--muted); font-size: .88rem; margin-bottom: .5em; }

.doc-meta {
  display: block;
  font-size: .76rem;
  color: var(--faint);
  letter-spacing: .04em;
  margin-bottom: 1em;
}

.doc-card .btn { padding: .55em 1.4em; font-size: .85rem; }

@media (max-width: 860px) {
  .doc-grid { grid-template-columns: 1fr; }
}

/* ---------- 実画像の組み込み ---------- */

figure.img-slot {
  padding: 0;
  border: none;
  background: none;
  overflow: hidden;
}

.img-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; flex: none; }

.foot-mark { width: 40px; height: 40px; display: block; margin-bottom: 12px; opacity: .9; }

/* ---------- SPでは画像を切り抜かず原寸比率で全体表示 ---------- */

@media (max-width: 860px) {
  .slot-band { aspect-ratio: 3 / 2; max-height: none; }
  .slot-wide { aspect-ratio: 3 / 2; }
  .slot-3to1 { aspect-ratio: 2 / 1; }
  .img-slot img { object-position: center !important; }
}
