@import url("./style.css");
@import url("./cta-banner.css");

body.page-price {
  padding-top: 88px;
  background: #fff;
}

.page-price .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: #fff;
  backdrop-filter: none;
  isolation: isolate;
}

.page-price .btn-header {
  padding: 13px 16px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  white-space: nowrap;
}

.page-price .global-nav a.is-current {
  color: var(--gold);
}

.page-price .global-nav a.is-current span {
  color: var(--gold);
}

.breadcrumb {
  position: absolute;
  padding: 16px 0 0;
  font-family: var(--gb-sans);
  font-size: 12px;
  color: var(--muted);
  top: 0;
}

.breadcrumb a:hover {
  color: var(--navy);
}

.breadcrumb span {
  margin: 0 8px;
  color: #ccc;
}

/* Hero */
.price-hero {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.price-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: clamp(300px, 34vw, 420px);
  /* padding: 18px 0 34px; */
}

.price-hero-copy {
  max-width: 520px;
  padding-right: 24px;
}

.price-title {
  margin: 14px 0 10px;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(44px, 5.2vw, 66px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: 0.08em;
}

.price-title small {
  display: block;
  margin-top: 10px;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(24px, 3.6vw, 32px);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.price-lead {
  margin: 0;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 13px;
  line-height: 2;
  color: #3a4558;
}

.price-hero-visual {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 42%;
  right: calc(50% - 50vw);
  z-index: 1;
  overflow: hidden;
}

.price-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 30%;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.9) 40%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.price-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Content */
.price-section {
  padding: 20px 0 48px;
  background: #f7f6f4;
}

.price-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 32px;
}

.price-tab {
  appearance: none;
  border: 1px solid #e5e0d8;
  border-radius: 6px;
  padding: 12px 10px;
  background: #f3f1ee;
  color: var(--navy);
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.price-tab:hover {
  border-color: rgba(7, 31, 72, 0.2);
}

.price-tab.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.price-category {
  display: none;
  margin-bottom: 40px;
  scroll-margin-top: 120px;
}

.price-category.is-active {
  display: block;
}

.price-category .price-table-wrap + .price-table-wrap {
  margin-top: 24px;
}

.price-category:last-of-type {
  margin-bottom: 0;
}

.price-category-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}

.price-category-icon {
  width: 28px;
  /* height: 28px; */
  color: var(--gold);
  flex-shrink: 0;
}

.price-category-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.price-category-head h2 {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.06em;
}

.price-table-section-title {
  margin: 28px 0 12px;
  font-family: "Noto Serif JP", serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.05em;
}

.price-category-head + .price-table-section-title,
.price-table-wrap + .price-table-section-title {
  margin-top: 0;
}

.price-table-section-title + .price-table-wrap {
  margin-top: 0;
}

.price-table-wrap {
  background: #fff;
  border: 1px solid #ebe6df;
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 10px 28px rgba(14, 35, 70, 0.08);
}

.price-list-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 13px;
}

.price-list-table th,
.price-list-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  text-align: left;
}

.price-list-table thead th {
  background: #d0a35a;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.price-list-table thead th.col-price,
.price-list-table thead th.col-cost {
  text-align: right;
  white-space: nowrap;
}

.price-list-table thead th:last-child:not(.col-detail) {
  text-align: right;
  white-space: nowrap;
}

.price-list-table tbody tr:last-child td,
.price-list-table tbody tr:last-child th {
  border-bottom: none;
}

.price-list-table .col-name {
  width: 28%;
  font-weight: 600;
  color: var(--navy);
  background: #faf8f5;
}

.price-list-table .col-name a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.price-list-table .col-name a:hover {
  color: var(--gold);
}

.price-list-table .col-name .arrow {
  color: var(--gold);
  font-size: 12px;
}

.price-list-table .col-detail {
  color: #3a4558;
  line-height: 1.75;
}

.price-list-table .col-price {
  width: 18%;
  text-align: right;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.price-list-table .col-cost {
  width: 14%;
  text-align: right;
  color: #3a4558;
  white-space: nowrap;
}

.price-list-table .col-unit-price {
  text-align: right;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.price-list-table thead th.col-unit-price {
  text-align: right;
  white-space: nowrap;
}

/* Wide tables (e.g. スレッドリフト メニュー) */
.price-list-table--wide {
  table-layout: fixed;
  min-width: 920px;
}

.price-list-table--wide .col-name {
  width: 10%;
  min-width: 76px;
  white-space: normal;
}

.price-list-table--wide .col-purpose {
  width: 24%;
  min-width: 160px;
  line-height: 1.65;
  white-space: normal;
}

.price-list-table--wide .col-area {
  width: 8%;
  min-width: 56px;
  white-space: nowrap;
}

.price-list-table--wide .col-qty {
  width: 7%;
  min-width: 48px;
  white-space: nowrap;
}

.price-list-table--wide .col-price {
  width: 12%;
  min-width: 88px;
}

.price-list-table--wide .col-unit-price {
  width: 11%;
  min-width: 84px;
}

.price-list-table--wide .col-cost {
  width: 10%;
  min-width: 72px;
}

.price-footnotes {
  margin: 28px 0 0;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #ebe6df;
  border-radius: 8px;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 11px;
  line-height: 1.85;
  color: var(--muted);
}

.price-footnotes p {
  margin: 0 0 8px;
}

.price-footnotes p:last-child {
  margin-bottom: 0;
}

/* Footer */
.page-price .site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 34px 0 18px;
  position: relative;
}

.page-price .footer-main {
  display: grid;
  grid-template-columns: 1.05fr 1.1fr 1.5fr;
  gap: 16px;
  align-items: start;
}

.page-price .footer-logo img {
  width: 170px;
  height: auto;
}

.page-price .footer-lead {
  margin: 12px 0 0;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 12px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}

.page-price .footer-address {
  margin: 0 0 8px;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 12px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
}

.page-price .footer-tel {
  margin: 0 0 16px;
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.06em;
}

.page-price .footer-tel span {
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 12px;
  margin-right: 6px;
  color: rgba(255, 255, 255, 0.75);
}

.page-price .footer-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page-price .footer-buttons .btn-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 4px;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  min-height: 38px;
  min-width: 168px;
}

.page-price .btn-footer-line {
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: rgba(255, 255, 255, 0.92);
}

.page-price .btn-footer-counsel {
  background: linear-gradient(135deg, #b07a32 0%, #d4a85f 50%, #c3934c 100%);
  color: #fff;
  border: 1px solid transparent;
}

.page-price .footer-navs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.page-price .footer-nav-col {
  display: grid;
  gap: 10px;
}

.page-price .footer-nav-col a {
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.page-price .footer-nav-col a:hover {
  color: #fff;
}

.page-price .footer-bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.page-price .copyright {
  margin: 0;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

.page-price .back-to-top {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  text-decoration: none;
  line-height: 1;
}

.page-price .back-to-top:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1024px) {
  .price-tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .price-category {
    scroll-margin-top: 96px;
  }
}

/* —— SP: price page —— */
@media (max-width: 900px) {
  body.page-price {
    padding-top: 0;
  }

  .page-price .site-header .header-inner {
    position: relative;
    z-index: 1;
  }

  .page-price .site-header .header-menu-toggle {
    display: flex;
    position: relative;
    z-index: 3;
  }

  .page-price .site-header:not(.is-nav-open) .global-nav {
    pointer-events: none;
  }

  .price-hero-inner {
    pointer-events: none;
  }

  .price-hero-copy,
  .price-hero-inner > .breadcrumb {
    pointer-events: auto;
  }

  .price-section {
    padding: 18px 0 40px;
  }

  .price-lead br {
    display: none;
  }

  .price-tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 26px;
  }

  .price-tab {
    padding: 11px 8px;
    font-size: 11px;
    line-height: 1.35;
    white-space: normal;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .price-category {
    margin-bottom: 28px;
    scroll-margin-top: 80px;
  }

  .price-category-head {
    gap: 8px;
    margin-bottom: 12px;
  }

  .price-category-icon {
    width: 24px;
    /* height: 24px; */
  }

  .price-category-head h2 {
    font-size: 16px;
  }

}

@media (max-width: 767px) {
  .price-section {
    padding: 14px 0 32px;
  }

  .price-section > .container {
    width: min(1312px, 92vw);
  }

  .price-tabs {
    margin-bottom: 22px;
  }

  .price-tab {
    padding: 10px 6px;
    font-size: 10px;
    min-height: 40px;
    border-radius: 6px;
  }

  .price-category {
    margin-bottom: 24px;
    scroll-margin-top: 72px;
  }

  .price-category-head h2 {
    font-size: 15px;
  }

  /* Stack table rows as cards */
  .price-table-wrap {
    overflow: hidden;
  }

  .price-list-table {
    display: block;
    font-size: 12px;
  }

  .price-list-table thead {
    display: none;
  }

  .price-list-table tbody {
    display: block;
  }

  .price-list-table tr {
    display: block;
    border-bottom: 1px solid #eee;
  }

  .price-list-table tbody tr:last-child {
    border-bottom: none;
  }

  .price-list-table td {
    display: block;
    width: 100%;
    padding: 0 14px;
    border-bottom: none;
    text-align: left;
  }

  .price-list-table .col-name {
    width: auto;
    padding: 12px 14px 6px;
    font-size: 13px;
    background: #faf8f5;
  }

  .price-list-table .col-detail {
    padding: 0 14px 4px;
    font-size: 11px;
    line-height: 1.7;
  }

  .price-list-table .col-price {
    width: auto;
    padding: 0 14px 14px;
    text-align: left;
    font-size: 15px;
    white-space: normal;
  }

  .price-list-table .col-cost {
    width: auto;
    padding: 0 14px 14px;
    text-align: left;
    font-size: 14px;
    white-space: normal;
  }

  .price-list-table .col-price::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 10px;
    font-weight: 500;
    color: var(--muted);
  }

  .price-list-table .col-cost::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 10px;
    font-weight: 500;
    color: var(--muted);
  }

  .price-list-table .col-unit-price {
    width: auto;
    padding: 0 14px 14px;
    text-align: left;
    font-size: 14px;
    white-space: normal;
  }

  .price-list-table .col-unit-price::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 10px;
    font-weight: 500;
    color: var(--muted);
  }

  .price-list-table .col-purpose,
  .price-list-table .col-area,
  .price-list-table .col-qty {
    width: auto;
    padding: 0 14px 4px;
    font-size: 11px;
    line-height: 1.7;
    white-space: normal;
  }

  .price-list-table .col-purpose::before,
  .price-list-table .col-area::before,
  .price-list-table .col-qty::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 10px;
    font-weight: 500;
    color: var(--muted);
  }

  .price-list-table .col-name::before,
  .price-list-table .col-detail::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 10px;
    font-weight: 500;
    color: var(--muted);
  }

  .price-list-table .col-name:first-child::before {
    display: none;
  }

  .price-footnotes {
    margin-top: 18px;
    padding: 14px 16px;
    font-size: 10px;
    line-height: 1.75;
  }

  .page-price .price-title small {
    font-size: clamp(14px, 3.8vw, 20px);
  }

  .page-price .faq-cta-copy p br {
    display: none;
  }
}

@media (max-width: 560px) {
  .price-section {
    padding: 12px 0 28px;
  }

  .price-tabs {
    gap: 6px;
    margin-bottom: 18px;
  }

  .price-tab {
    min-height: 38px;
    font-size: 10px;
    padding: 9px 8px;
  }

  .price-category-head h2 {
    font-size: 14px;
  }

  .price-list-table .col-name {
    font-size: 12px;
    padding-top: 10px;
  }

  .price-list-table .col-price {
    font-size: 14px;
    padding-bottom: 12px;
  }

  .price-footnotes {
    padding: 12px 14px;
    font-size: 9px;
  }

  .price-hero-visual {
    left: 0;
    right: 0;
  }
  .price-hero-visual img{object-position: 28% center;}
  .price-hero-visual::after {
    width: 100%;
    background: linear-gradient(
      180deg,
      #fff 0%,
      rgba(255, 255, 255, 0.92) 8%,
      rgba(255, 255, 255, 0.5) 22%,
      transparent 38%
    );
  }
  .price-hero-copy{left: 40px;
        top: 52px;}
  .price-title {
    margin: 140px 0 10px;
  }

  .price-lead {
    font-size: 12px;
    line-height: 1.75;
  }
}
