/* ============================================================
   THEME  —  サイトごとに変更する値
   新規サイト作成時はここだけ編集してください
============================================================ */
:root {
  /* Color */
  --color-main: #008751;
  --color-sub: #b8e1d1;
  --color-font: #000000;
  --color-bg: #ffffff;
  --color-gray: #ebebeb;
  --color-border: #e5e7eb;

  /* Font Family */
  --font-main: "Noto Sans JP", sans-serif;
}

/* ============================================================
   VARIABLES  —  テンプレート共通の構造値
   基本的に変更不要。スケールを調整したい場合のみ編集。
============================================================ */
:root {
  /* ============================
     Font Size
  ============================ */
  --fs-m: 1rem;

  /* ============================
     Font Weight
  ============================ */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;

  /* ============================
     Spacing
  ============================ */
  --space-s: clamp(0.5rem, 1.5vw, 1rem);
  --space-side: clamp(1.5rem, 5vw, 5rem);

  /* ============================
     Section Spacing
  ============================ */
  --section-m: 60px;
  --section-l: 80px;
  --section-l-end: var(--section-l);
  --band-top: var(--section-m);
  --band-bottom: var(--section-m);
}
@media (max-width: 767px) {
  :root {
    --section-m: 40px;
    --section-l: 50px;
    --section-l-end: 60px;
    --band-top: var(--section-l);
    --band-bottom: var(--section-l-end);
  }
}
:root {
  /* ============================
     Layout
  ============================ */
  --max-width: 1148px;
  --max-width-text: 760px; /* 本文・フォーム・表などの最大幅 */

  /* ============================
     Breakpoints（参照用・@media では直接記述）
     sp   : max-width  767px
     tab  : 768px  〜  1199px
     desk : 1200px 〜  （1920px以上含む）
  ============================ */
}

/* ============================
  Breakpoints
  sp   : ~ 767px
  tab  : 768px ~
  desk : 1200px ~
============================ */

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

html {
  font-family: var(--font-main);
  font-size: var(--fs-m);
  font-weight: var(--fw-regular);
  background: var(--color-bg);
  color: var(--color-font);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

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

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ページ全体の縦並びを支える */
main {
  flex: 1;
  width: 100%;
  padding-top: var(--header-height);
}

/* セクションが全幅背景を持ちつつ内側を制限したい場合 */
.section-inner {
  max-width: calc(var(--max-width) + var(--space-side) * 2);
  margin-inline: auto;
  padding-inline: var(--space-side);
}

/* ============================================================
   COMMON  —  セクション共通のパーツ
   セクション固有の差分は各コンポーネントの \3c style> で上書きする
============================================================ */

/* Base
========================== */
html {
  line-height: 1.875;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

@media (max-width: 767px) {
  body {
    font-size: 0.9375rem;
    line-height: 1.85;
  }
}

@media (min-width: 1440px) {
  body {
    font-size: 1.125rem;
  }
}

address {
  font-style: normal;
}

/* Section Body
========================== */
.sec-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.sec-title {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: var(--fw-medium);
  line-height: 1.67;
  text-align: center;
}

.sec-subtitle {
  font-size: 1.25rem;
  font-weight: var(--fw-medium);
  line-height: 2;
  text-align: center;
}

@media (max-width: 767px) {
  .sec-subtitle {
    font-size: 1.125rem;
  }
}

.text {
  width: 100%;
  max-width: var(--max-width-text);
}

.media {
  width: 100%;
  max-width: 856px;
}

/* Card Grid
========================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}
@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 272px);
    justify-content: center;
  }
}
@media (min-width: 1150px) {
  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 272px));
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card img {
  width: 100%;
  aspect-ratio: 272 / 180;
  object-fit: contain;
  object-position: center bottom;
}

@media (max-width: 767px) {
  .card img {
    width: 80%;
    margin-inline: auto;
  }
}

.card p {
  font-size: clamp(0.9375rem, 0.85rem + 0.3vw, 1.125rem);
  font-weight: var(--fw-medium);
  letter-spacing: 0.05em;
  line-height: 1.33;
  text-align: center;
}

/* Box Card
========================== */
@media (max-width: 767px) {
  .card-grid--box {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 768px) and (max-width: 1149px) {
  .card-grid--box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card-grid--box .card {
  gap: 0;
  padding: 23px 13px;
  background: var(--color-bg);
  border: 3px solid var(--color-main);
  border-radius: 21px;
}

.card-grid--box img {
  width: 100%;
  aspect-ratio: 240 / 147;
  object-fit: cover;
}

.card-grid--box h3 {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  color: var(--color-main);
  font-size: 1.25rem;
  font-weight: var(--fw-medium);
  line-height: 2;
}

:is(.card-grid--box h3)::before {
  content: "";
  flex-shrink: 0;
  width: 21px;
  height: 21px;
  background: var(--color-main);
}

@media (max-width: 767px) {
  .card-grid--box h3 {
    font-size: 1.125rem;
  }

  :is(.card-grid--box h3)::before {
    width: 0.9em;
    height: 0.9em;
  }
}

.card-grid--box p {
  text-align: left;
}

@media (max-width: 767px) {
  .card-grid--box p {
    line-height: 1.5;
  }
}

/* Reveal
========================== */
.js
  :is(
    .fv-visual,
    .sec-body > :not(.sec-body, .card-grid, .faq, .flow),
    :is(.card-grid, .faq) > *
  ) {
  opacity: 0;
  translate: 0 24px;
  transition:
    opacity 0.8s ease,
    translate 0.8s ease;
  transition-delay: var(--delay, 0s);
}
.is-shown:is(
  .js
    :is(
      .fv-visual,
      .sec-body > :not(.sec-body, .card-grid, .faq, .flow),
      :is(.card-grid, .faq) > *
    )
) {
  opacity: 1;
  translate: none;
}

.js .card-grid.card-grid--box > * {
  translate: none;
}

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

/* Line Break
   br-sp：SPだけ / br-tab：タブレット（768〜1199px）だけ / br-pc：タブレット以上
   「br-sp br-tab」のように併用できる
========================== */
.br-sp,
.br-tab {
  display: none;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .br-tab {
    display: inline;
  }
}

@media (max-width: 767px) {
  .br-sp {
    display: inline;
  }
  .br-pc {
    display: none;
  }
}

:root {
  --header-height: 60px;
}

@media (min-width: 768px) {
  :root {
    --header-height: 80px;
  }
}

/* ============================
   Header
============================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 200;
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition:
    transform 0.3s ease,
    background 0.3s;
}

/* メニューを開いている間はメニューと同じ白に */
.site-header.is-open {
  background: var(--color-bg);
}

@media (max-width: 767px) {
  .site-header {
    background: white;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.header-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: calc(var(--max-width) + var(--space-side) * 2);
  margin-inline: auto;
  padding-inline: var(--space-side);
  gap: var(--space-s);
}

/* ============================
   Logo
============================ */
.logo {
  font-size: 14px;
  font-weight: var(--fw-bold);
  line-height: 1.5;
  color: var(--color-font);
  text-decoration: none;
}
@media (min-width: 768px) {
  .logo {
    font-size: 22px;
  }
}

/* ============================
   Actions
============================ */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-tel,
.gnav-tel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 230px;
  padding: 10px 20px;
  background: var(--color-main);
  border: 2px solid var(--color-main);
  border-radius: 5px;
  color: #fff;
  font-size: 18px;
  font-weight: var(--fw-medium);
  line-height: 24px;
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s;
}

:is(.header-tel, .gnav-tel):hover {
  background: var(--color-bg);
  color: var(--color-main);
}

.header-tel {
  display: none;
  width: auto;
  padding: 5px 16px;
  font-size: 16px;
}

/* 受付時間 */
:is(.header-tel, .gnav-tel) small {
  font-size: 11px;
  font-weight: var(--fw-regular);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .header-tel {
    display: flex;
  }
}

/* ============================
   Hamburger
============================ */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  width: 40px;
  height: 32px;
  padding: 7px 4px;
  background: none;
  border: none;
  cursor: pointer;
}
@media (min-width: 768px) {
  .hamburger {
    width: 44px;
    height: 34px;
    padding: 6px;
  }
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--color-font);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  transform-origin: center;
}

.is-open .hamburger span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.is-open .hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.is-open .hamburger span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (min-width: 768px) {
  .is-open .hamburger span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
  }
  .is-open .hamburger span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
  }
}

/* ============================
   Gnav
============================ */
.gnav {
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  padding: 20px var(--space-side) 40px;
  background: var(--color-bg);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity 0.3s,
    transform 0.3s,
    visibility 0.3s;
}
@media (min-width: 768px) {
  .gnav {
    right: var(--space-side);
    width: 350px;
    padding: 20px 40px 40px;
  }
}

.is-open .gnav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gnav ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
  list-style: none;
}

@media (max-width: 767px) {
  .gnav ul {
    gap: 0;
  }
}

@media (max-width: 767px) {
  .gnav li {
    border-bottom: 1px dashed var(--color-border);
  }
}

.gnav ul a {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  color: var(--color-font);
  font-size: 0.9375rem;
  text-decoration: none;
}

@media (max-width: 767px) {
  .gnav ul a {
    height: auto;
    padding-block: 15px;
  }
}

@media (min-width: 768px) {
  .gnav ul a {
    height: auto;
    padding-block: 10px;
    font-size: 20px;
  }
}

:is(.gnav ul a)::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-font);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

@media (min-width: 1025px) {
  :is(.gnav ul a):hover::before {
    transform: scaleX(1);
  }
}

.gnav-tel {
  width: 100%;
  margin-top: 30px;
}

@media (min-width: 768px) {
  .gnav-tel {
    display: none;
  }
}

/* ============================
   Overlay
============================ */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 180;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
@media (max-width: 1024px) {
  .nav-overlay {
    background: rgba(0, 0, 0, 0.8);
  }
}
.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Section
========================== */
.section {
  margin-block: var(--section-l) var(--section-l-end);
}

.section--top-m {
  margin-top: var(--section-m);
}

/* Band
========================== */
.band {
  padding-block: var(--band-top) var(--band-bottom);
}

.band--gray {
  background: var(--color-gray);
}

.band > .section:first-child {
  margin-top: 0;
}

.band > .section:last-child {
  margin-bottom: 0;
}

/* Button
========================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 60px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-family: var(--font-main);
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.125rem);
  font-weight: var(--fw-medium);
  line-height: 24px;
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 10px;
  height: 18px;
  background: currentColor;
  mask: url("../images/icons/arrow-right.svg") center / contain no-repeat;
  translate: 0 -50%;
}

/* Variant */
.btn--primary {
  background: var(--color-main);
  border-color: var(--color-main);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-bg);
  color: var(--color-main);
}

.btn--outline {
  background: var(--color-bg);
  border-color: var(--color-main);
  color: var(--color-main);
}

.btn--outline:hover {
  background: var(--color-main);
  color: #fff;
}

/* Footer
========================== */
.footer {
  font-size: calc(1em - 2px);
  background: var(--color-gray);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-block: 40px;
}

@media (max-width: 767px) {
  .footer-inner {
    gap: 20px;
    padding-block: 30px;
  }
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 30px;
}

@media (max-width: 767px) {
  .footer-info {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }
}

@media (max-width: 767px) {
  .footer address {
    font-size: 0.875rem;
  }
}

.footer small {
  font-size: inherit;
}

/* Privacy Policy（プライバシーポリシーのページ）
========================== */
.policy {
  width: 100%;
  max-width: var(--max-width-text);
}

.policy h2 {
  margin-top: 40px;
  padding-left: 12px;
  border-left: 4px solid var(--color-main);
  font-size: 1.125rem;
  font-weight: var(--fw-bold);
  line-height: 1.6;
}

.policy h2 + * {
  margin-top: 10px;
}

.policy :is(p, ul) + :is(p, ul) {
  margin-top: 1em;
}

.policy ul {
  padding-left: 1.5em;
}

/* 長いURLが画面からはみ出さないように折り返す */
.policy a {
  overflow-wrap: anywhere;
}

.policy-date {
  margin-top: 40px !important;
  text-align: right;
}

.policy li + li {
  margin-top: 4px;
}

/* 「トップへ戻る」との間隔（共通の20pxに足して40pxにする） */
.policy + .actions {
  margin-top: 20px;
}

@media (max-width: 767px) {
  .policy h2 {
    margin-top: 32px;
    font-size: 1rem;
  }
}

/* Fixed Bottom（画面下に固定するエリア。今はSPの下部CTAバーのみ）
========================== */
.fixed-bottom {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 170;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  transition:
    opacity 0.2s,
    visibility 0.2s;
}

.fixed-bottom > * {
  pointer-events: auto;
}

.fixed-bottom.is-hidden {
  opacity: 0;
  visibility: hidden;
}

/* ChatPlus のボタン画像（以前置いていたチャットバナーと同じ大きさにする）
   ChatPlus が付ける指定より優先させるため !important を使う
========================== */
#chatplusview #eye_catcher {
  width: auto !important;
  height: auto !important;
}

#chatplusview #eye_catcher img {
  width: 180px !important;
  max-width: none !important;
  height: auto !important;
}

@media (max-width: 1440px) {
  #chatplusview #eye_catcher img {
    width: 150px !important;
  }
}

@media (max-width: 1024px) {
  #chatplusview #eye_catcher img {
    width: 140px !important;
  }
}

/* SPは下部CTAバーの上に置く */
@media (max-width: 767px) {
  #chatplusview #eye_catcher {
    right: 12px !important;
    bottom: calc(var(--cta-bar-height) + 12px) !important;
  }

  #chatplusview #eye_catcher img {
    width: 90px !important;
  }
}

/* フッターが見えている間は、閉じた状態の ChatPlus を隠す（開いているチャットは隠さない） */
#chatplusview {
  transition:
    opacity 0.3s,
    visibility 0.3s;
}

.is-footer-visible #chatplusview.closed {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* CTA Bar（SPのみ画面下に固定）
========================== */
.cta-bar {
  display: none;
}

@media (max-width: 767px) {
  :root {
    --cta-bar-height: 66px;
  }

  /* フッターの下に固定CTAバーの高さ分の余白を足して、最後まで読めるようにする */
  .footer-inner {
    padding-bottom: calc(var(--cta-bar-height) + 40px);
  }

  .cta-bar {
    align-self: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
  }

  .cta-bar .fv-btn {
    gap: 8px;
    width: auto;
    max-width: none;
    padding: 8px 10px;
    border-radius: 10px;
    box-shadow: none;
  }

  .cta-bar .fv-btn::after {
    display: none;
  }

  .cta-bar .fv-btn--tel {
    box-shadow: inset 0 0 0 2px var(--color-main);
  }

  .cta-bar .fv-btn-icon {
    width: 32px;
    height: 32px;
  }

  .cta-bar .fv-btn-icon svg {
    width: 18px;
    height: 18px;
  }

  .cta-bar .fv-btn-body {
    font-size: 0.9375rem;
  }

  .cta-bar .fv-btn-body small {
    font-size: 0.625rem;
  }
}

/* FV
========================== */
.fv {
  padding-bottom: calc(var(--header-height) / 2);
}

.fv-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(calc(100vh - var(--header-height) * 1.5), 700px);
  min-height: min(calc(100svh - var(--header-height) * 1.5), 700px);
  padding-block: 24px;
  border-radius: 16px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .fv-visual {
    border-radius: 25px;
  }
}
@media (max-width: 767px) {
  /* 画面下の固定CTAバーの分も引いて、FVの下の角丸と余白が見えるようにする */
  .fv-visual {
    min-height: calc(100vh - var(--header-height) * 1.5 - var(--cta-bar-height));
    min-height: calc(100svh - var(--header-height) * 1.5 - var(--cta-bar-height));
  }
}

.fv-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* すだちが画面の右側に来るように、切り抜く位置を左に寄せる */
  object-position: left center;
}

.fv-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  /* 両端20%で透明から黒へ（段階を細かく指定して境目を目立たせない） */
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.4) 20%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.4) 80%,
    rgba(0, 0, 0, 0.2) 100%
  );
}
@media (max-width: 767px) {
  .fv-visual::after {
    background: rgba(0, 0, 0, 0.5);
  }
}

.fv-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-inline: 5%;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}
@media (max-width: 767px) {
  .fv-content {
    gap: 12px;
    /* 左右に7%ずつ空けて、残りの幅いっぱいに広げる（幅 = 100% − 7% × 2） */
    width: 86%;
    margin: 0 7%;
    padding-inline: 0;
    text-align: left;
  }
}

/* iPhone SE（幅375px）以下は、文字を置ける幅を広げるため左右を5%に */
@media (max-width: 375px) {
  .fv-content {
    width: 90%;
    margin: 0 5%;
  }
}

.fv-title {
  font-size: clamp(1.375rem, 0.9rem + 1.6vw, 2.125rem);
  font-weight: var(--fw-bold);
  line-height: 1.41;
}

.fv-sub {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: var(--fw-medium);
  line-height: 1.67;
}
/* SPは本文と同じサイズ */
@media (max-width: 767px) {
  .fv-sub {
    font-size: inherit;
    line-height: 1.8;
  }
}

.fv-text {
  font-weight: var(--fw-medium);
  line-height: 1.8;
}

@media (max-width: 767px) {
  .fv-title {
    margin-bottom: 5px;
  }
}

.fv-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
}

.fv-points li {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 6px;
  color: var(--color-main);
  font-weight: var(--fw-bold);
  line-height: 1.5;
  text-shadow: none;
}

.actions.fv-actions {
  margin-top: 8px;
}

.fv-btn {
  justify-content: flex-start;
  gap: 16px;
  min-width: 330px;
  padding: 15px 52px 15px 24px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  text-align: left;
  text-shadow: none;
  transition:
    translate 0.2s,
    box-shadow 0.2s,
    filter 0.2s;
}
.fv-btn:hover {
  translate: 0 -3px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  filter: brightness(1.06);
}

.fv-btn--tel {
  background: #fff;
  color: var(--color-main);
}

.fv-btn--form {
  background: linear-gradient(135deg, #00a866, var(--color-main));
  color: #fff;
}

/* 丸い背景は span、絵柄は中の svg（svg に padding を付けるとブラウザによって絵柄が見切れるため） */
.fv-btn-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.fv-btn-icon svg {
  width: 26px;
  height: 26px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fv-btn--tel .fv-btn-icon {
  background: var(--color-sub);
}
.fv-btn--form .fv-btn-icon {
  background: rgba(255, 255, 255, 0.2);
}

.fv-btn-body {
  display: flex;
  flex-direction: column;
  font-size: 1.375rem;
  font-weight: var(--fw-bold);
  line-height: 1.3;
}

.fv-btn-body small {
  font-size: 0.8125rem;
  font-weight: var(--fw-medium);
  opacity: 0.85;
}

@media (max-width: 767px) {
  .actions.fv-actions {
    display: none;
  }

  .fv-btn {
    gap: 12px;
    width: 100%;
    max-width: 300px;
    min-width: 0;
    padding: 10px 44px 10px 16px;
  }

  .fv-btn-icon {
    width: 40px;
    height: 40px;
  }

  .fv-btn-icon svg {
    width: 20px;
    height: 20px;
  }

  .fv-btn-body {
    font-size: 1.125rem;
  }

  .fv-btn-body small {
    font-size: 0.6875rem;
  }
}

.fv-points li::before {
  content: "✓";
  margin-right: 0.4em;
}

@media (max-width: 767px) {
  .fv-points {
    flex-direction: column;
    align-items: flex-start;
  }

  .fv-points li {
    padding: 4px 10px;
    font-size: 0.875rem;
  }
}

/* Overview
========================== */
/* FV下の余白（ヘッダーの高さの半分）を差し引く */
#overview {
  margin-top: calc(var(--section-m) - var(--header-height) / 2);
}

#overview .sec-title {
  margin-bottom: 10px;
}

#overview .text {
  max-width: none;
}
@media (max-width: 767px) {
  #overview {
    margin-top: calc(var(--section-m) - 10px - var(--header-height) / 2);
  }
}

@media (min-width: 768px) {
  .match {
    grid-template-columns: repeat(3, minmax(0, 272px));
  }
}

@media (max-width: 767px) {
  .match {
    gap: 10px 15px;
  }

  /* 3枚目は2列の中央に置く */
  .match > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 7.5px);
  }
}

.match img {
  width: 100%;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Resources
========================== */
hgroup {
  text-align: center;
}
@media (max-width: 767px) {
  /* 見出し下の説明文は長いので、SPでは左揃え */
  hgroup p {
    margin-top: 5px;
    text-align: left;
  }
}

/* Citrus
========================== */
.citrus {
  width: 100%;
  margin-top: calc(var(--section-m) - 30px);
}

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

@media (min-width: 768px) {
  .citrus .card-grid {
    grid-template-columns: repeat(4, minmax(0, 272px));
  }
}

.citrus img {
  width: 100%;
}

@media (max-width: 767px) {
  /* 2列でも、3列だった頃と同じくらいの大きさにする */
  .citrus img {
    width: 62%;
    margin-inline: auto;
    aspect-ratio: 1 / 1;
  }
}

/* Flow
========================== */
.flow,
.flow-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap);
}

.flow {
  --gap: 30px;
  width: 100%;
  margin-top: 10px;
}

.flow-col {
  --gap: 20px;
}

.flow-col .flow-box {
  line-height: 1.6;
}

.flow > *,
.flow-col > *,
.flow-branch > * {
  position: relative;
}

.flow > :not(:last-child)::after,
.flow-col > :first-child::before,
.flow-col > :first-child::after,
.flow-branch::before,
.flow-branch > *::before,
.flow-branch > *::after {
  content: "";
  position: absolute;
  background: var(--color-main);
}

.flow > :not(:last-child)::after,
.flow-col > :first-child::before,
.flow-branch > *::before,
.flow-branch > *::after {
  left: 50%;
  width: 4px;
  translate: -50% 0;
}

.flow > :not(:last-child)::after {
  top: 100%;
  height: calc(var(--gap) + 3px);
}

/* Arrow
========================== */
.flow-col > :first-child::before {
  top: calc(100% + 3px);
  height: calc(var(--gap) - 4px);
}

.flow-col > :first-child::after {
  top: calc(100% + 3px + var(--gap) - 9px);
  left: 50%;
  width: 14px;
  height: 9px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  translate: -50% 0;
}

/* Box
========================== */
.flow-box {
  padding: 18px 40px;
  background: var(--color-bg);
  border: 3px solid var(--color-main);
  border-radius: 5px;
  color: var(--color-main);
  font-size: clamp(1rem, 0.75rem + 0.8vw, 1.5rem);
  font-weight: var(--fw-medium);
  line-height: 1.67;
  text-align: center;
}
.flow-box small {
  display: block;
  margin-bottom: 5px;
  font-size: clamp(0.8125rem, 0.7rem + 0.35vw, 1.125rem);
  line-height: 1.33;
  letter-spacing: 0.05em;
}
@media (max-width: 1024px) {
  .flow-box {
    padding: 14px 16px;
  }
}
@media (max-width: 767px) {
  .flow-box {
    font-size: 0.9375rem;
    line-height: 1.45;
  }
}

.flow-box--main {
  background: var(--color-main);
  color: #fff;
}

.flow-box--sub {
  background: var(--color-sub);
}

/* Branch
========================== */
@property --merge {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 50%;
}

.flow-branch {
  --col: calc((100% - 60px) / 4);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--col);
  column-gap: 20px;
  width: min(100%, 1100px);
  padding-block: 19px;
  background: linear-gradient(
      to right,
      var(--color-main) var(--merge),
      transparent var(--merge) calc(100% - var(--merge)),
      var(--color-main) calc(100% - var(--merge))
    )
    center bottom / calc(100% - var(--col) + 4px) 4px no-repeat;
}

.flow-branch::before {
  top: 0;
  left: calc(var(--col) / 2 - 2px);
  right: calc(var(--col) / 2 - 2px);
  height: 4px;
}

.flow-branch > *::before {
  bottom: 100%;
  height: 19px;
}

.flow-branch > *::after {
  top: 100%;
  height: 19px;
}

.flow-branch .flow-box {
  width: 100%;
  height: 100%;
  padding-inline: 10px;
}

@media (max-width: 767px) {
  .flow-branch {
    --col: calc((100% - 8px) / 2);
    grid-auto-flow: row;
    grid-template-columns: repeat(2, var(--col));
    gap: 12px 8px;
    padding: 12px 8px;
    background-image: none;
    border: 3px solid var(--color-main);
    border-radius: 10px;
  }

  .flow-branch .flow-box {
    padding-inline: 4px;
  }

  .flow-branch::before,
  .flow-branch > *::before,
  .flow-branch > *::after {
    display: none;
  }
}

/* Reveal
========================== */
.js .flow > :not(.flow-branch),
.js .flow-col > * {
  opacity: 0;
  translate: 0 16px;
  transition:
    opacity 0.4s ease,
    translate 0.4s ease;
  transition-delay: var(--t);
}

.js .flow-col > :first-child {
  transition-delay: calc(var(--t) + 0.45s);
}
.js .flow-col > :last-child {
  transition-delay: calc(var(--t) + 1.05s);
}

.js .flow > :not(:last-child)::after,
.js .flow-col > :first-child::before,
.js .flow-branch > *::before,
.js .flow-branch > *::after {
  scale: 1 0;
  transform-origin: top;
  transition: scale 0.15s linear;
}

.js .flow > :not(:last-child)::after {
  transition-duration: 0.3s;
  transition-delay: var(--line);
}
.js .flow-branch > *::before {
  transition-delay: calc(var(--t) + 0.3s);
}
.js .flow-col > :first-child::before {
  transition-delay: calc(var(--t) + 0.85s);
}
.js .flow-branch > *::after {
  transition-delay: calc(var(--t) + 1.45s);
}

.js .flow-branch::before {
  scale: 0 1;
  transition: scale 0.3s linear var(--t);
}

.js .flow-col > :first-child::after {
  opacity: 0;
  transition: opacity 0.1s calc(var(--t) + 1s);
}

.js .flow-branch {
  --merge: 0%;
  transition: --merge 0.3s linear calc(var(--t) + 1.6s);
}

/* Reveal: shown */
.js .flow.is-shown > *,
.js .flow.is-shown .flow-col > * {
  opacity: 1;
  translate: none;
}

.js .flow.is-shown > :not(:last-child)::after,
.js
  .flow.is-shown
  :is(.flow-branch, .flow-branch > *, .flow-col > :first-child)::before,
.js .flow.is-shown .flow-branch > *::after {
  scale: 1 1;
}

.js .flow.is-shown .flow-col > :first-child::after {
  opacity: 1;
}

.js .flow.is-shown .flow-branch {
  --merge: 50%;
}

/* About
========================== */
/* もっと見る（JSが動く環境だけ折りたたむ） */
.more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

/* 閉じているときは続きの冒頭だけを見せ、下に向かって薄く消す */
.js .more:not(.is-open) {
  max-height: 6em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
}

.more-btn {
  display: none;
}

/* ───── もっと見る ───── のように、文字の両側に線を引く */
.js .more-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: var(--max-width-text);
  padding: 0;
  background: none;
  border: none;
  color: var(--color-main);
  font: inherit;
  font-weight: var(--fw-medium);
  white-space: nowrap;
  cursor: pointer;
}

.js .more-btn::before,
.js .more-btn::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
}

.js .more-btn:hover {
  opacity: 0.7;
}

/* 事務局の概要（表） */
.info-table {
  width: 100%;
  max-width: var(--max-width-text);
  margin-top: 10px;
  border: 1px solid var(--color-main);
}

.info-table > div {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}

/* 行の区切り線（左の列は白、右の列はメインカラー） */
.info-table > div + div dt {
  border-top: 1px solid #fff;
}

.info-table > div + div dd {
  border-top: 1px solid var(--color-main);
}

.info-table dt,
.info-table dd {
  display: flex;
  align-items: center;
  padding: 16px 20px;
}

.info-table dt {
  justify-content: center;
  text-align: center;
  background: var(--color-main);
  color: #fff;
  font-weight: var(--fw-medium);
}

@media (max-width: 767px) {
  .info-table > div {
    grid-template-columns: 1fr;
  }

  .info-table dt {
    padding: 8px 12px;
  }

  .info-table dd {
    justify-content: center;
    padding: 12px;
    text-align: center;
  }
}

/* FAQ
========================== */
.faq {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 10px;
}

.faq-item {
  padding: 20px 40px;
  background: var(--color-bg);
  border: 3px solid var(--color-main);
  border-radius: 20px;
}

@media (max-width: 767px) {
  .faq-item {
    padding: 16px 20px;
    border-radius: 12px;
  }
}

.faq-item :is(summary, p) {
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  font-weight: var(--fw-medium);
  line-height: 2;
}
@media (max-width: 767px) {
  .faq-item :is(summary, p) {
    font-size: inherit;
    line-height: inherit;
  }
}

/* 開閉（details / summary） */
.faq-item summary {
  position: relative;
  padding-right: 44px;
  color: var(--color-main);
  list-style: none;
  cursor: pointer;
}
@media (max-width: 767px) {
  .faq-item summary {
    position: relative;
    padding-right: 30px;
    color: var(--color-main);
    list-style: none;
    cursor: pointer;
  }
}
.faq-item summary::-webkit-details-marker {
  display: none;
}

/* ○の中に＋ / − のアイコン（::before が円、::after が＋−） */
.faq-item summary::before,
.faq-item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  translate: 0 -50%;
}
.faq-item summary::before {
  border: 2px solid currentColor;
}
.faq-item summary::after {
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat;
  transition: background-size 0.3s;
}
.faq-item[open] summary::after {
  background-size:
    12px 2px,
    2px 0;
}

@media (max-width: 767px) {
  .faq-item summary::before,
  .faq-item summary::after {
    width: 24px;
    height: 24px;
  }
}

.faq-item p {
  margin-top: 5px;
}

/* 対応ブラウザでは開閉をなめらかに */
.faq-item {
  interpolate-size: allow-keywords;
}
.faq-item::details-content {
  height: 0;
  overflow: hidden;
  transition:
    height 0.3s ease,
    content-visibility 0.3s allow-discrete;
}
.faq-item[open]::details-content {
  height: auto;
}

.faq + .actions {
  margin-top: 10px;
}

/* Contact
========================== */
#contact {
  margin-bottom: var(--section-m);
}

.contact-note {
  display: block;
  margin-top: 8px;
  font-size: inherit;
}

/* Form
========================== */
.form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: var(--max-width-text);
  margin-top: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

@media (max-width: 767px) {
  .form-row:not(.form-row--name) {
    grid-template-columns: 1fr;
  }

  .form-row--name {
    gap: 12px;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: none;
}

.form-field :where(input:not([type="checkbox"]), select, textarea) {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  background: var(--color-bg);
  border: 2px solid var(--color-main);
  border-radius: 5px;
  font: inherit;
  font-size: 1rem;
  color: inherit;
}

:is(
  .form-field :where(input:not([type="checkbox"]), select, textarea)
):focus {
  outline: none;
}

/* 入力欄の中の右端に単位を表示（メールの単位は input の name に入れている） */
.form-unit {
  position: relative;
  display: block;
}

.form-unit > span {
  position: absolute;
  top: 50%;
  right: 15px;
  translate: 0 -50%;
  color: inherit;
  white-space: nowrap;
  pointer-events: none;
}

.form-field .form-unit input {
  padding-right: 5em;
}

.form-field select {
  appearance: none;
  background: var(--color-bg) url("../images/icons/arrow-down.svg") right 15px center /
    14px no-repeat;
  cursor: pointer;
}

.form-field textarea {
  height: 250px;
  padding-block: 10px;
  resize: vertical;
}

/* Checkbox
========================== */
.form-field legend {
  margin-bottom: 5px;
}
@media (max-width: 767px) {
  .form-field legend {
    margin-bottom: 7px;
  }
}
.form-hint {
  font-size: inherit;
}
@media (max-width: 767px) {
  .form-hint {
    font-size: 0.8125rem;
  }
}

.form-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.form-check input {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  appearance: none;
  background: var(--color-bg);
  border: 2px solid var(--color-main);
  border-radius: 5px;
  cursor: pointer;
}

.form-agree {
  margin: 15px 0;
}

:is(.form-check input):checked {
  background: var(--color-main)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M1 6l5 5 9-10' fill='none' stroke='%23fff' stroke-width='2.5'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

:is(.form-check input):focus-visible {
  outline: 2px solid var(--color-main);
  outline-offset: 2px;
}

.form-note {
  margin-top: 5px;
  color: #c0392b;
  font-size: 0.875rem;
}

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-req {
  margin-left: 0.2em;
  color: #d93025;
}

/* Thanks
========================== */
#thanks .text,
#not-found .text {
  max-width: 720px;
  text-align: center;
}

@media (max-width: 767px) {
  #thanks .text {
    text-align: left;
  }
}
