@charset "UTF-8";

/* ============================================================
   小出造園 専用見本
   配色：生成り（紙）× 墨 × 土の赭色。緑は写真の中だけに置く。
   本文18px基準（量産ライン 03_レビューゲート）
   ============================================================ */

:root {
  color-scheme: only light;

  --paper: #f6f3ec;
  --paper-deep: #ece7db;
  --ink: #1e1e1c;
  --ink-soft: #4c4740;
  --ink-thin: #6f6a60;
  --soil: #a5502f;
  --soil-deep: #833d22;
  --soil-pale: #f0e0d6;
  --gravel: #b9b5ac;
  --line: #ddd8cc;
  --white: #fffefb;

  --font-base:
    "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --measure: 42em;
  --gap: clamp(28px, 5vw, 56px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-base);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: var(--soil-deep);
}

h1,
h2,
h3 {
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 意味のかたまりを泣き別れさせない */
h1 span,
h2 span,
h3 span,
.hero__note span,
.calc__excluded-list span {
  display: inline-block;
}

/* ---------- 提案専用の注釈 ---------- */

.proposal-note {
  background: var(--ink);
  color: #f1ede4;
  padding: 14px clamp(16px, 4vw, 32px);
}

.proposal-note__line {
  max-width: 70em;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.7;
}

.proposal-note__line strong {
  font-weight: 700;
}

.proposal-note__line--sub {
  margin-top: 6px;
  color: #cfc8ba;
}

.proposal-note a {
  color: #f6cdb7;
}

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

.header {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header__bar {
  max-width: 70em;
  margin: 0 auto;
  padding: 18px clamp(16px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header__name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.header__place {
  margin-top: 2px;
  font-size: 15px;
  color: var(--ink-thin);
}

.header__contact {
  text-align: right;
}

.header__tel {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.header__tel-label {
  font-size: 15px;
  color: var(--ink-thin);
}

.header__tel-number {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header__tel-note {
  font-size: 15px;
  color: var(--soil);
  font-weight: 700;
}

.header__menu-button {
  display: none;
  font-family: inherit;
  font-size: 18px;
}

.nav {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}

.nav__list {
  max-width: 70em;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.nav__list a {
  display: block;
  padding: 14px 20px;
  font-size: 18px;
  text-decoration: none;
  color: var(--ink);
}

.nav__list a:hover,
.nav__list a:focus-visible {
  color: var(--soil-deep);
  background: var(--soil-pale);
}

/* ---------- 第一画面 ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: stretch;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.hero__media {
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: 50% 42%;
}

.hero__body {
  padding: clamp(28px, 4vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__eyebrow {
  font-size: 17px;
  font-weight: 700;
  color: var(--soil);
}

.hero__title {
  margin-top: 12px;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
}

.hero__lead {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 3px solid var(--ink);
  font-size: 20px;
  line-height: 1.9;
}

.hero__actions {
  margin-top: 28px;
}

.hero__note {
  margin-top: 14px;
  font-size: 17px;
  color: var(--ink-soft);
}

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

.button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 30px;
  border-radius: 4px;
  text-decoration: none;
  background: var(--soil);
  color: var(--white);
  box-shadow: 0 2px 0 var(--soil-deep);
}

.button:hover,
.button:focus-visible {
  background: var(--soil-deep);
}

.button__small {
  font-size: 15px;
}

.button__big {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.button--large .button__big {
  font-size: clamp(30px, 5vw, 40px);
}

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

.section__inner {
  max-width: 70em;
  margin: 0 auto;
  padding: var(--gap) clamp(16px, 4vw, 32px);
}

.section__eyebrow {
  font-size: 17px;
  font-weight: 700;
  color: var(--soil);
}

.section__title {
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 34px);
  font-weight: 700;
}

.section__lead {
  margin-top: 20px;
  max-width: var(--measure);
  color: var(--ink-soft);
}

/* ---------- 金額の決め方 ---------- */

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

.calc {
  margin-top: 28px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.calc__prompt {
  font-size: 18px;
  font-weight: 700;
}

.calc__factors {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}

.factor {
  width: 100%;
  height: 100%;
  padding: 16px;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.1s;
}

.factor:hover {
  border-color: var(--gravel);
}

.factor:active {
  transform: translateY(1px);
}

.factor[aria-pressed="true"] {
  background: var(--soil-pale);
  border-color: var(--soil);
}

.factor__name {
  display: block;
  font-size: 20px;
  font-weight: 700;
}

.factor__desc {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  color: var(--ink-thin);
}

.calc__bar-area {
  margin-top: 24px;
}

.calc__bar {
  position: relative;
  display: flex;
  height: 64px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  overflow: hidden;
}

.calc__seg {
  width: 0;
  transition: width 0.35s ease;
  background: var(--soil);
  border-right: 1px solid rgba(255, 255, 255, 0.55);
}

.calc__seg[data-seg="days"] {
  background: #b8663f;
}

.calc__seg[data-seg="machine"] {
  background: #c98055;
}

.calc__seg[data-seg="cost"] {
  background: #d9a07c;
}

.calc__bar-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--ink-thin);
  transition: opacity 0.2s;
}

.calc__bar.is-active .calc__bar-empty {
  opacity: 0;
}

.calc__result {
  margin-top: 12px;
  min-height: 1.8em;
  font-size: 18px;
  font-weight: 700;
  color: var(--soil-deep);
}

.calc__excluded {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed var(--gravel);
}

.calc__excluded-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-thin);
}

.calc__excluded-list {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.calc__excluded-list li {
  padding: 8px 16px;
  border: 2px solid var(--gravel);
  border-radius: 4px;
  color: var(--ink-thin);
  background: var(--paper);
}

.calc__excluded-list span {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.calc__reset {
  margin-top: 20px;
  padding: 10px 22px;
  font-family: inherit;
  font-size: 17px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 4px;
  cursor: pointer;
}

.calc__reset:hover {
  background: var(--paper-deep);
}

.calc__caution {
  margin-top: 20px;
  font-size: 15px;
  color: var(--ink-thin);
}

.quote {
  margin: 28px 0 0;
  padding: 24px clamp(20px, 3vw, 32px);
  background: var(--white);
  border-left: 6px solid var(--soil);
}

.quote p {
  font-size: 20px;
  line-height: 1.9;
}

/* ---------- できること ---------- */

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

.works__grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
  align-items: stretch;
}

.works__group {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.works__group-title {
  font-size: 22px;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--soil);
}

.works__list {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.works__list li {
  padding: 6px 14px;
  font-size: 18px;
  background: var(--paper-deep);
  border-radius: 3px;
}

.works__note {
  margin-top: auto;
  padding-top: 16px;
  font-size: 17px;
  color: var(--ink-soft);
}

/* ---------- 施工の様子 ---------- */

.gallery {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
}

.case {
  margin-top: 32px;
  padding: clamp(20px, 3vw, 28px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.case__title {
  font-size: 22px;
  font-weight: 700;
}

.case__steps {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}

.case__step-label {
  font-size: 17px;
  font-weight: 700;
  color: var(--soil-deep);
  margin-bottom: 8px;
}

.case__step img,
.case__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

.case__pair {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}

.case__figure {
  margin: 0;
}

.case__figure img {
  aspect-ratio: 3 / 4;
}

.case__figure--wide {
  max-width: 520px;
}

.case__figure--wide img {
  aspect-ratio: 3 / 4;
  object-position: 50% 45%;
}

.case__figure figcaption {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--soil-deep);
}

.case__text {
  margin-top: 18px;
  max-width: var(--measure);
  color: var(--ink-soft);
}

.gallery__note {
  margin-top: 28px;
  font-size: 15px;
  color: var(--ink-thin);
}

/* ---------- 対応エリア ---------- */

.area {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
}

.area__grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
  align-items: stretch;
}

.area__block {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.area__block--home {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.area__block-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--soil);
}

.area__block--home .area__block-title {
  color: #f6cdb7;
}

.area__main {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 700;
}

.area__sub {
  font-size: 17px;
  color: #cfc8ba;
}

.area__body {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 500;
}

/* ---------- ごあいさつ ---------- */

.greeting {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
}

.greeting__body {
  margin-top: 24px;
  max-width: var(--measure);
}

.greeting__body p {
  font-size: 20px;
  line-height: 2;
}

/* ---------- 最後の電話 ---------- */

.cta {
  background: var(--ink);
  color: var(--white);
  text-align: center;
}

.cta__title {
  font-size: clamp(28px, 4vw, 34px);
  font-weight: 700;
}

.cta__text {
  margin-top: 16px;
  font-size: 20px;
  color: #ded7c9;
}

.cta .button {
  margin-top: 26px;
}

.cta__note {
  margin-top: 18px;
  font-size: 17px;
  color: #b8b1a4;
}

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

.footer {
  background: var(--paper);
  padding-bottom: 130px;
}

.footer__line {
  font-size: 20px;
  font-weight: 700;
}

.footer__copy {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-thin);
}

.footer__note {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-thin);
}

/* ---------- スマホ固定の電話ボタン ---------- */

.sticky-tel {
  display: none;
}

/* ============================================================
   スマートフォン
   ============================================================ */

@media (max-width: 860px) {
  .header__bar {
    padding: 14px 16px;
  }

  .header__name {
    font-size: 24px;
  }

  .header__contact {
    display: none;
  }

  .header__menu-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 18px;
    background: var(--paper-deep);
    border: 2px solid var(--ink);
    border-radius: 4px;
    cursor: pointer;
  }

  .header__menu-bars {
    position: relative;
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
  }

  .header__menu-bars::before,
  .header__menu-bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--ink);
  }

  .header__menu-bars::before {
    top: -6px;
  }

  .header__menu-bars::after {
    top: 6px;
  }

  .header__menu-text {
    font-weight: 700;
  }

  .nav {
    display: none;
  }

  .nav.is-open {
    display: block;
  }

  .nav__list {
    display: block;
    padding: 0;
  }

  .nav__list li + li {
    border-top: 1px solid var(--line);
  }

  .nav__list a {
    padding: 15px 16px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__media img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .hero__lead {
    font-size: 19px;
  }

  .quote p,
  .greeting__body p,
  .area__body {
    font-size: 19px;
  }

  .calc__bar {
    height: 52px;
  }

  .sticky-tel {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 8px 12px 10px;
    background: rgba(30, 30, 28, 0.94);
  }

  .sticky-tel__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border-radius: 4px;
    background: var(--soil);
    color: var(--white);
    text-decoration: none;
  }

  .sticky-tel__label {
    font-size: 15px;
  }

  .sticky-tel__number {
    font-size: 20px;
    font-weight: 700;
  }
}

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

  .calc__seg {
    transition: none;
  }
}
