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

/* ===== VARIABLES ===== */
:root {
  --green:       #4a8a3c;
  --green-dark:  #3a7030;
  --green-pale:  #e8f0e2;
  --gray-100:    #f7f7f7;
  --gray-200:    #e0e0e0;
  --gray-400:    #aaa;
  --gray-600:    #777;
  --gray-700:    #555;
  --text:        #222;
  --font:        'Noto Sans JP', sans-serif;
  --radius:      4px;
  --max-w:       860px;
}
/* 固定ヘッダーの高さ分、スクロール位置をずらす */
#guide-flow,
#guide-facility,
#guide-hours {
  scroll-margin-top: 100px; /* ← ヘッダーの高さに合わせて調整 */
}
/* ===== BASE ===== */
body {
  font-family: var(--font);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  background: #fff;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 14px 20px;
  font-size: 13px;
  color: var(--gray-600);
}
.breadcrumb a { color: var(--gray-600); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 4px; }

.guide{
  max-width: 1080px;
      margin: auto;
}
/* ===== PAGE HERO ===== */
.page-hero {
  position: relative;
  text-align: center;
  padding: 40px 20px 36px;
  overflow: hidden;
}
.page-hero__bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
}
.page-hero__bg img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.page-hero__en {
  position: relative;
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.1em;
}
.page-hero__ja {
  position: relative;
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
}

/* ===== TAB NAV ===== */
.tab-nav {
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  margin: 24px 0 48px;
}
.tab-nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.tab-nav__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-right: 1px solid var(--gray-200);
  text-align: center;
  transition: background .15s;
}
.tab-nav__item:first-child { border-left: 1px solid var(--gray-200); }
.tab-nav__item:hover,
.tab-nav__item.is-active { background: var(--gray-100); }
.tab-nav__arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #558c4b;
  border-bottom: 2px solid #558c4b;
  transform: rotate(45deg);
  transform-origin: center;
  margin-top: -4px;  /* 視覚的な縦位置調整 */
}
/* ===== MAIN CONTAINER ===== */
.guide-container {
  margin: 0 auto;
}

/* ===== SECTION ===== */
.guide-section { margin-bottom: 80px; }

/* ===== SECTION TITLE ===== */
.guide-section__title-wrap {
  text-align: center;
  margin-bottom: 40px;
}
.guide-section__title {
  display: inline-block;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 1px;
  border-bottom: 3px solid var(--green);
}

/* ===== USAGE TYPE DIVIDER ===== */
.guide-usage-type {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0 28px;
}
.guide-usage-type::before,
.guide-usage-type::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #c5c5c5;
}
.guide-usage-type__label {
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--gray-700);
}

/* ===== STEP 1: 予約 ===== */
.guide-step-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #efefef;
  border: none;
  border-radius: var(--radius);
  margin-bottom: 48px;
  overflow: visible;
}
.guide-step-box::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-top: 20px solid #efefef;
}
.guide-step-box__left {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5% 8% 5% 18%;
  min-width: 180px;
  flex-shrink: 0;
}
.guide-step-box__heading {
  font-size: 30px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}
.guide-step-box__right {
  flex: 1;
  padding: 28px 32px 28px 0;
}
.guide-step-box__text {
  line-height: 1.9;
  margin-bottom: 20px;
  color: #000000;
  font-weight: 500;
}
.guide-step-box__text strong {
  color: #c0392b;
  font-weight: 700;
}
.guide-step-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.guide-tel-btn {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  color: #467846;
  padding: 0;
  font-size: 24px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.guide-form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(90deg, #82b496 0%, #558c4b 53%, #558c4b 100%);
  color: #fff;
  padding: 10px 22px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: opacity .2s;
  white-space: nowrap;
}
.guide-form-btn:hover { opacity: 0.85; }
.guide-form-btn__text {
  flex: 1;
  text-align: center;
}
.guide-form-btn__arrow {
  flex-shrink: 0;
  font-size: 16px;
}
/* ===== STEP 2: 申請書 ===== */
.guide-step-row {
  position: relative;
  display: flex;
  align-items: center;
  background: #efefef;
  border: none;
  border-radius: var(--radius);
  margin-bottom: 48px;
  overflow: visible;
}
.guide-step-row::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-top: 20px solid #efefef;
}
.guide-step-row__label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    flex-shrink: 0;
    font-size: 30px;
    font-weight: 700;
    color: var(--green);
    line-height: 1.5;
    background: transparent;
    border-right: none;
    text-align: left;
    text-indent: -1em;
    padding: 5% 6% 5% 17%;
}
.guide-step-row__body {
  flex: 1;
  padding: 28px 32px 28px 0;
}
.guide-step-row__text {
  margin-bottom: 8px;
  font-weight: 500;
}
.guide-doc-link {
  display: inline-block;
  font-size: 14px;
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 3px;
  border: none;
  padding: 0;
  background: none;
  border-radius: 0;
  transition: opacity .15s;
}
.guide-doc-link:hover {
  background: none;
  opacity: 0.7;
  text-decoration: underline;
}

/* ===== STEP 3: 申請許可 ===== */
.guide-step-center {
  text-align: center;
  padding: 18px 0 100px;
}
.guide-step-center__label {
  font-size: 30px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 24px;
}
.guide-step-sparkle {
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-step-sparkle__img {
  width: 280px;
  max-width: 100%;
  height: auto;
}

/* ===== PAYMENT BAR ===== */
.guide-payment { margin: 40px 0 0; }
.guide-payment__header {
  background: linear-gradient(90deg, #558c4b 0%, #82b496 100%);
  color: #fff;
  padding: 6px 24px;
  font-size: 24px;
  font-weight: 700;
}
.guide-payment__body {
  padding: 20px 24px;
}
.guide-payment__list {
  list-style: none;
  counter-reset: pay;
}
.guide-payment__list li {
  counter-increment: pay;
    margin-bottom: 6px;
    font-weight: 500;
    padding-left: 1em;
    text-indent: -1em;
}
.guide-payment__list li::before {
  content: counter(pay) '. ';
  font-weight: 700;
  color: #82b496;
}

/* ===== TICKET (個人使用) ===== */
.guide-ticket {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  margin-top: 8px;
}
.guide-ticket__body {
  display: flex;
  align-items: center;
  background: #efefef;
  margin-bottom: 25px;
}
.guide-ticket__title {
  font-size: 26px;
  font-weight: 700;
  color: var(--green);
  padding: 32px 28px;
  min-width: 50%;
  flex-shrink: 0;
  margin: 0;
  text-align: right;
  white-space: nowrap;
}
.guide-ticket__text {
  margin: 0;
}
.guide-ticket__illust {
  text-align: right;
  padding: 20px 0 0 0;
}
.guide-ticket__illust img {
  width: 127px;
  height: auto;
  display: inline-block;
}

/* ===== HOURS ===== */
.guide-hours {
  border-top: 1px solid var(--gray-200);
}
.guide-hours__row {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 15px;
}
.guide-hours__row dt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 130px;
  font-weight: 500;
}
.guide-hours__dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.guide-hours__row dd { line-height: 1.75; }

/* ===== FACILITY BOX (施設の使用について) ===== */
.guide-facility__box {
  background: #efefef;
  border-radius: var(--radius);
  padding: 50px 70px 50px;
}
.guide-facility__box .guide-section__title-wrap {
  margin-bottom: 36px;
}

/* ===== RULES (枠線なしに変更) ===== */
.guide-rules {
  list-style: none;
  counter-reset: rule;
  border-top: none;
  max-width: 720px;
  margin: 0 auto;
}
.guide-rules li {
  counter-increment: rule;
  display: flex;
  gap: 4px;
  padding: 4px 0;
  border-bottom: none;
  font-weight: 500;
}
.guide-rules li::before {
  content: counter(rule) '.';
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
  min-width: 18px;
}

/* ===== ENJOY ILLUST ===== */
.guide-enjoy {
  text-align: right;
  margin-top: 100px;
}
.guide-enjoy img {
  width: 128px;
  height: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {

     #guide-flow,
     #guide-facility,
     #guide-hours {
       scroll-margin-top: 60px;
     }
  /* --- コンテナ全体 --- */
  .guide-container { padding: 0 16px 0; }

  /* --- パンくず --- */
  .breadcrumb { padding: 10px 16px; font-size: 12px; }

  /* --- ページヒーロー --- */
  .page-hero { padding: 28px 16px 24px; }
  .page-hero__en { font-size: 12px; }
  .page-hero__ja { font-size: 7vw; }

/* --- タブナビ --- */
  .tab-nav { margin: 16px 0 62px; }
  .tab-nav__inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .tab-nav__item {
    font-size: 14px;
    padding: 18px 10px;
    line-height: 1.4;
    flex-direction: row;
    gap: 11px;
    border-right: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
  }
  .tab-nav__item:first-child {
    border-left: 1px solid var(--gray-200);
  }
  /* 2列レイアウトでの境界線整理 */
  .tab-nav__item:nth-child(2n) {
    border-right: 1px solid var(--gray-200);
  }
  .tab-nav__item:nth-child(2n+1):not(:first-child) {
    border-left: 1px solid var(--gray-200);
  }
  .tab-nav__arrow { font-size: 12px; }
  /* --- セクション共通 --- */
  .guide-section { margin-bottom: 56px; }
  .guide-section__title-wrap { margin-bottom: 24px; }
  .guide-section__title { font-size: 25px; }

  /* --- 使用種別ラベル --- */
  .guide-usage-type { margin: 28px 0 20px; }

/* --- STEP 1: 予約ボックス --- */
  .guide-step-box {
    flex-direction: column;
    margin-bottom: 50px;
    text-align: center;
  }
  .guide-step-box__left {
    width: 100%;
    padding: 28px 16px 8px;
    justify-content: center;
  }
  .guide-step-box__heading {
    font-size: 28px;
  }
  .guide-step-box__right {
    padding: 0 20px 50px;
  }
  .guide-step-box__text {
    margin-bottom: 20px;
    text-align: center;
  }

  /* ボタンを中央配置・縦並び */
  .guide-step-actions {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .guide-tel-btn {
    font-size: 26px;
    padding: 4px 0;
    justify-content: center;
  }
.guide-form-btn {
    width: 85%;
    max-width: 320px;
    justify-content: space-between;
    font-size: 14px;
    padding: 15px 36px;
    white-space: normal;
    line-height: 1.5;
    text-align: center;
  }
  .guide-form-btn__arrow {
    font-size: 18px;
  }
  /* --- STEP 2: 申請書 --- */
  .guide-step-row {
    flex-direction: column;
    margin-bottom: 40px;
    text-align: center;
  }
  .guide-step-row::after {
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 16px solid #efefef;
    bottom: -16px;
  }
  .guide-step-row__label {
    width: 100%;
    padding: 28px 16px 8px;
    justify-content: center;
    font-size: 26px;
    min-width: unset;
    text-align: center;
    text-indent: 0;
    padding-left: 0;
  }
  .guide-step-row__body {
    padding: 0 20px 40px;
  }
  .guide-step-row__text {
    text-align: center;
    margin-bottom: 24px;
  }
  .guide-doc-link {
    display: block;
    text-align: left;
    font-size: 13px;
    line-height: 1.6;
    padding-bottom: 6px;
    border-bottom: 1px solid #888;
    text-decoration: none;
    position: relative;
    padding-right: 20px;
  }
  .guide-doc-link::after {
    content: '>';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
  }

/* --- STEP 3: 申請許可 --- */
  .guide-step-center { padding: 10px 0 78px; }
  .guide-step-center__label { font-size: 28px; }
  .guide-step-sparkle__img { width: 235px; }
  /* --- 支払い方法 --- */
  .guide-payment { margin-top: 28px; }
  .guide-payment__header { 
   padding: 10px 21px;
  font-size: 21px;
  line-height: normal;
  }
  .guide-payment__body { 
   padding: 14px 16px 54px 16px;
  }
  .guide-payment__list li { 
  }

/* --- 個人使用：使用券の購入 --- */
  .guide-ticket { margin-top: 4px; }
  .guide-ticket__body {
    flex-direction: column;
    align-items: center;
    padding: 26px 16px;
    gap: 12px;
    text-align: center;
  }
  .guide-ticket__title {
    padding: 0;
    min-width: unset;
    font-size: 26px;
    text-align: center;
    white-space: normal;
  }
  .guide-ticket__text {
    padding: 0;
    text-align: center;
  }
  .guide-ticket__illust {
    padding: 16px 0 20px;
    text-align: right;
  }
  .guide-ticket__illust img { width: 130px; }

  /* --- 施設利用時間 --- */
  .guide-hours__row {
    flex-direction: column;
    gap: 4px;
    padding: 14px 0;
  }
  .guide-hours__row dt { min-width: unset; }
/* --- 施設の使用について（灰色ボックス） --- */
  .guide-facility__box {
    padding: 28px 20px 32px;
  }
  .guide-facility__box .guide-section__title-wrap {
    margin-bottom: 22px;
  }
  /* --- 施設利用ルール --- */
  .guide-rules li { 
   padding: 5px 0;
    }

  /* --- Enjoy イラスト --- */
  .guide-enjoy { padding-right: 0; }
  .guide-enjoy img { width: 160px; }
}