/* =================================================================
   ロイヤル建材  人気プランから選ぶ — style.css
   Figma 2-1149  |  Canvas 1920px  |  Pad 55px
   Layout: 左固定メイン画像 (47%) + 右Swiperカルーセル (53%)
   ================================================================= */

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: 'Noto Sans JP', sans-serif; background: #fff; color: #000;
       overflow-x: hidden; min-width: 320px; }
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font: inherit; }
ul   { list-style: none; }

/* ── Design Tokens ───────────────────────────────────────────── */
:root {
  --c-orange:    #ff8400;
  --c-gold:      #b58d61;
  --c-gold-ov:   rgba(181,141,97,0.10);
  --c-cream:     #fdf8f3;
  --c-red:       #cb0000;
  --c-border:    #c4c4c4;
  --pad-x:       55px;
  --max-w:       1811px;
  /* Gallery height — Figma: 887px total */
  --gallery-h:   clamp(240px, 46.2vw, 887px);
}

.page { max-width: 1920px; margin: 0 auto; overflow: hidden; }
.red  { color: var(--c-red); }


/* =================================================================
   HEADER
   ================================================================= */
.hd__logo-row {
  display: flex; justify-content: center; align-items: center;
  padding: 16px 0 14px; background: #fff;
}
.hd__logo-link { display: flex; }
.hd__logo { height: 44px; width: auto; object-fit: contain; }

/* 导航栏与 index 一致：597×119，间隙 75px，两侧留白 */
.hd__tabs {
  display: flex;
  gap: 18px;
  padding: 0 var(--pad-x);
  background: #fff;
}
.hd__tab {
  flex: 0 0 584px;
  width: 584px;
  height: 119px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.2vw, 20px);
  padding: 10px clamp(8px, 1vw, 16px);
  cursor: pointer;
  transition: opacity .15s;
  text-decoration: none;
  border: none;
  border-radius: 8px;
}
.hd__tab:hover { opacity: .88; }
.hd__tab--active  { background: var(--c-orange); }
.hd__tab--outline { background: #fff; border: 5px solid var(--c-orange); }
.hd__tab-icon {
  width: clamp(28px, 2.5vw, 49px);
  height: clamp(28px, 2.5vw, 49px);
  object-fit: contain;
  flex-shrink: 0;
}
.hd__tab-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 1.8vw, 36px);
  letter-spacing: .04em;
  white-space: nowrap;
}
.hd__tab--active  .hd__tab-text { color: #fff; }
.hd__tab--outline .hd__tab-text { color: var(--c-orange); }


/* =================================================================
   PAGE TAB CARDS — 与 index 一致 597×119，间隙 75px
   ================================================================= */
.pg-tabs {
  display: flex;
  gap: clamp(12px, 3vw, 75px);
  width: 100%;
  max-width: calc(var(--max-w) + (var(--pad-x) * 2));
  margin: 0 auto;
  padding: 0 var(--pad-x);
  box-sizing: border-box;
  background: #fff;
  margin-bottom: 50px;
}
.pg-tab {
  flex: 1;
  width: auto;
  min-width: 0;
  height: 119px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.2vw, 20px);
  padding: 10px clamp(8px, 1vw, 16px);
  text-decoration: none;
  cursor: pointer;
  transition: opacity .15s;
  border-radius: 8px;
}
.pg-tab--outline { background: #fff; border: 5px solid var(--c-orange); }
.pg-tab--outline:hover { opacity: .85; }
.pg-tab--filled  { background: var(--c-orange); border: 5px solid var(--c-orange); cursor: default; }

.pg-tab__icon-wrap { flex-shrink: 0; width: clamp(28px, 2.5vw, 49px); height: clamp(28px, 2.5vw, 49px); }
.pg-tab__icon      { width: 100%; height: 100%; object-fit: contain; }
.pg-tab__label {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 1.8vw, 36px);
  letter-spacing: .04em;
  white-space: nowrap;
}
.pg-tab__label--orange { color: var(--c-orange); }
.pg-tab__label--white  { color: #fff; }


/* =================================================================
   PLAN SECTION
   ================================================================= */
.plan {
  /* 各プランの上下区切り（白ボーダー） */
  border-top: 8px solid #fff;
  padding: 0 var(--pad-x);
}
.plan:first-of-type { border-top: none; }


/* ─────────────────────────────────────────────────────────────────
   GALLERY LAYOUT
   左: plan__main (固定メイン画像, w≈47%)
   右: plan__swiper-wrap (Swiper, w≈53%)
   ───────────────────────────────────────────────────────────────── */
.plan__gallery {
  display: flex;
  /* height: var(--gallery-h);
  白ボーダーで画像を区切る（Figma border:8px white） */
  gap: 0;
}

/* ── 左: 固定メイン画像 ── */
.plan__main {
  position: relative;
  flex: 0 0 47.2%;
  overflow: hidden;
  /* 白枠ボーダー */
  border: clamp(4px, 0.42vw, 8px) solid #fff;
  border-right: 0;
}
.plan__main-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
/* ゴールドオーバーレイ */
.plan__main-overlay {
  position: absolute; inset: 0;
  background: var(--c-gold-ov);
  pointer-events: none;
}

/* プランバッジ (左下のプランNO + 大きな連番) */
.plan__badge {
  position: absolute;
  bottom: clamp(20px, 3vw, 60px);
  left: clamp(12px, 2.8vw, 55px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  pointer-events: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -20%);
}
.plan__badge-num {
  font-family: 'Noto Sans JP', sans-serif; font-weight: 700;
  /* Figma: 連番 "01" — 小さめ白テキスト, 左上 */
  font-size: clamp(16px, 2.5vw, 48px);
  color: #fff;
  text-shadow: 0 2px 8px rgba(111,62,8,0.7);
  line-height: 1; letter-spacing: .02em;
}
.plan__badge-name {
  font-family: 'Noto Sans JP', sans-serif; font-weight: 700;
  /* Figma: プランNO テキスト 96px → 大字 */
  font-size: clamp(20px, 4.2vw, 72px);
  color: #fff;
  text-shadow: 0 4px 18px #6f3e08;
  line-height: 1.1; letter-spacing: .02em;
  white-space: nowrap;
}


/* ── 右: Swiper ラッパー ── */
.plan__swiper-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
  border: clamp(4px, 0.42vw, 8px) solid #fff;
  border-left: 0;
}

/* Swiper本体 */
.plan-swiper {
  width: 100%;
  height: 100%;
}
.plan-swiper .swiper-slide {
  overflow: hidden;
}
.plan-swiper .swiper-slide img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}

/* ── Swiper ナビゲーション (← →) ── */
.plan-swiper-prev,
.plan-swiper-next {
  /* 矢印サイズ・色はFigmaに合わせる */
  --swiper-navigation-size: clamp(16px, 2.4vw, 32px);
  --swiper-navigation-color: #fff;
  /* 背景白半透明ボックス */
  width: clamp(32px, 4vw, 64px) !important;
  height: clamp(32px, 4vw, 64px) !important;
  background: rgba(255,255,255,0.88);
  border-radius: 0;
  top: 50%;
  transform: translateY(-50%);
}
.plan-swiper-prev::after,
.plan-swiper-next::after {
  font-size: clamp(14px, 1.5vw, 22px) !important;
  font-weight: 700;
  color: #555;
}
.plan-swiper-prev { left: 0 !important; }
.plan-swiper-next { right: 0 !important; }

/* ── Swiper ページネーション (●) ── */
.plan-swiper-pagination {
  bottom: clamp(8px, 1vw, 16px) !important;
  right: clamp(8px, 1vw, 16px) !important;
  left: auto !important;
  width: auto !important;
  text-align: right;
}
.plan-swiper-pagination .swiper-pagination-bullet {
  width: clamp(8px, 0.8vw, 13px);
  height: clamp(8px, 0.8vw, 13px);
  background: rgba(255,255,255,0.6);
  opacity: 1;
  margin: 0 3px !important;
}
.plan-swiper-pagination .swiper-pagination-bullet-active {
  background: #fff;
}


/* ─────────────────────────────────────────────────────────────────
   PLAN INFO  (タイトル + 選択ボタン)
   ───────────────────────────────────────────────────────────────── */
.plan__info {
  padding: clamp(14px, 1.5vw, 28px) var(--pad-x) clamp(20px, 2.5vw, 48px);
  background: #fff;
}
.plan__title {
  font-family: 'Noto Sans JP', sans-serif; font-weight: 700;
  font-size: clamp(14px, 1.875vw, 36px);
  color: #000; letter-spacing: .05em; line-height: 1.65;
  margin-bottom: clamp(12px, 1.5vw, 28px);
}
/* 選択ボタン */
.plan__select {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  width: clamp(160px, 16.1vw, 309px);
  height: clamp(44px, 3.44vw, 66px);
  border: 5px solid var(--c-border);
  background: #fff;
  font-family: 'Noto Sans JP', sans-serif; font-weight: 700;
  font-size: clamp(13px, 1.25vw, 24px);
  color: #000; letter-spacing: .05em;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.plan__select--active { border-color: var(--c-orange); }
.plan__select:hover   { border-color: var(--c-orange); background: #fff8f0; }
.plan__select-icon {
  width: clamp(14px, 1.25vw, 24px);
  height: clamp(14px, 1.25vw, 24px);
  object-fit: contain; flex-shrink: 0;
  pointer-events: auto;
}


/* =================================================================
   ORDER SUMMARY
   ================================================================= */
.summary-wrap {
  background: #fff;
  display: flex; flex-direction: column; gap: 15px;
  padding: 0 var(--pad-x);
  min-height: clamp(320px, 26.9vw, 516px);
  justify-content: center;
}
.summary {
  background: var(--c-cream);
  min-height: clamp(140px, 12.6vw, 241px);
  display: flex; align-items: flex-end;
  padding: clamp(20px, 2vw, 33px);
}
.summary__inner { width: 100%; display: flex; flex-direction: column; align-items: flex-end; }
.summary__misc {
  font-family: 'Noto Sans JP', sans-serif; font-weight: 400;
  font-size: clamp(13px, 1.25vw, 24px); color: #000;
  letter-spacing: .05em; line-height: 1.67; text-align: right;
}
.summary__total {
  font-family: 'Noto Sans JP', sans-serif; font-weight: 700;
  font-size: clamp(20px, 2.5vw, 48px); color: #000;
  letter-spacing: .05em; text-align: right;
  margin: clamp(6px, 0.8vw, 12px) 0;
}
.summary__note {
  font-family: 'Noto Sans JP', sans-serif; font-weight: 400;
  font-size: clamp(12px, 1.04vw, 20px); color: #000;
  letter-spacing: .05em; text-align: right;
}
.summary__cta {
  background: var(--c-cream);
  min-height: clamp(120px, 10.5vw, 201px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 10px;
}
.summary__cta-note {
  font-family: 'Noto Sans JP', sans-serif; font-weight: 400;
  font-size: clamp(13px, 1.25vw, 24px); color: #000;
  letter-spacing: .02em; line-height: 1.67;
}
.cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 15px;
  background: var(--c-orange);
  width: clamp(240px, 21.875vw, 420px);
  height: clamp(56px, 4.9vw, 94px);
  padding: 0 24px;
  text-decoration: none; transition: background .2s;
}
.cta-btn:hover { background: #e07600; }
.cta-btn__txt {
  font-family: 'Noto Sans JP', sans-serif; font-weight: 700;
  font-size: clamp(16px, 1.25vw, 24px); color: #fff;
  white-space: nowrap; letter-spacing: .08em;
}
.cta-btn__arr {
  width: 14px; height: 14px;
  /*transform: rotate(90deg); */
  filter: brightness(0) invert(1); flex-shrink: 0;
}


/* =================================================================
   PHOTO / FOOTER-BG
   ================================================================= */
.bg-photo { width: 100%; overflow: hidden; }
.bg-photo__img { width: 100%; height: clamp(200px, 43.4vw, 833px); object-fit: cover; }

.footer-bg { width: 100%; overflow: hidden; }
.footer-bg__img { width: 100%; height: clamp(80px, 15.4vw, 295px); object-fit: cover; }


/* =================================================================
   CONTACT BAR
   ================================================================= */
.contact-bar { background: #fff; padding: 24px var(--pad-x); border-top: 1px solid #e8e8e8; }
.contact-bar__inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; gap: clamp(24px, 4vw, 80px);
}
.contact-bar__label {
  position: relative; display: flex; align-items: center;
  background: #1c1c1c; color: #fff;
  font-family: 'Noto Sans JP', sans-serif; font-weight: 700;
  font-size: clamp(13px, 1.04vw, 18px); white-space: nowrap;
  padding: 16px 36px 16px 20px;
}
.contact-bar__label::after {
  content: ''; position: absolute; right: -28px; top: 0;
  border-top: 31px solid transparent; border-bottom: 27px solid transparent;
  border-left: 22px solid #1c1c1c;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.contact-bar__phone { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.contact-bar__phone-link {
  display: flex; align-items: center; gap: 8px; color: #111;
  font-family: 'Noto Sans JP', sans-serif; font-weight: 700; line-height: 1; transition: color .15s;
}
.contact-bar__phone-link:hover { color: var(--c-gold); }
.contact-bar__tel-icon { font-size: clamp(18px, 1.8vw, 34px); }
.contact-bar__tel-num  { font-size: clamp(22px, 2.8vw, 52px); letter-spacing: .02em; }
.contact-bar__hours {
  font-size: clamp(11px, .83vw, 15px); color: #555;
  margin-top: 6px; padding-top: 5px; width: 100%; text-align: center;
}
.contact-bar__mail {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--c-gold); padding: 14px 20px;
  flex: 1; max-width: 440px; color: var(--c-gold);
  font-family: 'Noto Sans JP', sans-serif; font-weight: 700;
  font-size: clamp(13px, 1.04vw, 18px); white-space: nowrap; transition: background .15s; height: 60px;
}
.contact-bar__mail:hover { background: #fffaf5; }
.contact-bar__mail-icon { font-size: 17px; flex-shrink: 0; }
.contact-bar__mail-text { flex: 1; }
.contact-bar__mail-arr  { font-size: 11px; color: var(--c-gold); flex-shrink: 0; }


/* =================================================================
   FOOTER
   ================================================================= */
.footer__nav {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: #f0ece5; padding: clamp(28px, 3vw, 52px) 0;
}
.footer__nav-col {
  padding: 0 clamp(24px, 4vw, 80px);
  display: flex; flex-direction: column; gap: clamp(12px, 1.8vw, 28px);
  border-right: 1px solid #ccc8c0;
}
.footer__nav-col:last-child { border-right: none; }
.footer__nav-col a {
  font-family: 'Noto Sans JP', sans-serif; font-weight: 400;
  font-size: clamp(13px, .94vw, 17px); color: #333; transition: color .15s;
}
.footer__nav-col a:hover { color: var(--c-gold); }

.footer__bottom { background: #fff; padding: clamp(24px, 3vw, 44px) var(--pad-x); border-top: 1px solid #e0ddd8; }
.footer__bottom-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; gap: clamp(20px, 3vw, 60px); flex-wrap: wrap;
}
.footer__brand { flex-shrink: 0; padding-right: clamp(20px, 3vw, 52px); border-right: 1px solid #d8d4ce; }
.footer__logo  { height: clamp(40px, 5vw, 72px); width: auto; object-fit: contain; }
.footer__address {
  font-style: normal; font-family: 'Noto Sans JP', sans-serif; font-weight: 400;
  font-size: clamp(11px, .83vw, 15px); line-height: 1.9; color: #444;
}
.footer__address a { color: #444; }
.footer__address a:hover { color: var(--c-gold); }
.footer__vline { width: 1px; align-self: stretch; background: #d8d4ce; flex-shrink: 0; min-height: 60px; }
.footer__biz {
  font-family: 'Noto Sans JP', sans-serif; font-weight: 400;
  font-size: clamp(11px, .83vw, 15px); line-height: 1.9; color: #444;
}
.footer__biz p + p { margin-top: 4px; }


/* =================================================================
   RESPONSIVE
   ================================================================= */

/* ≤ 1300px */
@media (max-width: 1300px) {
  :root { --pad-x: 40px; }
  .plan__title { font-size: clamp(14px, 1.5vw, 28px); }
  .plan__badge-name { font-size: clamp(18px, 4vw, 56px); }
}

/* ≤ 1100px */
@media (max-width: 1100px) {
  :root { --pad-x: 28px; }
  .pg-tab__label { font-size: clamp(13px, 2vw, 26px); }
}

/* ≤ 900px */
@media (max-width: 900px) {
  :root { --pad-x: 20px; --gallery-h: clamp(220px, 45vw, 480px); }
  .hd__tab { flex: 1; width: auto; min-width: 0; height: 48px; gap: 8px; }
  .hd__tab-text { font-size: 14px; }
  .pg-tab { flex: 1; width: auto; min-width: 0; height: 80px; flex-direction: column; gap: 5px; }
  .pg-tab__label { font-size: 15px; white-space: normal; text-align: center; }
  .pg-tab__icon-wrap { width: 28px; height: 28px; }
  .plan__title { white-space: normal; }
  .plan__badge-name { font-size: clamp(16px, 3.5vw, 42px); }
  .summary__cta-note { white-space: normal; text-align: center; }
  /* Footer */
  .footer__nav { grid-template-columns: 1fr 1fr; }
  .footer__nav-col:nth-child(2) { border-right: none; }
  .footer__nav-col:nth-child(3) { grid-column: span 2; border-right: none; border-top: 1px solid #ccc8c0; padding-top: 20px; }
  .contact-bar__inner { gap: 14px; }
  .contact-bar__mail { flex: none; }
}

/* ≤ 700px — スタック (上下) */
@media (max-width: 700px) {
  :root { --pad-x: 14px; }
  /* Header */
  .hd__logo { height: 32px; }
  .hd__tab  { flex: 1; width: auto; min-width: 0; height: 42px; gap: 6px; padding: 0 8px; }
  .hd__tab-text { font-size: 12px; }
  .hd__tab-icon { width: 16px; height: 16px; }
  .hd__tab--outline { border-width: 1.5px; }
  /* Page tabs */
  /*.pg-tabs { padding: 0; }*/
  .pg-tab  { flex: 1; width: auto; min-width: 0; height: 64px; }
  .pg-tab--outline { border-width: 1.5px; }
  .pg-tab__label { font-size: 12px; }
  /* Gallery: 縦積み */
  .plan__gallery {
    flex-direction: column;
    height: auto;
  }
  .plan__main {
    flex: none;
    height: clamp(200px, 55vw, 380px);
    border: clamp(3px, 0.4vw, 6px) solid #fff;
    border-bottom: 0;
  }
  .plan__swiper-wrap {
    height: clamp(200px, 55vw, 380px);
    border: clamp(3px, 0.4vw, 6px) solid #fff;
    border-top: 0;
  }
  .plan__badge-num  { font-size: clamp(14px, 3.5vw, 28px); }
  .plan__badge-name { font-size: clamp(16px, 5vw, 36px); }
  /* Plan info */
  .plan__title { font-size: 14px; }
  .plan__select { height: 52px; font-size: 14px; width: 100%; max-width: 260px; }
  /* Summary */
  .cta-btn { width: min(100%, 320px); height: 60px; }
  /* Contact */
  .contact-bar__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .contact-bar__label { width: 100%; }
  .contact-bar__label::after { display: none; }
  .contact-bar__phone { width: 100%; align-items: center; }
  .contact-bar__mail  { width: 100%; max-width: 100%; height: auto; padding: 12px 16px; }
  /* Footer */
  .footer__nav { grid-template-columns: 1fr; }
  .footer__nav-col { border-right: none; border-bottom: 1px solid #ccc8c0; padding-bottom: 16px; }
  .footer__nav-col:last-child { border-bottom: none; }
  .footer__nav-col:nth-child(3) { grid-column: auto; border-top: none; }
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer__brand { border-right: none; padding-right: 0; border-bottom: 1px solid #d8d4ce; padding-bottom: 14px; width: 100%; }
  .footer__vline { width: 100%; height: 1px; min-height: 0; }
}

/* ≤ 480px */
@media (max-width: 480px) {
  .hd__tabs { flex-direction: column; }
  .hd__tab  { flex: none; width: 100%; height: 44px; }
  .pg-tabs  { flex-direction: column; }
  .pg-tab   { flex: none; width: 100%; height: 44px; flex-direction: row; gap: 10px; }
  /*.pg-tab--outline { border-width: 2px 0; }*/
}