@charset "utf-8";

/* ==================================================
   Design Tokens
================================================== */
:root{
  --text:#0f172a;
  --muted:#64748b;
  --line:rgba(15,23,42,.12);
  --bg:rgba(255,255,255,.88);
  --solid:#fff;

  --shadow-s:0 8px 22px rgba(15,23,42,.08);
  --shadow-m:0 12px 34px rgba(15,23,42,.12);

  --radius:14px;

  /* ★重要：JSで実測して上書きされるが、
     JSが入るまで/入らない場合も “隠れない” ように最低値を持つ */
  --header-h: 132px;
  --header-gap: 12px;
}

/* ★ブラウザのデフォ余白でズレるのを防ぐ */
html, body{
  margin: 0;
  padding: 0;
}

/* ページ内リンク対策 */
html{
  scroll-padding-top: calc(var(--header-h) + var(--header-gap));
}
[id]{
  scroll-margin-top: calc(var(--header-h) + var(--header-gap));
}

/* 固定ヘッダー分だけ本文を下げる */
body{
  padding-top: var(--header-h);
}

/* ==================================================
   Header (fixed)
================================================== */
.header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header_all{
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 26px 10px;
}

/* ==================================================
   Header Layout
================================================== */
.header_top{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.logo{
  display: flex;
  align-items: center;
  min-width: 0;
}
.logo a{ display: inline-flex; }
.logo img{
  height: clamp(46px, 3.8vw, 58px);
  width: auto;
  display: block;
  max-width: 100%;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.08));
}

.header_center{
  justify-self: center;
  min-width: 1px;
}

.header_right{
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ハンバーガーの枠（HTMLに合わせて保持） */
.header__inner{
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

/* ==================================================
   CTA Buttons
================================================== */
.cta{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--solid);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-s);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.cta:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-m);
}

.cta__icon{
  font-size: 16px;
  line-height: 1;
}
.cta__label{
  display: grid;
  line-height: 1.05;
}
.cta__sub{
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  opacity: .9;
}
.cta__main{
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .02em;
}

/* お問い合わせ */
.cta--contact{
  border: none;
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  box-shadow: 0 16px 44px rgba(14,165,233,.28);
}
.cta--contact .cta__main{ color:#fff; }

/* 電話 */
.cta--tel{
  background: rgba(255,255,255,.95);
}
.cta--tel .cta__main{
  font-weight: 800;
}

/* ==================================================
   Hamburger
================================================== */
.hamburger{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 38px;

  /* ★基本はヘッダー内（重なり事故を減らす） */
  position: static;

  z-index: 2000;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15,23,42,.06);
  cursor: pointer;
}

/* “メニュー”テキストは出さない */
.hamburger__text{ display:none; }

.hamburger__line{
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
  transition: transform .2s ease, background-color .2s ease;
}
.hamburger__line::before,
.hamburger__line::after{
  content:"";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
  transition: transform .2s ease, top .2s ease;
}
.hamburger__line::before{ top: -6px; }
.hamburger__line::after{ top: 6px; }

/* active：×に変形 */
.hamburger.-active .hamburger__line{
  background: transparent;
}
.hamburger.-active .hamburger__line::before{
  top: 0;
  transform: rotate(45deg);
}
.hamburger.-active .hamburger__line::after{
  top: 0;
  transform: rotate(-45deg);
}

/* ==================================================
   Drawer Nav
================================================== */
.header__nav-area{
  position: fixed;
  inset: 0;
  z-index: 1500;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;

  background: rgba(15,23,42,.35);
  display: grid;
  justify-content: end;

  transition: opacity .25s ease, visibility .25s ease;
}

.header__nav-area.-active{
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.global-navigation{
  width: min(360px, 86vw);
  height: 100%;
  background: #fff;
  border-left: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 20px 60px rgba(15,23,42,.20);
  padding: 84px 22px 26px;
}

.global-navigation__list{
  margin: 0;
  padding: 0;
  list-style: none;
}

.global-navigation__list > li{
  padding: 14px 0;
  border-bottom: 1px solid rgba(15,23,42,.08);
}

.global-navigation__link{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: #0f172a;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: opacity .15s ease;
}
.global-navigation__link:hover{ opacity: .75; }

/* ==================================================
   Secondary Navigation（2段目）
================================================== */
.menu_box_all{
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(15,23,42,.08);
}

.menu_box{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;

  list-style:none;
  margin: 0;
  padding: 0;
}

.menu_box li{ margin:0; padding:0; }

.menu_box a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:46px;
  padding:0 18px;
  border-radius: var(--radius);
  background: rgba(15,23,42,.04);
  color: var(--text);
  font-size:15px;
  font-weight:700;
  text-decoration:none;
  transition: background .15s ease, transform .15s ease;
}
.menu_box a:hover{
  background: rgba(15,23,42,.10);
  transform: translateY(-1px);
}

/* ==================================================
   Page Title
================================================== */
.page-title-text{
  max-width: 1160px;
  margin: clamp(18px, 3vw, 30px) auto 14px;
  padding: 0 clamp(14px, 3vw, 22px);
}

.page-title-text h2{
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3.4vw, 30px) clamp(14px, 3vw, 22px);
  margin: 0;
  font-size: clamp(22px, 3.2vw, 40px);
  font-weight: 900;
  letter-spacing: .08em;
  color: #0f172a;
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.86);
  box-shadow: 0 14px 34px rgba(2,6,23,.10);
  overflow: hidden;
  isolation: isolate;
}

.page-title-text h2::before{
  content:"";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 18% 28%, rgba(255,255,255,.80), rgba(255,255,255,0) 55%),
    linear-gradient(135deg, rgba(37,99,235,.22), rgba(34,197,94,.14));
  transform: rotate(-6deg);
  opacity: .95;
  z-index: 0;
}

.page-title-text h2::after{
  content:"";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 110px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #22c55e);
  opacity: .95;
  z-index: 1;
}

.page-title-text h2 > *{
  position: relative;
  z-index: 2;
}

/* ==================================================
   Footer
================================================== */
.footer_all{
  background:
    radial-gradient(1200px 260px at 50% 0%, rgba(14,165,233,.10), transparent 60%),
    linear-gradient(180deg, rgba(15,23,42,.02), rgba(15,23,42,.04));
  border-top: 1px solid rgba(15,23,42,.10);
  padding: 26px 0 18px;
}

.footer_inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.logo_footer{
  margin: 0;
  padding: 6px 0 10px;
}
.logo_footer img{
  height: 42px;
  width: auto;
  display:block;
  margin: 0 auto;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.06));
}

.contact_box{
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 10px;
  margin: 8px 0 10px;
}

.footer_cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 18px rgba(15,23,42,.08);
  color: #0f172a;
  text-decoration:none;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  white-space: nowrap;
}
.footer_cta:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(15,23,42,.12);
}

.footer_cta__icon{
  font-size: 17px;
  line-height: 1;
  opacity: .9;
}
.footer_cta__text{
  font-weight: 800;
  letter-spacing: .02em;
  font-size: 15px;
}

.footer_cta--contact{
  border: none;
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  box-shadow: 0 20px 56px rgba(14,165,233,.26);
}
.footer_cta--contact:hover{
  filter: brightness(1.02);
  box-shadow: 0 22px 58px rgba(14,165,233,.30);
}

.footer_links{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap: 10px 18px;
  margin: 8px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(15,23,42,.08);
}

.footer_links a{
  color: rgba(15,23,42,.70);
  font-weight: 700;
  text-decoration:none;
  position:relative;
  padding: 8px 0;
  font-size: 14px;
  transition: color .15s ease;
}

.footer_links a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-2px;
  width:0%;
  height:2px;
  background: rgba(14,165,233,.55);
  transition: width .18s ease;
}

.footer_links a:hover{ color: rgba(15,23,42,.92); }
.footer_links a:hover::after{ width:100%; }

.copyright{
  margin: 10px 0 0;
  padding-top: 10px;
  color: rgba(15,23,42,.92);
  font-size: 15px;
}

/* ==================================================
   Tablet
================================================== */
@media (min-width: 751px) and (max-width: 1024px){

  /* ★フォールバック（JSがあれば上書き） */
  :root{ --header-h: 160px; }

  .header_top{
    grid-template-columns: 1fr auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 12px;
  }

  .header_center{ display: none; }

  .logo{
    grid-column: 1 / 2;
    grid-row: 1;
  }
  .logo img{ height: 72px; }

  .header_right{ display: contents; }

  .cta--tel{
    grid-column: 2 / 3;
    grid-row: 1;
    height: 54px;
    padding: 0 18px;
  }
  .cta--tel .cta__main{
    font-size: 18px;
    font-weight: 900;
  }
  .cta--tel .cta__sub{ font-size: 12px; }

  .header__inner{
    grid-column: 3 / 4;
    grid-row: 1;
    justify-self: end;
  }
  .hamburger{
    width: 48px;
    height: 44px;
  }

  .cta--contact{
    grid-column: 1 / 4;
    grid-row: 2;
    width: 100%;
    justify-content: center;
    height: 58px;
  }
  .cta--contact .cta__main{
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .04em;
  }
}

/* ==================================================
   SP 
================================================== */
@media (max-width: 750px){

  /* ★フォールバック（JSがあれば上書き） */
  :root{ --header-h: 150px; }

  .header_all{
    padding: 12px 14px 12px;
  }

  .header_top{
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 10px;
  }

  .header_center{ display:none; }

  .logo{
    grid-column: 1 / 2;
    grid-row: 1;
    padding-right: 64px;
  }
  .logo img{
    height: 64px;
  }

  .header_right{ display: contents; }

  .cta--tel{ display: none !important; }

  .header__inner{
    grid-column: 2 / 3;
    grid-row: 1;
    justify-self: end;
  }
  .hamburger{
    width: 48px;
    height: 44px;
  }

  .cta--contact{
    grid-column: 1 / 3;
    grid-row: 2;
    width: 100%;
    justify-content: center;
    height: 56px;
  }

  .cta--contact .cta__sub{ display:none; }

  .cta--contact .cta__main{
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .04em;
  }

  .menu_box_all{
    margin-top: 12px;
    padding-top: 10px;
  }
  .menu_box a{
    height: 42px;
    padding: 0 14px;
    font-size: 14px;
  }

  .global-navigation{ padding-top: 78px; }

  .page-title-text{ margin: 14px auto 10px; }
  .page-title-text h2{ border-radius: 18px; }
  .page-title-text h2::after{
    bottom: 10px;
    width: 90px;
  }

  .footer_inner{
    max-width: 520px;
    padding: 0 14px;
  }
  .logo_footer img{ height: 40px; }

  .contact_box{
    display:grid;
    gap: 10px;
    margin: 10px 0 10px;
  }

  .footer_cta{
    width: 100%;
    height: 52px;
  }

  .footer_links{ gap: 6px 14px; }
  .footer_links a{ font-size: 14px; }
}

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

/* ==================================================
   FIX: fixedヘッダーでコンテンツが隠れる問題
================================================== */

:root{
  --safe-top: env(safe-area-inset-top, 0px);
}

body{
  padding-top: calc(var(--header-h) + var(--safe-top));
}

/* ヘッダー高を実態に合わせて少し増やす */
@media (max-width: 750px){
  :root{ --header-h: 170px; }
}
@media (min-width: 751px) and (max-width: 1024px){
  :root{ --header-h: 180px; }
}
/* ==================================================
   FIX: ハンバーガーがお問い合わせに被るのを防止
================================================== */
.header__inner{ display:inline-flex; align-items:center; justify-content:flex-end; }

.hamburger{
  position: static !important;
  top: auto !important;
  right: auto !important;
  margin-left: 10px;
  z-index: 2000;
}

@media (min-width: 751px) and (max-width: 1024px){
  .header_right{ gap: 12px; }
}
@media (max-width: 750px){
  .header_top{ align-items: center; }
}
/* CTA 全体 */
.footer_cta{
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 12px 16px;
  text-decoration: none;
}

/* SVGアイコン枠 */
.footer_cta__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* SVG本体 */
.footer_cta__icon svg{
  width: 22px;
  height: 22px;
  color: currentColor;
}

/* ホバー時 */
.footer_cta:hover .footer_cta__icon svg{
  transform: translateY(-1px);
  transition: transform .15s ease;
}

/* SP時  */
@media (max-width: 560px){
  .footer_cta__icon svg{
    width: 24px;
    height: 24px;
  }
}
/* CTAアイコン（SVG対応） */
.cta__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}

.cta__icon svg{
  width: 22px;
  height: 22px;
  color: currentColor;
}
@media (max-width: 560px){
  .cta__icon svg{
    width: 24px;
    height: 24px;
  }
}
@charset "utf-8";

/* ==================================================
   Footer
================================================== */
.footer_area{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(15,23,42,.08);
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.footer_area__title{
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .10em;
  color: rgba(15,23,42,.92);
}

.footer_area__lead{
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(15,23,42,.92);
}

/* 行ブロック */
.footer_area__rows{
  width: 100%;
  display: grid;
  gap: 6px;
  justify-content: center;
  text-align: left;
  padding-top: 2px;
}

/* 1行（PC/タブレット：2カラム） */
.footer_area__row{
  width: min(860px, 100%);
  display: grid;
  grid-template-columns: 84px 1fr;
  column-gap: 12px;
  align-items: baseline;
  padding: 4px 0;
}

/* 地域：テキスト＋小ドット */
.footer_area__region{
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;

  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  color: rgba(15,23,42,.78);
  white-space: nowrap;
}

.footer_area__region::before{
  content:"";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(34,197,94,.95), rgba(14,165,233,.95));
  box-shadow: 0 10px 22px rgba(14,165,233,.16);
}

/* 都道府県 */
.footer_area__list{
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  flex-wrap: wrap;
  gap: 0;
  row-gap: 4px;

  min-width: 0; /* ★grid内のはみ出し対策 */
}

.footer_area__list li{
  font-size: 12px;
  font-weight: 700;
  color: rgba(15,23,42,.60);
  line-height: 1.35;
  white-space: nowrap; /* 県名は途中で割らない */
}

/* 区切り（PC/タブレット） */
.footer_area__list li + li::before{
  content: "・";
  margin: 0 8px;
  color: rgba(15,23,42,.25);
}

.footer_area__note{
  margin: 8px 0 0;
  font-size: 11px;
  color: rgba(15,23,42,.92);
  line-height: 1.45;
  text-align: center;
}

/* ==================================================
   SP（崩れ対策：1カラム化＋見やすいチップ化）
================================================== */
@media (max-width: 750px){
  .footer_area{
    max-width: 560px;
    padding-left: 14px;
    padding-right: 14px;
  }

  /* ★2カラム固定をやめて縦並びにする（崩れの根本解決） */
  .footer_area__row{
    width: 100%;
    grid-template-columns: 1fr; /* ←重要 */
    column-gap: 0;
    align-items: start;

    padding: 10px 12px;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 12px;
    background: rgba(255,255,255,.72);
  }

  .footer_area__region{
    margin-bottom: 6px;
    font-size: 12px;
  }

  .footer_area__list{
    row-gap: 6px;
    gap: 6px 8px;
  }

  .footer_area__list li{
    line-height: 1.45;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,.06);
  }

  .footer_area__list li + li::before{
    content: none;
    margin: 0;
  }

  .footer_area__note{
    margin-top: 10px;
    font-size: 11px;
  }
}

