/* =========================
   Tokens / Base
========================= */
:root{
  --bg-gray: #7b7b7b;
  --overlay-gray: #7b7b7b;

  --text: #222;
  --muted: #666;
  --line: #dcdcdc;
  --white: #fff;

  --orange: #f2a11a;
  --orange-dark: #db8f10;

  --green: #2f7a3d;
  --green-dark: #256433;

  --blue: #39b6e6;
  --blue-dark: #239bc8;

  --container: 980px;
  --radius-pill: 999px;

  /* 固定ヘッダーの高さ（デザイン上の想定値）
     ※実高さが変わるなら main.js で計測して CSS変数更新がおすすめ */
  --header-h: 0px;

  --shadow-soft: 0 6px 16px rgba(0,0,0,.10);
  --shadow-fab: 0 10px 22px rgba(0,0,0,.18);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.75;
}

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

a{ color: inherit; text-decoration: none; }
a:focus-visible, label:focus-visible, button:focus-visible{
  outline: 2px solid #000;
  outline-offset: 2px;
}

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

/* キーボードの「本文へ」 */
.skip-link{
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  background: #fff;
  color: #000;
  border: 2px solid #000;
  border-radius: 10px;
  transform: translateY(-140%);
  transition: transform .2s ease;
  z-index: 10050;
}
.skip-link:focus{ transform: translateY(0); }

/* Layout container */
.l-container{
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

/* アンカーのズレ対策（固定ヘッダーでも見出しが隠れない） */
[id]{ scroll-margin-top: var(--header-h); }

/* トップアンカーだけは余白を作らない */
#top{
  scroll-margin-top: 0;
}


/* =========================
   Header (Fixed)
========================= */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  background: var(--bg-gray);
  color: #fff;
}

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

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo{ width: 34px; height: 34px; object-fit: contain; }

.brand-text{
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 16px;
}

/* Hamburger (open) */
.hamburger{
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: inline-grid;
  align-content: center;
  justify-items: end;
  gap: 6px;
  padding: 8px;
  user-select: none;
}
.hamburger span{
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* nav strip */
.global-nav{
  border-top: 1px solid rgba(255,255,255,.25);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.nav-list{
  margin: 0;
  padding: 10px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-list li{
  flex: 1;
  text-align: center;
  position: relative;
}

.nav-list li + li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  width: 1px;
  height: 60%;
  background: rgba(255,255,255,.25);
}

.nav-list a{
  display: block;
  padding: 6px 0;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 16px;
}

/* =========================
   Hero
========================= */
.hero-inner{ display: block; }
.hero-media img{ width: 100%; height: auto; }

@media (max-width: 899px){
  .hero{ overflow-x: hidden; }
  .hero-media{
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}

.hero-body{ padding: 22px 0 8px; }

.hero{ padding-top: 0; }

.hero-title{
  margin: 0 0 10px;
  text-align: center;
  font-size: 22px;
  letter-spacing: 0.06em;
}

.hero-text{
  margin: 0;
  color: #444;
  font-size: 16px;
}

@media (max-width: 899px){
  .hero-text{
    padding-inline: 24px;
    line-height: 1.9;
  }
}

/* Hero image: picture対応（保険） */
.hero-media picture{
  display: block;
}

/* =========================
   Section Head
========================= */
.section{ padding: 28px 0; }

.section-head{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 16px;
}

.section-bar{ width: 6px; height: 22px; background: #bbb; }

.section-title{
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.06em;
}

.section-line{
  height: 1px;
  background: var(--line);
  flex: 1;
  margin-left: 6px;
}

/* color modifiers */
.section-head--orange .section-title{ color: var(--orange); }
.section-head--green  .section-title{ color: var(--green); }
.section-head--blue   .section-title{ color: var(--blue); }
.section-head--gray   .section-title{ color: #666; }

.section-head--orange .section-bar{ background: var(--orange); }
.section-head--green  .section-bar{ background: var(--green); }
.section-head--blue   .section-bar{ background: var(--blue); }
.section-head--gray   .section-bar{ background: #9a9a9a; }

.section-head--orange .section-line{ background: var(--orange); }
.section-head--green  .section-line{ background: var(--green); }
.section-head--blue   .section-line{ background: var(--blue); }
.section-head--gray   .section-line{ background: #9a9a9a; }

.section-line{ height: 1px; }

/* =========================
   Cards
========================= */
.card{
  padding: 16px 0;
  border-top: none;
}
.card:first-of-type{ border-top: none; }

.card-grid{ display: grid; gap: 14px; }

.card-body{
  display: grid;
  gap: 12px;
  align-content: start;
}

.card-text,
.card-caption{
  margin: 0;
  color: #444;
  font-size: 16px;
}

/* =========================
   Card headings（各カードの見出し）
========================= */
.card-heading{
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-align:center;
}

#seikan .card-heading{ color: var(--orange); }
#kouki  .card-heading{ color: var(--green); }
#shop   .card-heading{ color: var(--blue); }

/* SPは見出しを少しだけ見やすく（任意） */
@media (max-width: 899px){
  .card-heading{
    font-size: 18px;
  }
}


/* frame variants */
.card-media{
  border: 0px solid transparent;
  padding: 10px;
  background: #fff;
}
.card-media--frame-orange{ border-color: rgba(242,161,26,.85); }
.card-media--frame-green { border-color: rgba(47,122,61,.85); }
.card-media--frame-blue  { border-color: rgba(57,182,230,.85); }

/* フレーム内の画像の余白を消す */
.card-media--frame-orange,
.card-media--frame-green,
.card-media--frame-blue{
  padding: 0;
}


/* SP: reverseでも画像→文章 */
.card--reverse .card-grid > :first-child{ order: 2; }
.card--reverse .card-grid > :last-child { order: 1; }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(520px, 100%);
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  box-shadow: var(--shadow-soft);
  place-self: center;
  transition: background .15s ease, transform .15s ease;
}

.card-body .btn{ margin-top: 12px; }

.btn:active{ transform: translateY(1px); }

.btn-arrow{
  font-size: 20px;
  line-height: 1;
  transform: translateY(-1px);
}

.btn--orange{ background: var(--orange); }
.btn--orange:hover{ background: var(--orange-dark); }

.btn--green{ background: var(--green); }
.btn--green:hover{ background: var(--green-dark); }

.btn--blue{ background: var(--blue); }
.btn--blue:hover{ background: var(--blue-dark); }

/* =========================
   Footer
========================= */
.site-footer{
  background: var(--bg-gray);
  color: #fff;
  padding: 18px 0;
  border-top: none;
}

.footer-inner{
  display: flex;
  justify-content: center;
  color: #fff;
}

/* =========================
   Overlay Menu (Hamburger)
========================= */
.nav-toggle{
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.overlay{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: start center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 10020;
}

#nav-toggle:checked ~ .overlay{
  opacity: 1;
  pointer-events: auto;
}

.overlay-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.0);
}

.overlay-panel{
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--overlay-gray);
  color: #fff;
  padding: 18px 18px 28px;
}

.overlay-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0 18px;
}

.overlay-brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.overlay-close{
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
  display: inline-grid;
  place-items: center;
  user-select: none;
}
.overlay-close span{
  position: absolute;
  width: 28px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.overlay-close span:nth-child(1){ transform: rotate(45deg); }
.overlay-close span:nth-child(2){ transform: rotate(-45deg); }

.overlay-nav{ margin-top: 18px; }

.overlay-list{
  list-style: none;
  padding: 0;
  margin: 0;
}
.overlay-list li{
  border-bottom: 2px dotted rgba(255,255,255,.45);
}
.overlay-list a{
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.overlay-mark{
  width: 10px;
  height: 34px;
  background: #fff;
  display: inline-block;
  border-radius: 1px;
}
.overlay-list a:hover{ background: rgba(255,255,255,.06); }

/* =========================
   Access (Accordion + Map)
========================= */
.access-box{
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.access-accordion + .access-accordion{ margin-top: 6px; }

/* Tab */
.access-tab{
  width: 100%;
  background: #555;
  color: #fff;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 12px 0 10px;
  cursor: pointer;
  user-select: none;
  border: 0;
  appearance: none;
}

/* 左の三角 */
.access-tab-icon{
  position: absolute;
  left: 18px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 12px solid #fff; /* ▲（open時） */
  transition: transform .25s ease;
}

.access-tab-text{
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding-inline: 52px;
  text-align: center;
}

/* closed 表示（▼にする） */
.access-accordion:not(.is-open) .access-tab-icon{
  transform: rotate(180deg);
}

/* JSが height を操作して開閉 */
.access-content{
  height: auto;
  overflow: hidden;
  will-change: height;
  transition: height .4s ease;
}

.access-accordion:not(.is-open) .access-content{
  height: 0;
}

.access-content-inner{
  display: grid;
  gap: 18px;
  padding-bottom: 10px;
}

.map-embed{
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid #eee;
  overflow: hidden;
  background: #f7f7f7;
}
.map-embed iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.access-info{
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.access-dl{ margin: 0; display: grid; }

.access-row{
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #e6e6e6;
}
.access-row dt{ font-weight: 700; color: #333; }
.access-row dd{ margin: 0; color: #333; }
.access-zip{ font-weight: 700; }

/* =========================
   NEWS（includeパーツ）中央寄せ
========================= */
.news-section{
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

/* =========================
   To Top button
========================= */
.to-top{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10010;

  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: rgba(210, 210, 210, 0.9);
  color: #fff;

  box-shadow: var(--shadow-fab);
  -webkit-tap-highlight-color: transparent;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .2s ease;
}

.to-top.is-show{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover{ background: rgba(185, 185, 185, 0.95); }

.to-top:focus-visible{
  outline: 3px solid rgba(0,0,0,.35);
  outline-offset: 4px;
}

.to-top__icon{
  width: 24px;
  height: 24px;
  border-left: 6px solid currentColor;
  border-top: 6px solid currentColor;
  transform: rotate(45deg);
  border-radius: 2px;
  margin: 0;
}

.to-top__label{
  margin-top: 2px;
  font-weight: 700;
  letter-spacing: .08em;
  font-size: 15px;
  line-height: 1;
}

@media (max-width: 600px){
  .to-top{
    width: 72px;
    height: 72px;
    right: 14px;
    bottom: 14px;
  }
  .to-top__label{ font-size: 14px; }
  .to-top__icon{
    width: 22px;
    height: 22px;
    border-left-width: 5px;
    border-top-width: 5px;
  }
}


/* =========================
   Responsive (PC)
========================= */
@media (min-width: 900px){
  .header-inner{ padding: 18px 0; }
  .brand-text{ font-size: 18px; }

  .hero-inner{
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: center;
    padding: 0 0 6px;
  }
  .hero-body{ padding: 0; }
  .hero-title{
    text-align: left;
    font-size: 22px;
    margin-bottom: 12px;
  }

  .card-grid{
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: center;
  }
  .card--reverse .card-grid > :first-child{ order: 1; }
  .card--reverse .card-grid > :last-child { order: 2; }

  .btn{ width: 340px; }

  .section{ padding: 34px 0; }

  .overlay-list a{ font-size: 16px; }

  .access-content-inner{
    grid-template-columns: 1.1fr 0.9fr;
    gap: 26px;
    align-items: start;
  }
  .access-info{
    border-top: none;
    padding-top: 0;
  }
  .access-row{
    grid-template-columns: 120px 1fr;
    padding: 18px 0;
  }
}
