/* =============================================================
   ロイヤル建材 かんたん見積もり  ─  style.css
   ============================================================= */

/* ── 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-gold:       #b58d61;
  --c-gold-dark:  #794812;
  --c-gold-light: #f7ecdf;
  --c-cream:      #fdf8f3;
  --c-orange:     #c86900;
  --c-red:        #cb0000;
  --c-yellow:     #fdff7c;
  --c-border:     #c4c4c4;
  --c-divider:    #d5d5d5;
  --pad-x: 55px;
  --max-w: 1811px;
}

.page { max-width: 1920px; margin: 0 auto; overflow: hidden; }


/* =============================================================
   HEADER
   ============================================================= */

/* ─ Logo row */
.hd{
  padding: 0 55px;
}
.hd__logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0 14px;
  background: #fff;
}
.hd__logo-link { display: flex; }
.hd__logo {
  /* 截图中 logo 较小，约为 logo区域 1/3 宽 */
  height: 44px;
  width: auto;
  object-fit: contain;
}

/* ─ Tab row（与 plans 的 .pg-tabs / .pg-tab 一致，两侧留白，标签间距与圆角） */
.hd__tabs {
  display: flex;
  gap: clamp(12px, 3vw, 75px);
  width: 100%;
  max-width: calc(var(--max-w) + (var(--pad-x) * 2));
  margin: 0 auto 50px;
  padding: 0 var(--pad-x);
  box-sizing: border-box;
  background: #fff;
}
.hd__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);
  cursor: pointer;
  transition: opacity .15s;
  border: none;
  border-radius: 8px;
}
.hd__tab:hover { opacity: .88; }

/* active → 金色背景 */
.hd__tab--active {
  background: var(--c-gold);
  border: 5px solid var(--c-gold);
}
/* outline → 白背景 + 金色 border（与 plans 一致 5px） */
.hd__tab--outline {
  background: #fff;
  border: 5px solid var(--c-gold);
}

.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-gold); }

/* ─ Page tab row（与 showroom / plans 同结构） */
.pg-tabs {
  display: flex;
  gap: clamp(12px, 3vw, 75px);
  width: 100%;
  max-width: calc(var(--max-w) + (var(--pad-x) * 2));
  margin: 0 auto 50px;
  padding: 0 var(--pad-x);
  box-sizing: border-box;
  background: #fff;
}
.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-gold);
}
.pg-tab--outline:hover { opacity: .85; }
.pg-tab--filled {
  background: var(--c-gold);
  border: 5px solid var(--c-gold);
  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--gold { color: var(--c-gold); }
.pg-tab__label--white { color: #fff; }




/* =============================================================
   HERO BANNER
   ============================================================= */
.hero {
    padding: 0 var(--pad-x);
  /*padding: 0 55px;*/
  padding-bottom: 40px;
}
.hero_box {
  width: 100%;
  background: var(--c-gold);
  overflow: visible;
  position: relative;
}
.hero__cream {
  position: absolute;
  left: 0; right: 0; bottom: 0;
   height: 69%;
  background: var(--c-gold-light);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  overflow: visible;
}
.hero__title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 5.25vw, 100.736px);
  color: var(--c-yellow);
  letter-spacing: .05em;
  text-align: center;
  padding-top: clamp(14px, 2.1vw, 41px);
  white-space: nowrap;
}
.hero__subtitle {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: clamp(15px, 2.5vw, 48px);
  color: #fff;
  letter-spacing: .08em;
  text-align: center;
  margin-top: 4px;
  white-space: nowrap;
}
.hero__row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: clamp(8px, 1.8vw, 36px);
  margin-top: clamp(12px, 2vw, 36px);
}
.hero__hand {
  flex-shrink: 0;
  width: clamp(80px, 29vw, 559px);
  position: relative;
  overflow: visible;
  align-self: stretch;
  margin-left: calc(-1 * var(--pad-x));
}
.hero__hand_img {
  position: absolute;
  width: 114%;
  height: 147%;
  left: 0%;
  top: -28%;
  transform: scaleY(-1) rotate(180deg);
  max-width: none;
}
/* バッジ：スマホの左側に配置（多角形の上に文字） */
.hero__badge {
  position: absolute;
  left: 18%;
  top: 14%;
  width: clamp(60px, 11vw, 140px);
  height: clamp(60px, 11vw, 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}
.hero__badge-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hero__badge-text {
  position: relative;
  z-index: 1;
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: clamp(11px, 2vw, 28px);
  color: #f5f0e8;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  top: 0;
  left: 0;
}
.hero__card {
  flex: 1;
  max-width: 524px;
  min-width: 160px;
  background: #fff;
  border: 10px solid var(--c-gold);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(10px, 2vw, 28px) 12px clamp(12px, 2vw, 28px);
  gap: clamp(6px, 1vw, 14px);
}
.hero__card-icon {
  width: clamp(60px, 11vw, 213px);
  height: clamp(60px, 11vw, 213px);
  object-fit: contain;
}
.hero__card-text {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 500;
  font-size: clamp(13px, 2.1vw, 40px);
  line-height: 1.5;
  text-align: center;
  color: #000;
}
.hero__plus {
  flex-shrink: 0;
  width: clamp(20px, 3.5vw, 67px);
  height: clamp(20px, 3.5vw, 67px);
  align-self: center;
  margin-top: clamp(16px, 3vw, 60px);
  object-fit: contain;
}
.hero__desc {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: clamp(12px, 1.67vw, 32px);
  line-height: 1.75;
  text-align: center;
  color: #000;
  margin-top: clamp(12px, 2vw, 36px);
}


/* =============================================================
   CTA HEADING
   ============================================================= */
.cta {
  text-align: center;
  padding: clamp(20px, 3vw, 56px) var(--pad-x) clamp(8px, 1.2vw, 16px);
}
.cta__arrow {
  display: block;
  width: 175px;
  height: 55px;
  max-width: 100%;
  margin: 0 auto clamp(10px, 1.2vw, 16px);
  transform: rotate(180deg);
  object-fit: contain;
  cursor: pointer;
}
.cta__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 2.5vw, 48px);
  line-height: 1.4;
}
.cta__title em { color: var(--c-orange); font-style: normal; }


/* =============================================================
   PRODUCT TYPE TABS（一行显示6个，左右滑动）
   ============================================================= */
.type-tabs-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 var(--pad-x) 14px;
}
.type-tabs-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-gold-dark);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: opacity .2s;
  /*border-radius: 4px;*/
}
.type-tabs-arrow:hover { opacity: .9; }
.type-tabs-arrow__icon {
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
}
.type-tabs-scroll {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.type-tabs-scroll::-webkit-scrollbar { height: 6px; }
.type-tabs-scroll::-webkit-scrollbar-thumb { background: var(--c-gold); border-radius: 3px; }
.type-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 4px 0;
}
.type-tab {
  flex: 0 0 241.33px;
  width: 241.33px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: clamp(11px, 1.04vw, 16px);
  border: 1px solid var(--c-gold-dark);
  color: var(--c-gold-dark);
  background: #fff;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.type-tab.is-active {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: #fff;
  /* outline: 2px solid #2563eb; */
  outline-offset: 2px;
}
.type-tab:hover:not(.is-active) { background: #fdf0e3; }

/* 扉カラーリンク */
.door-link-wrap { display: flex; justify-content: center; margin: 6px 0 24px; }
.door-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 56px;
  padding: 0 28px;
  border: 1.5px solid var(--c-gold);
  color: var(--c-gold);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: clamp(12px, 1.04vw, 18px);
  white-space: nowrap;
  transition: background .15s;
}
.door-link:hover { background: #fff9f3; }
.door-link__arrow { width: 10px; height: 10px; object-fit: contain; }


/* =============================================================
   SECTION BLOCK
   ============================================================= */
.sec { padding: 0 var(--pad-x); margin-bottom: 36px; }
.sec__hd {
  display: flex;
  align-items: center;
  background: var(--c-gold);
  height: 81px;
  padding: 0 20px;
  margin-bottom: 20px;
}
.sec__hd-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 1.67vw, 32px);
  color: #fff;
}

/* Group tabs */
.grp-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.grp-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 52px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(12px, 1.04vw, 18px);
  border: 1px solid var(--c-gold-dark);
  color: var(--c-gold-dark);
  background: #fff;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.grp-tab.is-active { background: var(--c-gold); border-color: var(--c-gold); color: #fff; }
.grp-tab:hover:not(.is-active) { background: #fdf0e3; }

/* Cabinet info */
.cab-info {
  display: grid;
  grid-template-columns: clamp(180px, 38vw, 737px) 1fr;
  gap: 24px;
  margin-bottom: 20px;
  align-items: start;
}
.cab-info__img { width: 100%; aspect-ratio: 737/430; object-fit: cover; }
.cab-info__text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(12px, 1.25vw, 24px);
  line-height: 1.7;
}

/* Option cards */
.opts { display: flex; flex-wrap: wrap; gap: 12px; }
.opt { display: flex; flex-direction: column; gap: 4px; cursor: pointer; flex-shrink: 0; }
.opt__thumb {
  position: relative;
  width: clamp(90px, 13.15vw, 252.507px);
  aspect-ratio: 252.507 / 193.094;
  border: 1px solid var(--c-border);
  overflow: hidden;
  transition: border-color .15s;
}
.opt:hover .opt__thumb     { border-color: var(--c-gold); }
.opt.is-active .opt__thumb { border-color: var(--c-gold); }
.opt__thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.opt__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.4);
  opacity: 0; transition: opacity .15s;
}
.opt.is-active .opt__overlay { opacity: 1; }
.opt__check {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44%; height: 44%;
  object-fit: contain;
  opacity: 0; transition: opacity .15s;
}
.opt.is-active .opt__check { opacity: 1; }
.opt__name {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: clamp(11px, 1.25vw, 24px);
  color: #000;
}
.opt__price {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: clamp(11px, 1.25vw, 24px);
  color: var(--c-orange);
}

/* 商品模块：未选中卡片稍微淡一些，选中卡片高亮边框 */
.goods-list .opt__thumb {
  opacity: .6;
}
.goods-list .opt__thumb.goods_box.is-active {
  border-color: var(--c-gold);
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(181,141,97,0.45);
}

/* 商品リスト用ページネーション */
.goods-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 16px 0 4px;
  font-family: 'Noto Sans JP', sans-serif;
}
.goods-page-btn {
  min-width: 32px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--c-gold-dark);
  background: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.goods-page-btn.is-active {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: #fff;
}
.goods-page-btn--next {
  min-width: 58px;
}
.goods-page-btn:disabled {
  opacity: .4;
  cursor: default;
}



/* =============================================================
   ORDER SUMMARY
   ============================================================= */
.summary { padding: 0 var(--pad-x); margin-bottom: 0; }
.summary__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 1.67vw, 32px);
  letter-spacing: .05em;
  margin-bottom: 4px;
}
.summary__row {
  display: grid;
  grid-template-columns: minmax(180px, 38%) 1fr;
  align-items: center;
  height: 80px;
  border-bottom: 1px solid var(--c-divider);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(13px, 1.25vw, 24px);
  /*gap: clamp(20px, 17vw, 330px);*/
    column-gap: clamp(16px, 4vw, 64px);
}
/*.summary__key { flex-shrink: 0; min-width: 140px; }
.summary__val { white-space: nowrap; }*/
.summary__key { min-width: 0; }
.summary__val {
  justify-self: start;
  white-space: nowrap;
}

/* Total panel */
.total {
  background: var(--c-cream);
  margin: clamp(20px, 3vw, 48px) var(--pad-x);
  padding: clamp(20px, 3vw, 48px) var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.total__misc, .total__note {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(12px, 1.25vw, 24px);
  letter-spacing: .05em;
}
.total__amount {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2.5vw, 48px);
  letter-spacing: .05em;
}
.red { color: var(--c-red); }

/* Submit button */
.submit-wrap { text-align: center; padding: clamp(20px, 3vw, 44px) 0; }
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: clamp(240px, 22.9vw, 440px);
  height: 94px;
  background: var(--c-gold);
  padding: 10px 24px;
  cursor: pointer;
  transition: background .15s;
}
.submit-btn:hover { background: #a37a50; }
.submit-btn__text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 1.25vw, 24px);
  color: #fff;
  white-space: nowrap;
}
.submit-btn__arr {
  width: 14px; height: 14px;
  /*transform: rotate(90deg);*/
  flex-shrink: 0;
  object-fit: contain;
}


/* =============================================================
   CONTACT BAR
   ─ 截图：白背景、三段横排
   ─ 左：黑色台形（含右侧三角飞出箭头）
   ─ 中：电话号码大字 + 时间小字（下划线分隔）
   ─ 右：金色border矩形 "メールでのお問い合わせ ▶"
   ============================================================= */
.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);
  justify-content: space-between;
}

/* 左：黒台形ラベル */
.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 32px 16px 24px;
}
/* 右侧箭头：矩形右边接一个三角形，整体看起来像箭头 */
.contact-bar__label::after {
  content: '';
  position: absolute;
  top: 0;
  right: -28px;
  width: 28px;
  height: 100%;
  background: #1c1c1c;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* 中：電話 */
.contact-bar__phone {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.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(18px, 2.2vw, 40px); letter-spacing: .02em; }
.contact-bar__hours {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(11px, .83vw, 15px);
  color: #555;
  margin-top: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ccc;
  /* 电话号码同宽 */
  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;
  min-width: 0;
  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 {display: inline-flex; }
.contact-bar__mail-icon img {width: 20px;  height: 20px;  object-fit: contain;}
.contact-bar__mail-text { flex: 1; }
.contact-bar__mail-arr  { font-size: 11px; color: var(--c-gold); flex-shrink: 0; }


/* =============================================================
   FOOTER
   ============================================================= */

/* ─ nav 3列 with vertical dividers */
.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); }

/* ─ bottom bar: white bg, logo + address | divider | hours */
.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: stretch;
  gap: 0;
  flex-wrap: nowrap;
}

/* ロゴ */
.footer__brand {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(16px, 2vw, 32px);
}
.footer__logo {
  height: clamp(40px, 5vw, 72px);
  width: auto;
  object-fit: contain;
}

/* 住所 */
.footer__address {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  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;
  text-align: left;
  padding: 0 clamp(16px, 2vw, 32px);
  /* border-left: 1px solid #d8d4ce; */
}
.footer__address a { color: #444; }
.footer__address a:hover { color: var(--c-gold); }

/* 縦線 */
.footer__vline {
  display: none;
}

/* 営業時間 */
.footer__biz {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: clamp(11px, .83vw, 15px);
  line-height: 1.9;
  color: #444;
  text-align: left;
  padding: 0 clamp(16px, 2vw, 32px);
  border-left: 1px solid #d8d4ce;
}
.footer__biz p + p { margin-top: 4px; }


/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1100px) {
  :root { --pad-x: 32px; }
  
  .hero__cream {
   height: 87%;
}
  
}

@media (max-width: 900px) {
  :root { --pad-x: 20px; }
  .hd__tab-text { font-size: 14px; }
  .hd__tab { height: 48px; gap: 8px; }

  .cab-info { grid-template-columns: 1fr; }
  .cab-info__img { max-width: 420px; }

  .footer__nav { grid-template-columns: 1fr 1fr; }
  .footer__nav-col:nth-child(3) { grid-column: span 2; border-right: none; border-top: 1px solid #ccc8c0; padding-top: 20px; margin-top: 4px; }
  .footer__nav-col:nth-child(2) { border-right: none; }

  .contact-bar__inner { gap: 16px; }
  .contact-bar__mail { flex: none; width: auto; }
  .hd {
    padding: 0 14px;
}
.hd__tabs {
  margin-bottom: 14px;
}
.hero {
  padding: 0 14px;
  padding-bottom: 14px;
}
.cta__arrow {
  width: 85px;
  height: 25px;
}

}

@media (max-width: 700px) {
  :root { --pad-x: 14px; }

  .hd__logo { height: 32px; }
  .hd__tab  { 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; }

   .hero__hand {
        /* display: none; */
        min-height: clamp(200px, 26vw, 520px);
        width: 100%;
        overflow: hidden;
    }
  .hero__row  { flex-wrap: wrap; }
  .hero__card { min-width: 200px; width: calc(50% - 8px); }

  .type-tabs-wrap { gap: 8px; padding-left: var(--pad-x); padding-right: var(--pad-x); }
  .type-tabs-arrow { width: 40px; height: 52px; }
  .type-tabs-arrow__icon { font-size: 22px; }
  .type-tabs  { gap: 6px; }
  .type-tab   { flex: 0 0 100px; width: 100px; height: 52px; font-size: 11px; padding: 0 8px; }
  .grp-tabs   { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .grp-tab    { width: 100%; height: 44px; }

  .contact-bar__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .contact-bar__label { width: 100%; }
  /* 小屏也保留右侧箭头（避免被误判“没生效”） */
  .contact-bar__label { padding-right: 32px; }
  .contact-bar__label::after { right: 0; transform: translateX(100%); }
  .contact-bar__phone { width: 100%; align-items: flex-start; }
  .contact-bar__mail  { width: 100%; max-width: 100%; height: auto; padding: 12px 16px; }

  .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%; justify-content: flex-start; }
  .footer__address, .footer__biz { width: 100%; border-left: none; align-items: flex-start; text-align: left; padding: 0; }
  .footer__vline { display: none; }

  .summary__row { height: auto; min-height: 60px; padding: 12px 0; gap: 12px; }
  /* goods_spec_foot_list：手机端标签在上、内容在下，长字符串换行不撑出屏幕 */
  .summary .summary__row {
    grid-template-columns: 1fr;
    row-gap: 6px;
    column-gap: 0;
    align-items: start;
  }
  .summary .summary__key {
    min-width: 0;
  }
  .summary .summary__val {
    white-space: normal;
    justify-self: start;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .total { align-items: flex-end; }
   .hero__row {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: center;
    }
    .hero__card {
        min-width: 280px;
        width: calc(50% - 8px);
    }
}

@media (max-width: 480px) {
  .hd__tabs { flex-direction: column; }
  .hd__tab  { width: 100%; height: 44px; }
  .opts { gap: 8px; }
  .opt__thumb { width: calc(50vw - 20px); }
  .submit-btn { width: 100%; max-width: 320px; height: 72px; }
  .door-link  { padding: 0 20px; height: 50px; }
}

/* =============================================================
   COLOR PANEL SWITCHING  (グループ1/2/3)
   ============================================================= */

/* All panels hidden by default, shown with .is-visible */
.color-panel {
  display: none;
  flex-wrap: wrap;
  gap: 12px;
  /* fade-in animation */
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.color-panel.is-visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
/* When animating in */
.color-panel.is-entering {
  display: flex;
  opacity: 0;
  transform: translateY(6px);
}

/* グループ tab: show group badge indicator */
.grp-tab {
  position: relative;
}
.grp-tab .grp-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c-gold-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
  flex-shrink: 0;
}
.grp-tab.is-active .grp-tab__count {
  background: rgba(255,255,255,0.3);
}

/* =============================================================
   モーダル  ─  扉カラーグループの一覧  (node 2:1882)
   ============================================================= */

/* Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  /* animation */
  opacity: 0;
  transition: opacity .2s ease;
}
.modal-overlay.is-open {
  opacity: 1;
}
/* hidden state via attribute */
.modal-overlay[hidden] {
  display: none !important;
}

/* Modal box */
.modal {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 1060px;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(24px, 3vw, 52px) clamp(20px, 3.5vw, 60px);
  /* slide-up */
  transform: translateY(16px);
  transition: transform .22s ease;
  border-radius: 2px;
  -webkit-overflow-scrolling: touch;
}
.modal-overlay.is-open .modal {
  transform: translateY(0);
}

/* Close button */
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  background: none;
  transition: opacity .15s;
  z-index: 10;
}
.modal__close:hover { opacity: .6; }

/* Title: 扉カラーグループの一覧 */
.modal__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 1.67vw, 32px);
  color: var(--c-gold);
  margin-bottom: clamp(20px, 2.5vw, 40px);
}

/* Group block */
.modal__group {
  margin-bottom: clamp(24px, 3vw, 48px);
}
.modal__group:last-child { margin-bottom: 0; }

/* Group title: グループ１ / ２ / ３ */
.modal__group-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: clamp(16px, 1.67vw, 32px);
  color: var(--c-gold);
  margin-bottom: 8px;
}

/* Gold divider line */
.modal__divider {
  height: 2px;
  background: var(--c-gold);
  margin-bottom: clamp(14px, 1.5vw, 24px);
  opacity: .55;
}

/* Options row */
.modal__opts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, .8vw, 12px);
}

/* Single color option button */
.modal__opt {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: opacity .15s;
}
.modal__opt:hover { opacity: .8; }
.modal__opt:hover .modal__opt-thumb { border-color: var(--c-gold); }

/* Thumb */
.modal__opt-thumb {
  width: clamp(100px, 15.5vw, 216px);
  aspect-ratio: 216 / 165;
  border: 1px solid var(--c-border);
  overflow: hidden;
  transition: border-color .15s;
  position: relative;
}
.modal__opt-thumb img {
  width: 122%;
  height: 132%;
  object-fit: cover;
  position: absolute;
  top: -31%;
  left: -11%;
}

/* Currently selected state inside modal */
.modal__opt.is-selected .modal__opt-thumb {
  border-color: var(--c-gold);
  outline: 2px solid var(--c-gold);
  outline-offset: 1px;
}
.modal__opt.is-selected .modal__opt-name {
  color: var(--c-gold);
  font-weight: 700;
}

/* Name label */
.modal__opt-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: clamp(11px, 1.04vw, 18px);
  color: #000;
  white-space: nowrap;
  transition: color .15s;
}

/* Body scroll lock when modal open */
body.modal-open {
  overflow: hidden;
}

/* ── Modal responsive ───────────────────────────────── */
@media (max-width: 700px) {
  .modal { padding: 20px 16px; }
  .modal__opts { gap: 8px; }
  .modal__opt-thumb { width: calc(50vw - 32px); }
}
@media (max-width: 420px) {
  .modal__opts { gap: 6px; }
  .modal__opt-thumb { width: calc(33vw - 12px); }
  .modal__opt-name  { font-size: 10px; }
}