/* ================================================================
   ロイヤル建材  正式見積りを依頼する  ─  style.css
   Design base: 1920px × 5395px  ·  Fonts: Noto Sans JP / Inter
   ================================================================ */

/* ── 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: #0d0d0d; 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; }
address { font-style: normal; }

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
  --c-gold:       #b58d61;
  --c-gold-dark:  #794812;
  --c-gold-light: #f7ecdf;
  --c-cream:      #fdf8f3;
  --c-red:        #cb0000;
  --c-border:     #c4c4c4;
  --c-divider:    #d5d5d5;
  --c-input-bg:   #e9e9e9;
  --c-gray-txt:   #878787;
  --pad-x:        55px;
  --max-w:        1811px;
  /* Form layout: matches Figma exactly at 1920px
     Label col left:308, right edge ~720px → width ~414px
     Field col left:722, right edge ~1611px → width 889px */
  --form-lbl-w:   414px;
  --form-fld-w:   889px;
  --form-left:    308px;
}

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


/* ================================================================
   HEADER  (identical to homepage)
   ================================================================ */
.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; }

/* 导航栏与 plans 一致：597×119，两侧留白，标签间距与圆角 */
.hd__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;
}
.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; }
.hd__tab--active { background: var(--c-gold); border: 5px solid var(--c-gold); cursor: default;}
.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); }


/* ================================================================
   FAQ SECTION  (top:110px in Figma)
   ================================================================ */
.faq-sec {
  padding: clamp(40px, 5.73vw, 110px) var(--pad-x) clamp(50px, 6.77vw, 130px);
}
.faq-sec__ttl {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 2.5vw, 48px);
  color: var(--c-gold);
  text-align: center;
  margin-bottom: clamp(6px, 0.52vw, 10px);
  letter-spacing: .02em;
}
.faq-sec__sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: clamp(12px, 0.833vw, 16px);
  color: var(--c-gray-txt);
  text-align: center;
  margin-bottom: clamp(24px, 3.65vw, 70px);
  white-space: nowrap;
}

/* FAQ list — max-width 1123px, centered */
.faq-list {
  max-width: 1123px;
  margin: 0 auto;
}

/* FAQ item */
.faq-item { position: relative; }

.faq-item__btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: clamp(12px, 1.25vw, 24px) 0;
  gap: clamp(8px, 1.04vw, 20px);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}
.faq-item__q {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: clamp(14px, 1.04vw, 20px);
  color: var(--c-gold);
  flex-shrink: 0;
  width: 20px;
  line-height: 1;
}
.faq-item__qtxt {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: clamp(12px, 1vw, 16px);
  color: var(--c-gold);  /* closed: gold per screenshot */
  letter-spacing: .035em;
  line-height: 2.4;
  flex: 1;
}
/* closed state → title gold, open state → title dark */
.faq-item__btn[aria-expanded="true"] .faq-item__qtxt { color: #0d0d0d;}
.faq-item__btn[aria-expanded="true"] .faq-item__arr { transform: rotate(90deg);}
.faq-item__qtxt { color: #0d0d0d; }  /* all dark in design */

.faq-item__arr {
  width: 9px;
  height: 17px;
  flex-shrink: 0;
  object-fit: contain;
  transition: transform .25s;
}
/* open arrow is already rotated in the asset — keep as-is */
.faq-item__arr--open { /* no additional transform needed, asset shows down */ }

.faq-item__line {
  display: block;
  width: 100%;
  height: 1px;
  object-fit: fill;
}

/* Answer panel */
.faq-item__ans {
  background: var(--c-cream);
  padding: clamp(12px, 1.25vw, 24px) clamp(12px, 1.04vw, 20px) clamp(12px, 1.25vw, 24px) clamp(28px, 2.6vw, 50px);
  display: flex;
  gap: clamp(10px, 1.56vw, 30px);
  animation: faq-reveal .2s ease;
}
.faq-item__ans[hidden] { display: none !important; }
.faq-item__ans--open   { display: flex; }

@keyframes faq-reveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.faq-item__a {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(14px, 1.04vw, 20px);
  color: #6d6d6d;
  flex-shrink: 0;
  width: 20px;
  padding-top: 8px;
  line-height: 1;
}
.faq-item__atxt {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: clamp(12px, 0.833vw, 16px);
  line-height: 2.33;
  color: #0d0d0d;
}


/* ================================================================
   FORM SECTION  (top:1450px in Figma)
   ================================================================ */
.form-sec {
  padding: clamp(40px, 3.65vw, 70px) var(--pad-x) 0;
   /* 与上方 .faq-list 对齐：同样的内容宽度与左右边距 */
  /*padding: clamp(40px, 3.65vw, 70px) 0 0;*/
  max-width: 1123px;
  margin: 0 auto;
}
.form-sec__ttl {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 2.5vw, 48px);
  color: var(--c-gold);
  text-align: center;
  margin-bottom: clamp(4px, 0.31vw, 6px);
  letter-spacing: .02em;
}
.form-sec__sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: clamp(12px, 0.833vw, 16px);
  color: var(--c-gray-txt);
  text-align: center;
  margin-bottom: clamp(30px, 3.13vw, 60px);
}

/* ── Form container ─ max matches label(414) + gap(22) + field(889) = 1325px */
.est-form {
  max-width: calc(var(--form-lbl-w) + 22px + var(--form-fld-w));
  margin: 0 auto;
}

/* ── Form Row ────────────────────────────────────────────────── */
.form-row {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 1.15vw, 22px);
  padding: clamp(10px, 1.04vw, 20px) 0;
  border-bottom: 1px solid var(--c-divider);
}
.form-row:first-of-type { border-top: 1px solid var(--c-divider); }

/* Label column */
.form-row__lbl {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.833vw, 16px);
  min-width: var(--form-lbl-w);
  width: var(--form-lbl-w);
  flex-shrink: 0;
  padding-top: clamp(14px, 0.94vw, 18px);
}
.form-row__lbl--top { align-items: flex-start; padding-top: clamp(12px, 0.83vw, 16px); }
.form-row__lbl-txt {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: clamp(12px, 0.833vw, 16px);
  white-space: nowrap;
  color: #000;
  line-height: 2.5;
}
.form-row__lbl-txt--wrap { white-space: normal; line-height: 1.56; }

/* 必須 badge  w:52 h:24 */
.form-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-red);
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: clamp(10px, 0.833vw, 16px);
  line-height: 1.25;
  height: 24px;
  padding: 0 10px;
  min-width: 52px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Field column */
.form-row__fld { flex: 1; min-width: 0; width: 100%;}
.form-row__fld--radio {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(8px, 1.56vw, 28px);
  padding-top: clamp(12px, 0.94vw, 18px);
}
.form-row__fld--sel { position: relative; }
.form-row__fld--uploads {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 0.73vw, 14px);
  padding-top: clamp(6px, 0.42vw, 8px);
}
.form-row__fld--area {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 0.83vw, 16px);
  padding-top: clamp(6px, 0.42vw, 8px);
}
.form-row__fld--radios {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.52vw, 10px);
  padding-top: clamp(6px, 0.42vw, 8px);
}

/* ── Text inputs  bg:#e9e9e9  h:54 ─────────────────────────── */
.f-input {
  display: block;
  width: 100%;
  height: 54px;
  background: var(--c-input-bg);
  border: none;
  outline: none;
  padding: 0 clamp(12px, 1.3vw, 25px);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: clamp(12px, 0.833vw, 16px);
  color: #0d0d0d;
  transition: box-shadow .15s, background .15s;
}
.f-input::placeholder { color: var(--c-gray-txt); }
.f-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--c-gold); }

/* Small (郵便番号/都道府県/市区町村): left:822 w:372  ← 822-722=100px offset handled by area-sublbl */
.f-input--sm { max-width: 372px; }
/* Large (建物名以後): w:789 */
.f-input--lg { max-width: 789px; }

/* ── Select  same bg h:54 ───────────────────────────────────── */
.f-select {
  display: block;
  width: 100%;
  height: 54px;
  background: var(--c-input-bg);
  border: none;
  outline: none;
  padding: 0 clamp(12px, 1.3vw, 25px);
  padding-right: 48px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: clamp(12px, 0.833vw, 16px);
  color: var(--c-gray-txt);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: box-shadow .15s;
}
.f-select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--c-gold); }
.f-select option { color: #0d0d0d; }
.f-select--sm { max-width: 372px; }

/* Select wrapper for custom arrow (rotated 180°  = pointing down) */
.form-row__fld--sel { position: relative; display: block; }
.area-sel-wrap      { position: relative; display: inline-block; max-width: 372px; width: 100%; }
.f-sel-arr {
  position: absolute;
  right: clamp(8px, 1.25vw, 24px);
  top: 50%;
  /*transform: translateY(-50%) rotate(180deg);  */
  /* polygon points up → rotate → points down */
  width: 18px;
  height: 13px;
  object-fit: contain;
  pointer-events: none;
}
.f-sel-arr--sm { right: 10px; }

/* ── Textarea  h:226 ────────────────────────────────────────── */
.f-textarea {
  display: block;
  width: 100%;
  min-height: 226px;
  background: var(--c-input-bg);
  border: none;
  outline: none;
  padding: clamp(10px, 1.04vw, 20px) clamp(12px, 1.3vw, 25px);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: clamp(12px, 0.833vw, 16px);
  color: #0d0d0d;
  resize: vertical;
  line-height: 1.8;
  transition: box-shadow .15s;
}
.f-textarea::placeholder { color: var(--c-gray-txt); }
.f-textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--c-gold); }

/* ── Radio buttons  size:16×16 ──────────────────────────────── */
.f-radio {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.52vw, 10px);
  cursor: pointer;
  user-select: none;
}
.f-radio input[type="radio"] { display: none; }
.f-radio__outer {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.f-radio__outer img { width: 16px; height: 16px; display: block; }
.f-radio__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px !important;
  height: 10px !important;
  display: none;
}
/* Show dot for checked first radio (楽天) = pre-selected in Figma */
.f-radio__outer--checked .f-radio__dot { display: block; }
/* JS will toggle .f-radio__outer--checked */
.f-radio__txt {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: clamp(12px, 0.833vw, 16px);
  line-height: 1.56;
  color: #0d0d0d;
}

/* ── File upload：默认1个按钮，每上传一张在原位显示预览，下方新增一个按钮  w:157 h:47 ── */
.form-upload-slot {
  position: relative;
  min-height: 47px;
}
.f-upload-input { display: none; }
.f-upload-input.upload-input-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.f-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 157px;
  height: 47px;
  background: var(--c-input-bg);
  border: 1px solid var(--c-gray-txt);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: clamp(12px, 0.833vw, 16px);
  color: #0d0d0d;
  cursor: pointer;
  transition: background .15s;
}
.f-upload-btn:hover { background: #ddd; }


.upload-file {
  display: inline-flex;
  align-items: center;
  max-width: min(100%, 520px);
  min-height: 47px;
  padding: 10px 12px;
  background: var(--c-input-bg);
  border: 1px solid var(--c-gray-txt);
  color: #0d0d0d;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: clamp(12px, 0.833vw, 16px);
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ── Address area sub-labels ────────────────────────────────── */
/* Design: sub-label text at left:723, input at left:822 → gap ~100px
   We model this as a fixed sub-label width */
.area-row {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.52vw, 10px);
}
.area-sublbl {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: clamp(12px, 0.833vw, 16px);
  color: #0d0d0d;
  width: clamp(50px, 5.21vw, 100px);
  flex-shrink: 0;
  line-height: 2.5;
}

/* ================================================================
   SUMMARY / PRICE SECTION  (top:3407px in Figma)
   ================================================================ */
.summary-wrap {
  max-width: calc(var(--form-lbl-w) + 22px + var(--form-fld-w));
  margin: clamp(30px, 3.13vw, 60px) auto 0;
}
.summary-ttl {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 1.67vw, 32px);
  color: #0d0d0d;
  letter-spacing: .05em;
  margin-bottom: clamp(16px, 1.56vw, 30px);
}

/* Table  w:1303 → matches form-lbl(414)+22+fld(889)=1325 ≈ ok */
.summary-tbl {
  background: var(--c-cream);
  width: 100%;
}
.summary-row {
  display: flex;
  align-items: center;
  height: 80px;
  padding: 0 20px;
  border-bottom: 1px solid var(--c-divider);
  gap: clamp(20px, 6vw, 330px);
}
.summary-row:last-child { border-bottom: none; }
.summary-key {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 1.25vw, 24px);
  min-width: clamp(100px, 10.73vw, 206px);
  color: #0d0d0d;
  width:400px;
}
.summary-val {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 1.25vw, 24px);
  white-space: nowrap;
  color: #0d0d0d;
}

/* Price panel  h:299  bg:cream */
.price-panel {
  background: var(--c-cream);
  padding: clamp(20px, 2.6vw, 50px) clamp(16px, 2.08vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: clamp(8px, 1.04vw, 20px);
}
.price-misc {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 1.25vw, 24px);
  letter-spacing: .05em;
  color: #0d0d0d;
}
.price-total {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2.5vw, 48px);
  letter-spacing: .05em;
  color: #0d0d0d;
}
.price-note {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: clamp(12px, 1.25vw, 24px);
  letter-spacing: .05em;
  color: #0d0d0d;
}
.price-red { color: var(--c-red); }

/* ================================================================
   FORM ACTIONS  (top:4176/4230px in Figma)
   ================================================================ */
.form-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3.65vw, 70px);
  padding: clamp(30px, 3.13vw, 60px) var(--pad-x);
}
/* 前のページへ  underline gray */
.form-back {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: clamp(12px, 0.833vw, 16px);
  color: var(--c-gray-txt);
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity .15s;
  white-space: nowrap;
}
.form-back:hover { opacity: .7; }

/* 見積もりを依頼  w:440 h:94  bg:gold */
.form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(200px, 22.92vw, 440px);
  height: clamp(54px, 4.9vw, 94px);
  background: var(--c-gold);
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 1.25vw, 24px);
  letter-spacing: .02em;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.form-submit:hover  { background: #a27a52; }
.form-submit:active { transform: scale(.98); }

/* ================================================================
   IMAGE 6  (interior photo, top:4270 h:833)
   ================================================================ */
.img6-wrap {
  width: 100%;
  height: clamp(200px, 43.4vw, 833px);
  overflow: hidden;
}
.img6 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ================================================================
   IMAGE 7  (footer BG strip, top:5100 h:295)
   ================================================================ */
.img7-wrap {
  width: 100%;
  height: clamp(80px, 15.36vw, 295px);
  overflow: hidden;
  position: relative;
}
.img7 {
  position: absolute;
  width: 100.12%;
  height: 266.1%;
  left: -0.06%;
  top: -166.1%;
  object-fit: cover;
}

/* ================================================================
   CONTACT BAR  (identical to homepage)
   ================================================================ */
.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: -22px;
  top: 0;
  width: 0; height: 0;
  border-top: solid transparent;
  border-bottom: solid transparent;
  border-left: 22px solid #1c1c1c;
  border-top-width: 31px;
  border-bottom-width: 27px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);*/
    content: '';
    position: absolute;
    right: -27px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 29px solid transparent;
    border-bottom: 29px solid transparent;
    border-left: 22px solid #1c1c1c;
}
.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-family: 'Noto Sans JP', sans-serif;
  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-text { flex: 1; }
.contact-bar__mail-arr  { font-size: 11px; color: var(--c-gold); flex-shrink: 0; }


/* ================================================================
   FOOTER  (identical to homepage)
   ================================================================ */
.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 BREAKPOINTS
   ================================================================ */

/* ── 1300px: shrink form cols ─────────────────────────────────── */
@media (max-width: 1300px) {
  :root {
    --form-lbl-w: 260px;
    --form-fld-w: 100%;
  }
  .f-input--sm, .f-select--sm, .area-sel-wrap { max-width: 100%; }
  .f-input--lg { max-width: 100%; }
}

/* ── 1100px ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  :root { --pad-x: 32px; }
}

/* ── 900px ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --pad-x: 20px; --form-lbl-w: 200px; }
  .hd__tab-text { font-size: 14px; }
  .hd__tab { flex: 1; width: auto; min-width: 0; height: 48px; gap: 8px; }

  .faq-sec__sub { white-space: normal; }
  .summary-row { gap: 20px; }

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

/* ── 768px: stack form rows ──────────────────────────────────── */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 8px;
    --form-lbl-w: 260px;
    --form-fld-w: 100%;
  }
  .form-row__lbl,
  .form-row__lbl--top {
    width: 100%;
    min-width: unset;
    padding-top: 0;
    align-items: center;
  }
  .form-row__fld--radio  { padding-top: 0; }
  .form-row__fld--radios { padding-top: 0; }
  .form-row__fld--area   { padding-top: 0; }
  .form-row__fld--uploads { padding-top: 0; }
  .summary-row { height: auto; min-height: 60px; padding: 12px 20px; flex-wrap: wrap; gap: 10px; }
  .form-actions { flex-wrap: wrap; gap: 16px; }
}

/* ── 700px ───────────────────────────────────────────────────── */
@media (max-width: 700px) {
  :root { --pad-x: 14px; }
  .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: 28px; height: 28px; }
  .hd__tab--outline { border-width: 1.5px; }
  
  /* 表单区：左边距更大、右边距更小；提示语完整换行显示 */
  .form-sec {
    max-width: 100%;
    box-sizing: border-box;
    padding: clamp(32px, 5vw, 56px) 12px 0 24px;
  }
  .form-sec__sub { white-space: normal; }
  .form-row__lbl-txt { white-space: normal; line-height: 1.6; }
  .summary-val { white-space: normal; word-break: break-word; }
  .form-back { white-space: normal; }

  .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__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; }

  .form-submit { width: 100%; }
  .area-row { flex-wrap: wrap; }
  .area-sublbl { width: 80px; }
}

/* ── 480px ───────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hd__tabs { flex-direction: column; }
  .hd__tab  { flex: none; width: 100%; height: 44px; gap: 10px;}
  .faq-item__qtxt { font-size: 13px; }
  .summary-key, .summary-val { font-size: 14px; }
  .price-total { font-size: 20px; }
}

/* ── Validation feedback ─────────────────────────────────────── */
.f-input.invalid,
.f-select.invalid,
.f-textarea.invalid {
  box-shadow: inset 0 0 0 2px var(--c-red);
}

/* ================================================================
   CUSTOM DROPDOWN  (Figma 2-1659 / 2-1650)
   — replaces native <select> with pixel-perfect custom list
   ================================================================ */

/* Trigger button — same size/bg as native select */
.f-custom-sel {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 54px;
  background: var(--c-input-bg);
  border: none;
  outline: none;
  padding: 0 clamp(12px, 1.3vw, 25px);
  padding-right: 48px;
  cursor: pointer;
  text-align: left;
  transition: box-shadow .15s;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: clamp(12px, 0.833vw, 16px);
}
.f-custom-sel:focus { box-shadow: inset 0 0 0 2px var(--c-gold); outline: none; }
.f-custom-sel.invalid { box-shadow: inset 0 0 0 2px var(--c-red); }

.f-custom-sel__txt { color: var(--c-gray-txt); flex: 1; }
.f-custom-sel__txt--selected { color: #0d0d0d; }

/* Arrow — lives inside the button, rotates when open */
.f-custom-sel .f-sel-arr {
  position: absolute;
  right: clamp(8px, 1.25vw, 24px);
  top: 40%;
  /*transform: translateY(-50%) rotate(180deg);*/
  pointer-events: none;
  transition: transform .2s;
}
.f-custom-sel[aria-expanded="true"] .f-sel-arr {
  transform: translateY(-50%) rotate(0deg);
}

/* Dropdown list  — matches Figma exactly:
   shadow: 0 4px 4px rgba(0,0,0,.25)
   items h:54  bg white  padding:10px
   highlighted row bg:#fff1da */
.f-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 200;
  background: #fff;
  box-shadow: 0 4px 4px rgba(0, 0, 0, .25);
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 360px;
  overflow-y: auto;
}
.f-dropdown[hidden] { display: none; }

.f-dropdown__item {
  display: flex;
  align-items: center;
  height: 54px;
  padding: 0 10px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: clamp(12px, 0.833vw, 16px);
  color: #0d0d0d;
  background: #fff;
  cursor: pointer;
  transition: background .1s;
  line-height: 2.5;
}
/* Figma highlighted item (2nd option in each list) */
.f-dropdown__item--hl { background: #fff1da; }
/* Hover state */
.f-dropdown__item:hover { background: #fae8c8; }
/* Selected (JS-added class) */
.f-dropdown__item--selected {
  background: #fff1da;
  font-weight: 700;
}

/* Wrapper needs position:relative so dropdown positions correctly */
.form-row__fld--sel { position: relative; }


/* ================================================================
   POPUP / DIALOG  (Figma 2-1645 / 2-1635 / 2-1630)
   Design: w:809  header h:64 bg:#b58d61  body h:195 bg:white
   ================================================================ */

/* Semi-transparent overlay */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: overlay-in .2s ease;
}
.popup-overlay[hidden] { display: none !important; }

@keyframes overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Popup card  — matches Figma w:809 */
.popup {
  width: clamp(300px, 90vw, 809px);
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
  animation: popup-in .22s cubic-bezier(.34, 1.3, .64, 1);
  overflow: hidden;
}
@keyframes popup-in {
  from { opacity: 0; transform: scale(.92) translateY(16px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

/* Gold header bar  h:64 */
.popup__head {
  height: 64px;
  background: var(--c-gold);   /* #b58d61 */
  width: 100%;
}

/* White body  h:195 */
.popup__body {
  position: relative;
  min-height: 195px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3vw, 40px) clamp(20px, 4vw, 60px);
}

/* Close button — top-right corner of the popup, overlapping the gold header */
.popup { position: relative; }
.popup__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: opacity .15s;
}
.popup__close:hover { opacity: .7; }

/* Message text  — matches Figma font-size:20 tracking:1px */
.popup__msg {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: clamp(14px, 1.04vw, 20px);
  color: #0d0d0d;
  letter-spacing: .05em;
  line-height: 2;
  text-align: center;
}
.popup__msg--center { text-align: center; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .popup__head { height: 44px; }
  .popup__body { min-height: 140px; }
  .f-dropdown__item { height: 46px; }
}