@charset "UTF-8";

/* ============================================================
   楽輝株式会社（ラクテル）専用見本
   配色はロゴの実測値：深緑 #006B4E ／ 黄緑 #6FB92C ／ 黄 #FFD800
   ============================================================ */

:root {
  /* ブラウザの自動ダークモードで配色が反転しないように固定する */
  color-scheme: only light;

  --green-deep: #006b4e;
  --green-deeper: #00543d;
  --green: #6fb92c;
  --green-pale: #eef6e6;
  --yellow: #ffd800;
  --ink: #16241e;
  --ink-soft: #435049;
  --line: #d8e0da;
  --paper: #ffffff;
  --mist: #f3f7f4;

  --fs-note: 15px;
  --fs-small: 16px;
  --fs-body: 18px;
  --fs-lead: 20px;
  --fs-h3: 24px;
  --fs-h2: 32px;
  --fs-h1: 40px;

  --wrap: 1120px;
  --wrap-narrow: 760px;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

/* なめらかスクロールは使わない。
   端末や設定によって途中で止まり、見出しがヘッダーに隠れた位置で
   止まることがあるため、位置を計算して一度で移動させる（script.js） */
html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP",
    "Meiryo", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--green-deep);
}
p {
  margin: 0 0 1.2em;
}
p:last-child {
  margin-bottom: 0;
}

.nw {
  display: inline-block;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}
.wrap--narrow {
  max-width: var(--wrap-narrow);
}

/* ---------- 提案専用の注釈 ---------- */
.notice {
  background: #23312a;
  color: #eef2ef;
  padding: 14px 20px;
  font-size: var(--fs-note);
  line-height: 1.7;
}
.notice p {
  margin: 0 auto;
  max-width: var(--wrap);
}
.notice__sub {
  margin-top: 6px;
  color: #c8d4cc;
}
.notice a {
  color: #ffe873;
}

/* ---------- ヘッダー ---------- */
.head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
}
.head__bar {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand__mark {
  width: auto;
  height: 40px;
}
.brand__name {
  display: none;
}

.head__tel {
  text-decoration: none;
  color: var(--ink);
  display: block;
  text-align: right;
}
.head__tel-label {
  display: block;
  font-size: var(--fs-note);
  color: var(--ink-soft);
}
.head__tel-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--green-deep);
  letter-spacing: 0.01em;
}
.head__tel-time {
  display: block;
  font-size: var(--fs-note);
  color: var(--ink-soft);
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--green-deep);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: var(--fs-body);
  font-family: inherit;
  cursor: pointer;
}
.menu-btn__icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}
.menu-btn__icon i {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
}

.navi {
  border-top: 1px solid var(--line);
  background: var(--mist);
}
.navi ul {
  max-width: var(--wrap);
  /* ul の初期の上下余白（18px）を消す。
     残すと下側の余白が .navi の外へはみ出し、
     メニューとヒーロー写真の間に白い帯が出る */
  margin: 0 auto;
  padding: 0 20px;
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.navi a {
  display: block;
  padding: 12px 18px;
  font-size: var(--fs-body);
  text-decoration: none;
  color: var(--ink);
}
.navi a:hover {
  color: var(--green-deep);
  background: #e6efe8;
}

/* ---------- ヒーロー ---------- */
/* 高さは固定にせず min-height にする。
   固定にすると、縦の短い画面や文字を大きくした環境で
   中身があふれて次のセクションに重なる */
.hero {
  position: relative;
  padding: 0;
  min-height: clamp(280px, 46vw, 520px);
  display: grid;
  background: var(--green-deeper);
}
.hero__photo {
  position: absolute;
  inset: 0;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  opacity: 0.62;
}
.hero__box {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 32, 20, 0.55);
}
.hero__eyebrow {
  margin: 0 0 10px;
  font-size: var(--fs-body);
  letter-spacing: 0.08em;
  color: var(--yellow);
  font-weight: 700;
}
.hero__title {
  margin: 0 0 14px;
  font-size: clamp(28px, 5vw, var(--fs-h1));
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.hero__lead {
  margin: 0 0 20px;
  font-size: var(--fs-lead);
  max-width: 30em;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 14px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: var(--fs-body);
  font-weight: 700;
  border: 2px solid transparent;
  text-shadow: none;
}
/* 黄色の地に白文字は読めないため、電話ボタンの文字色は
   セクション側の a{color:#fff} より強く指定して固定する */
.btn.btn--tel,
.btn.btn--tel:hover,
.btn.btn--tel:visited {
  background: var(--yellow);
  color: #23311a;
}
.btn--tel:hover {
  background: #ffe23f;
}
.btn__label {
  font-size: var(--fs-small);
  font-weight: 700;
}
.btn__num {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.btn__time {
  font-size: var(--fs-note);
  font-weight: 400;
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.24);
}
.btn--wide {
  width: 100%;
  max-width: 420px;
  margin-top: 8px;
}
.btn--big {
  /* inline-flex のままだと margin:auto が効かないので flex にして中央へ置く */
  display: flex;
  width: 100%;
  max-width: 480px;
  margin: 0 auto 32px;
  padding: 20px 26px;
}
.btn--submit {
  width: 100%;
  background: var(--green-deep);
  color: #fff;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  padding: 16px;
}
.btn--submit:hover {
  background: var(--green-deeper);
}

/* ---------- セクション共通 ---------- */
section {
  padding: 64px 0;
}
/* メニューから飛んだとき、見出しが固定ヘッダーの下に隠れないようにする。
   --head-h は script.js がヘッダーの実寸から入れる */
section[id],
#top {
  scroll-margin-top: calc(var(--head-h, 120px) + 12px);
}
.sec-title {
  margin: 0 0 20px;
  font-size: var(--fs-h2);
  line-height: 1.35;
}
.sec-title__ja {
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 4px solid var(--green);
}
.sec-title--light {
  color: #fff;
}
.sec-title--light .sec-title__ja {
  border-bottom-color: var(--yellow);
}
.sec-lead {
  font-size: var(--fs-lead);
  margin-bottom: 32px;
}
.sec-lead--light {
  color: #eaf2ec;
}
.sec-note {
  margin-top: 24px;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

/* ---------- ごあいさつ ---------- */
.greeting {
  background: var(--mist);
}
.greeting__sign {
  text-align: right;
  font-weight: 700;
}

/* ---------- できること ---------- */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.card {
  display: flex;
  flex-direction: column;
}
.card__img {
  overflow: hidden;
  border-radius: var(--radius);
}
.card__img img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.card__title {
  margin: 14px 0 8px;
  font-size: var(--fs-h3);
  line-height: 1.4;
  border-left: 6px solid var(--green);
  padding-left: 10px;
}
.card p {
  font-size: var(--fs-body);
}

/* ---------- お見積りの決まり方 ---------- */
.estimate {
  background: var(--green-deep);
  color: #fff;
}
.estimate a {
  color: #fff;
}

.gauge {
  background: var(--paper);
  color: var(--ink);
  border-radius: 10px;
  padding: 28px 24px 32px;
}
.gauge__q {
  font-size: var(--fs-lead);
  font-weight: 700;
  margin-bottom: 14px;
}
.gauge__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}
.gauge__tab {
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.4;
  padding: 14px 10px;
  background: var(--mist);
  color: var(--ink-soft);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.gauge__tab span {
  display: block;
  font-size: var(--fs-note);
  font-weight: 400;
}
.gauge__tab:hover {
  border-color: var(--green);
}
.gauge__tab.is-on {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #fff;
}

.factors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.factor {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
}
.factor__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.factor__no {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-small);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.factor__title {
  margin: 0;
  font-size: var(--fs-h3);
  line-height: 1.4;
}
.factor__val {
  margin: 0 0 10px;
  font-size: var(--fs-lead);
  font-weight: 700;
  color: var(--green-deep);
}
.factor__bar {
  height: 14px;
  background: var(--green-pale);
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 10px;
}
.factor__fill {
  display: block;
  height: 100%;
  width: 33%;
  background: var(--green);
  border-radius: 7px;
  transition: width 0.45s ease;
}
.factor__note {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

.gauge__summary {
  margin: 24px 0 0;
  padding: 16px 18px;
  background: var(--green-pale);
  border-left: 6px solid var(--green);
  font-size: var(--fs-body);
  font-weight: 700;
}

.estimate__msg {
  margin-top: 36px;
}
.estimate__lead {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: 12px;
}
.estimate__free {
  font-size: var(--fs-lead);
}

/* ---------- 道具と機械 ---------- */
.machine {
  background: var(--mist);
}
.machines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.machine-item h3 {
  margin: 14px 0 6px;
  font-size: var(--fs-h3);
  line-height: 1.4;
}
.machine-item p {
  font-size: var(--fs-body);
}
.machine-item__img img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- こんなときに ---------- */
.case__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.case__col {
  border-top: 5px solid var(--green-deep);
  padding-top: 16px;
}
.case__title {
  margin: 0 0 12px;
  font-size: var(--fs-h3);
  line-height: 1.4;
}
.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ticks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: var(--fs-body);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 12px;
  height: 6px;
  border-left: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  transform: rotate(-45deg);
}
.case__note {
  margin-top: 28px;
  font-size: var(--fs-body);
  color: var(--ink-soft);
}

/* ---------- 会社概要 ---------- */
.company {
  background: var(--mist);
}
.company__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px;
  align-items: stretch;
}
/* 左の列（写真＋地図）を右の列と同じ高さにし、
   余った高さを地図が受け持つことで、両列の下端をそろえる */
.company__side {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.company__photo img {
  width: 100%;
  border-radius: var(--radius);
}
.company__map {
  position: relative;
  flex: 1 1 auto;
  min-height: 260px;
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #dde5e0;
}
.company__map iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.company__maplink {
  margin-top: 10px;
  font-size: var(--fs-small);
}
.company__table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.company__table th,
.company__table td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  font-size: var(--fs-body);
  vertical-align: top;
}
.company__table th {
  width: 8.5em;
  background: var(--green-pale);
  font-weight: 700;
}
.company__area {
  margin-top: 16px;
  font-size: var(--fs-body);
}

/* ---------- お問い合わせ ---------- */
.contact {
  background: var(--green-deeper);
  color: #fff;
  padding-top: 0;
}
.contact a {
  color: #fff;
}
.contact__band img {
  width: 100%;
  height: clamp(120px, 18vw, 200px);
  object-fit: cover;
  opacity: 0.5;
}
.contact .wrap {
  padding-top: 56px;
}
.contact__lead {
  font-size: var(--fs-lead);
  margin-bottom: 24px;
}

.form {
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 24px;
}
.form__note {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  background: var(--mist);
  padding: 12px 14px;
  border-radius: var(--radius);
}
.form__row {
  margin-bottom: 18px;
}
.form__row label {
  display: block;
  font-weight: 700;
  font-size: var(--fs-body);
  margin-bottom: 6px;
}
.req {
  display: inline-block;
  margin-left: 8px;
  font-size: var(--fs-note);
  font-weight: 400;
  background: var(--green-deep);
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  font-family: inherit;
  font-size: var(--fs-body);
  line-height: 1.6;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 3px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green-deep);
}
.form__done {
  margin-top: 16px;
  padding: 14px;
  background: var(--green-pale);
  border-left: 6px solid var(--green);
  font-size: var(--fs-body);
}

/* ---------- フッター ---------- */
.foot {
  background: #16241e;
  color: #dfe7e2;
  padding: 40px 0 110px;
  font-size: var(--fs-small);
}
.foot a {
  color: #ffe873;
}
.foot__brand {
  margin-bottom: 14px;
}
.foot__brand img {
  height: 44px;
  width: auto;
  background: #fff;
  padding: 8px 12px;
  border-radius: var(--radius);
}
.foot__line {
  font-size: var(--fs-body);
}
.foot__copy {
  font-size: var(--fs-note);
  color: #a8b6ae;
}
.foot__notice {
  font-size: var(--fs-note);
  color: #a8b6ae;
  line-height: 1.7;
}

/* ---------- 下部固定バー・先頭へ ---------- */
.fixbar {
  display: none;
}
.totop {
  position: fixed;
  right: 14px;
  bottom: 90px;
  z-index: 40;
  background: rgba(0, 107, 78, 0.94);
  color: #fff;
  text-decoration: none;
  font-size: var(--fs-note);
  line-height: 1.3;
  text-align: center;
  padding: 10px 10px;
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}
.totop.is-on {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   タブレット以下
   ============================================================ */
@media (max-width: 900px) {
  .cards,
  .machines,
  .case__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .company__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  /* 1列に折り返したら、そろえる相手がいないので地図は固定の高さに戻す */
  .company__map {
    flex: 0 0 auto;
    height: 320px;
  }
  .factors {
    grid-template-columns: minmax(0, 1fr);
  }
  .head__tel-num {
    font-size: 24px;
  }
}

/* ============================================================
   スマートフォン
   ============================================================ */
@media (max-width: 767px) {
  :root {
    --fs-h2: 26px;
    --fs-h1: 30px;
    --fs-h3: 21px;
    --fs-lead: 19px;
  }

  section {
    padding: 44px 0;
  }

  .head__bar {
    padding: 10px 16px;
    gap: 10px;
  }
  .brand__mark {
    height: 32px;
  }
  .head__contact {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }

  /* メニューはヘッダー直下に重ねて出す（position:fixed は使わない）。
     項目が画面に収まらない小さな端末では、
     いちばん下の項目が下部の電話バーに隠れないよう中でスクロールさせる */
  .navi {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 55;
    max-height: calc(
      100vh - var(--head-h, 70px) - 76px
    ); /* JSが開くたびに実測値で上書きする */
    overflow-y: auto;
    border-top: 1px solid var(--line);
    box-shadow: 0 10px 20px rgba(0, 32, 20, 0.18);
  }
  .navi.is-open {
    display: block;
  }
  .navi ul {
    display: block;
    padding: 0;
  }
  .navi li + li {
    border-top: 1px solid var(--line);
  }
  .navi a {
    padding: 14px 20px;
  }

  .hero {
    min-height: 0;
    display: block;
  }
  .hero__photo {
    position: static;
  }
  .hero__photo img {
    height: 400px;
  }
  .hero__box {
    position: static;
    background: var(--green-deeper);
    text-shadow: none;
    padding: 24px 20px 28px;
  }
  .hero__actions .btn {
    width: 100%;
  }

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

  .gauge {
    padding: 20px 16px 24px;
  }
  .gauge__tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .company__table th {
    width: 6.5em;
  }

  .btn--big {
    padding: 18px 16px;
  }
  .btn__num {
    font-size: 24px;
  }

  .foot {
    padding-bottom: 100px;
  }

  .fixbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1px;
    background: #0d1a14;
  }
  .fixbar a {
    text-decoration: none;
    text-align: center;
    padding: 10px 6px;
  }
  .fixbar__tel {
    background: var(--yellow);
    color: #23311a;
  }
  .fixbar__label {
    display: block;
    font-size: var(--fs-note);
    font-weight: 700;
  }
  .fixbar__num {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
  }
  .fixbar__form {
    background: var(--green-deep);
    color: #fff;
    font-size: var(--fs-body);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .totop {
    bottom: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .factor__fill {
    transition: none;
  }
}
