/* 031 葉音造園 ― 色はここだけ触れば差し替わる */
:root {
  --c-bg: #f4f7f0;
  --c-leaf: #e3ecdb;
  --c-main: #2f5d3a;
  --c-dark: #1f3324;
  --c-accent: #8fb57a;
  --c-accent-text: #2f5d3a;
  --c-text: #374151;
  --c-sub: #4b5563;
  --font: "Noto Sans JP", sans-serif;
  --font-mincho: "Zen Old Mincho", serif;
  --font-en: "Cormorant Garamond", serif;
  --header-h: 68px;
  --gut: 20px;
}
@media (min-width: 1080px) { :root { --header-h: 80px; --gut: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 2; color: var(--c-text); background: var(--c-bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; }

.en { font-family: var(--font-en); font-style: italic; font-size: 20px; line-height: 1.3; color: var(--c-accent-text); }
.en--light { color: #cfe3c2; }
.h2 { font-family: var(--font-mincho); font-weight: 700; font-size: clamp(25px, 3.2vw, 38px); line-height: 1.55; color: var(--c-main); margin-top: 4px; }
.h2--light { color: #fff; }
.sec-head { margin-bottom: 40px; }
.note { font-size: 15px; color: var(--c-sub); margin-top: 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; text-decoration: none; white-space: nowrap; flex: none; transition: background-color .3s, color .3s; }
.btn--main { background: var(--c-main); color: #fff; }
.btn--main:hover, .btn--main:focus-visible { background: var(--c-dark); }
.btn--white { background: #fff; color: var(--c-main); }
.btn--white:hover, .btn--white:focus-visible { background: var(--c-leaf); }
.btn--line { border: 2px solid #fff; color: #fff; }
.btn--line:hover, .btn--line:focus-visible { background: #fff; color: var(--c-main); }

/* ===== ヘッダー ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(244, 247, 240, .93); backdrop-filter: blur(8px); }
.header__inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); padding: 0 var(--gut); }
.logo { display: flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--font-mincho); font-weight: 700; font-size: 22px; letter-spacing: .1em; color: var(--c-main); text-decoration: none; white-space: nowrap; flex: none; }
.logo__leaf { width: 28px; height: 28px; }
.gnav { display: none; }
.header__btn { margin-left: auto; min-height: 44px; padding: 0 18px; font-size: 15px; }
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--c-main); }
.spmenu summary::-webkit-details-marker { display: none; }
.spmenu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spmenu__bar, .spmenu__bar::before, .spmenu__bar::after { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -7px; } .spmenu__bar::after { top: 7px; }
.spmenu[open] .spmenu__bar { background: transparent; }
.spmenu[open] .spmenu__bar::before { top: 0; transform: rotate(45deg); }
.spmenu[open] .spmenu__bar::after { top: 0; transform: rotate(-45deg); }
.spmenu__nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--c-main); padding: 8px 20px 24px; display: flex; flex-direction: column; }
.spmenu__nav a { display: flex; align-items: center; min-height: 56px; color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .2); }
@media (min-width: 1080px) {
  .gnav { display: flex; gap: 32px; margin-left: auto; }
  .gnav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 700; color: var(--c-main); }
  .gnav a:hover { color: var(--c-dark); text-decoration: underline; text-underline-offset: 6px; }
  .header__btn { margin-left: 0; }
  .spmenu { display: none; }
}

/* ===== D04：等高線の背景 ===== */
.contour { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.contour__layer { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; }
.contour__layer path { fill: none; stroke: var(--c-accent); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.contour__layer--back { opacity: .45; }
.contour__layer--front { opacity: .6; }
.contour--soft .contour__layer { opacity: .35; }

/* ===== メインビジュアル（葉の縁で切り抜く写真 F03） ===== */
.hero { position: relative; padding: calc(var(--header-h) + 32px) var(--gut) 72px; overflow: hidden; }
.hero__inner { position: relative; z-index: 1; display: grid; gap: 32px; max-width: 1320px; margin: 0 auto; }
.hero__text { background: rgba(244, 247, 240, .85); padding: 8px 0; }
.hero__title { font-family: var(--font-mincho); font-weight: 700; font-size: clamp(36px, 6vw, 72px); line-height: 1.4; color: var(--c-main); margin: 6px 0 18px; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; clip-path: url(#leafEdge); border-radius: 28px 28px 0 0; background: var(--c-leaf); }
@media (min-width: 1080px) {
  .hero { padding-top: calc(var(--header-h) + 56px); padding-bottom: 120px; }
  .hero__inner { grid-template-columns: 5fr 7fr; align-items: center; gap: 64px; }
  .hero__text { padding: 24px 24px 24px 0; }
}

/* ===== ごあいさつ ===== */
.about { position: relative; padding: 96px var(--gut) 120px; overflow: hidden; }
.about__inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; background: var(--c-bg); padding: 32px 4px; }
.about__inner .h2 { margin-bottom: 20px; }
.about__inner p + p { margin-top: 14px; }
@media (min-width: 768px) { .about__inner { padding: 48px 56px; border-radius: 40px; text-align: center; } }

/* ===== 波の縁 ===== */
.wave { display: block; width: 100%; height: 40px; }
.wave--top { background: var(--c-bg); fill: var(--c-dark); }
.wave--bottom { background: var(--c-bg); fill: var(--c-dark); }
.wave--green { fill: var(--c-main); }

/* ===== 演出①：庭の四季（B01）＝動かない版は縦に4場面 ===== */
.seasons { background: var(--c-dark); color: #e6efe0; }
.seasons__head { padding: 56px var(--gut) 32px; text-align: center; }
.scene { position: relative; isolation: isolate; min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--c-dark); }
.scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 34, 24, 0) 40%, rgba(20, 34, 24, .82) 100%); }
.scene__text { position: relative; z-index: 1; padding: 40px var(--gut); max-width: 560px; color: #f1f6ee; }
.scene__name { font-family: var(--font-mincho); font-weight: 700; font-size: clamp(56px, 9vw, 120px); line-height: 1; color: #fff; display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.scene__name span { font-family: var(--font-en); font-style: italic; font-weight: 500; font-size: 24px; color: #cfe3c2; }
.seasons__meter { display: none; }
@media (min-width: 1080px) { .scene__text { padding: 64px var(--gut); } }
/* 動く版：画面を止めて、場面を丸く広げて入れ替える＋右に目盛り */
.is-motion .seasons__inner { position: relative; height: 100vh; overflow: hidden; }
.is-motion .scene { position: absolute; inset: 0; min-height: 0; }
.is-motion .seasons__meter { display: flex; flex-direction: column; gap: 20px; position: absolute; z-index: 3; right: 20px; top: 50%; transform: translateY(-50%); }
.is-motion .seasons__meter li { position: relative; width: 48px; height: 48px; border-radius: 0 60% 0 60%; border: 2px solid rgba(255, 255, 255, .7); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-mincho); font-weight: 700; font-size: 18px; background: rgba(20, 34, 24, .45); transition: background-color .4s, color .4s, transform .4s; }
.is-motion .seasons__meter li.is-on { background: #fff; color: var(--c-main); transform: scale(1.15); }
@media (min-width: 1080px) { .is-motion .seasons__meter { right: 48px; } }

/* ===== できること（葉の形の切り抜き F03） ===== */
.service { padding: 112px var(--gut); max-width: 1320px; margin: 0 auto; }
.service__list { display: grid; gap: 48px; }
.svc__photo { width: 86%; margin-bottom: 20px; }
.svc__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0 64% 0 64%; background: var(--c-leaf); }
.svc:nth-child(2) .svc__photo { margin-left: auto; }
.svc:nth-child(2) .svc__photo img { border-radius: 64% 0 64% 0; }
.svc h3 { font-family: var(--font-mincho); font-weight: 700; font-size: 24px; color: var(--c-main); margin-bottom: 6px; }
@media (min-width: 900px) { .service__list { grid-template-columns: repeat(3, 1fr); gap: 40px; } .svc:nth-child(2) { margin-top: 80px; } .svc__photo { width: 100%; } }

/* ===== 施工の流れ ===== */
.flow { padding: 96px var(--gut); background: var(--c-leaf); }
.flow .sec-head, .flow__list { max-width: 1200px; margin-left: auto; margin-right: auto; }
.flow__list { display: grid; gap: 16px; }
.flow__list li { background: var(--c-bg); border-radius: 24px; padding: 24px; position: relative; }
.flow__list span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 0 60% 0 60%; background: var(--c-main); color: #fff; font-family: var(--font-mincho); font-weight: 700; margin-bottom: 8px; }
.flow__list h3 { font-family: var(--font-mincho); font-weight: 700; font-size: 20px; color: var(--c-main); }
@media (min-width: 900px) { .flow { padding: 140px var(--gut); } .flow__list { grid-template-columns: repeat(4, 1fr); } }

/* ===== お手入れのプラン ===== */
.plan { padding: 112px var(--gut); max-width: 1200px; margin: 0 auto; }
.plan__list { display: grid; gap: 16px; }
.plan__item { border: 2px solid var(--c-accent); border-radius: 28px; padding: 28px 24px; background: #fff; }
.plan__item--main { border-color: var(--c-main); box-shadow: 0 0 0 4px var(--c-leaf); }
.plan__item h3 { font-family: var(--font-mincho); font-weight: 700; font-size: 21px; color: var(--c-main); }
.plan__price { font-family: var(--font-mincho); font-weight: 700; font-size: 32px; color: var(--c-main); margin: 6px 0; }
.plan__price small { font-family: var(--font); font-size: 15px; font-weight: 400; color: var(--c-sub); }
@media (min-width: 900px) { .plan__list { grid-template-columns: repeat(3, 1fr); } }

/* ===== ご相談 ===== */
.contact { background: var(--c-main); color: #eef5ea; }
.contact .wave--top { background: var(--c-bg); }
.contact__inner { padding: 72px var(--gut) 96px; max-width: 760px; margin: 0 auto; text-align: center; }
.contact__title { font-family: var(--font-mincho); font-weight: 700; font-size: clamp(28px, 4vw, 44px); line-height: 1.5; color: #fff; margin: 8px 0 16px; }
.contact__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* ===== フッター ===== */
.footer { background: var(--c-dark); color: #dfe9d9; padding: 56px var(--gut) 28px; font-size: 15px; }
.footer__inner { display: grid; gap: 18px; max-width: 1320px; margin: 0 auto; }
.footer__logo { font-family: var(--font-mincho); font-weight: 700; font-size: 26px; color: #fff; letter-spacing: .1em; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; color: #fff; }
.footer__fiction { margin-top: 28px; text-align: center; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: auto 1fr auto; align-items: end; gap: 48px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
