@charset "UTF-8";
/* ------------------------------------------------------------------
   ケイ緑化有限会社（No.107）刷新案（B案）
   様式：ナチュラル×人柄。生成りの紙に深緑と土の色。
   設計理由：現行サイトの緑を引き継ぎつつ、「小回り」と「職人の半生」という
            この会社にしかない材料を主役にする。
   配色2案：若葉（初期＝現行の緑を引き継ぐ）／藍
------------------------------------------------------------------ */

:root {
  color-scheme: only light;
  --base: #f7f4ec;
  --paper: #fffdf7;
  --ink: #33302a;
  --deep: #1c5a38;
  --leaf: #4e9958;
  --soil: #8a6d3b;
  --line: #d9d2c0;
  --tint: #edf3ea;
}

html[data-theme="ai"] {
  --deep: #2c4a66;
  --leaf: #5b87a8;
  --tint: #eaf0f3;
}

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

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

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic Pro", Meiryo, sans-serif;
  font-size: 18px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--base);
}

h1,
h2,
h3,
h4,
.side-copy,
.person-name {
  font-family: "Shippori Mincho", "Hiragino Mincho Pro", serif;
  font-weight: 600;
  line-height: 1.5;
}

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

/* 日本語の泣き別れ保護（語のまとまりの中では折り返さない） */
.nw {
  display: inline-block;
  white-space: nowrap;
}

/* ---- 注釈 ---- */
.note {
  background: #fdf9ee;
  border: 1px solid #9c8f77;
  color: #4f3a14;
  font-size: 14px;
  line-height: 1.7;
  padding: 10px 14px;
  margin: 10px;
}

.note strong {
  font-weight: 700;
}

/* ---- 左サイドバー（PC） ---- */
.side {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.side-in {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  position: relative;
}

.side-logo {
  flex: 0 1 auto;
}

.side-logo img {
  width: 230px;
}

.side-copy {
  display: none;
}

.menu-btn {
  margin-left: auto;
  font-size: 16px;
  font-weight: 700;
  color: var(--deep);
  background: #fff;
  border: 1px solid var(--deep);
  border-radius: 4px;
  padding: 10px 16px;
  cursor: pointer;
}

/* スマホのメニューは「固定パネル」にしない（ヘッダー直下の全幅ドロップダウン） */
.nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 2px solid var(--deep);
  z-index: 60;
}

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

.nav ul {
  list-style: none;
  padding: 6px 10px 12px;
}

.nav li a {
  display: block;
  padding: 12px 10px;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px dotted var(--line);
}

.side-tel {
  display: none;
}

.theme {
  display: none;
}

/* ---- 本文の器 ---- */
.sec-in,
.hero-in {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ---- ヒーロー ---- */
.hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-in {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 420px;
  padding-top: 34px;
  padding-bottom: 30px;
}

.hero-lead {
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--soil);
}

.hero-title {
  font-size: 44px;
  color: var(--deep);
  letter-spacing: 0.06em;
}

.hero-sub {
  font-size: 18px;
  max-width: 34em;
}

.hero-area {
  font-size: 14px;
  color: #6b6455;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn-tel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--deep);
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 6px;
}

.btn-tel span {
  font-size: 14px;
  font-weight: 500;
}

.btn-tel.big {
  font-size: 30px;
  padding: 16px 30px;
}

.btn-line {
  display: inline-flex;
  align-items: center;
  color: var(--deep);
  background: #fff;
  border: 1px solid var(--deep);
  border-radius: 6px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 20px;
}

/* ---- 剪定ギミック ---- */
.hero-art {
  align-self: center;
  text-align: center;
}

.prune {
  width: 250px;
  max-width: 70vw;
}

.p-trunk {
  stroke: var(--soil);
  stroke-width: 7;
  stroke-linecap: round;
}

.p-ground {
  stroke: var(--line);
  stroke-width: 3;
  stroke-linecap: round;
}

.p-ball {
  fill: var(--leaf);
  opacity: 0.92;
}

.b2 {
  fill: var(--deep);
  opacity: 0.85;
}

.b4 {
  opacity: 0.75;
}

.p-stray path {
  stroke: var(--leaf);
  stroke-width: 4;
  stroke-linecap: round;
}

.p-stray circle {
  fill: var(--leaf);
}

.p-stray {
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
  transform-origin: center;
}

.prune.is-pruned .p-stray {
  opacity: 0;
  transform: translateY(14px) rotate(4deg);
}

.hero-note {
  font-family: "Shippori Mincho", serif;
  font-size: 15px;
  letter-spacing: 0.24em;
  color: var(--soil);
  margin-top: 4px;
}

/* ---- セクション共通 ---- */
.sec {
  padding: 54px 0 60px;
}

.sec-tint {
  background: var(--tint);
}

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

.sec-title {
  font-size: 30px;
  color: var(--deep);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sec-title .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--soil);
  border-radius: 50%;
  color: var(--soil);
  font-size: 18px;
  flex: none;
}

.sec-lead {
  margin-bottom: 22px;
}

/* ---- できること ---- */
.svc {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.svc li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 12px;
}

/* 元画像(184×170)は下60pxが文字入りの帯。写真部分(上110px)だけを見せる */
.svc li img {
  width: 100%;
  aspect-ratio: 184 / 110;
  object-fit: cover;
  object-position: top;
}

.svc li h3 {
  font-size: 19px;
  color: var(--deep);
  margin-top: 10px;
  padding: 0 8px;
}

.svc-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: var(--deep) !important;
  border-color: var(--deep) !important;
  padding: 18px 12px !important;
}

.svc-text h3 {
  color: #fff !important;
  margin-top: 0 !important;
}

.svc-text p {
  color: #fff;
  font-size: 15px;
}

/* ---- 料金 ---- */
.price {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.price-card img {
  margin: 0 auto 10px;
}

.price-card p {
  font-size: 16px;
}

.price-note {
  margin-top: 16px;
  font-weight: 700;
}

.draft-note {
  font-size: 14px;
  color: #6b6455;
  margin-top: 6px;
}

.why {
  margin-top: 30px;
  background: #fff;
  border-left: 5px solid var(--leaf);
  border-radius: 0 8px 8px 0;
  padding: 16px 18px;
}

.why h3 {
  font-size: 20px;
  color: var(--deep);
  margin-bottom: 6px;
}

.why p {
  font-size: 16px;
}

/* ---- 施工の記録 ---- */
.works {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.works-slot {
  border: 2px dashed var(--line);
  border-radius: 8px;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8d8674;
  font-size: 15px;
  background: var(--paper);
  text-align: center;
  padding: 10px;
}

.public {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}

.public img {
  width: 220px;
  flex: none;
  border-radius: 6px;
}

.public p {
  font-size: 16px;
}

/* ---- 職人紹介 ---- */
.person-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.person-head img {
  width: 110px;
  border-radius: 8px;
  flex: none;
}

.person-role {
  font-size: 14px;
  color: var(--soil);
}

.person-name {
  font-size: 30px;
  color: var(--deep);
}

.person-quote {
  font-family: "Shippori Mincho", serif;
  font-size: 20px;
  line-height: 2;
  color: var(--deep);
  border-left: 5px solid var(--soil);
  padding: 6px 0 6px 18px;
  margin-bottom: 12px;
}

.person-text {
  font-size: 16px;
  margin-bottom: 30px;
}

.story h3 {
  font-size: 24px;
  color: var(--deep);
  margin-bottom: 4px;
}

.story-list {
  list-style: none;
  border-left: 3px solid var(--line);
  margin-left: 8px;
  padding-left: 24px;
  display: grid;
  gap: 18px;
}

.story-list li {
  position: relative;
}

.story-list li::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 10px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--leaf);
  border: 2px solid var(--paper);
}

.story-list li:last-child::before {
  background: var(--soil);
}

.story-list h4 {
  font-size: 19px;
  color: var(--deep);
}

.story-list p {
  font-size: 16px;
}

/* ---- 会社案内 ---- */
.company {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: start;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
}

.company-table th,
.company-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  font-size: 16px;
}

.company-table th {
  width: 9.5em;
  background: var(--tint);
  font-weight: 700;
  white-space: nowrap;
}

.company-map iframe {
  width: 100%;
  height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.company-map-note {
  font-size: 14px;
  color: #6b6455;
  margin-top: 6px;
}

/* ---- お問い合わせ ---- */
.contact-tel {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.contact-fax {
  font-size: 16px;
}

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  max-width: 640px;
}

.form dt {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.form dt em {
  color: #c0392b;
  font-style: normal;
}

.form dd {
  margin-bottom: 14px;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  font-size: 16px;
  font-family: inherit;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.form-btn {
  text-align: center;
}

.form-btn button {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: var(--deep);
  border: none;
  border-radius: 6px;
  padding: 14px 40px;
  cursor: pointer;
}

/* ---- フッター ---- */
.foot {
  background: var(--deep);
  color: #fff;
  text-align: center;
  padding: 30px 16px 26px;
}

.foot-name {
  font-family: "Shippori Mincho", serif;
  font-size: 22px;
  margin-bottom: 4px;
}

.foot-addr {
  font-size: 14px;
  margin-bottom: 10px;
}

.foot-copy {
  font-size: 12.5px;
  opacity: 0.8;
}

/* ---- スマホの電話バー ---- */
.telbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 8px 10px;
  background: rgba(255, 253, 247, 0.96);
  border-top: 1px solid var(--line);
}

.telbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border-radius: 6px;
  background: var(--deep);
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
}

.telbar a span {
  font-size: 14px;
  font-weight: 500;
}

body {
  padding-bottom: 78px; /* 電話バーのぶん */
}

/* ================================================================
   PC（1100px以上）：左固定サイドバー構成
================================================================ */
@media screen and (min-width: 1100px) {
  body {
    padding-bottom: 0;
  }

  .telbar {
    display: none;
  }

  .note-top {
    margin-left: 300px;
  }

  .note-bottom {
    margin: 10px;
  }

  .side {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px;
    border-right: 1px solid var(--line);
    border-bottom: none;
    overflow-y: auto;
    z-index: 50;
  }

  .side-in {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 26px 22px;
  }

  .side-logo img {
    width: 100%;
  }

  .side-copy {
    display: block;
    writing-mode: vertical-rl;
    font-size: 26px;
    letter-spacing: 0.28em;
    color: var(--deep);
    margin: 8px auto 4px;
    height: 250px; /* 「庭木一本から。」7文字が折り返さない高さ */
  }

  .menu-btn {
    display: none;
  }

  .nav {
    display: block;
    position: static;
    border-bottom: none;
    background: none;
  }

  .nav ul {
    padding: 0;
  }

  .nav li a {
    font-size: 16px;
    padding: 9px 4px;
  }

  .side-tel {
    display: block;
    border-top: 1px solid var(--line);
    padding-top: 14px;
  }

  .side-tel-label {
    font-size: 13px;
    color: var(--soil);
  }

  .side-tel-num a {
    font-size: 23px;
    font-weight: 700;
    color: var(--deep);
    text-decoration: none;
    pointer-events: none;
  }

  .side-tel-area {
    font-size: 12.5px;
    color: #6b6455;
    margin-top: 4px;
  }

  .theme {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .theme-label {
    font-size: 13px;
    color: #6b6455;
  }

  .theme-btn {
    font-size: 14px;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    cursor: pointer;
  }

  .theme-btn.is-on {
    background: var(--deep);
    border-color: var(--deep);
    color: #fff;
  }

  .main {
    margin-left: 290px;
  }

  .hero-in {
    flex-direction: row;
    align-items: center;
    gap: 40px;
    min-height: 480px;
    max-width: 980px;
  }

  .hero-text {
    flex: 1;
  }

  .hero-art {
    flex: none;
  }

  .prune {
    width: 300px;
  }

  .sec-in {
    max-width: 980px;
  }
}

/* ================================================================
   スマホ（700px以下）：段組みをたたむ
================================================================ */
@media screen and (max-width: 700px) {
  .hero-title {
    font-size: 34px;
  }

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

  .price {
    grid-template-columns: 1fr;
  }

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

  .public {
    flex-direction: column;
    align-items: flex-start;
  }

  .public img {
    width: 100%;
  }

  .company {
    grid-template-columns: 1fr;
  }

  .company-table th {
    width: 7.5em;
    white-space: normal;
  }

  .btn-tel.big {
    font-size: 24px;
    padding: 14px 22px;
  }

  .sec {
    padding: 40px 0 46px;
  }

  .sec-title {
    font-size: 25px;
  }
}
