/*
 * custom.css — 個人用オーバーライド（このファイルのみ編集する）
 * style.css は共有のため、ここへ追記・修正してください。
 * functions.php で style.css の後に読み込まれます。
 */

/* ========== 共通・プランまわりの個人調整 ========== */
.mega-panel__inner {
  width: min(calc(100% - 2.5rem), 52rem);
}
.headding-title {
  font-size: clamp(16px, 3.2vw, 24px);
  margin-bottom: 3px;
}
footer#footer {
  padding-bottom: 0;
}
.page-hero h1 {
  font-size: clamp(28px, 3.2vw, 46px);
}

/* 普通車・二輪（2件）は2列グリッド、お仕事系は3列 */
.plan-subnav[data-plan-subnav="car"],
.plan-subnav[data-plan-subnav="bike"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  max-width: 624px;
  margin-left: auto;
  margin-right: auto;
}
.plan-subnav[data-plan-subnav="car"] .plan-subnav__item,
.plan-subnav[data-plan-subnav="bike"] .plan-subnav__item,
.plan-subnav[data-plan-subnav="work"] .plan-subnav__item {
  width: 100%;
  max-width: none;
}
.plan-other .plan-subnav[data-plan-subnav="car"],
.plan-other .plan-subnav[data-plan-subnav="bike"] {
  max-width: 624px;
}

.plan-block__title {
  padding-left: 0 !important;
}
/* [data-plan-panel] .container2 h3::before（縦線）より詳細度を上げて打ち消し */
[data-plan-panel] .container2 h3.plan-block__title {
  padding-left: 0 !important;
}
[data-plan-panel] .container2 h3.plan-block__title::before,
.plan-block__title::before {
  content: none !important;
  display: none !important;
}

.plan-table-wrap {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.plan-table th,
.plan-table td {
  font-size: 16px;
}

/* .page-body li { list-style: disc } をプラン内リストで打ち消し */
.page-body [data-plan-panel] ul,
.page-body [data-plan-panel] ol {
  margin-bottom: 0;
  padding-left: 0;
}
.page-body [data-plan-panel] li {
  list-style: none !important;
  margin-bottom: 0;
}

ul.plan-notes > li {
  margin-bottom: 0;
  list-style: none !important;
  text-indent: -1em;
  margin-left: 1em;
}

/* ・は ::before のみ（marker との二重表示を防ぐ） */
.plan-kv__list {
  padding-left: 0 !important;
  list-style: none !important;
}
.plan-kv__list li {
  list-style: none !important;
}
.plan-kv__list li::marker {
  content: none;
  font-size: 0;
}

/* 料金表：狭い画面では押し潰さず横スクロール */
.plan-table--price {
  table-layout: auto;
  width: max-content;
  min-width: 880px;
  border-collapse: separate;
  border-spacing: 0;
}
.plan-table--price th,
.plan-table--price td {
  font-size: 12px;
  white-space: nowrap;
}
.plan-table--price thead th {
  font-size: 11px;
  line-height: 1.45;
  white-space: normal;
  vertical-align: middle;
}
.plan-table--price thead th:not(:first-child),
.plan-table--price tbody td {
  min-width: 7.5em;
  padding-left: 10px;
  padding-right: 10px;
}
.plan-table--price tbody th {
  text-align: center;
  white-space: normal;
  min-width: 140px;
  max-width: 160px;
}

/* 料金表：左列固定（右側のみ横スクロール） */
.plan-table-wrap .plan-table--price thead th:first-child,
.plan-table-wrap .plan-table--price tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
  background-color: #faf8f6;
}
.plan-table-wrap .plan-table--price thead th:first-child {
  z-index: 3;
  background-color: #f5f3f0;
  min-width: 140px;
  max-width: 160px;
}

.plan-hotel-links {
  margin: 0 !important;
}
.plan-hotel-links li {
  margin-bottom: 0 !important;
  list-style: none !important;
}

.plan-req--lined > li {
  padding-bottom: 0 !important;
  margin-bottom: 3px !important;
  list-style: none !important;
}
.plan-req--lined > li p {
  font-size: 16px;
}
.plan-req--lined > li > ol {
  margin-top: 18px;
}
.plan-req--lined > li > ol > li {
  margin-bottom: 5px;
  font-size: 16px;
}

@media (max-width: 900px) {
  .plan-subnav[data-plan-subnav="car"],
  .plan-subnav[data-plan-subnav="bike"] {
    max-width: none;
  }
}

/* ========== 宿泊施設 ========== */
.hotel-panel {
  position: relative;
  z-index: 0;
  margin-top: -24px;
  padding: 48px 0 80px;
  border-radius: 56px 56px 0 0;
  background-color: var(--color-white);
  color: var(--color-text);
  box-shadow: 0 -8px 24px rgba(83, 76, 66, 0.06);
}

.hotel-nav {
  margin: 0 0 48px;
}
.hotel-nav__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 28px;
  margin: 0;
  padding: 0 !important;
  list-style: none;
}
.hotel-nav__list > li {
  margin: 0;
  list-style: none;
  min-width: 0;
}
.hotel-nav__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  padding: 10px 12px 12px;
  border: 0;
  border-bottom: 1px solid #d8d4ce;
  border-radius: 0;
  background: transparent;
  color: var(--color-text);
  text-align: left;
  text-decoration: none;
  box-sizing: border-box;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}
.hotel-nav__item:hover {
  background: transparent;
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.hotel-nav__item.is-active {
  background: #fff9ec;
  border-bottom-color: #787271;
  border-bottom-width: 2px;
  color: var(--color-primary);
}
.hotel-nav__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.hotel-nav__label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 700;
  line-height: 1.35;
}
.hotel-nav__ico {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border: 1.2px solid currentColor;
  border-radius: 50%;
}
.hotel-nav__ico::after {
  content: "";
  position: absolute;
  top: 45%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-right: 1.2px solid currentColor;
  border-bottom: 1.2px solid currentColor;
  transform: translate(-50%, -60%) rotate(45deg);
}
.hotel-nav__meta {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text);
}
.hotel-nav__item.is-active .hotel-nav__meta,
.hotel-nav__item:hover .hotel-nav__meta {
  color: inherit;
}

.hotel-intro {
  margin-bottom: clamp(64px, 8vw, 100px);
}
.hotel-intro__eyebrow {
  margin-bottom: 8px;
}
.hotel-intro__heading {
  margin-bottom: 14px;
}
.hotel-intro__heading h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-heading);
}
.hotel-intro__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 20px;
  padding: 10px 28px;
  border: 1.5px solid var(--color-primary);
  border-radius: 10px;
  background: var(--color-white);
  box-shadow: 0 4px 0 #e8e2da;
  color: var(--color-primary);
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}
.hotel-intro__lead {
  margin: 0 0 28px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
  color: var(--color-text);
}
.hotel-intro__visual {
  overflow: hidden;
  border-radius: 18px;
  background: var(--color-beige);
  margin-top: 35px;
}
.hotel-intro__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 3;
  object-fit: cover;
}

.hotel-sections {
  display: grid;
  gap: 0;
}
.hotel-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px clamp(40px, 6vw, 100px);
  align-items: start;
}
.hotel-section + .hotel-section {
  margin-top: 72px;
  padding-top: 72px;
  border-top: 1px solid #e6e5e5;
}
.hotel-section__body {
  min-width: 0;
}

.hotel-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 24px;
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.6vw, 26px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-heading);
}
.hotel-heading .plan-block__dot {
  margin-top: 0.5em;
}
.hotel-section__body > .hotel-heading:not(:first-child) {
  margin-top: 36px;
}

/* カルーセル */
.hotel-carousel {
  margin: 0;
}
.hotel-carousel__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--color-beige);
  aspect-ratio: 4 / 3;
}
.hotel-carousel__track {
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
  height: 100%;
}
.hotel-carousel__slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}
.hotel-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.hotel-carousel__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hotel-carousel__controls {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.hotel-carousel__btn {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  transform: translateY(-50%);
  transition: background-color 0.2s ease;
}
.hotel-carousel__btn:hover {
  background: rgba(255, 255, 255, 0.9);
}
.hotel-carousel__prev {
  left: 12px;
}
.hotel-carousel__next {
  right: 12px;
}
.hotel-carousel__btn span {
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #222;
  border-right: 2px solid #222;
}
.hotel-carousel__next span {
  transform: translateX(-1px) rotate(45deg);
}
.hotel-carousel__prev span {
  transform: translateX(1px) rotate(-135deg);
}
.hotel-carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 5;
  display: flex;
  gap: 6px;
  align-items: center;
  transform: translateX(-50%);
  pointer-events: auto;
}
.hotel-carousel__dot {
  width: 18px;
  height: 3px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
.hotel-carousel__dot.is-active {
  background: var(--color-heading-accent);
}
.hotel-carousel__caption {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  color: #222;
}

/* 施設情報：罫線のみの定義リスト */
.hotel-spec {
  margin: 0;
}
.hotel-spec__row {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 12px 16px;
  align-items: start;
}
.hotel-spec__row dt,
.hotel-spec__row dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}
.hotel-spec__row dt {
  font-weight: 700;
  color: var(--color-text);
}
.hotel-spec__row dd {
  font-weight: 500;
  color: var(--color-text);
}
.hotel-spec--lines .hotel-spec__row {
  padding: 12px 0;
  border-bottom: 1px solid rgba(83, 76, 66, 0.18);
}
.hotel-spec--lines .hotel-spec__row:first-child {
  border-top: 1px solid rgba(83, 76, 66, 0.18);
}

/* 周辺環境：ラベル列つきボックス表 */
.hotel-spec--boxed {
  overflow: hidden;
  border: 1px solid rgba(83, 76, 66, 0.2);
  border-radius: 12px;
}
.hotel-spec--boxed .hotel-spec__row {
  grid-template-columns: 9.5em minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  border-bottom: 1px solid rgba(83, 76, 66, 0.16);
}
.hotel-spec--boxed .hotel-spec__row:last-child {
  border-bottom: 0;
}
.hotel-spec--boxed .hotel-spec__row dt {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  height: auto;
  min-height: 100%;
  box-sizing: border-box;
  padding: 14px 10px;
  background: #eceae6;
  text-align: center;
  font-size: 15px;
}
.hotel-spec--boxed .hotel-spec__row dd {
  align-self: stretch;
  box-sizing: border-box;
  padding: 12px 16px;
  background: var(--color-white);
  font-size: 16px;
}
.hotel-spec--boxed .hotel-spec__row dd ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hotel-spec--boxed .hotel-spec__row dd li {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.7;
}
.hotel-spec--boxed .hotel-spec__row dd li::before {
  content: "・";
}

.hotel-map {
  position: relative;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(83, 76, 66, 0.18);
  aspect-ratio: 16 / 10;
  background: var(--color-beige);
}
.hotel-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.hotel-map__open {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  color: var(--color-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.hotel-map__open::after {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  opacity: 0.7;
  transform: rotate(45deg);
}

/* お食事：箇条書き */
.hotel-meals {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hotel-meals > li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 1em;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--color-text);
  list-style: none;
}
.hotel-meals > li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-text);
}
.hotel-meals__label {
  font-weight: 700;
}
.hotel-meals__note {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* 設備・アメニティ：4列表 */
.hotel-grid {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(83, 76, 66, 0.2);
  border-radius: 12px;
  overflow: hidden;
  table-layout: fixed;
}
.hotel-grid th,
.hotel-grid td {
  padding: 10px 12px;
  border-right: 1px solid rgba(83, 76, 66, 0.14);
  border-bottom: 1px solid rgba(83, 76, 66, 0.14);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  vertical-align: middle;
}
.hotel-grid tr:last-child th,
.hotel-grid tr:last-child td {
  border-bottom: 0;
}
.hotel-grid th:nth-child(4n),
.hotel-grid td:nth-child(4n) {
  border-right: 0;
}
.hotel-grid th {
  width: 22%;
  background: #eceae6;
  color: var(--color-text);
  font-weight: 700;
  text-align: center;
}
.hotel-grid td {
  width: 28%;
  background: var(--color-white);
  color: var(--color-text);
  text-align: left;
}
.hotel-grid .is-empty {
  background: var(--color-white);
  border-right-color: transparent;
}

.hotel-cta-wrap {
  margin-top: 64px;
}
.hotel-cta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hotel-other {
  padding: 56px 0 64px;
  background: var(--color-beige);
}
.hotel-other__title {
  margin: 0 0 24px;
  text-align: center;
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--color-heading);
}

@media (max-width: 900px) {
  .hotel-nav__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
  }
  .hotel-section {
    grid-template-columns: 1fr;
  }
  /* スマホ: カルーセル → 詳細内容の順 */
  .hotel-section__media {
    order: 1;
  }
  .hotel-section__body {
    order: 2;
  }
  /* 詳細本文の文字サイズをセクション間で揃える */
  .hotel-section__body {
    font-size: 14px;
  }
  .hotel-spec__row dt,
  .hotel-spec__row dd,
  .hotel-spec--boxed .hotel-spec__row dt,
  .hotel-spec--boxed .hotel-spec__row dd,
  .hotel-meals > li,
  .hotel-grid th,
  .hotel-grid td {
    font-size: 16px;
  }
  .hotel-meals__note {
    font-size: 12px;
  }
  .hotel-grid th,
  .hotel-grid td {
    padding: 8px 10px;
  }
}

@media (max-width: 768px) {
  .hotel-panel {
    margin-top: -16px;
    padding: 36px 0 56px;
    border-radius: 32px 32px 0 0;
  }
  .hotel-nav {
    margin-bottom: 36px;
  }
  .hotel-intro__heading h2 {
    font-size: 24px;
  }
  .hotel-sections {
    gap: 0;
  }
  .hotel-section + .hotel-section {
    margin-top: 48px;
    padding-top: 48px;
  }
  .hotel-cta {
    grid-template-columns: 1fr;
  }
  .hotel-spec__row,
  .hotel-spec--boxed .hotel-spec__row {
    grid-template-columns: 1fr;
  }
  .hotel-spec--boxed .hotel-spec__row dt {
    justify-content: flex-start;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(83, 76, 66, 0.12);
  }
  .hotel-grid {
    display: block;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }
  .hotel-grid tbody,
  .hotel-grid tr,
  .hotel-grid th,
  .hotel-grid td {
    display: block;
    width: 100%;
  }
  .hotel-grid tr {
    margin-bottom: 8px;
    overflow: hidden;
    border: 1px solid rgba(83, 76, 66, 0.2);
    border-radius: 10px;
  }
  .hotel-grid th,
  .hotel-grid td {
    border-right: 0;
  }
  .hotel-grid th {
    text-align: left;
  }
  .hotel-grid td {
    border-bottom: 1px solid rgba(83, 76, 66, 0.12);
  }
  .hotel-grid tr td:last-child,
  .hotel-grid tr th:nth-child(3) {
    border-bottom: 0;
  }
  .hotel-grid .is-empty {
    display: none;
  }
}

/* ========== 入校申込（規約同意） ========== */
.nyuko-panel {
  position: relative;
  z-index: 0;
  margin-top: -24px;
  padding: 48px 0 80px;
  border-radius: 56px 56px 0 0;
  background-color: var(--color-white);
  color: var(--color-text);
  box-shadow: 0 -8px 24px rgba(83, 76, 66, 0.06);
}
.nyuko-block + .nyuko-block {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid rgba(83, 76, 66, 0.12);
}
.nyuko-block__title {
  margin: 0 0 18px;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-heading);
}
.nyuko-block__sub {
  margin: 28px 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-heading);
}
.nyuko-block__body > p,
.nyuko-block > p {
  margin: 0 0 1em;
  line-height: 1.8;
}
.page-body .nyuko-list {
  margin: 0;
  padding-left: 1.25em;
}
.page-body .nyuko-list > li {
  list-style: disc;
  margin-bottom: 0.85em;
  line-height: 1.8;
}
.page-body .nyuko-list > li:last-child {
  margin-bottom: 0;
}
.nyuko-details {
  margin: 16px 0 0;
  border: 1px solid rgba(83, 76, 66, 0.18);
  border-radius: 10px;
  overflow: hidden;
}
.nyuko-details + .nyuko-details {
  margin-top: 12px;
}
.nyuko-details > summary {
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  background: #fff9ec;
  list-style: none;
}
.nyuko-details > summary::-webkit-details-marker {
  display: none;
}
.nyuko-details[open] > summary {
  border-bottom: 1px solid rgba(83, 76, 66, 0.12);
}
.nyuko-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.nyuko-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.nyuko-table th,
.nyuko-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(83, 76, 66, 0.12);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}
.nyuko-table th {
  width: 7.5em;
  white-space: nowrap;
  background: rgba(83, 76, 66, 0.04);
  font-weight: 700;
  color: var(--color-heading);
}
.nyuko-table tr:last-child th,
.nyuko-table tr:last-child td {
  border-bottom: 0;
}
.nyuko-agree {
  margin: 28px 0 8px;
  text-align: center;
}
.nyuko-agree__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 320px);
  padding: 16px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--color-accent, #d50024);
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none !important;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.nyuko-agree__btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
@media (max-width: 768px) {
  .nyuko-panel {
    margin-top: -16px;
    padding: 36px 0 56px;
    border-radius: 32px 32px 0 0;
  }
  .nyuko-block + .nyuko-block {
    margin-top: 36px;
    padding-top: 36px;
  }
  .nyuko-table th,
  .nyuko-table td {
    display: block;
    width: 100%;
  }
  .nyuko-table th {
    border-bottom: 0;
    padding-bottom: 4px;
  }
  .nyuko-table td {
    padding-top: 0;
  }
}
