/* ===== individual/guide.html — matches Figma node 589:6233 (PC) =====
   Built PC-first per instruction, same approach as individual.css: mobile/
   tablet get a reasonable stacked fallback reusing shared components
   (line-badge, faq-item, pill-btn, link-arrow, crop-window) since no SP
   frame exists for this page either. */

/* ---- Hero ----
   Promoted to main.css (.guide-hero*) now that corporate/guide.html is a
   second consumer — see CLAUDE.md's CSS layering convention. This page
   keeps only the floating LINE-consult badge, which corporate/guide.html
   doesn't use (no LINE channel for the corporate audience). Desktop
   positioning for the badge itself now lives in main.css's shared
   `.line-badge` PC rule (this page's own fixed/bottom-right spec was
   promoted to be the basis for every page's line-badge) — only the
   mobile stacking margin stays page-specific here. */

.guide-hero {
  padding-inline: 20px;
}

.guide-hero__line-badge {
  margin-top: 24px;
}

/* ---- Cost breakdown (shared by Cost + Running Cost sections) ---- */

.cost-section {
  padding-block: 48px;
}

.cost-section__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cost-section__lede {
  font-size: 15px;
  line-height: 1.9;
}

.cost-section__body {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* SP/tablet: full width of the stacked body (which centers its children, so
   without this the column shrank to its content). PC overrides it with its
   own flex-basis below. */
.cost-section__rows-col {
  width: 100%;
}

.cost-rows {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* ※ footnote under a cost block (Figma 1748:7286). width:0 + min-width:100%
   means the note contributes nothing to its parent's intrinsic width (so a
   long note can never make .cost-total or the rows column wider) but still
   fills whatever width the parent's other content gives it, wrapping
   inside that. */
.cost-rows__sub-note {
  width: 0;
  min-width: 100%;
  font-size: 12px;
  line-height: 1.9;
  color: #888;
  margin-top: 8px;
}

.cost-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--color-gray-300);
}

.cost-rows > .cost-row:last-child {
  border-bottom: 1px solid var(--color-gray-300);
}

.cost-row__index {
  flex-shrink: 0;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 18px;
  color: var(--color-gold);
}

.cost-row__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cost-row__label {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
}

.cost-row__note {
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-gray-400);
}

.cost-row__value {
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

.cost-row__value-prefix,
.cost-row__value-unit {
  font-size: 16px;
}

.cost-row__value-num {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1;
}

.cost-row--freq .cost-row__main {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.cost-row__freq-value {
  align-self: stretch;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.cost-row__pill {
  padding: 2px 16px;
  border-radius: 100px;
  background: #ddd;
  font-size: 15px;
}

.cost-arrow {
  margin-block: 24px;
  display: flex;
  justify-content: center;
}

.cost-arrow img {
  width: 160px;
  height: auto;
  transform: rotate(180deg);
}

.cost-total {
  width: 100%;
  padding: 16px 24px 24px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--color-gray-300);
  text-align: center;
}

.cost-total__label {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 18px;
}

.cost-total__value {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.cost-total__value-num {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1;
}

.cost-total__value-prefix,
.cost-total__value-unit {
  font-size: 16px;
}

/* Gold LINE-consult banner under the Cost breakdown */
.guide-line-banner {
  margin-top: 32px;
  background: var(--color-gold);
  border-radius: 10px;
  padding: 24px 20px;
  color: var(--color-white);
}

.guide-line-banner__inner{
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.guide-line-banner__heading {
  font-size: 18px;
  line-height: 1.5;
}

.guide-line-banner__desc {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.8;
}

.guide-line-banner .pill-btn {
  background: #06c755;
  border-color: var(--color-white);
  color: var(--color-white);
  min-width: 226px;
  width: max-content;
  line-height: 1;
}

/* Calc-conditions footnote strip (Running Cost only) */
.cost-calc-note {
  margin-top: 32px;
  background: var(--color-gold-tint);
  border-radius: 4px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cost-calc-note__label {
  font-size: 16px;
}

.cost-calc-note__pills {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cost-calc-note__pill {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  padding: 14px 16px;
  text-align: center;
  font-size: 13px;
}

@media (min-width: 992px) {
  .cost-section {
    padding-block: 80px 48px;
  }

  .cost-section__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .cost-section__body {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }

  /* The rows column is 567px (Figma) but may shrink: at the narrow end of
     the PC range (~992px) 567px + the .cost-total box (its text + 72px
     side padding) is wider than the container and overflowed the page. */
  .cost-section__rows-col {
    flex: 0 1 567px;
    min-width: 0;
  }

  .cost-rows {
    width: 100%;
  }

  .cost-row {
    gap: 40px;
    padding: 32px 40px 32px 8px;
  }

  .cost-row__index {
    width: 18px;
    font-size: 24px;
    text-align: center;
  }

  .cost-row__label {
    font-size: 20px;
  }

  .cost-row__note {
    margin-top: 8px;
    font-size: 14px;
    color: var(--color-black);
  }

  .cost-row__value-num {
    font-size: 40px;
  }

  .cost-row__value-prefix,
  .cost-row__value-unit {
    font-size: 18px;
  }

  .cost-row--freq .cost-row__main {
    flex-direction: row;
    align-items: center;
  }

  .cost-row__freq-value {
    width: 179px;
    flex-direction: column;
  }

  .cost-arrow {
    margin-block: 0;
    max-width: 252px;
  }

  .cost-arrow img {
    width: 160px;
    transform: rotate(90deg);
  }

  .cost-total {
    align-self: stretch;
    width: auto;
    padding: 16px 72px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .cost-total__value-num {
    font-size: 40px;
  }

  .guide-line-banner {
    padding: 32px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-left: 1px solid var(--color-white);
    border-right: 1px solid var(--color-white);
    margin-inline: -32px;
  }

  .guide-line-banner__inner {
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-inline: 40px;
    border-left: 1px solid var(--color-white);
    border-right: 1px solid var(--color-white);
  }

  .guide-line-banner__heading {
    font-size: 25px;
  }

  .guide-line-banner__desc {
    font-size: 15px;
    line-height: 1.9;
  }

  .cost-calc-note {
    flex-direction: row;
    align-items: center;
    padding: 24px 32px;
    gap: 40px;
  }

  .cost-calc-note__label {
    flex-shrink: 0;
    font-size: 20px;
  }

  .cost-calc-note__pills {
    flex: 1;
    flex-direction: row;
    gap: 16px;
  }

  .cost-calc-note__pill {
    flex: 1;
    font-size: 15px;
  }
}

/* ---- Model case (Figma 2351:7852) ----
   Three static cards: one column on SP/tablet, three across at 992px+.
   No SP frame exists for this section, so mobile just stacks the PC card. */

.guide-model-case {
  padding-block: 64px 72px;
  background: var(--color-cream);
}

.guide-model-case__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.guide-model-case__lede {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.9;
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 480px;
  margin: 40px auto 0;
}

/* Each card is an anchor target (#guide-model-case-01 …) — keep it clear
   of the pinned header when jumped to. */
.guide-model-case,
.case-card {
  scroll-margin-top: calc(var(--site-header-h, 0px) + 16px);
}

.case-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  background: var(--color-white);
  border-radius: 10px 10px 10px 0;
}

.case-card__top {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-card__intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-card__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.case-card__num {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 36px;
  line-height: 1;
  color: var(--color-gold);
}

.case-card__product {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 16px;
}

.case-card__heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  line-height: 1.6;
}

.case-card__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 24px;
  color: var(--color-black);
}

.case-card__desc {
  font-size: 15px;
  color: var(--color-gold);
}

/* Crop reproduces the Figma image placement exactly (percent of the
   304×202.45 slot), so it scales with the card at every width. */
.case-card__media {
  position: relative;
  aspect-ratio: 304 / 202.45;
  overflow: hidden;
  border-radius: 4px;
  background: #8d8d8d;
  margin-top: -4px; /* Figma: 12px heading→photo gap vs the 16px group gap */
}

.case-card__media img {
  position: absolute;
  max-width: none;
}

.case-card__media--01 img { width: 176.58%; height: 198.86%; left: -6.23%; top: -45.19%; }
.case-card__media--02 img { width: 100%; height: 112.56%; left: 0; top: -10.24%; }
.case-card__media--03 img { width: 162.87%; height: 163.04%; left: -43.21%; top: -24.38%; }

.case-card__photo-note {
  margin-top: -8px; /* Figma: 8px photo→note gap */
  font-size: 11px;
  line-height: 1.9;
  color: #888;
  text-align: center;
}

.case-card__specs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 15px;
  line-height: 1.6;
}

.case-card__spec {
  display: flex;
  gap: 24px;
}

.case-card__spec dt {
  flex: 0 0 77px;
  color: var(--color-gold);
}

.case-card__spec dd {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-weight: 500;
  color: var(--color-black);
}

.case-card__price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--color-gold);
  text-align: center;
}

.case-card__price-label {
  font-size: 16px;
  line-height: 0.9;
  color: var(--color-gold);
}

.case-card__price-value {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1;
  color: var(--color-black);
}

.case-card__price-num {
  font-size: 48px;
}

.case-card__price-unit {
  font-size: 24px;
}

.case-card__price-note {
  font-size: 12px;
  line-height: 1.9;
  color: #666;
}

.guide-model-case__note {
  margin-top: 40px;
  font-size: 12px;
  line-height: 1.9;
  color: #888;
  text-align: center;
}

@media (min-width: 992px) {
  .guide-model-case {
    padding-block: 88px;
  }

  .case-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: none;
    margin-top: 48px;
  }
}

/* ---- Requirements ---- */

.guide-requirements {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 56px 20px 80px;
}

.guide-requirements__lede {
  margin-top: 32px;
  font-size: 15px;
  line-height: 1.9;
}

.house-types {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.house-type-card {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--color-gold);
  border-radius: 4px;
  padding: 24px;
}

.house-type-card__head {
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--color-gray-400);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.house-type-card__tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 1px 16px;
  border-radius: 100px;
  background: var(--color-gold);
  color: var(--color-white);
  font-size: 14px;
}

.house-type-card__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 18px;
}

.house-type-card__desc {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.guide-requirements__note {
  margin-top: 40px;
  font-size: 15px;
  line-height: 1.9;
}

.requirements-grid {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.requirement-item {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-gray-300);
}

.requirement-item__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.requirement-item__index {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 22px;
  color: var(--color-gold);
}

.requirement-item__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 16px;
}

.requirement-item__desc {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.6;
}

@media (min-width: 768px) and (max-width: 991px) {
  .guide-requirements {
    padding-inline: 40px;
  }
}

@media (min-width: 992px) {
  .guide-requirements {
    padding: 80px 128px 56px 80px;
    display: flex;
    gap: 144px;
  }

  .guide-requirements__intro {
    width: 180px;
    flex-shrink: 0;
  }

  .guide-requirements__body {
    flex: 1;
  }

  .house-types {
    margin-top: 0;
    flex-direction: row;
    gap: 48px;
  }

  .house-type-card {
    flex: 1;
    padding: 32px;
  }

  .house-type-card__title {
    font-size: 20px;
  }

  .house-type-card__desc {
    font-size: 15px;
  }

  .guide-requirements__note {
    margin-top: 40px;
  }

  .requirements-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .requirement-item__title {
    font-size: 18px;
  }

  .requirement-item__desc {
    font-size: 13px;
  }
}

/* ---- Flow ----
   .flow-steps/.flow-step* promoted to main.css now that
   showroom/reservation.html is a second consumer — see CLAUDE.md's CSS
   layering convention. Only this section's own head stays here. */

.guide-flow {
  padding-block: 56px 80px;
}

.guide-flow__lede {
  margin-top: 32px;
  font-size: 15px;
  line-height: 1.9;
}

@media (min-width: 992px) {
  .guide-flow {
    padding: 56px 80px 80px;
  }

  .guide-flow > .container{
    padding-inline: 0;
    max-width: 1120px;
    margin-inline: auto;
  }

  .guide-flow__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
  }
}

/* ---- Next (HOME/PRO selector) ---- */

.guide-next {
  padding-block: 48px;
  background: var(--color-cream);
  scroll-margin-top: 50px;
}

.guide-next__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.guide-next__lede {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.9;
}

.selector-frame {
  margin-top: 40px;
  position: relative;
  background: var(--color-gold-tint);
  border-radius: 4px;
  padding: 16px;
}

.selector-frame::before,
.selector-frame::after,
.selector-frame__tl,
.selector-frame__tr {
  content: '';
  position: absolute;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-gold);
}

.selector-frame::before {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
  border-radius: 4px 0 0 0;
}

.selector-frame::after {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
  border-radius: 0 0 4px 0;
}

.selector-frame__tr {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
  border-radius: 0 4px 0 0;
}

.selector-frame__tl {
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
  border-radius: 0 0 0 4px;
}

.selector-card {
  background: var(--color-white);
  border-radius: 4px;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.selector-card__question {
  font-size: 17px;
  text-align: center;
}

.selector-card__prompt {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.selector-card__prompt-label {
  padding: 8px 24px;
  border-radius: 4px;
  background: var(--color-gold);
  color: var(--color-white);
  font-size: 13px;
  text-align: center;
}

.selector-card__options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.selector-option {
  border: 1px solid var(--color-black);
  border-radius: 100px;
  padding: 16px;
  text-align: center;
  font-size: 16px;
  background: var(--color-gold-tint);
}

.selector-option--alt {
  background: rgba(64, 72, 82, 0.1);
}

.selector-option.is-selected {
  box-shadow: 0 0 0 2px var(--color-gold) inset;
}

.selector-result__heading {
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
}

.selector-result__cta.pill-btn {
  width: 100%;
  min-width: 0;
  background: rgba(151, 134, 92, 0.1);
}

.selector-result--mansion .selector-result__cta.pill-btn {
  background: rgba(64, 72, 82, 0.1);
}

.guide-next__notes {
  margin-top: 24px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--color-gray-400);
  text-align: left;
}

@media (min-width: 992px) {
  .guide-next {
    padding-block: 64px 88px;
    scroll-margin-top: 80px;
  }

  .selector-frame {
    margin-top: 24px;
    padding: 40px 48px;
    /* Figma node 1360:9963 specs this tint at 0.1 alpha, not the shared
       --color-gold-tint token (0.15) used elsewhere on the page. */
    background: rgba(151, 134, 92, 0.1);
  }

  .selector-frame::before,
  .selector-frame::after,
  .selector-frame__tl,
  .selector-frame__tr {
    width: 72px;
    height: 72px;
  }

  .selector-card {
    padding: 56px 104px;
    gap: 40px;
  }

  .selector-card__question {
    width: 556px;
    font-size: 24px;
    line-height: 1.5;
  }

  .selector-card__prompt {
    width: 556px;
    margin-inline: auto;
  }

  .selector-card__prompt-label {
    font-size: 15px;
    padding: 8px 24px;
  }

  .selector-card__options {
    flex-direction: row;
    justify-content: center;
  }

  .selector-option {
    width: 250px;
    font-size: 18px;
    padding: 18px 40px;
  }

  .selector-option:not(.selector-option--alt) {
    background: rgba(151, 134, 92, 0.1);
  }

  /* Figma gives this option less horizontal padding than the default
     (16px vs 40px) since its longer label would otherwise wrap inside
     the shared fixed 250px width. */
  .selector-option--alt {
    padding: 18px 16px;
  }

  .selector-result__heading {
    width: 556px;
    font-size: 24px;
    line-height: 1.5;
  }

  .selector-result__cta.pill-btn {
    width: 250px;
    padding: 18px 16px 18px 8px;
    font-size: 18px;
  }

  .guide-next__notes {
    margin-top: 24px;
    font-size: 12px;
    text-align: center;
  }
}

/* ---- Contact CTA banner ---- */

.guide-contact {
  padding: 32px 0;
}

.guide-contact__inner {
  background: var(--color-gold);
  border-radius: 10px;
  padding: 24px;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.guide-contact__label {
  font-family: var(--font-en);
  font-size: 18px;
}

.guide-contact__heading {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.5;
}

.guide-contact__desc {
  font-size: 14px;
  line-height: 1.9;
}

.guide-contact .pill-btn {
  margin-top: 16px;
  color: var(--color-black);
}

@media (min-width: 992px) {
  .guide-contact {
    padding: 32px;
  }

  .guide-contact__inner {
    padding: 32px;
    flex-direction: row;
    align-items: center;
  }

  .guide-contact__text-block {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-inline: 40px;
    border-left: 1px solid var(--color-white);
    border-right: 1px solid var(--color-white);
  }

  .guide-contact__label {
    font-size: 24px;
  }

  .guide-contact__heading {
    font-size: 30px;
  }

  .guide-contact__action {
    text-align: right;
  }

  .guide-contact__desc {
    font-size: 15px;
  }

  .guide-contact .pill-btn {
    margin-top: 16px;
  }
}
