@charset "utf-8";

/* ==============================
   メインビジュアル
============================== */
.mainVisual-box {
  padding: 24px 0 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  order: -1;
}

.topVisual {
  position: relative;
  background: url("../image/serviceVisual.jpg") center/cover no-repeat;
  width: 100%;
  height: 200px;
  order: 0;
}

.top-title {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Source Serif 4", serif;
  font-weight: 800;
  font-size: clamp(5rem, 8vw, 9rem);
  color: #fff;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.maintxt,
.subtxt {
  width: min(92%, 980px);
  margin: 16px auto 0;
  line-height: 1.7;
  color: var(--primary-navy);
}

.maintxt {
  font-weight: 800;
  font-size: 2.2rem;
}

.subtxt {
  font-size: 1.5rem;
  color: var(--primary-dark_brown);
}

@media (min-width: 768px) {
  .mainVisual-box {
    flex-direction: column;
  }

  .topVisual {
    order: 0;
    height: 300px;
    min-height: 360px;
    background-image: url("../image/serviceVisual.jpg");
  }

  .maintxt {
    font-size: 3rem;
  }

  .subtxt {
    font-size: 2.3rem;
  }
}

/* ==============================
   セクション見出し
============================== */
.p-index_service {
  padding: 24px 0 56px;
}

.p-index__title.service-white {
  text-align: center;
  margin: 0 auto 22px;
  color: var(--primary-navy);
  font-weight: 800;
  font-size: 2rem;
}

/* ==============================
   プランカード
============================== */
.plan_inner {
  width: min(94%, 980px);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.plan_inner > .plan_box {
  width: 100%;
}

.plan_box {
  background-color: var(--background-sub_color);
  border-radius: 16px;
  padding: 28px 24px;
  box-sizing: border-box;
  max-width: 939px;
  margin: 0 auto;
}

.planName {
  text-align: center;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  color: var(--primary-navy);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.planName span {
  display: inline-block;
  margin-left: 10px;
  font-family: "Source Serif 4", serif;
  font-size: clamp(1.4rem, 1.8vw, 1.8rem);
  font-weight: 700;
  color: var(--primary-darkgray);
}

.txtBodyInr {
  margin-top: 8px;
}

.twoColBox {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
}

.thumb {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.thumb img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.thumb[data-label]::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  letter-spacing: 0.02em;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.txtinr {
  flex: 1 1 auto;
  min-width: 0;
}

.planTxt-l {
  color: var(--primary-navy);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1.6;
}

.txtinr__body {
  margin-top: 10px;
  color: var(--primary-black);
  font-size: 1.5rem;
  line-height: 1.7;
}

.txtinr_price {
  margin-top: 6px;
  font-weight: 800;
  color: var(--primary-dark_brown);
}

.txtinr_caption {
  margin-top: 6px;
  font-size: 1.2rem;
  color: var(--primary-darkgray);
}

.btn-cta_price {
  margin-top: 14px;
}

.txtinr .btn-cta_price a {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  background: var(--primary-red);
  color: #fff;
  padding: 12px 0;
  font-weight: 700;
  font-size: 1.6rem;
  border-radius: 8px;
}

@media (min-width: 768px) {
  .twoColBox {
    flex-direction: row;
    gap: 28px;
    align-items: center;
  }

  .thumb {
    flex: 0 0 320px;
  }

  .thumb img {
    height: 200px;
  }

  .planTxt-l {
    font-size: 1.8rem;
  }

  .txtinr__body {
    font-size: 1.5rem;
  }
}

/* ==============================
   「料金はこちら」ボタン
============================== */
.buttons {
  max-width: 1104px;
  margin: 12px auto 0;
  display: flex;
  flex-direction: column; /* SP: 縦並び */
  align-items: center;
  gap: 12px;
}

@media (min-width: 768px) {
  .buttons {
    flex-direction: row; /* PC: 横並び */
    justify-content: center;
    gap: 16px;
  }
}

.priceBtn {
  display: block;
  min-width: 100%;
  padding: 12px 18px;
  border-radius: 6px;
  background: #203655;
  color: #fff;
  text-decoration: none;
  font-size: 1.6rem;
  line-height: 1;
  text-align: center;
  transition: transform 0.06s ease, opacity 0.2s ease;
}

.priceBtn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.priceBtn:hover {
  opacity: 0.9;
}

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

@media (prefers-reduced-motion: reduce) {
  .priceBtn {
    transition: none;
  }
}
html {
  overflow: visible;
}
html:has(dialog[open]) {
  overflow: hidden;
}
/* ==============================
   モーダル（料金表）
============================== */
body.is-fixed {
  position: fixed;
  width: 100%;
  left: 0;
  overflow: hidden;
}
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1000;
}

.modal:target {
  display: flex;
}

/* 背景クリックで閉じる */
.modal-bg {
  position: absolute;
  inset: 0;
  display: block;
}

/* コンテンツ本体 */
.price-modal {
  position: relative;
  z-index: 1;
  width: min(1100px, 94vw);
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  padding: 20px 20px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

/* スクロール領域 */
.modal-scroller {
  margin-top: 12px;
  overflow: auto; /* 縦に長い料金表を内側でスクロール */
  -webkit-overflow-scrolling: touch;
}

.modal-scroller picture,
.modal-scroller img {
  display: block;
  width: 100%;
  height: auto;
}

/* 閉じるボタン（右上） */
.modal-close {
  position: absolute;
  right: 12px;
  top: 6px;
  font-size: 36px;
  color: #203655;
  text-decoration: none;
  line-height: 1;
  z-index: 1000;
}

/* SP用微調整 */
@media (max-width: 767.98px) {
  .price-modal {
    width: 96vw;
    padding: 16px 12px 20px;
    max-height: 90vh;
  }

  .modal-close {
    font-size: 40px;
    right: 10px;
    top: 4px;
    z-index: 500;
  }
}
