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

/* ===== VARIABLES ===== */
:root {
  --green:      #4a8a3c;
  --green-pale: #e8f0e2;
  --purple:     #7864b4;
  --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:      1060px;
  --beige:     #aa9682;
}

/* ===== BASE ===== */
body {
  font-family: var(--font);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  background: #fff;
}
.facility{
  max-width: 1080px;
      margin: auto;
}
/* ===== 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; }

/* ===== PAGE HERO ===== */
.page-hero {
  position: relative;
  text-align: center;
  padding: 48px 20px 40px;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.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);
  line-height: 1;
  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: 9px;
  padding: 18px 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-right: 1px solid var(--gray-200);
  cursor: pointer;
  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: 10px;
  height: 10px;
  border-right: 2px solid #558c4b;
  border-bottom: 2px solid #558c4b;
  transform: rotate(45deg);
  transform-origin: center;
  margin-top: -4px;  /* 視覚的な縦位置調整 */
}
#shisetsu1f_map,
#shisetsu_1f,
#shisetu2f_map,
#freearea
{
 scroll-margin-top: 80px;
}

/* ===== CONTAINER ===== */
.facility-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px 80px;
}

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

/* ===== SECTION TITLE ===== */
.facility-section__title {
  text-align: center;
  font-size: 33px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 32px;
  padding-bottom: 0px;
  border-bottom: 4px solid var(--green);
  display: inline-block;
  min-width: 105px;
}
.facility-section__title-wrap {
  text-align: center;
  margin-bottom: 32px;
}

/* ===== MAP IMAGE ===== */
.map1-img-wrap,
.map-img-wrap
 {
  text-align: center;
  margin-bottom: 50px;
}
.map1-img-wrap img {
  max-width: 680px;
  width: 100%;
  height: auto;
  display: inline-block;
}
.map-img-wrap img {
  max-width: 800px;
  width: 100%;
  height: auto;
  display: inline-block;
}

/* ===== FLOOR PLAN IMAGE ===== */
.floor-plan-wrap {
  margin-bottom: 40px;
}
.floor-plan-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== FLOOR HEADER ===== */
.floor-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.floor-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.floor-badge--2f { background: #3a8888; }
.floor-header__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}



/* ===== ROOM GRID ===== */
.room-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  margin-bottom: 80px;
}

/* ===== ROOM CARD ===== */
.room-card {

}
.room-card--wide {
  display: flex;
}
.room-card__img-placeholder {
  height: 260px;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 13px;
}
.room-card__img-placeholder--tall {
    height: 260px;
    width: 465px;
     }
img.facility-room__img {
    width: 100%;
}
.room-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.room-card__body { 
  padding: 14px 16px 18px;
  max-width: 530px;
       }
.room-card__num-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.room-card__num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.room-card__num--2f { background: #3a8888; }
.room-card__name {
  font-size: 15px;
  font-weight: 700;
}
.room-card__meta {

}
.room-card__meta p{
  margin-bottom: 12px;
}
.room-card__meta-label {
    color: #000;
    font-weight: 600;
    font-size: 16px;
}
.room-card__meta-label--2f { color: #3a8888; }
.room-card__desc {
  margin-bottom: 12px;
}

/* ===== DIVIDER ===== */
.section-divider {
  border: none;
  margin: 60px 0;
}

/* ===== WATERMARK ILLUST ===== */
.page-illust {
  text-align: right;

}
.page-illust img {
  width: 180px;
  height: auto;
}

/* ===== CTA ===== */
.cta-wrap {
  text-align: center;
  margin-top: 16px;
}
.cta-btn {
  display: inline-block;
  background: #3a8888;
  color: #fff;
  padding: 14px 52px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: opacity .2s;
}
.cta-btn:hover { opacity: 0.85; }

/* ===== FLOOR TITLE (1F / 2F イタリック区切り) ===== */
.floor-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.floor-title-row::before,
.floor-title-row::after {
  content: '';
  flex: 1;
  height: 3px;
  background: var(--gray-200);
}
.floor-title-row__text {
  font-size: 28px;
  font-style: italic;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

/* ===== ROOM CARD: 番号＋名前をカード外上部に ===== */
.room-card-wrap {
  display: flex;
  flex-direction: column;
}
.room-card-wrap__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.room-card-wrap__num {
  width: 30px;
  height: 30px;
  border: 2px solid var(--purple);
  background: #fff;
  color: var(--purple);
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.room-card-wrap__num2 {
  width: 30px;
  height: 30px;
  border: 2px solid var(--beige);
  background: #fff;
  color: var(--beige);
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.room-card-wrap__num--2f {

}
.room-card-wrap__name {
  font-size: 24px;
  font-weight: 700;
  color: #467846;
}
  .room-card__meta {
    list-style: none;
  }
/* カード内の番号・名前は非表示（外に移動したため） */
.room-card__num-name { display: none; }

/* ===== LEGEND BAR ===== */
.legend-bar {
  background: var(--gray-100);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-bottom: 72px;
  flex-wrap: wrap;
}
.legend-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}
.legend-bar__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 4px;
    border: 2px solid #7864b4;
    font-size: 16px;
    font-weight: 600;
    background: #fff;
    color: #7864b4;
}
.legend-bar__badge2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 4px;
  border: 2px solid #aa9682;
  font-size: 16px;
  font-weight: 600;
  background: #fff;
  color: #aa9682;
}
.legend-bar {
  display: flex;
  justify-content: center;
  gap: 6rem;
  background: #f0f0f0;
  padding: 2rem 2.5rem;
}

/* 見出しとリストを縦積みに（見出しが上の行） */
.legend-bar__item {
  display: block;
}

/* 見出し（下線付き） */
.legend-bar__title {
  display: inline-block;
  margin: 0 0 5px;
  font-size: 1.25rem;
  font-weight: 700;
  border-bottom: 3px solid;
}
.legend-bar__title--reserve { border-bottom-color: #8a7fb5; } /* 紫系 */
.legend-bar__title--free    { border-bottom-color: #b3a062; } /* 茶／金系 */

/* リスト（先頭に「- 」） */
.legend-bar__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.legend-bar__list li {
  position: relative;
  padding-left: 1.1em;
  line-height: 1.6;
}
.legend-bar__list li::before {
  content: "-";
  position: absolute;
  left: 0;
}

/* フリーエリアだけ2カラム */
.legend-bar__list--2col {
  display: grid;
  grid-template-columns: repeat(2, auto);
  column-gap: 1rem;
}

@media (max-width: 768px) {
  .legend-bar {
    justify-content: center;
    align-items: flex-start;   /* ← これで両エリアの上端をそろえる */
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }

  .legend-bar__title {
    font-size: 1.05rem;
  }

  .legend-bar .legend-bar__list--2col {
    display: block;
  }

  .legend-bar .legend-bar__list li {
    white-space: nowrap;
    font-size: .9rem;
  }
}
/* wide wrap spans full grid width */
.room-card-wrap--wide {
  grid-column: 1 / -1;
}
.top-facility-more-btn{
    display: inline-block;
    background: #5a9a6a;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Noto Sans JP', sans-serif;
    padding: 14px 48px;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 0.08em;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.top-facility-more {
    margin: 5% auto 10%;
}

/*PC*/
@media (min-width: 769px) {
    .top-facility-more-btn {
        padding: 14px 40px;
    }
  }

  /* ============================================
   SP (Smart Phone) スマホ表示用追加スタイル
   ============================================ */
@media (max-width: 768px) {
#shisetsu1f_map,
#shisetsu_1f,
#shisetu2f_map,
#freearea
{
 scroll-margin-top: 60px;
}

  /* ===== BREADCRUMB ===== */
  .breadcrumb {
    padding: 10px 16px;
    font-size: 12px;
  }

  /* ===== PAGE HERO ===== */
  .page-hero {
    padding: 24px 16px 20px;
    ine-height: 1.2;
  }
  .page-hero__bg {
    top: 50%;
    transform: translateY(-50%);
  }
  .page-hero__bg img {
    max-width: 100%;
  }
  .page-hero__en {
    font-size: 12px;
    letter-spacing: 0.12em;
    margin-bottom: 4px;
  }
  .page-hero__ja {
    font-size: 7vw;
    letter-spacing: 0.05em;
  }

  /* ===== TAB NAV (2列×2行) ===== */
  .tab-nav {
    margin: 16px 0 32px;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
  }
  .tab-nav__inner {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    gap: 0;
  }
  .tab-nav__item {
    border: 1px solid var(--gray-200);

    padding: 10px 6px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    background: #fff;
    min-height: 52px;
  }

  .tab-nav__item br {
    display: inline;
  }
/* ===== TAB NAV (2列×2行) ===== */
  /* ...省略... */
  .tab-nav__arrow {
    width: 8px;
    height: 8px;
    border-right-width: 1.5px;
    border-bottom-width: 1.5px;
    margin-top: -3px;
  }

  /* ===== CONTAINER ===== */
  .facility-container {
    padding: 0 16px 40px;
  }

  /* ===== SECTION ===== */
  .facility-section {
    margin-bottom: 48px;
  }

  /* ===== SECTION TITLE ===== */
  .facility-section__title {
    font-size: 25px;
    min-width: 80px;
    border-bottom-width: 3px;
    padding-bottom: 2px;
  }
  .facility-section__title-wrap {
    margin-bottom: 20px;
  }

  /* ===== MAP IMAGE (配置図) ===== */
  .map-img-wrap {
    margin-bottom: 24px;
  }
  .map-img-wrap img {
    max-width: 100%;
  }

/* ===== PAGE ILLUST (走る人イラスト) ===== */
  .page-illust {
    margin-top: 0;
    padding-right: 0;
    margin-bottom: 32px;
    text-align: right;
  }
  .page-illust img {
    width: 125px;
    opacity: 1;
    margin-bottom: 50px;
  }

  /* ===== FLOOR TITLE (1F / 2F) ===== */
  .floor-title-row {
    gap: 12px;
    margin-bottom: 16px;
  }
  .floor-title-row::before,
  .floor-title-row::after {
    height: 2px;
  }
  .floor-title-row__text {
    font-size: 22px;
  }

  /* ===== FLOOR PLAN IMAGE ===== */
  .floor-plan-wrap {
    margin-bottom: 20px;
  }

  /* ===== LEGEND BAR ===== */
  .legend-bar {
    padding: 10px 12px;
    gap: 16px;
    margin-bottom: 72px;
    font-size: 13px;
  }
  .legend-bar__item {
    font-size: 13px;
    display: inline;
  }
  .legend-bar__badge,
  .legend-bar__badge2 {
    min-width: 24px;
    height: 24px;
    font-size: 13px;
    border-width: 1.5px;
  }

  /* ===== ROOM GRID (1カラム) ===== */
  .room-grid {
    grid-template-columns: 1fr;
    gap: 63px;
  }

  /* ===== ROOM CARD WRAP (番号＋名前ヘッダー) ===== */
  .room-card-wrap__header {
    gap: 10px;
    margin-bottom: 20px;
  }
  .room-card-wrap__num,
  .room-card-wrap__num2 {
    width: 26px;
    height: 26px;
    font-size: 14px;
    border-width: 1.5px;
  }
  .room-card-wrap__name {
    font-size: 22px;
  }

  /* ===== ROOM CARD (画像＋本文) ===== */
  .room-card--wide {
    flex-direction: column;
  }
  .room-card__img-placeholder {
    height: 200px;
    font-size: 12px;
  }
  .room-card__img-placeholder--tall {
    height: 200px;
    width: 100%;
  }
  .room-card__img {
    height: auto;
    max-height: 220px;
  }
  .room-card__body {
    padding: 12px 0 0;
  }

  .room-card__meta-label {

  }
  .room-card__desc {
    line-height: 1.7;
    margin-bottom: 8px;

  }
  /* ===== CTA / もっとみるボタン ===== */
  .cta-wrap {
    margin-top: 24px;
  }
  .cta-btn {
    padding: 12px 36px;
    font-size: 13px;
  }
  .top-facility-more {
    text-align: center;
    margin-top: 24px;
    margin-bottom: 16px;
  }
  .top-facility-more-btn {
    padding: 12px 36px;
    font-size: 14px;
    letter-spacing: 0.05em;
    margin-bottom: 80px;
  }

  /* ===== SECTION DIVIDER ===== */
  .section-divider {
    margin: 32px 0;
  }

  /* ===== FLOOR HEADER (旧レイアウト用) ===== */
  .floor-header {
    gap: 12px;
    margin-bottom: 16px;
  }
  .floor-badge {
    width: 44px;
    height: 44px;
    font-size: 15px;
  }
  .floor-header__title {
    font-size: 16px;
  }

}

/* ============================================
   小さめスマホ (〜375px) のさらなる微調整
   ============================================ */
@media (max-width: 375px) {
  .tab-nav__item {
    font-size: 12px;
    padding: 8px 4px;
  }
  .page-hero__ja {
    font-size: 22px;
  }
  .facility-section__title {
    font-size: 20px;
  }
  .room-card-wrap__name {
    font-size: 16px;
  }
  .legend-bar {
    gap: 12px;
    padding: 10px 8px;
  }
}

