:root {
  --navy-950: #071827;
  --navy-900: #0b2236;
  --navy-800: #123552;
  --blue-700: #1f5b83;
  --gold-500: #b08a42;
  --gold-600: #927032;
  --warm-50: #f8f7f3;
  --warm-100: #eeece5;
  --warm-200: #ddd8ca;
  --ink: #172231;
  --muted: #5d6874;
  --white: #ffffff;
  --line: #d7dce2;
  --shadow: 0 24px 60px rgba(7, 24, 39, 0.14);
  --focus: #c79a3a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.85;
  letter-spacing: 0;
}

body,
button,
input,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.shell {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  flex: 0 0 auto;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  color: var(--navy-900);
  font-size: 14px;
  font-weight: 700;
}

.nav a,
.footer a {
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--gold-600);
}

.nav a:hover,
.footer a:hover {
  color: var(--gold-500);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-badge,
.language-line {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(176, 138, 66, .45);
  border-radius: 6px;
  color: var(--gold-600);
  background: var(--warm-50);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.language-badge {
  min-height: 34px;
  padding: 6px 10px;
  white-space: nowrap;
}

.lang-switch {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.lang-switch a {
  color: inherit;
  text-decoration: none;
}

.lang-switch a[aria-current="true"] {
  color: var(--navy-900);
}

.lang-switch a:hover {
  color: var(--gold-600);
}

.lang-switch span {
  width: 1px;
  height: 14px;
  background: var(--line);
}

.tel-link {
  color: var(--navy-900);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: 1px solid var(--gold-500);
  border-radius: 6px;
  color: var(--white);
  background: var(--gold-500);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.25;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.button:hover {
  background: var(--gold-600);
  border-color: var(--gold-600);
  transform: translateY(-1px);
}

.button-outline {
  color: var(--navy-900);
  background: transparent;
  border-color: rgba(11, 34, 54, 0.35);
}

.button-outline:hover {
  color: var(--white);
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.button-small {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: url("../images/photo/hero-montage-poster.jpg");
  background-position: 68% center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 24, 39, 0) 70%, rgba(248, 247, 243, .18) 100%),
    linear-gradient(105deg, rgba(7, 24, 39, .92) 0%, rgba(11, 34, 54, .74) 42%, rgba(18, 53, 82, .32) 100%); /* review: 動画の工事シーンが見えるよう右側を薄く */
  pointer-events: none;
}

.hero-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-grid {
  position: relative;
  z-index: 3;
  min-height: 88vh;
  display: grid;
  grid-template-columns: minmax(0, 1120px);
  align-items: end;
  padding-block: 150px 90px;
}

.hero-pattern {
  display: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-500);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  line-height: 1.35;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.lang-zh,
.lang-zh button,
.lang-zh input,
.lang-zh textarea {
  font-family: "Noto Sans SC", "Noto Sans JP", system-ui, sans-serif;
}

.lang-zh h1,
.lang-zh h2,
.lang-zh h3 {
  font-family: "Noto Serif SC", "Noto Serif JP", serif;
}

h1 {
  font-size: clamp(34px, 4.2vw, 56px);
}

h2 {
  font-size: clamp(30px, 3.4vw, 46px);
}

h3 {
  font-size: 22px;
}

main h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 14px;
  background: var(--gold-500);
  transform: scaleX(1);
  transform-origin: left center;
}

p,
a,
td,
summary {
  overflow-wrap: anywhere;
}

.hero-copy,
.hero-visual,
.section-head,
.reason-card,
.service-card,
.flow-list li,
.area-grid > img,
.contact-info,
.contact-form,
.detail-block > div,
.detail-block > img,
.process-list li > div,
.two-column > div {
  min-width: 0;
}

.hero-visual img,
.area-grid > img,
.detail-block > img {
  width: 100%;
}

.hero-lead {
  max-width: 640px;
  margin: 26px 0 0;
  color: rgba(255,255,255,.9);
  font-size: 17px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1120px;
}

.hero-copy h1 {
  font-size: clamp(48px, 7vw, 100px); /* 11字×2行(中国語でも相談できる、/日本のリフォーム会社。)が全幅で収まる上限 */
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.02em;
  overflow-wrap: normal;
}

.hero-copy h1 .line {
  display: block;
  max-width: 100%;
  overflow-wrap: normal;
}

.hero-rotator {
  position: relative;
  display: grid;
  width: fit-content;
  max-width: 100%;
  height: 1.3em;
  margin: 18px 0 0;
  overflow: hidden;
  color: var(--gold-500);
  font-family: "Noto Serif SC", "Noto Serif JP", serif;
  font-size: clamp(22px, 2.6vw, 40px);
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.3;
}

.hero-rotator::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left center;
}

.hero-rotator .rot {
  display: none;
  white-space: nowrap;
}

.hero-rotator .rot:first-child {
  display: block;
}

html.js .hero-rotator .rot {
  grid-area: 1 / 1;
  display: block;
  opacity: 0;
  transform: translateY(100%);
}

html.js .hero-rotator .rot.is-active {
  opacity: 1;
  transform: translateY(0);
}

html.js .hero-rotator .rot.is-exiting {
  opacity: 0;
  transform: translateY(-100%);
  transition:
    opacity 350ms cubic-bezier(.2,.7,.2,1),
    transform 350ms cubic-bezier(.2,.7,.2,1);
}

html.js .hero-rotator .rot.is-entering {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 450ms cubic-bezier(.2,.7,.2,1),
    transform 450ms cubic-bezier(.2,.7,.2,1);
}

html.js .hero-rotator.is-holding::after {
  animation: rotator-progress 3000ms linear forwards;
}

.hero-subline {
  margin: 22px 0 0;
  color: var(--gold-500);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero .button-outline {
  color: var(--white);
  border-color: rgba(255,255,255,.36);
}

.hero-glyph {
  position: absolute;
  z-index: 1;
  right: clamp(-48px, -3vw, -18px);
  bottom: clamp(18px, 7vh, 92px);
  color: transparent;
  font-family: "Noto Serif JP", "Noto Serif SC", serif;
  font-size: clamp(230px, 38vw, 560px);
  font-weight: 700;
  line-height: .78;
  -webkit-text-stroke: 1px rgba(176, 138, 66, .08);
  text-stroke: 1px rgba(176, 138, 66, .08);
  opacity: 1;
  pointer-events: none;
  user-select: none;
}

html.js .hero-glyph.is-breathing {
  animation: glyph-breathe 9s ease-in-out infinite;
}

.lang-zh .hero-glyph {
  font-family: "Noto Serif SC", "Noto Serif JP", serif;
}

.hero-visual {
  display: none;
}

.section {
  padding-block: 104px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(105deg, rgba(7, 24, 39, .98) 0%, rgba(11, 34, 54, .94) 58%, rgba(18, 53, 82, .82) 100%),
    url("../images/photo/hero.jpg");
  background-size: cover, cover;
  background-position: center, 70% center;
  background-repeat: no-repeat;
  padding-block: 86px 78px;
}

.page-hero p:last-child {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--navy-900);
  text-decoration: none;
}

.breadcrumb a::after {
  content: ">";
  margin-left: 8px;
  color: var(--warm-200);
}

.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-head p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
}

.section-head-light p:last-child {
  color: rgba(255,255,255,.76);
}

.reasons {
  background: var(--warm-50);
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.reason-grid-five {
  grid-template-columns: repeat(5, 1fr);
}

.reason-card,
.service-card,
.flow-list li,
.contact-form,
.contact-panel,
.thanks-card {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
}

.reason-card {
  padding: 28px;
  min-height: 300px;
}

.reason-card img {
  margin-bottom: 24px;
}

.reason-card p,
.service-card p,
.flow-list p {
  color: var(--muted);
}

.services {
  color: var(--white);
  background: var(--navy-900);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  overflow: hidden;
  color: var(--ink);
}

.service-card img {
  width: 100%;
  background: var(--warm-100);
}

.service-media {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--warm-100);
}

.service-card .service-media {
  border-radius: 8px 8px 0 0;
}

.service-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(7, 24, 39, .42), rgba(7, 24, 39, 0));
  pointer-events: none;
}

.service-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  filter: saturate(.86) contrast(1.06) brightness(.96);
}

.media-video {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  filter: saturate(.86) contrast(1.06) brightness(.96);
  transition: opacity .3s ease;
  pointer-events: none;
}

.media-video.is-playing {
  opacity: 1;
}

.service-media-hero img {
  object-position: 64% center;
}

.service-media-interior img,
.service-media-interior .media-video {
  object-position: center;
}

.service-media-water img,
.service-media-water .media-video {
  object-position: center;
}

.service-media-exterior img,
.service-media-exterior .media-video {
  object-position: 52% center;
}

.service-media-store img,
.service-media-store .media-video {
  object-position: center;
}

.service-media-restore img,
.service-media-restore .media-video {
  object-position: center 42%;
}

.service-card h3,
.service-card p {
  margin-inline: 24px;
}

.service-card h3 {
  margin-top: 22px;
}

.service-card p {
  margin-bottom: 28px;
}

.text-link {
  display: inline-flex;
  margin: 0 24px 26px;
  color: var(--blue-700);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  color: var(--gold-600);
}

.service-note {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding-block: 34px;
  background: linear-gradient(140deg, #ffffff, #f1f4f6);
}

.flow {
  background: var(--white);
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: flow;
}

.flow-list li {
  position: relative;
  padding: 24px;
}

.flow-list span {
  display: block;
  margin: 16px 0 12px;
  color: var(--gold-500);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}

.section-actions {
  margin-top: 32px;
}

.area {
  background: linear-gradient(180deg, var(--warm-50), var(--warm-100));
}

.area-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr);
  align-items: center;
  gap: 52px;
}

.area p {
  color: var(--muted);
}

.note {
  padding-left: 16px;
  border-left: 4px solid var(--gold-500);
}

.company {
  color: var(--white);
  background: var(--navy-950);
}

.company-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 52px;
}

.company table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.company th,
.company td {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.18);
  text-align: left;
  vertical-align: top;
}

.company tr:last-child th,
.company tr:last-child td {
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.company th {
  width: 180px;
  color: rgba(255,255,255,.62);
  font-weight: 700;
}

.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}

.contact-info p {
  color: var(--muted);
}

.contact-panel {
  margin-top: 28px;
  padding: 26px;
  background: var(--warm-50);
}

.contact-panel p {
  margin: 0 0 8px;
  font-weight: 700;
}

.contact-panel a {
  display: block;
  color: var(--navy-900);
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
}

.contact-panel small {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: 34px;
  background: var(--warm-50);
}

.contact-form label {
  font-weight: 800;
}

.contact-form label span {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--white);
  background: var(--gold-500);
  font-size: 12px;
}

.contact-summary h3,
.contact-summary p {
  margin: 0;
}

.contact-summary .button {
  justify-self: start;
  margin-top: 8px;
}

.form-note {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 14px;
}

input,
textarea {
  width: 100%;
  border: 1px solid #bac5cf;
  border-radius: 6px;
  background: var(--white);
  padding: 13px 14px;
  color: var(--ink);
}

textarea {
  min-height: 170px;
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.footer {
  position: relative;
  overflow: hidden;
  padding-block: 54px 84px;
  color: rgba(255,255,255,.84);
  background: var(--navy-950);
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/svg/pattern-footer.svg");
  opacity: .18;
}

.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
}

.footer address {
  margin-top: 20px;
  font-style: normal;
}

.footer nav {
  display: flex;
  gap: 18px;
  font-weight: 700;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255,255,255,.56);
  font-size: 13px;
}

.mobile-cta {
  display: none;
}

.detail-section {
  background: var(--warm-50);
}

.detail-list {
  display: grid;
  gap: 24px;
}

.detail-block {
  scroll-margin-top: 108px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.detail-block img {
  width: 100%;
  background: var(--warm-100);
}

.detail-block > .service-media {
  width: 100%;
}

.detail-block h2 {
  margin-bottom: 20px;
  font-size: clamp(26px, 2.6vw, 36px);
}

.detail-block h3 {
  margin-top: 18px;
  font-size: 18px;
}

.detail-block p {
  margin: 8px 0 0;
  color: var(--muted);
}

.svg-placeholder {
  display: grid;
  min-height: 180px;
  place-items: center;
  background: var(--warm-100);
}

.cta-band {
  color: var(--white);
  background: var(--navy-900);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-inner h2 {
  max-width: 780px;
  font-size: clamp(26px, 2.8vw, 40px);
}

.flow-detail {
  background: var(--white);
}

.process-list {
  display: grid;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--warm-50);
}

.process-list span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-500);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}

.process-list p,
.faq-list p,
.two-column p {
  color: var(--muted);
}

.faq-section {
  background: var(--warm-50);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 20px 24px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--navy-900);
  font-weight: 800;
}

.faq-list p {
  margin: 14px 0 0;
}

.message-section {
  background: var(--white);
}

.two-column {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 52px;
}

.thanks-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(248, 247, 243, .96), rgba(238, 236, 229, .9)),
    url("../images/photo/hero.jpg");
  background-size: cover;
  background-position: 70% center;
}

.thanks-wrap {
  width: min(720px, calc(100% - 40px));
  margin-inline: auto;
  padding-block: 48px;
}

.thanks-brand {
  display: inline-block;
  margin-bottom: 38px;
}

.thanks-card {
  padding: 46px;
  box-shadow: var(--shadow);
}

.thanks-card p {
  color: var(--muted);
}

@media (max-width: 1023px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px 18px;
    padding-block: 10px;
  }

  .lang-switch {
    margin-left: auto;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-grid,
  .area-grid,
  .company-grid,
  .contact-grid,
  .detail-block,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: 78vh;
    padding-block: 104px 72px;
  }

  .reason-grid,
  .reason-grid-five,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: 68px;
  }

  .shell {
    width: min(100% - 32px, 1120px);
  }

  .site-header {
    position: static;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand img {
    width: 190px;
  }

  .lang-switch {
    font-size: 12px;
  }

  .header-cta {
    display: none;
  }

  /* review fix: 5-page site needs reachable nav on mobile (scrollable row, no JS) */
  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 18px;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    font-size: 13px;
    padding-bottom: 2px;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a[aria-current="page"] {
    border-bottom: 2px solid var(--gold-600);
    padding-bottom: 2px;
  }

  .hero-grid {
    gap: 28px;
    min-height: 78vh;
    padding-block: 72px 40px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-copy h1 {
    font-size: clamp(24px, 7.6vw, 44px); /* 320〜375pxで11字が1行 */
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .hero-copy h1 .line {
    overflow-wrap: anywhere;
  }

  .hero-rotator {
    margin-top: 16px;
    font-size: clamp(22px, 6vw, 30px);
  }

  .hero-subline {
    max-width: 22rem;
    font-size: 14px;
    letter-spacing: .14em;
  }

  .hero .button {
    width: 100%;
  }

  .hero-glyph {
    right: -20vw;
    bottom: 18vh;
    font-size: 88vw;
    -webkit-text-stroke-color: rgba(176, 138, 66, .065);
    text-stroke-color: rgba(176, 138, 66, .065);
  }

  .page-hero {
    padding-block: 62px 56px;
  }

  .section {
    padding-block: 72px;
  }

  .reason-grid,
  .reason-grid-five,
  .service-grid,
  .flow-list {
    grid-template-columns: 1fr;
  }

  .detail-block,
  .process-list li {
    padding: 22px;
  }

  .detail-block > .service-media {
    margin-inline: auto;
    max-width: 520px;
  }

  .process-list li {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    display: grid;
  }

  .reason-card {
    min-height: 0;
  }

  .company th,
  .company td {
    display: block;
    width: 100%;
  }

  .company th {
    padding-bottom: 4px;
  }

  .company td {
    padding-top: 0;
  }

  .contact-form,
  .thanks-card {
    padding: 24px;
  }

  .footer-inner,
  .footer nav {
    display: grid;
  }

  .mobile-cta {
    position: fixed;
    z-index: 30;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 -12px 34px rgba(7, 24, 39, .18);
  }

  .mobile-cta a {
    min-width: 0;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: 8px;
    color: var(--white);
    background: var(--navy-900);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    white-space: normal;
  }

  .mobile-cta a + a {
    background: var(--gold-500);
  }
}

@media (min-width: 1280px) {
  .shell {
    width: min(1180px, calc(100% - 64px));
  }
}

html.js .hero-copy > .eyebrow,
html.js .hero-copy .hero-lead,
html.js .hero-copy .language-line,
html.js .hero-copy .hero-rotator,
html.js .hero-copy .hero-subline,
html.js .hero-copy .hero-actions .button,
html.js .hero-glyph,
html.js .page-hero .shell > .eyebrow,
html.js .page-hero .shell > h1,
html.js .page-hero .shell > p,
html.js .reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .7s cubic-bezier(.2,.7,.2,1),
    transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}

html.js .hero-copy h1 {
  overflow: hidden;
}

html.js .hero-copy h1 .line {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: translateY(18px);
  transition:
    opacity .75s cubic-bezier(.2,.7,.2,1),
    clip-path .75s cubic-bezier(.2,.7,.2,1),
    transform .75s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}

html.js .hero-glyph {
  transform: translateX(20px);
  transition:
    opacity 1.2s cubic-bezier(.16,.8,.18,1),
    transform 1.2s cubic-bezier(.16,.8,.18,1);
  transition-delay: var(--reveal-delay, 0ms);
}

html.js .hero-copy > .eyebrow.is-visible,
html.js .hero-copy .hero-lead.is-visible,
html.js .hero-copy .language-line.is-visible,
html.js .hero-copy .hero-rotator.is-visible,
html.js .hero-copy .hero-subline.is-visible,
html.js .hero-copy .hero-actions .button.is-visible,
html.js .hero-glyph.is-visible,
html.js .page-hero .shell > .eyebrow.is-visible,
html.js .page-hero .shell > h1.is-visible,
html.js .page-hero .shell > p.is-visible,
html.js .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.js .hero-copy h1 .line.is-visible {
  opacity: 1;
  clip-path: inset(0);
  transform: translateY(0);
}

html.js .hero-copy h1.is-pulsing {
  animation: headline-gold-pulse 1.6s ease-out 1;
}

html.js main h2::after {
  transform: scaleX(0);
  transition: transform .65s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--reveal-delay, 0ms) + 180ms);
}

html.js .is-visible h2::after,
html.js h2.is-visible::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  /* review: 「視差効果を減らす」端末でもヒーロー動画は表示(会長意向・無音ループ) */

  html.js .hero-copy > .eyebrow,
  html.js .hero-copy .hero-lead,
  html.js .hero-copy .language-line,
  html.js .hero-copy .hero-rotator,
  html.js .hero-copy .hero-subline,
  html.js .hero-rotator .rot,
  html.js .hero-copy .hero-actions .button,
  html.js .hero-glyph,
  html.js .page-hero .shell > .eyebrow,
  html.js .page-hero .shell > h1,
  html.js .page-hero .shell > p,
  html.js .hero-copy h1 .line,
  html.js .reveal-item {
    opacity: 1;
    clip-path: none;
    transform: none;
  }

  html.js .hero-rotator::after {
    animation: none;
    transform: none;
  }

  html.js .hero-rotator .rot {
    display: none;
  }

  html.js .hero-rotator .rot:first-child {
    position: static;
    display: block;
  }

  html.js .hero-glyph.is-breathing,
  html.js .hero-copy h1.is-pulsing {
    animation: none;
  }

  html.js main h2::after {
    transform: scaleX(1);
  }

  .media-video {
    display: none;
  }
}

/* review fix: keep card headings from awkward wraps at desktop widths */
@media (min-width: 1024px) {
  .flow-list h3,
  .reason-card h3 {
    font-size: clamp(16px, 1.25vw, 19px);
    letter-spacing: .02em;
  }
}

@keyframes rotator-progress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes glyph-breathe {
  0%,
  100% {
    opacity: .98;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes headline-gold-pulse {
  0%,
  100% {
    text-shadow: none;
  }

  42% {
    text-shadow: 0 0 24px rgba(176, 138, 66, .32);
  }
}


/* real map embed (Google Maps, no API key) */
.map-wrap { min-width: 0; }
.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft, #eeebe4);
  box-shadow: 0 10px 30px rgba(15, 34, 56, .10);
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map-caption { margin: 10px 2px 0; font-size: 13px; color: var(--muted); }
@media (max-width: 767px) { .map-embed { aspect-ratio: 4 / 3; } }
