@charset "UTF-8";

/* ===== Design Tokens ===== */
:root {
  --color-main: #2E8B8B;      /* 青緑 */
  --color-fv-green: #1F9678;  /* FV背景の緑（支給カーブ画像と同色） */
  --color-fv-light: #6ACAB2;  /* カーブ画像の薄緑 */
  --color-dark: #1F5E5E;      /* 藍緑 */
  --color-accent: #E8883A;    /* CTA暖色 */
  --color-accent-dark: #d9761f;
  --color-base: #FAFAF7;      /* オフホワイト */
  --color-text: #2A2A2A;      /* 墨黒 */
  --color-white: #ffffff;

  --font-base: "Noto Sans JP", system-ui, sans-serif;
  --header-h: 64px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-base);
  -webkit-font-smoothing: antialiased;
}
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
h1 { margin: 0; }
img { max-width: 100%; height: auto; display: block; }

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ===== Utility ===== */
.pc-only { display: none; }
.sp-only { display: inline; }
@media (min-width: 768px) {
  .pc-only { display: inline; }
  .sp-only { display: none; }
}

/* ===== Layout commons ===== */
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 720px; }
.section { padding: 72px 0; }
.section--light { background: #eef4f3; }
.section--dark { background: var(--color-dark); color: #eef7f6; }
.works.section--dark {
  background: url("../assets/img/bg_polygon.webp") center / cover no-repeat #35BCAA;
  background-blend-mode: multiply;
}
@media (min-width: 768px) { .section { padding: 104px 0; } }

.section__eyebrow {
  text-align: center;
  color: var(--color-main);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  margin: 0 0 8px;
}
.section--dark .section__eyebrow { color: #7fd3cd; }
.section__title {
  text-align: center;
  font-size: clamp(1.4rem, 4.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 16px;
  color: var(--color-dark);
}
.section--dark .section__title { color: #ffffff; }
.section__lead {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
  color: #4a4a4a;
}
.section--dark .section__lead { color: #cfe6e3; }

/* 見出し類：文字単位の中途改行を防ぎ、<wbr>の位置でのみ折り返す */
.reason-item__title,
.work-card__title,
.flow__title,
.contact__title {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* reveal（GSAPで発火。JSなし/失敗時も見えるようフォールバックあり） */
.reveal { opacity: 0; transform: translateY(28px); }
.no-anim .reveal { opacity: 1; transform: none; }

.empathy .section__title { line-height: 1.9; }

/* 強調（大きく＋文字の直上に点） */
.em-dots {
  font-style: normal;
  line-height: 1;
  font-size: 1.35em;
  color: var(--color-fv-green);
  position: relative;
  display: inline-block;
}
.em-dots::before {
  content: "";
  position: absolute;
  top: -0.16em;
  left: 50%;
  transform: translateX(-50%);
  width: 0.15em;
  height: 0.15em;
  border-radius: 50%;
  background: currentColor;
}

/* ===== 共感（曇り空テクスチャ×緑オーバーレイ） ===== */
.empathy {
  background:
    linear-gradient(rgba(200, 232, 220, 0.55), rgba(200, 232, 220, 0.55)),
    url("../assets/img/bg_fuan.jpg") center / cover no-repeat;
}

.empathy__list { max-width: 640px; margin: 0 auto; display: grid; gap: 12px; }
.empathy__item {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff; border-radius: 12px; padding: 16px 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04); font-weight: 500;
}
.empathy__icon {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--color-fv-green); color: #fff; font-weight: 700;
  display: grid; place-items: center; font-size: 0.9rem; margin-top: 2px;
}
.empathy__illust {
  width: min(340px, 82%);
  height: auto;
  margin: 4px auto 0;
  display: block;
}
@media (min-width: 768px) {
  .empathy__illust { width: 420px; }
}

/* V字で区切った下の回答ボックス */
.empathy {
  position: relative;
  z-index: 1;
  /* 下端中央がV字に尖る */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 42px), 50% 100%, 0 calc(100% - 42px));
  padding-bottom: calc(72px + 42px);
}
.empathy-note {
  background: linear-gradient(90deg, #E3F2EC 0%, #F4F3E6 55%, #FBEBDA 100%); /* お客様の声と同じグラデ */
  /* V字の切り欠きの下に潜り込ませて、V字の背景色を揃える */
  margin-top: -44px;
  padding: calc(44px + 18px) 0 40px;
}
@media (min-width: 768px) {
  .empathy {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 96px), 50% 100%, 0 calc(100% - 96px));
    padding-bottom: calc(104px + 96px);
  }
  .empathy-note {
    margin-top: -98px;
    padding-top: calc(98px + 18px);
  }
}
.empathy-note__box {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  line-height: 2;
}
/* 「まごころ塗装は」の吹き出し */
.empathy-note__balloon {
  position: relative;
  display: inline-block;
  left: -72px; /* 中央より少し左に配置 */
  margin: 0 auto 2px;
}
.empathy-note__balloon img {
  width: 190px;
  height: auto;
  display: block;
}
/* 3つの強調ポイント（縦積み・大きく） */
.empathy-note__points {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.empathy-note__points strong {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--color-dark);
  border-bottom: 3px solid #ffd9a8;
}
.empathy-note__points strong::before {
  content: "✓";
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.empathy-note__closing { margin: 0; word-break: keep-all; overflow-wrap: anywhere; }
@media (min-width: 768px) {
  .empathy-note__points strong { font-size: 1.8rem; }
  .empathy-note__box {
    max-width: 920px;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 56px;
    align-items: center;
    justify-content: center;
  }
  .empathy-note__points strong { white-space: nowrap; }
  .empathy-note__balloon,
  .empathy-note__points,
  .empathy-note__closing { grid-column: 1; }
  .empathy-note__box .empathy__illust {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: center;
    margin: 0;
  }
}

/* ===== 選ばれる理由（幾何学模様の背景） ===== */
.reasons {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #FFFFFF 0%, #DDF0E7 100%); /* 白→緑の横グラデ */
}
.reasons .container { position: relative; z-index: 1; }
.reasons .section__title {
  display: table;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--color-fv-green);
  margin-bottom: 40px;
}
.reasons__grid { display: grid; gap: 56px; }

/* SP: 大きな薄緑ナンバー＋端付き写真＋重なる白カード */
.reason-item__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.reason-item__no {
  font-size: 5.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-fv-light);
}
.reason-item__title {
  margin: 0;
  font-size: 1.15rem;
  color: var(--color-dark);
}
.reason-item__photo { position: relative; }
.reason-item__photo img {
  width: 92%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  margin-left: -20px; /* 画面左端にくっつける */
}
.reason-item__text {
  position: relative;
  z-index: 1;
  background: var(--color-white);
  box-shadow: 0 6px 24px rgba(31,94,94,0.12);
  border-radius: 8px;
  padding: 20px 22px;
  margin: -56px 0 0 auto;
  width: 86%;
  font-size: 0.95rem;
}
.reason-item__text strong { color: var(--color-main); }
/* 偶数（02）: 写真は右端、カードは左寄せ */
.reason-item--rev .reason-item__photo img { margin-left: auto; margin-right: -20px; }
.reason-item--rev .reason-item__text { margin: -56px auto 0 0; }

@media (min-width: 768px) {
  .reasons__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .reason-item__no { font-size: 4.6rem; }
  .reason-item__title { font-size: 1.15rem; }
  .reason-item__photo img,
  .reason-item--rev .reason-item__photo img {
    width: 100%;
    margin: 0;
    border-radius: 12px;
  }
  .reason-item__text,
  .reason-item--rev .reason-item__text {
    width: 90%;
    margin: -40px auto 0;
  }
}

/* ===== 施工事例カード ===== */
/* 見出し：白い四角＋濃緑文字 */
.works-title {
  display: table;
  margin: 0 auto 40px;
  background: var(--color-white);
  padding: 10px 40px;
  font-size: clamp(1.7rem, 5.5vw, 2.5rem);
}
.section--dark .works-title { color: #35BCAA; }

.works__grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .works__grid { grid-template-columns: repeat(3, 1fr); } }
.work-card {
  background: var(--color-white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  color: var(--color-text);
}
.work-card__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.work-card__body { padding: 18px 20px 22px; }
.work-card__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--color-dark);
}
.work-card__text { margin: 0; font-size: 0.9rem; }

/* ===== 施工の流れ（矢印で繋ぐフロー） ===== */
.flow.section--light {
  background: linear-gradient(90deg, #FFFFFF 0%, #DDF0E7 100%); /* 3つの理由と同じ */
}
.flow__list { max-width: 640px; margin: 0 auto; display: grid; gap: 30px; counter-reset: none; }
.flow__item {
  position: relative;
  display: flex; gap: 18px; background: #fff; border-radius: 12px; padding: 20px;
  align-items: flex-start;
  border: 1px solid #dcebe7;
  box-shadow: 0 3px 12px rgba(31, 94, 94, 0.07);
}
/* ボックス間の下向き矢印 */
.flow__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -24px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 16px solid var(--color-fv-green);
}
.flow__title { margin: 0 0 4px; font-size: 1.1rem; color: var(--color-dark); display: flex; align-items: center; gap: 10px; }
.flow__free { background: var(--color-accent); color: #fff; font-size: 0.7rem; padding: 2px 10px; border-radius: 999px; font-weight: 700; white-space: nowrap; flex: 0 0 auto; }
.flow__text { margin: 0; font-size: 0.9rem; }
.flow__body { flex: 1 1 auto; }
.flow__icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #E3F2EC;
  display: grid;
  place-items: center;
  align-self: center;
}

/* ===== お客様の声（緑→クリーム→ペールオレンジのグラデ） ===== */
.voices {
  background: linear-gradient(90deg, #E3F2EC 0%, #F4F3E6 55%, #FBEBDA 100%);
}
.voices .section__title {
  display: table;
  margin: 0 auto 40px;
  background: var(--color-white);
  padding: 10px 40px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.voices__grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .voices__grid { grid-template-columns: repeat(3, 1fr); } }
.voice { margin: 0; background: #fff; border-radius: 16px; padding: 28px 24px; box-shadow: 0 4px 16px rgba(0,0,0,0.05); }
.voice__text { margin: 0 0 12px; font-weight: 500; }
.voice__cite { font-size: 0.82rem; color: #888; font-style: normal; }

/* ===== FAQ ===== */
.faq__list { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid #e5efed; border-radius: 12px; padding: 4px 20px; }
.faq__q { cursor: pointer; font-weight: 700; font-size: 0.95rem; color: var(--color-dark); padding: 16px 28px 16px 0; position: relative; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "＋"; position: absolute; right: 0; top: 14px; color: var(--color-main); font-size: 1.2rem; transition: transform 0.3s; }
.faq__item[open] .faq__q::after { content: "－"; }
.faq__a { margin: 0 0 16px; color: #555; font-size: 0.95rem; }

/* ===== 最終CTA ===== */
.section--cta {
  background: #35BCAA;
  color: #fff;
}
.contact__title {
  text-align: center;
  font-size: clamp(1.4rem, 4.5vw, 2.1rem);
  margin: 0 0 16px;
  display: table;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--color-white);
}
.contact__lead { text-align: center; max-width: 620px; margin: 0 auto 20px; color: #eafaf7; }
.contact__form { background: #fff; border-radius: 20px; padding: 28px 22px; box-shadow: 0 16px 40px rgba(0,0,0,0.25); }
@media (min-width: 768px) { .contact__form { padding: 40px; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; color: var(--color-dark); margin-bottom: 6px; font-size: 0.9rem; }
.field input, .field textarea {
  width: 100%; border: 1px solid #cdd8d4; border-radius: 10px; padding: 13px 14px;
  font-family: inherit; font-size: 16px; color: var(--color-text); background: #fafcfb;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--color-main); border-color: transparent; }
.btn--block { width: 100%; justify-content: center; margin-top: 6px; white-space: nowrap; padding-left: 14px; padding-right: 14px; font-size: 1rem; }
.contact__note { text-align: center; font-size: 0.82rem; color: #666; margin: 14px 0 0; }
.contact__demo-note { text-align: center; font-size: 0.9rem; font-weight: 700; color: var(--color-accent-dark); margin: 14px 0 0; }

/* ===== Footer ===== */
.footer { background: #14282a; color: #b9d3cf; text-align: center; padding: 40px 0 96px; }
@media (min-width: 768px) { .footer { padding-bottom: 40px; } }
.footer__logo { font-weight: 700; font-size: 1.2rem; color: #fff; margin: 0 0 8px; }
.footer__logo span { color: var(--color-main); }
.footer__meta { margin: 0 0 16px; font-size: 0.85rem; }
.footer__copy { margin: 0; font-size: 0.75rem; color: #6f8b87; }

/* ===== SP: 画面下部追従CTA（フル幅・角丸なし） ===== */
.fixed-cta {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 90; background: var(--color-accent); color: #fff; font-weight: 700;
  padding: 17px 16px; text-align: center;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
  font-size: 1rem;
  opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
}
.fixed-cta.is-visible { opacity: 1; visibility: visible; }
@media (min-width: 768px) { .fixed-cta { display: none; } }

/* ===== PC: 画面右側追従CTA（縦型・左側のみ角丸） ===== */
.side-cta {
  display: none;
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
  padding: 28px 14px;
  border-radius: 12px 0 0 12px;
  box-shadow: -4px 4px 16px rgba(0,0,0,0.18);
  transition: background 0.25s, padding-right 0.25s;
}
.side-cta:hover { background: var(--color-accent-dark); padding-right: 20px; }
@media (min-width: 768px) { .side-cta { display: block; } }

/* ===== Header ===== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  z-index: 100;
}
.header__inner {
  max-width: 1120px;
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.header__logo-mark { display: block; flex: 0 0 auto; }
.header__logo-text { font-size: 18px; letter-spacing: 0.04em; }
/* ハンバーガー（SPのみ） */
.menu-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0;
}
.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  transition: transform 0.3s, opacity 0.3s;
}
.menu-btn.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* グローバルナビ */
.gnav { display: none; }
.gnav.is-open {
  display: block;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  z-index: 99;
}
.gnav.is-open .gnav__list { display: block; padding: 8px 0; }
.gnav.is-open .gnav__link {
  display: block;
  padding: 14px 24px;
  font-weight: 500;
  border-bottom: 1px solid #eef4f3;
}
@media (min-width: 768px) {
  .menu-btn { display: none; }
  .gnav { display: block; }
  .gnav__list { display: flex; gap: 4px; }
  .gnav__link {
    display: block;
    padding: 8px 12px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-dark);
    transition: color 0.2s;
  }
  .gnav__link:hover { color: var(--color-main); }
}

/* ===== First View =====
   SP: 緑ベタ背景＋アーチ切り抜き写真＋テキスト帯オーバーレイ＋白丸バッジ＋CTA
   PC: 後日デザイン予定。暫定でセンタリング表示 */
/* FVは支給画像1枚＋CTA画像ボタンで構成 */
.fv {
  position: relative;
  padding-top: var(--header-h);
}
.fv__img {
  width: 100%;
  display: block;
}
.fv__cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4.5%;
  z-index: 2;
  display: flex;
  justify-content: center;
}
.fv__cta-btn { display: block; transition: transform 0.25s var(--ease-out), filter 0.25s; }
.fv__cta-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.fv__cta-btn img { display: block; width: min(335px, 78vw); height: auto; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Button ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  will-change: transform;
}
.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
}
.btn--primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
}
.btn__arrow { font-size: 0.7em; }

/* ===== Trust Badges（白丸） ===== */
.fv__badges {
  display: flex;
  justify-content: center;
  gap: 14px;
}
.badge {
  flex: 0 0 auto;
  width: 102px;
  height: 102px;
  border-radius: 50%;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.badge__num {
  display: block;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.1;
  color: var(--color-fv-green);
}
.badge__num--text { font-size: 1.02rem; }
.badge__unit { font-size: 0.65em; margin-left: 1px; }
.badge__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-fv-green);
  letter-spacing: 0.05em;
}
@media (min-width: 768px) {
  .fv__badges { gap: 20px; }
  .badge { width: 118px; height: 118px; }
}

/* ===== Scroll cue ===== */
.fv__scroll { display: none; }
@media (min-width: 768px) {
  .fv__scroll {
    display: block;
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }
}
.fv__scroll-line {
  display: block;
  width: 1px;
  height: 46px;
  background: rgba(255,255,255,0.6);
  position: relative;
  overflow: hidden;
}
.fv__scroll-line::after {
  content: "";
  position: absolute;
  top: -46px; left: 0;
  width: 100%; height: 46px;
  background: var(--color-white);
  animation: scrollMove 1.8s var(--ease-out) infinite;
}
@keyframes scrollMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(92px); }
}
