/* Client revision round — 2026-08-30
   Confirmed copy/data fixes, palette alignment, and iPhone overflow safeguards. */

:root,
body.page-home,
body.page-about,
body.page-performance,
body.page-price,
body.page-works,
body.page-news,
body.page-faq,
body.page-company,
body.page-contact {
  --c-ivory: #f8fafb; --text-v37-c-ivory: #f7fafc;
  --c-beige: #eef4f7; --text-v37-c-beige: #edf4f8;
  --c-bluegray: #eef4f7; --text-v37-c-bluegray: #edf4f8;
  --c-blue: #39779d; --text-v37-c-blue: #4b6d8e;
  --c-blue-dark: #39779d; --text-v37-c-blue-dark: #3d5c7a;
  --c-navy: #39779d; --text-v37-c-navy: #33587a;
  --ad-paper: #f8fafb; --text-v37-ad-paper: #f7fafc;
  --ad-ivory: #f8fafb; --text-v37-ad-ivory: #f7fafc;
  --price-paper: #f8fafb; --text-v37-price-paper: #f7fafc;
  --price-clean-paper: #f8fafb; --text-v37-price-clean-paper: #f7fafc;
  --company-paper: #f8fafb; --text-v37-company-paper: #f7fafc;
  --performance-panel: #eef4f7; --text-v37-performance-panel: #edf4f8;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background: #fff;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

img,
picture,
video,
svg,
canvas {
  max-width: 100%;
}

/* Keep the shared light-base sections on one calm blue-white palette. */
body.page-home .works,
body.page-performance .performance-showcase,
body.page-price .included,
body.page-price .options,
body.page-news .news,
body.page-faq .faq-main {
  background-color: #eef4f7 !important;
}

body.page-home .concept,
body.page-home .news,
body.page-home .life-gallery,
body.page-about .concept,
body.page-price .price-type,
body.page-price .plans,
body.page-price .funding,
body.page-works .works,
body.page-company .company-story,
body.page-company .company-greeting,
body.page-company .company-flow,
body.page-contact .contact-main,
body.page-contact .access {
  background-color: #fff !important;
}

/* The client does not offer a 2.5-storey type; keep the remaining two plans balanced. */
body.page-price .price-type__cards {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  max-width: 1120px;
  margin-inline: auto;
}

/* Confirmed price data: clear, illustration-free reference tables. */
body.page-price .price-unit-table-wrap {
  margin-top: 54px;
  border: 1px solid rgba(57, 119, 157, .22);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 48px rgba(57, 119, 157, .08);
}

body.page-price .price-unit-table {
  width: 100%;
  border-collapse: collapse;
  color: #33587a;
  font-variant-numeric: tabular-nums;
}

body.page-price .price-unit-table th,
body.page-price .price-unit-table td {
  padding: 28px 24px;
  border-right: 1px solid rgba(57, 119, 157, .16);
  border-bottom: 1px solid rgba(57, 119, 157, .16);
  text-align: center;
  vertical-align: middle;
}

body.page-price .price-unit-table tr > :last-child { border-right: 0; }
body.page-price .price-unit-table tbody tr:last-child > * { border-bottom: 0; }
body.page-price .price-unit-table thead th {
  background: #39779d;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .1em;
}
body.page-price .price-unit-table tbody th {
  width: 22%;
  background: #f5f8fa;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .08em;
}
body.page-price .price-unit-table td {
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(18px, 1.5vw, 24px);
  white-space: nowrap;
}
body.page-price .price-unit-table td span { font-size: .65em; }

body.page-price .included-detail-list,
body.page-price .option-detail-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

body.page-price .included-detail-list li,
body.page-price .option-detail-list li {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 18px;
  border: 1px solid rgba(57, 119, 157, .22);
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
  color: #33587a;
  text-align: center;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: .06em;
}

body.page-price .option-detail-list li {
  background: #fff;
  box-shadow: 0 10px 28px rgba(57, 119, 157, .06);
}

body.page-price .funding__total-price,
body.page-price .funding__item-price {
  font-variant-numeric: tabular-nums;
}

/* Long SEO-friendly case names keep a calm two-line rhythm. */
body.page-home .work-card__title {
  right: 11px;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: .035em;
}

body.page-home .works__caption-title {
  font-size: 22px;
  line-height: 1.55;
  letter-spacing: .045em;
}

body.page-works .work-card__title,
body.page-about .work-card__title {
  min-height: 3.4em;
  line-height: 1.7;
}

@media (max-width: 767px) {
  body {
    min-width: 0;
    overflow-x: hidden;
  }

  main,
  section,
  .site-header,
  .footer,
  .drawer,
  [class$="__inner"] {
    min-width: 0;
    max-width: 100%;
  }

  .container {
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
    margin-inline: auto !important;
  }

  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.page-price .price-type__cards {
    grid-template-columns: 1fr !important;
    max-width: 520px;
  }

  body.page-price .price-unit-table-wrap {
    margin-top: 32px;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }

  body.page-price .price-unit-table,
  body.page-price .price-unit-table tbody,
  body.page-price .price-unit-table tr,
  body.page-price .price-unit-table th,
  body.page-price .price-unit-table td {
    display: block;
    width: 100%;
  }

  body.page-price .price-unit-table thead { display: none; }
  body.page-price .price-unit-table tbody {
    display: grid;
    gap: 18px;
  }

  body.page-price .price-unit-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(57, 119, 157, .2);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(57, 119, 157, .07);
  }

  body.page-price .price-unit-table tbody th {
    display: block;
    width: auto;
    padding: 18px 20px;
    border: 0;
    background: #39779d;
    color: #fff;
    font-size: 17px;
  }

  body.page-price .price-unit-table td {
    display: flex;
    width: auto;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 18px;
    border: 0;
    border-bottom: 1px solid rgba(57, 119, 157, .13);
    font-size: 18px;
    text-align: right;
    white-space: normal;
  }

  body.page-price .price-unit-table td:last-child { border-bottom: 0; }
  body.page-price .price-unit-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    font-family: "Noto Sans JP", sans-serif;
    color: #6d8297;
    font-size: 12px;
    letter-spacing: .06em;
  }

  body.page-price .included-detail-list,
  body.page-price .option-detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 30px;
  }

  body.page-price .included-detail-list li,
  body.page-price .option-detail-list li {
    min-height: 72px;
    padding: 12px 10px;
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: .03em;
  }

  body.page-home .work-card__title {
    font-size: 13px;
    line-height: 1.5;
  }

  body.page-home .works__caption-title { font-size: 18px; }

  /* Decorative layers may extend visually, but never widen or crop the page content. */
  body.page-home .hero,
  body.page-home .works,
  body.page-about .about-film,
  body.page-about .works-sec,
  body.page-works .works-hero,
  body.page-company .company-story {
    overflow-x: clip;
  }
}
