/* =========================================================
   北海堂 ~HOKKAIDOU~
   Image-forward renewal design
   ========================================================= */

:root {
  --white: #ffffff;
  --paper: #fbfcfd;
  --soft: #f2f5f7;
  --soft-blue: #eaf3f7;
  --ink: #13212b;
  --ink-soft: #526671;
  --navy-950: #04111c;
  --navy-900: #06131f;
  --navy-850: #081b2a;
  --navy-800: #0c2537;
  --navy-700: #12364c;
  --cyan: #1b9bc3;
  --cyan-soft: #a6dded;
  --magenta: #d6005d;
  --magenta-bright: #f02b7e;
  --wine: #8c073e;
  --green: #078b28;
  --line: rgba(15, 43, 60, 0.13);
  --line-light: rgba(255, 255, 255, 0.16);
  --shadow-sm: 0 12px 30px rgba(5, 27, 42, 0.08);
  --shadow-md: 0 26px 70px rgba(4, 24, 39, 0.15);
  --shadow-lg: 0 40px 110px rgba(4, 21, 34, 0.24);
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --header-height: 86px;
  --container: 1320px;
  --section-space: clamp(92px, 9vw, 150px);
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
  background: var(--navy-950);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

::selection {
  color: var(--white);
  background: var(--magenta);
}

:focus-visible {
  outline: 3px solid rgba(240, 43, 126, 0.55);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 64px), var(--container));
  margin-inline: auto;
}

.section-white,
.section-soft,
.section-dark {
  position: relative;
}

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

.section-soft {
  background: var(--soft);
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 12px 18px;
  color: var(--white);
  background: var(--magenta);
  border-radius: 8px;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Reusable heading ---------- */
.section-number {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--wine);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.section-number::before {
  width: 38px;
  height: 1px;
  content: "";
  background: currentColor;
}

.section-number-light {
  color: var(--cyan-soft);
}

.section-heading h2,
.section-top h2,
.process-intro h2,
.faq-heading h2,
.contact-copy h2 {
  font-size: clamp(35px, 4vw, 62px);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.045em;
}

.section-top {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 500px);
  gap: 60px;
  align-items: end;
  margin-bottom: clamp(52px, 6vw, 82px);
}

.section-top > p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 2;
}

.section-top-light > p {
  color: rgba(255, 255, 255, 0.64);
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease, color 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}

.button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:hover svg {
  transform: translateX(4px);
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--magenta) 0%, var(--wine) 100%);
  box-shadow: 0 16px 36px rgba(188, 0, 78, 0.24);
}

.button-primary:hover {
  box-shadow: 0 20px 46px rgba(188, 0, 78, 0.35);
}

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

.button-dark:hover {
  background: var(--navy-700);
  border-color: var(--navy-700);
}

.button-white {
  color: var(--navy-900);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.button-glass {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
}

.button-glass:hover {
  background: rgba(255, 255, 255, 0.16);
}

.button-sm {
  min-height: 44px;
  padding: 11px 20px;
  font-size: 12px;
}

.button-lg {
  min-height: 60px;
  padding: 17px 30px;
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-900);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.text-link span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: var(--navy-900);
  border-radius: 50%;
  transition: transform 0.25s ease, background 0.25s ease;
}

.text-link:hover span {
  background: var(--magenta);
  transform: translate(3px, -3px);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(7, 34, 51, 0.08);
  backdrop-filter: blur(18px) saturate(150%);
  transition: height 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 36px rgba(4, 22, 35, 0.11);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.brand img {
  width: 252px;
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.5vw, 42px);
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  padding-block: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--magenta);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-tel {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
}

.header-tel span {
  color: var(--ink-soft);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.header-tel strong {
  color: var(--navy-900);
  font-size: 15px;
  letter-spacing: 0.035em;
}

.menu-toggle {
  position: relative;
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  background: var(--navy-900);
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 13px;
  width: 20px;
  height: 1px;
  background: var(--white);
  transition: top 0.25s ease, transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 22px;
  transform: rotate(-45deg);
}

.mobile-menu {
  /* The header uses backdrop-filter, which creates a containing block for
     fixed descendants. Keeping the menu absolute to the fixed header avoids
     the zero-height mobile-menu bug in Chromium/Safari. */
  position: absolute;
  top: 100%;
  right: 0;
  bottom: auto;
  left: 0;
  z-index: 999;
  width: 100%;
  height: calc(100dvh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
  max-height: calc(100dvh - var(--header-height));
  overflow: hidden;
  overscroll-behavior: contain;
  visibility: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 15%, rgba(214, 0, 93, 0.22), transparent 28%),
    var(--navy-900);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-14px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

@supports not (height: 100dvh) {
  .mobile-menu {
    height: calc(100vh - var(--header-height));
    max-height: calc(100vh - var(--header-height));
  }
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu-inner {
  width: min(calc(100% - 40px), 640px);
  height: 100%;
  max-height: 100%;
  margin-inline: auto;
  padding: 30px 0 max(34px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-logo {
  width: 115px;
  margin: 0 auto 28px;
  padding: 12px;
  background: var(--white);
  border-radius: 18px;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu nav > a:not(.mobile-menu-cta) {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  min-height: 66px;
  font-size: 18px;
  font-weight: 650;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.mobile-menu nav > a span {
  color: var(--cyan-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.mobile-menu-cta {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--magenta), var(--wine));
  border-radius: 999px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(820px, 100svh);
  overflow: hidden;
  color: var(--white);
  background: var(--navy-900);
}

.hero-media,
.hero-media picture,
.hero-media img,
.hero-media video,
.hero-overlay,
.hero-grid-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  overflow: hidden;
}

.hero-media picture {
  display: block;
}

.hero-media img,
.hero-media video {
  object-fit: cover;
  object-position: center center;
}

.hero-media img {
  animation: heroScale 16s ease-out both;
}

.hero-video {
  z-index: 1;
}

.hero-overlay {
  z-index: 1;
  background:
    radial-gradient(circle at 80% 48%, rgba(17, 117, 160, 0.15), transparent 30%),
    linear-gradient(90deg, rgba(3, 15, 25, 0.96) 0%, rgba(3, 15, 25, 0.86) 43%, rgba(3, 15, 25, 0.45) 70%, rgba(3, 15, 25, 0.48) 100%),
    linear-gradient(0deg, rgba(3, 15, 25, 0.76) 0%, transparent 44%);
}

.hero-grid-lines {
  z-index: 2;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to right, transparent 0, transparent 45%, #000 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, transparent 45%, #000 100%);
}

.hero::after {
  position: absolute;
  top: 22%;
  right: 7%;
  z-index: 2;
  width: 440px;
  height: 440px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 72px rgba(255, 255, 255, 0.025), 0 0 0 144px rgba(255, 255, 255, 0.018);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.62fr);
  gap: clamp(42px, 7vw, 112px);
  align-items: center;
  min-height: max(820px, 100svh);
  padding-top: calc(var(--header-height) + 66px);
  padding-bottom: 120px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  color: var(--cyan-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.23em;
}

.eyebrow span {
  width: 44px;
  height: 1px;
  background: var(--cyan-soft);
}

.hero h1 {
  max-width: 820px;
  margin-bottom: 30px;
  font-size: clamp(48px, 6.4vw, 92px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.07em;
  text-shadow: 0 14px 46px rgba(0, 0, 0, 0.28);
}

.hero h1 .hero-line {
  display: block;
  color: inherit;
  white-space: nowrap;
}

.hero h1 .hero-accent {
  color: #ff4e99;
}

.hero-lead {
  max-width: 690px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(15px, 1.45vw, 19px);
  line-height: 2;
  text-shadow: 0 5px 24px rgba(0, 0, 0, 0.24);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
}

.hero-trust span {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
}

.hero-trust span::before {
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--magenta-bright);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(240, 43, 126, 0.8);
  transform: translateY(-50%);
}

.hero-panel {
  position: relative;
  justify-self: end;
  width: min(100%, 410px);
  padding: clamp(30px, 4vw, 48px);
  overflow: hidden;
  background: rgba(4, 17, 28, 0.73);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(22px) saturate(130%);
}

.hero-panel::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--magenta), var(--cyan), var(--green));
}

.hero-panel-mark {
  position: absolute;
  top: -18px;
  right: -20px;
  width: 180px;
  opacity: 0.13;
  transform: rotate(6deg);
}

.hero-panel-label {
  position: relative;
  margin-bottom: 3px;
  color: var(--cyan-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.hero-rate {
  position: relative;
  display: flex;
  align-items: flex-start;
  line-height: 1;
}

.hero-rate strong {
  font-size: clamp(92px, 9vw, 132px);
  font-weight: 300;
  letter-spacing: -0.08em;
}

.hero-rate span {
  padding-top: 17px;
  color: var(--magenta-bright);
  font-size: 30px;
  font-weight: 700;
}

.hero-panel h2 {
  margin: -3px 0 22px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.hero-panel ul {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-panel li {
  position: relative;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.hero-panel li::before {
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 8px;
  height: 2px;
  content: "";
  background: var(--cyan-soft);
}

.hero-panel small {
  display: block;
  color: rgba(255, 255, 255, 0.46);
  font-size: 8px;
  line-height: 1.7;
}

.hero-panel-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding-top: 18px;
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.hero-panel-link span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--navy-900);
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero-panel-link:hover span {
  background: var(--cyan-soft);
  transform: translateX(4px);
}

.hero-location {
  position: absolute;
  right: 40px;
  bottom: 32px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.hero-location i {
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-scroll {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.18em;
  transform: translateX(-50%);
}

.hero-scroll i {
  position: relative;
  width: 1px;
  height: 44px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
}

.hero-scroll i::after {
  position: absolute;
  top: -70%;
  left: 0;
  width: 100%;
  height: 70%;
  content: "";
  background: var(--white);
  animation: scrollDown 2s ease-in-out infinite;
}

/* ---------- Visual story ---------- */
.visual-story {
  padding: 36px 0 86px;
  background: var(--navy-900);
}

.visual-story-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr 0.8fr;
  gap: 18px;
}

.story-tile {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.story-tile img,
.story-tile-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.story-tile img {
  object-fit: cover;
  transition: transform 0.75s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.story-tile-wide img { object-position: center 48%; }
.story-tile:nth-child(2) img { object-position: center 54%; }
.story-tile:nth-child(3) img { object-position: center; }

.story-tile-shade {
  background: linear-gradient(0deg, rgba(3, 15, 25, 0.92) 0%, rgba(3, 15, 25, 0.08) 72%);
}

.story-tile::after {
  position: absolute;
  inset: 14px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  pointer-events: none;
}

.story-tile:hover img {
  transform: scale(1.055);
}

.story-tile-copy {
  position: absolute;
  right: 34px;
  bottom: 32px;
  left: 34px;
  z-index: 2;
  color: var(--white);
}

.story-tile-copy small {
  display: block;
  margin-bottom: 10px;
  color: var(--cyan-soft);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.story-tile-copy h2 {
  font-size: clamp(23px, 2.25vw, 36px);
  font-weight: 650;
  line-height: 1.38;
  letter-spacing: -0.035em;
}

/* ---------- Intro ---------- */
.intro {
  padding: var(--section-space) 0;
}

.intro-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(60px, 9vw, 140px);
  align-items: start;
}

.intro-copy {
  padding-top: 10px;
}

.intro-copy > p {
  color: var(--ink-soft);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 2.15;
}

.intro-copy > p + p {
  margin-top: 20px;
}

.intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 34px;
}

.intro-tags span {
  padding: 8px 13px;
  color: var(--navy-700);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  background: var(--soft-blue);
  border-radius: 999px;
}

/* ---------- Services ---------- */
.services {
  padding: var(--section-space) 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(7, 36, 53, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-md);
}

.service-card-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  grid-column: 1 / -1;
  min-height: 600px;
}

.service-media {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: var(--navy-800);
}

.service-card-featured .service-media {
  min-height: 100%;
}

.service-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(4, 17, 28, 0.74) 0%, transparent 58%);
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.service-card-featured .service-media img { object-position: center; }
.service-card:nth-child(2) .service-media img { object-position: center 55%; }
.service-card:nth-child(3) .service-media img { object-position: center 54%; }
.service-card:nth-child(4) .service-media img { object-position: center 55%; }
.service-card:nth-child(5) .service-media img { object-position: center 48%; }

.service-card:hover .service-media img {
  transform: scale(1.05);
}

.service-index {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  background: rgba(4, 17, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

.service-media > p {
  position: absolute;
  right: 25px;
  bottom: 20px;
  left: 25px;
  z-index: 2;
  color: var(--white);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.service-body {
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 4vw, 54px);
}

.service-en {
  margin-bottom: 12px;
  color: var(--wine);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.service-body h3 {
  margin-bottom: 19px;
  font-size: clamp(25px, 2.6vw, 39px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.service-description {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.95;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 22px;
  margin: 28px 0;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 11px;
  height: 6px;
  content: "";
  border-bottom: 2px solid var(--magenta);
  border-left: 2px solid var(--magenta);
  transform: translateY(-60%) rotate(-45deg);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.tag-list li {
  padding: 7px 11px;
  color: var(--navy-700);
  font-size: 9px;
  font-weight: 750;
  background: var(--soft-blue);
  border-radius: 999px;
}

.service-subcopy {
  margin-bottom: 25px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
}

.service-body .text-link {
  margin-top: auto;
  align-self: flex-start;
}

.service-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin-top: auto;
}

.service-action-row .text-link {
  margin-top: 0;
}

.service-inline-contact {
  position: relative;
  color: var(--wine);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.service-inline-contact::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.service-inline-contact:hover::after {
  transform: scaleX(1);
}

.service-note {
  display: block;
  margin-top: 16px;
  color: #85939b;
  font-size: 8px;
  line-height: 1.65;
}

.ec-mini-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 20px 22px;
  color: var(--white);
  background: var(--navy-900);
  border-radius: 16px;
}

.ec-mini-panel div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ec-mini-panel small {
  color: var(--cyan-soft);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.ec-mini-panel strong {
  font-size: 16px;
}

.ec-mini-panel > a {
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* ---------- Subsidy results ---------- */
.subsidy-results {
  padding: var(--section-space) 0;
  overflow: hidden;
}

.subsidy-results-glow {
  position: absolute;
  top: 110px;
  right: -260px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(27, 155, 195, 0.12), transparent 68%);
  pointer-events: none;
}

.subsidy-results .container {
  position: relative;
  z-index: 2;
}

.subsidy-results-overview {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  margin-bottom: 26px;
}

.subsidy-overview-visual {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.subsidy-overview-visual > img,
.subsidy-overview-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.subsidy-overview-visual > img {
  object-fit: cover;
  object-position: center 52%;
  transition: transform 0.8s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.subsidy-overview-visual:hover > img {
  transform: scale(1.045);
}

.subsidy-overview-shade {
  background:
    linear-gradient(0deg, rgba(4, 17, 28, 0.95) 0%, rgba(4, 17, 28, 0.55) 42%, rgba(4, 17, 28, 0.08) 76%),
    linear-gradient(90deg, rgba(4, 17, 28, 0.48), transparent 68%);
}

.subsidy-overview-visual::after {
  position: absolute;
  inset: 18px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 19px;
  pointer-events: none;
}

.subsidy-overview-stat {
  position: absolute;
  right: clamp(28px, 4vw, 54px);
  bottom: clamp(30px, 5vw, 58px);
  left: clamp(28px, 4vw, 54px);
  z-index: 2;
}

.subsidy-overview-stat > small {
  display: block;
  margin-bottom: 2px;
  color: var(--cyan-soft);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.subsidy-overview-stat > p {
  display: flex;
  align-items: flex-start;
  line-height: 1;
}

.subsidy-overview-stat strong {
  font-size: clamp(104px, 11vw, 164px);
  font-weight: 250;
  letter-spacing: -0.09em;
}

.subsidy-overview-stat > p span {
  padding-top: 22px;
  color: var(--magenta-bright);
  font-size: 34px;
  font-weight: 750;
}

.subsidy-overview-stat h3 {
  margin-top: -5px;
  font-size: 22px;
  letter-spacing: 0.12em;
}

.subsidy-overview-period {
  display: inline-flex;
  margin-top: 18px;
  padding: 7px 11px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 9px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.subsidy-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.subsidy-summary-card {
  position: relative;
  display: flex;
  min-height: 276px;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 3.4vw, 44px);
  overflow: hidden;
  background: var(--soft);
  border: 1px solid rgba(7, 36, 53, 0.08);
  border-radius: var(--radius-lg);
}

.subsidy-summary-card::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 96px;
  height: 96px;
  content: "";
  background:
    linear-gradient(135deg, transparent 49.5%, rgba(27, 155, 195, 0.18) 50%),
    linear-gradient(45deg, transparent 49.5%, rgba(214, 0, 93, 0.09) 50%);
}

.subsidy-summary-card > small {
  display: block;
  margin-bottom: auto;
  color: var(--wine);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.subsidy-summary-card > p {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 28px;
  line-height: 1;
}

.subsidy-summary-card > p strong {
  font-size: clamp(64px, 7vw, 96px);
  font-weight: 280;
  letter-spacing: -0.075em;
}

.subsidy-summary-card > p span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.subsidy-summary-card > h3 {
  margin-top: 15px;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.subsidy-summary-card-accent {
  justify-content: flex-start;
  color: var(--white);
  background:
    radial-gradient(circle at 100% 0, rgba(214, 0, 93, 0.31), transparent 48%),
    var(--navy-900);
}

.subsidy-summary-card-accent::before {
  width: 170px;
  height: 170px;
  opacity: 0.35;
}

.subsidy-summary-card-accent > small {
  margin-bottom: 28px;
  color: var(--cyan-soft);
}

.subsidy-summary-card-accent > h3 {
  margin: 0 0 18px;
  font-size: clamp(23px, 2.4vw, 33px);
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.035em;
}

.subsidy-summary-card-accent > p {
  display: block;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.9;
}

.subsidy-detail-panel {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(7, 36, 53, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.subsidy-detail-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 32px clamp(26px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
}

.subsidy-detail-heading small {
  display: block;
  margin-bottom: 7px;
  color: var(--wine);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.subsidy-detail-heading h3 {
  font-size: clamp(25px, 2.6vw, 38px);
  font-weight: 680;
  letter-spacing: -0.035em;
}

.subsidy-detail-heading > p {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.subsidy-results-mount {
  padding: clamp(24px, 4vw, 52px);
}

.subsidy-empty-state {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px 30px;
  align-items: center;
  min-height: 250px;
  padding: clamp(26px, 4vw, 50px);
  background:
    linear-gradient(135deg, rgba(234, 243, 247, 0.86), rgba(251, 252, 253, 0.94));
  border: 1px dashed rgba(18, 54, 76, 0.22);
  border-radius: 22px;
}

.subsidy-empty-icon {
  display: flex;
  width: 76px;
  height: 76px;
  align-items: flex-end;
  justify-content: center;
  gap: 7px;
  padding: 17px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.subsidy-empty-icon span {
  width: 9px;
  background: var(--cyan);
  border-radius: 5px 5px 2px 2px;
}

.subsidy-empty-icon span:nth-child(1) { height: 18px; opacity: 0.42; }
.subsidy-empty-icon span:nth-child(2) { height: 31px; opacity: 0.7; }
.subsidy-empty-icon span:nth-child(3) { height: 43px; background: var(--magenta); }

.subsidy-empty-state h4 {
  margin-bottom: 8px;
  font-size: 21px;
  font-weight: 720;
}

.subsidy-empty-state p {
  max-width: 740px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.9;
}

.subsidy-field-preview {
  display: flex;
  grid-column: 2;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.subsidy-field-preview span {
  padding: 7px 11px;
  color: var(--navy-700);
  font-size: 8px;
  font-weight: 800;
  background: var(--white);
  border: 1px solid rgba(18, 54, 76, 0.12);
  border-radius: 999px;
}

.subsidy-table-scroll {
  overflow-x: auto;
  border: 1px solid rgba(7, 36, 53, 0.09);
  border-radius: 18px;
}

.subsidy-results-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  background: var(--white);
}

.subsidy-results-table th,
.subsidy-results-table td {
  padding: 22px 20px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

.subsidy-results-table tr:last-child td {
  border-bottom: 0;
}

.subsidy-results-table th {
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  background: var(--soft);
}

.subsidy-results-table tbody tr {
  transition: background 0.2s ease;
}

.subsidy-results-table tbody tr:hover {
  background: rgba(234, 243, 247, 0.46);
}

.subsidy-program-cell {
  min-width: 290px;
}

.subsidy-program-cell small {
  display: block;
  margin-bottom: 6px;
  color: var(--wine);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.subsidy-program-cell strong {
  display: block;
  font-size: 15px;
  line-height: 1.55;
}

.subsidy-program-cell p {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.7;
}

.subsidy-count-cell {
  white-space: nowrap;
}

.subsidy-count-cell strong {
  font-size: 27px;
  font-weight: 420;
  letter-spacing: -0.04em;
}

.subsidy-count-cell span {
  margin-left: 3px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.subsidy-rate-cell {
  min-width: 175px;
}

.subsidy-rate-value {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 9px;
}

.subsidy-rate-value strong {
  color: var(--wine);
  font-size: 28px;
  font-weight: 520;
  letter-spacing: -0.04em;
}

.subsidy-rate-value span {
  color: var(--wine);
  font-size: 11px;
  font-weight: 800;
}

.subsidy-rate-track {
  height: 5px;
  overflow: hidden;
  background: rgba(18, 54, 76, 0.1);
  border-radius: 999px;
}

.subsidy-rate-track i {
  display: block;
  width: var(--rate, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  border-radius: inherit;
}

.subsidy-period-cell {
  min-width: 155px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

.subsidy-mobile-list {
  display: none;
}

.subsidy-result-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(7, 36, 53, 0.1);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.subsidy-result-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  color: var(--white);
  background: var(--navy-900);
}

.subsidy-result-card-head small {
  color: var(--cyan-soft);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.subsidy-result-card-head p {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.subsidy-result-card-head strong {
  font-size: 31px;
  font-weight: 380;
  letter-spacing: -0.04em;
}

.subsidy-result-card-head span {
  color: var(--magenta-bright);
  font-size: 11px;
  font-weight: 800;
}

.subsidy-result-card-body {
  padding: 22px 20px 24px;
}

.subsidy-result-card-body h4 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.55;
}

.subsidy-result-support {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.75;
}

.subsidy-result-count {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 8px;
  margin: 18px 0 12px;
}

.subsidy-result-count strong {
  color: var(--wine);
  font-size: 42px;
  font-weight: 430;
  letter-spacing: -0.055em;
}

.subsidy-result-count span {
  font-size: 13px;
  font-weight: 800;
}

.subsidy-result-count em {
  color: var(--ink-soft);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.subsidy-result-meta {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.subsidy-result-meta div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
}

.subsidy-result-meta dt {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
}

.subsidy-result-meta dd {
  color: var(--ink);
  font-size: 10px;
  line-height: 1.65;
}

.subsidy-disclosure {
  margin-top: 22px;
  color: #788991;
  font-size: 8px;
  line-height: 1.8;
  text-align: right;
}

/* ---------- Strengths ---------- */
.strengths {
  padding: var(--section-space) 0;
  overflow: hidden;
}

.strengths::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
}

.strengths-glow {
  position: absolute;
  top: -240px;
  right: -180px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(214, 0, 93, 0.2), transparent 68%);
  pointer-events: none;
}

.strengths .container {
  position: relative;
  z-index: 2;
}

.strengths-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: stretch;
}

.strength-visual {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.32);
}

.strength-visual > img,
.strength-visual-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.strength-visual > img {
  object-fit: cover;
  object-position: center 58%;
}

.strength-visual-shade {
  background: linear-gradient(0deg, rgba(4, 17, 28, 0.92) 0%, rgba(4, 17, 28, 0.08) 68%);
}

.strength-big-stat {
  position: absolute;
  right: 36px;
  bottom: 70px;
  left: 36px;
}

.strength-big-stat > small {
  color: var(--cyan-soft);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.strength-big-stat > p {
  display: flex;
  align-items: flex-start;
  margin-top: 3px;
  line-height: 1;
}

.strength-big-stat strong {
  font-size: clamp(105px, 12vw, 168px);
  font-weight: 250;
  letter-spacing: -0.09em;
}

.strength-big-stat span {
  padding-top: 22px;
  color: var(--magenta-bright);
  font-size: 34px;
  font-weight: 700;
}

.strength-big-stat h3 {
  margin-top: -4px;
  font-size: 22px;
  letter-spacing: 0.12em;
}

.strength-caption {
  position: absolute;
  right: 26px;
  bottom: 22px;
  left: 26px;
  color: rgba(255, 255, 255, 0.47);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.strength-list {
  display: grid;
  align-content: center;
}

.strength-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.strength-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.strength-no {
  color: var(--magenta-bright);
  font-size: 12px;
  font-weight: 800;
}

.strength-item small {
  display: block;
  margin-bottom: 7px;
  color: var(--cyan-soft);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.strength-item h3 {
  margin-bottom: 10px;
  font-size: clamp(21px, 2.2vw, 30px);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.strength-item p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.9;
}

.strength-disclaimer {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 8px;
  text-align: right;
}

/* ---------- Process ---------- */
.process {
  padding: var(--section-space) 0;
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(60px, 8vw, 120px);
  align-items: start;
}

.process-visual-wrap {
  position: sticky;
  top: calc(var(--header-height) + 28px);
}

.process-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.process-visual > img,
.process-visual-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.process-visual > img {
  object-fit: cover;
  object-position: center;
}

.process-visual-overlay {
  background: linear-gradient(0deg, rgba(4, 17, 28, 0.86), transparent 65%);
}

.process-visual > p {
  position: absolute;
  right: 28px;
  bottom: 24px;
  left: 28px;
  z-index: 2;
  color: var(--white);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.process-visual > p small {
  display: block;
  margin-bottom: 5px;
  color: var(--cyan-soft);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.process-visual > p span {
  margin-inline: 8px;
  color: var(--magenta-bright);
}

.process-intro {
  padding: 38px 12px 0;
}

.process-intro > p:not(.section-number) {
  max-width: 520px;
  margin: 22px 0 28px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 2;
}

.process-list {
  counter-reset: process;
}

.process-list li {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 28px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.process-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.process-no {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  color: var(--wine);
  font-size: 12px;
  font-weight: 800;
  background: var(--soft-blue);
  border-radius: 50%;
}

.process-list small {
  display: block;
  margin-bottom: 7px;
  color: var(--wine);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.process-list h3 {
  margin-bottom: 12px;
  font-size: clamp(23px, 2.4vw, 33px);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.process-list p {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.95;
}

/* ---------- Portfolio ---------- */
.works {
  padding: var(--section-space) 0;
}

.portfolio-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.portfolio-filter button {
  min-height: 40px;
  padding: 9px 16px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  background: var(--white);
  border: 1px solid rgba(7, 34, 51, 0.11);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.portfolio-filter button:hover,
.portfolio-filter button.is-active {
  color: var(--white);
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.portfolio-card {
  min-width: 0;
}

.portfolio-card:nth-child(3n + 1) {
  grid-column: 1 / -1;
}

.portfolio-open {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: var(--white);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.portfolio-open:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.portfolio-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-800);
}

.portfolio-card:nth-child(3n + 1) .portfolio-visual {
  aspect-ratio: 16 / 7;
}

.portfolio-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.portfolio-open:hover .portfolio-visual img {
  transform: scale(1.05);
}

.portfolio-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 15, 25, 0.76), transparent 60%);
}

.portfolio-label {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  padding: 8px 12px;
  color: var(--white);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  background: rgba(4, 17, 28, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.portfolio-arrow {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--navy-900);
  font-size: 18px;
  background: var(--white);
  border-radius: 50%;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.portfolio-open:hover .portfolio-arrow {
  color: var(--white);
  background: var(--magenta);
  transform: translate(3px, -3px);
}

.portfolio-meta {
  padding: 25px 28px 29px;
}

.portfolio-meta > p {
  margin-bottom: 8px;
  color: var(--wine);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.portfolio-meta h3 {
  font-size: clamp(21px, 2.4vw, 31px);
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.03em;
}

.portfolio-meta ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 17px;
}

.portfolio-meta li {
  padding: 6px 10px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 750;
  background: var(--soft);
  border-radius: 999px;
}

.portfolio-grid.is-empty::after {
  grid-column: 1 / -1;
  padding: 80px 20px;
  color: var(--ink-soft);
  text-align: center;
  content: "該当する実績はありません。";
  background: var(--white);
  border-radius: var(--radius-md);
}

.noscript-message {
  padding: 30px;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-md);
}

/* ---------- EC showcase ---------- */
.ec-showcase {
  position: relative;
  min-height: 780px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-900);
}

.ec-showcase-bg,
.ec-showcase-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ec-showcase-bg {
  object-fit: cover;
  object-position: center;
}

.ec-showcase-overlay {
  background:
    linear-gradient(90deg, rgba(3, 15, 25, 0.93) 0%, rgba(3, 15, 25, 0.75) 52%, rgba(3, 15, 25, 0.38) 100%),
    linear-gradient(0deg, rgba(3, 15, 25, 0.42), rgba(3, 15, 25, 0.25));
}

.ec-showcase-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.8fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: center;
  min-height: 780px;
  padding-block: 100px;
}

.ec-kicker {
  margin-bottom: 18px;
  color: var(--magenta-bright);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.ec-showcase-copy h2 {
  margin-bottom: 26px;
  font-size: clamp(48px, 5.7vw, 82px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.06em;
}

.ec-showcase-copy > p:not(.section-number):not(.ec-kicker) {
  max-width: 600px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 2;
}

.ec-showcase-card {
  padding: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
  transform: rotate(2deg);
}

.ec-showcase-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
}

.ec-showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ec-showcase-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(4, 17, 28, 0.58), transparent 55%);
}

.ec-showcase-image > span {
  position: absolute;
  right: 20px;
  bottom: 16px;
  z-index: 2;
  color: var(--white);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.ec-showcase-card-copy {
  display: grid;
  grid-template-columns: 58px 1fr 34px;
  gap: 14px;
  align-items: center;
  padding: 20px 8px 8px;
}

.ec-showcase-card-copy > img {
  width: 58px;
  padding: 5px;
  background: var(--white);
  border-radius: 14px;
}

.ec-showcase-card-copy div {
  display: flex;
  flex-direction: column;
}

.ec-showcase-card-copy small {
  color: var(--cyan-soft);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.ec-showcase-card-copy strong {
  font-size: 17px;
}

.ec-showcase-card-copy > span {
  font-size: 22px;
}

/* ---------- FAQ ---------- */
.faq {
  padding: var(--section-space) 0;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(60px, 8vw, 120px);
  align-items: start;
}

.faq-heading {
  position: sticky;
  top: calc(var(--header-height) + 28px);
}

.faq-heading > p:last-child {
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 14px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 30px;
  gap: 18px;
  align-items: center;
  padding: 29px 4px;
  font-size: 15px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary > span,
.faq-answer > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--wine);
  font-size: 12px;
  font-weight: 800;
  background: var(--soft-blue);
  border-radius: 50%;
}

.faq-list summary::before,
.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 16px;
  height: 1px;
  content: "";
  background: var(--ink);
  transition: transform 0.25s ease;
}

.faq-list summary::after {
  transform: rotate(90deg);
}

.faq-list details[open] summary::after {
  transform: rotate(0);
}

.faq-answer {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 0 4px 30px;
}

.faq-answer > span {
  color: var(--white);
  background: var(--navy-900);
}

.faq-answer p {
  padding-top: 4px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.95;
}

/* ---------- Company ---------- */
.company {
  padding: var(--section-space) 0;
}

.company-layout {
  display: grid;
  grid-template-columns: minmax(380px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: center;
}

.company-visual {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.33);
}

.company-visual > img:first-child,
.company-visual-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.company-visual > img:first-child {
  object-fit: cover;
  object-position: center;
}

.company-visual-shade {
  background: linear-gradient(0deg, rgba(4, 17, 28, 0.94), transparent 68%);
}

.company-logo-panel {
  position: absolute;
  right: 28px;
  bottom: 74px;
  left: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 22px;
  backdrop-filter: blur(14px);
}

.company-logo-panel img {
  width: min(190px, 55%);
}

.company-visual > p {
  position: absolute;
  right: 28px;
  bottom: 24px;
  left: 28px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 8px;
  font-weight: 800;
  line-height: 1.7;
  letter-spacing: 0.15em;
}

.company-data {
  border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.company-data > div {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 28px;
  padding: 27px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.company-data dt {
  color: var(--cyan-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.company-data dd {
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.9;
}

.company-data dd a {
  font-size: 19px;
  font-weight: 700;
}

.company-data ul {
  display: grid;
  gap: 5px;
}

.company-data li {
  position: relative;
  padding-left: 16px;
}

.company-data li::before {
  position: absolute;
  top: 0.85em;
  left: 0;
  width: 6px;
  height: 2px;
  content: "";
  background: var(--magenta-bright);
}

/* ---------- Contact ---------- */
.contact {
  padding: var(--section-space) 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(0, 1.14fr);
  gap: 28px;
  align-items: stretch;
}

.contact-visual {
  position: relative;
  min-height: 880px;
  overflow: hidden;
  color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-visual > img,
.contact-visual-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.contact-visual > img {
  object-fit: cover;
  object-position: center 58%;
}

.contact-visual-shade {
  background:
    linear-gradient(0deg, rgba(4, 17, 28, 0.96) 0%, rgba(4, 17, 28, 0.65) 52%, rgba(4, 17, 28, 0.28) 100%),
    radial-gradient(circle at 15% 20%, rgba(214, 0, 93, 0.22), transparent 35%);
}

.contact-copy {
  position: absolute;
  right: clamp(30px, 4vw, 54px);
  bottom: clamp(34px, 5vw, 62px);
  left: clamp(30px, 4vw, 54px);
  z-index: 2;
}

.contact-copy > p:not(.section-number) {
  max-width: 520px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 2;
}

.contact-direct {
  display: grid;
  gap: 10px;
  margin-top: 32px;
}

.contact-direct a {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  backdrop-filter: blur(13px);
  transition: background 0.25s ease, transform 0.25s ease;
}

.contact-direct a:hover {
  background: rgba(255, 255, 255, 0.17);
  transform: translateX(4px);
}

.contact-direct small {
  color: var(--cyan-soft);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.contact-direct strong {
  margin: 2px 0;
  font-size: clamp(19px, 2.2vw, 27px);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.contact-direct span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
}

.contact-form {
  padding: clamp(34px, 5vw, 66px);
  background: var(--white);
  border: 1px solid rgba(7, 34, 51, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.form-heading {
  margin-bottom: 34px;
}

.form-heading small {
  color: var(--wine);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.form-heading h3 {
  margin: 7px 0 5px;
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.form-heading p {
  color: var(--ink-soft);
  font-size: 12px;
}

.form-status {
  margin-bottom: 22px;
  padding: 14px 16px;
  color: #8b0d3a;
  font-size: 12px;
  background: #fff0f5;
  border: 1px solid #f1b8cf;
  border-radius: 10px;
}

.form-row {
  display: block;
  margin-bottom: 21px;
}

.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-row label,
.contact-form > label.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label > span,
.contact-form > label.form-row > span {
  font-size: 11px;
  font-weight: 750;
}

.form-row b {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  color: var(--white);
  font-size: 8px;
  font-weight: 800;
  background: var(--magenta);
  border-radius: 4px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(7, 34, 51, 0.15);
  border-radius: 10px;
  background: var(--paper);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input,
select {
  min-height: 52px;
  padding: 0 15px;
}

textarea {
  min-height: 160px;
  padding: 14px 15px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #9aa7ad;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(27, 155, 195, 0.12);
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 3px 0 25px;
  color: var(--ink-soft);
  font-size: 11px;
}

.privacy-check input {
  flex: 0 0 auto;
  width: 18px;
  min-height: 0;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--magenta);
}

.privacy-check a {
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.button-submit {
  width: 100%;
  min-height: 60px;
}

.button-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-note {
  margin-top: 13px;
  color: #8b979d;
  font-size: 9px;
  text-align: center;
}

.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

/* ---------- Footer ---------- */
.site-footer {
  color: var(--white);
  background: var(--navy-950);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(270px, 0.8fr) minmax(0, 1.2fr);
  gap: 80px;
  padding-top: 76px;
  padding-bottom: 62px;
}

.footer-logo {
  display: inline-flex;
  padding: 14px 18px;
  background: var(--white);
  border-radius: 16px;
}

.footer-logo img {
  width: 230px;
}

.footer-address {
  margin-top: 25px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  line-height: 1.9;
}

.footer-tel {
  display: inline-block;
  margin-top: 13px;
  font-size: 20px;
  font-weight: 700;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.footer-links > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links small {
  margin-bottom: 5px;
  color: var(--cyan-soft);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.38);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.back-to-top {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
}

.back-to-top:hover {
  background: var(--magenta);
  transform: translateY(-3px);
}

/* ---------- Mobile contact bar ---------- */
.mobile-contact-bar {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 12px;
  z-index: 900;
  display: none;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 21px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--magenta), var(--wine));
  border-radius: 999px;
  box-shadow: 0 14px 35px rgba(140, 7, 62, 0.35);
  opacity: 0;
  transform: translateY(120%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-contact-bar.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Portfolio modal ---------- */
.portfolio-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  visibility: hidden;
  place-items: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.portfolio-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 12, 20, 0.82);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  width: min(1040px, 100%);
  max-height: min(760px, calc(100svh - 48px));
  overflow: auto;
  background: var(--white);
  border-radius: 28px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  font-size: 25px;
  line-height: 1;
  background: rgba(4, 17, 28, 0.7);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.modal-visual {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  background: var(--navy-800);
}

.modal-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(4, 17, 28, 0.62), transparent 58%);
}

.modal-visual span {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  color: var(--white);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.modal-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px 50px;
}

.modal-category {
  margin-bottom: 10px;
  color: var(--wine);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.modal-content h2 {
  margin-bottom: 20px;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.modal-content > p:not(.modal-category) {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.95;
}

.modal-content .button {
  align-self: flex-start;
  margin-top: 10px;
}

/* ---------- Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal-delay-1 { transition-delay: 0.11s; }
.js .reveal-delay-2 { transition-delay: 0.2s; }
.js .reveal-delay-3 { transition-delay: 0.29s; }

/* ---------- Legal / thanks pages ---------- */
.legal-page,
.thanks-page {
  min-height: 100svh;
  background: var(--soft);
}

.legal-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.legal-header .container {
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-header .brand img {
  width: 240px;
}

.light-link {
  color: var(--ink);
}

.legal-main {
  padding: 90px 0 110px;
}

.legal-container {
  max-width: 920px;
  padding: clamp(34px, 6vw, 76px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.legal-container h1 {
  margin-bottom: 24px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.legal-lead {
  margin-bottom: 48px;
  color: var(--ink-soft);
}

.legal-container section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.legal-container section h2 {
  margin-bottom: 12px;
  font-size: 20px;
}

.legal-container section p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 2;
}

.legal-date {
  margin-top: 30px;
  color: var(--ink-soft);
  font-size: 12px;
  text-align: right;
}

.legal-footer {
  color: rgba(255, 255, 255, 0.48);
  background: var(--navy-950);
}

.legal-footer .container {
  display: flex;
  min-height: 72px;
  align-items: center;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.thanks-main {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 30px;
  background:
    linear-gradient(rgba(4, 17, 28, 0.74), rgba(4, 17, 28, 0.82)),
    url("../assets/images/hero-otaru.webp") center / cover no-repeat;
}

.thanks-card {
  width: min(620px, 100%);
  padding: clamp(40px, 7vw, 80px);
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(15px);
}

.thanks-logo {
  width: 220px;
  margin: 0 auto 28px;
}

.thanks-icon {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  margin: 0 auto 25px;
  color: var(--white);
  font-size: 30px;
  background: linear-gradient(135deg, var(--magenta), var(--wine));
  border-radius: 50%;
}

.thanks-card h1 {
  margin-bottom: 20px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.thanks-card > p:not(.section-number) {
  margin-bottom: 30px;
  color: var(--ink-soft);
}

/* ---------- Animations ---------- */
@keyframes heroScale {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

@keyframes scrollDown {
  0% { transform: translateY(0); }
  65%, 100% { transform: translateY(245%); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  :root { --header-height: 80px; }

  .container {
    width: min(calc(100% - 48px), var(--container));
  }

  .brand img { width: 218px; }
  .desktop-nav { gap: 20px; }
  .header-tel { display: none; }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 46px;
  }

  .hero::after {
    right: -5%;
    width: 380px;
    height: 380px;
  }

  .visual-story-grid {
    grid-template-columns: 1.25fr 0.75fr;
  }

  .story-tile-wide {
    grid-row: span 2;
  }

  .story-tile {
    min-height: 280px;
  }

  .story-tile-wide {
    min-height: 578px;
  }

  .service-card-featured {
    grid-template-columns: 0.94fr 1.06fr;
  }

  .strengths-layout,
  .company-layout {
    gap: 54px;
  }

  .contact-layout {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

@media (max-width: 980px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 860px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    align-content: center;
    min-height: 860px;
    padding-top: calc(var(--header-height) + 66px);
    padding-bottom: 100px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-panel {
    position: absolute;
    right: 24px;
    bottom: 72px;
    width: 315px;
    padding: 24px;
  }

  .hero-rate strong { font-size: 78px; }
  .hero-rate span { padding-top: 11px; font-size: 24px; }
  .hero-panel h2 { margin-bottom: 14px; font-size: 17px; }
  .hero-panel ul,
  .hero-panel small { display: none; }
  .hero-location { display: none; }
  .hero-scroll { left: 40px; transform: none; }

  .intro-layout,
  .strengths-layout,
  .process-layout,
  .faq-layout,
  .company-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .intro-layout { gap: 42px; }

  .service-card-featured {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .service-card-featured .service-media {
    min-height: 420px;
  }

  .strength-visual {
    min-height: 620px;
  }

  .strength-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 34px;
  }

  .strength-item:last-child {
    border-bottom: 0;
  }

  .process-visual-wrap,
  .faq-heading {
    position: static;
  }

  .process-visual-wrap {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 34px;
    align-items: center;
  }

  .process-intro { padding: 0; }

  .ec-showcase-inner {
    grid-template-columns: 1fr;
    gap: 55px;
    padding-block: 90px;
  }

  .ec-showcase-card {
    width: min(620px, 86%);
    justify-self: end;
  }

  .company-layout {
    max-width: 860px;
  }

  .company-visual {
    min-height: 580px;
  }

  .contact-visual {
    min-height: 650px;
  }

  .contact-copy {
    max-width: 600px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .modal-panel {
    grid-template-columns: 1fr;
    width: min(720px, 100%);
  }

  .modal-visual {
    min-height: 330px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 74px;
    --section-space: 88px;
  }

  .container {
    width: min(calc(100% - 34px), var(--container));
  }

  .brand img { width: 196px; }
  .menu-toggle { width: 44px; height: 44px; }

  .section-top {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-heading h2,
  .section-top h2,
  .process-intro h2,
  .faq-heading h2,
  .contact-copy h2 {
    font-size: clamp(34px, 10vw, 49px);
  }

  .hero {
    min-height: 800px;
  }

  .hero-media img,
  .hero-media video {
    object-position: 67% center;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(3, 15, 25, 0.95) 0%, rgba(3, 15, 25, 0.75) 60%, rgba(3, 15, 25, 0.5) 100%),
      linear-gradient(90deg, rgba(3, 15, 25, 0.78), rgba(3, 15, 25, 0.25));
  }

  .hero-inner {
    display: block;
    min-height: 800px;
    padding-top: calc(var(--header-height) + 80px);
  }

  .hero h1 {
    font-size: clamp(43px, 12.5vw, 64px);
    line-height: 1.13;
  }

  .hero-lead {
    font-size: 14px;
  }

  .desktop-only { display: none; }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 520px;
    margin-top: 46px;
    padding: 23px 26px;
  }

  .hero-panel-label { font-size: 8px; }
  .hero-rate strong { font-size: 72px; }
  .hero-panel h2 { margin: -2px 0 0; }
  .hero-panel-mark { width: 130px; }
  .hero-scroll { display: none; }

  .visual-story {
    padding-top: 18px;
  }

  .visual-story-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .story-tile,
  .story-tile-wide {
    min-height: 360px;
    grid-row: auto;
  }

  .story-tile-copy {
    right: 25px;
    bottom: 24px;
    left: 25px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card-featured {
    grid-column: auto;
  }

  .service-card-featured .service-media,
  .service-media {
    min-height: 330px;
  }

  .service-body {
    padding: 30px 25px 34px;
  }

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

  .strength-visual {
    min-height: 560px;
  }

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

  .strength-item {
    grid-template-columns: 52px 1fr;
    gap: 16px;
  }

  .strength-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .strength-disclaimer {
    text-align: left;
  }

  .process-visual-wrap {
    grid-template-columns: 1fr;
  }

  .process-visual {
    min-height: 360px;
  }

  .process-list li {
    grid-template-columns: 64px 1fr;
    gap: 18px;
    padding: 36px 0;
  }

  .process-no {
    width: 52px;
    height: 52px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card:nth-child(3n + 1) {
    grid-column: auto;
  }

  .portfolio-card:nth-child(3n + 1) .portfolio-visual,
  .portfolio-visual {
    aspect-ratio: 4 / 3;
  }

  .ec-showcase,
  .ec-showcase-inner {
    min-height: 0;
  }

  .ec-showcase-inner {
    padding-block: 88px;
  }

  .ec-showcase-copy h2 {
    font-size: clamp(44px, 12vw, 62px);
  }

  .ec-showcase-card {
    width: 100%;
    transform: rotate(0);
  }

  .faq-list summary {
    grid-template-columns: 39px 1fr 24px;
    gap: 12px;
    padding: 24px 0;
    font-size: 14px;
  }

  .faq-answer {
    grid-template-columns: 39px 1fr;
    gap: 12px;
    padding-inline: 0;
  }

  .company-visual {
    min-height: 520px;
  }

  .company-data > div {
    grid-template-columns: 105px 1fr;
    gap: 18px;
  }

  .contact-visual {
    min-height: 690px;
  }

  .contact-form {
    padding: 34px 24px;
  }

  .two-columns {
    grid-template-columns: 1fr;
    gap: 21px;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-links > div:last-child {
    grid-column: 1 / -1;
  }

  .mobile-contact-bar {
    display: flex;
  }

  .modal-panel {
    display: block;
  }

  .modal-visual {
    min-height: 280px;
  }

  .modal-content {
    padding: 38px 28px 42px;
  }

  .legal-header .container {
    min-height: 78px;
  }

  .legal-header .brand img {
    width: 190px;
  }

  .legal-header .text-link {
    font-size: 10px;
  }

  .legal-header .text-link span {
    display: none;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .brand img { width: 174px; }

  .hero {
    min-height: 780px;
  }

  .hero-inner {
    min-height: 780px;
    padding-top: calc(var(--header-height) + 64px);
    padding-bottom: 56px;
  }

  .eyebrow {
    margin-bottom: 23px;
    font-size: 8px;
    letter-spacing: 0.17em;
  }

  .eyebrow span { width: 28px; }

  .hero h1 {
    margin-bottom: 23px;
    font-size: clamp(39px, 12vw, 54px);
  }

  .hero-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-buttons .button {
    width: 100%;
  }

  .hero-trust {
    display: grid;
    gap: 8px;
  }

  .hero-panel {
    margin-top: 32px;
  }

  .hero-rate strong { font-size: 66px; }

  .story-tile,
  .story-tile-wide {
    min-height: 310px;
  }

  .service-media,
  .service-card-featured .service-media {
    min-height: 270px;
  }

  .service-body h3 {
    font-size: 26px;
  }

  .ec-mini-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .strength-visual {
    min-height: 490px;
  }

  .strength-big-stat {
    right: 24px;
    bottom: 58px;
    left: 24px;
  }

  .strength-big-stat strong {
    font-size: 105px;
  }

  .process-visual {
    min-height: 310px;
  }

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

  .portfolio-filter {
    flex-wrap: nowrap;
    margin-right: -14px;
    padding-right: 14px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .portfolio-filter::-webkit-scrollbar { display: none; }
  .portfolio-filter button { flex: 0 0 auto; }

  .portfolio-meta {
    padding: 22px;
  }

  .ec-showcase-card-copy {
    grid-template-columns: 48px 1fr 24px;
  }

  .ec-showcase-card-copy > img {
    width: 48px;
  }

  .company-visual {
    min-height: 450px;
  }

  .company-logo-panel {
    right: 18px;
    bottom: 64px;
    left: 18px;
    min-height: 125px;
  }

  .company-data > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-visual {
    min-height: 700px;
  }

  .contact-copy {
    right: 24px;
    bottom: 28px;
    left: 24px;
  }

  .contact-direct strong {
    font-size: 18px;
    overflow-wrap: anywhere;
  }

  .footer-main {
    padding-top: 58px;
  }

  .footer-logo img {
    width: 200px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-links > div:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    padding-bottom: 76px;
  }

  .modal-visual {
    min-height: 220px;
  }

  .legal-header .container {
    gap: 10px;
  }

  .legal-header .brand img {
    width: 160px;
  }

  .legal-main {
    padding: 48px 0 78px;
  }
}

@media (max-width: 1180px) {
  .subsidy-results-overview {
    grid-template-columns: minmax(330px, 0.86fr) minmax(0, 1.14fr);
  }

  .subsidy-overview-visual {
    min-height: 560px;
  }

  .subsidy-summary-card {
    min-height: 260px;
  }
}

@media (max-width: 980px) {
  .subsidy-results-overview {
    grid-template-columns: 1fr;
  }

  .subsidy-overview-visual {
    min-height: 520px;
  }

  .subsidy-summary-card {
    min-height: 245px;
  }
}

@media (max-width: 760px) {
  .hero-panel-link {
    margin-top: 16px;
    padding-top: 15px;
  }

  .service-action-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .subsidy-overview-visual {
    min-height: 500px;
  }

  .subsidy-summary-grid {
    gap: 13px;
  }

  .subsidy-summary-card {
    min-height: 220px;
    padding: 25px 22px;
  }

  .subsidy-summary-card > p strong {
    font-size: 64px;
  }

  .subsidy-detail-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .subsidy-detail-heading > p {
    white-space: normal;
  }

  .subsidy-empty-state {
    grid-template-columns: 68px 1fr;
    gap: 16px;
  }

  .subsidy-empty-icon {
    width: 62px;
    height: 62px;
    padding: 14px;
  }

  .subsidy-field-preview {
    grid-column: 1 / -1;
  }

  .subsidy-table-scroll {
    display: none;
  }

  .subsidy-mobile-list {
    display: grid;
    gap: 14px;
  }

  .subsidy-disclosure {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .hero-panel-link {
    font-size: 10px;
  }

  .subsidy-overview-visual {
    min-height: 450px;
  }

  .subsidy-overview-stat {
    right: 26px;
    bottom: 30px;
    left: 26px;
  }

  .subsidy-overview-stat strong {
    font-size: 104px;
  }

  .subsidy-summary-grid {
    grid-template-columns: 1fr;
  }

  .subsidy-summary-card {
    min-height: 205px;
  }

  .subsidy-summary-card-accent {
    min-height: 245px;
  }

  .subsidy-results-mount {
    padding: 16px;
  }

  .subsidy-empty-state {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 25px 20px;
  }

  .subsidy-empty-icon {
    margin-bottom: 5px;
  }

  .subsidy-field-preview {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-video {
    display: none;
  }
}

/* =========================================================
   Responsive refinement v4
   - mobile / tablet layout stabilization
   - touch target and safe-area support
   - long-text and horizontal-overflow safeguards
   ========================================================= */

html,
body {
  width: 100%;
  max-width: 100%;
}

body {
  overflow-x: clip;
}

:where(
  .header-inner,
  .hero-inner,
  .visual-story-grid,
  .intro-layout,
  .service-grid,
  .service-card,
  .subsidy-results-overview,
  .subsidy-summary-grid,
  .strengths-layout,
  .strength-list,
  .process-layout,
  .process-visual-wrap,
  .portfolio-grid,
  .ec-showcase-inner,
  .faq-layout,
  .company-layout,
  .contact-layout,
  .footer-main,
  .footer-links,
  .modal-panel
) > * {
  min-width: 0;
}

:where(
  .hero-copy,
  .hero-panel,
  .service-body,
  .subsidy-detail-panel,
  .subsidy-result-card,
  .strength-item > div,
  .process-list li > div,
  .portfolio-meta,
  .ec-showcase-copy,
  .faq-list,
  .company-data,
  .contact-copy,
  .contact-form,
  .footer-brand-block,
  .modal-content
) {
  min-width: 0;
}

:where(
  .hero h1,
  .hero-lead,
  .service-body h3,
  .service-description,
  .subsidy-detail-heading h3,
  .subsidy-empty-state h4,
  .subsidy-result-card h4,
  .strength-item h3,
  .process-list h3,
  .portfolio-meta h3,
  .faq-list summary,
  .faq-answer p,
  .company-data dd,
  .contact-copy h2,
  .contact-direct strong,
  .footer-address,
  .modal-content h2,
  .modal-content > p
) {
  overflow-wrap: anywhere;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 10px);
}

/* The hero is already visible at page load; do not leave its tablet/mobile
   result panel transparent until the user starts scrolling. */
.js .hero .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

@supports (overflow: clip) {
  .hero,
  .subsidy-results,
  .strengths,
  .ec-showcase {
    overflow-x: clip;
  }
}

@media (max-width: 1180px) {
  .header-inner {
    gap: 20px;
  }

  .desktop-nav {
    min-width: 0;
  }

  .desktop-nav a {
    white-space: nowrap;
  }

  .hero-inner {
    gap: clamp(30px, 5vw, 54px);
  }

  .contact-visual {
    min-height: 780px;
  }
}

@media (max-width: 980px) {
  :root {
    --section-space: clamp(82px, 10vw, 112px);
  }

  .site-header,
  .mobile-menu {
    width: 100%;
  }

  .mobile-menu {
    height: calc(100dvh - var(--header-height));
    min-height: 0;
    overscroll-behavior: contain;
  }

  .mobile-menu-inner {
    max-height: 100%;
  }

  .hero {
    min-height: 0;
  }

  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    min-height: max(760px, 100svh);
    padding-top: calc(var(--header-height) + clamp(64px, 8vw, 88px));
    padding-bottom: clamp(72px, 10vw, 110px);
  }

  .hero-copy {
    width: 100%;
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 430px);
    justify-self: end;
    margin-top: 8px;
  }

  .hero-panel-mark {
    right: -10px;
  }

  .hero-trust {
    max-width: 100%;
  }

  .hero-scroll {
    display: none;
  }

  .service-card-featured .service-media {
    min-height: 390px;
  }

  .subsidy-overview-visual {
    min-height: 500px;
  }

  /* The 920px desktop table is too cramped on tablets. Use the same
     information-rich cards that are used on phones. */
  .subsidy-table-scroll {
    display: none;
  }

  .subsidy-mobile-list {
    display: grid;
    gap: 16px;
  }

  .strength-visual {
    min-height: 600px;
  }

  .company-visual {
    min-height: 540px;
  }

  .contact-visual {
    min-height: 660px;
  }

  .modal-panel {
    max-height: calc(100dvh - 32px);
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 70px;
    --section-space: clamp(68px, 18vw, 86px);
    --radius-lg: 24px;
    --radius-md: 18px;
  }

  html {
    scroll-padding-top: calc(var(--header-height) + 8px);
  }

  body {
    font-size: 15px;
    line-height: 1.75;
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .site-header {
    height: var(--header-height);
  }

  .header-inner {
    gap: 12px;
  }

  .brand img {
    width: clamp(168px, 48vw, 196px);
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
  }

  .mobile-menu-inner {
    width: min(calc(100% - 32px), 560px);
    padding-top: 24px;
  }

  .mobile-menu-logo {
    width: 96px;
    margin-bottom: 16px;
    padding: 10px;
  }

  .mobile-menu nav > a:not(.mobile-menu-cta) {
    min-height: 58px;
    font-size: 16px;
  }

  .mobile-menu-cta {
    min-height: 56px;
    margin-top: 22px;
  }

  .section-number {
    margin-bottom: 14px;
    font-size: 9px;
  }

  .section-top {
    margin-bottom: clamp(38px, 10vw, 52px);
  }

  .section-heading h2,
  .section-top h2,
  .process-intro h2,
  .faq-heading h2,
  .contact-copy h2 {
    font-size: clamp(31px, 9.6vw, 45px);
    line-height: 1.28;
    letter-spacing: -0.04em;
  }

  .section-top > p {
    font-size: 14px;
    line-height: 1.9;
  }

  .hero {
    min-height: 0;
  }

  .hero-inner {
    display: grid;
    min-height: 0;
    padding-top: calc(var(--header-height) + 58px);
    padding-bottom: 62px;
  }

  .hero-media img,
  .hero-media video {
    width: 100%;
    max-width: none;
    object-position: 67% center;
  }

  .hero h1 {
    max-width: 12em;
    margin-bottom: 24px;
    font-size: clamp(34px, 10.9vw, 50px);
    line-height: 1.14;
    letter-spacing: -0.065em;
    word-break: keep-all;
  }

  .hero-lead {
    margin-bottom: 28px;
    font-size: 14px;
    line-height: 1.9;
  }

  .hero-buttons {
    margin-bottom: 27px;
  }

  .hero-buttons .button {
    min-height: 56px;
  }

  .hero-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
  }

  .hero-trust span {
    min-width: 0;
    padding-left: 16px;
    font-size: 10px;
    line-height: 1.65;
  }

  .hero-panel {
    width: 100%;
    max-width: none;
    margin-top: 34px;
    padding: 24px;
    border-radius: 22px;
  }

  .hero-panel-mark {
    top: -8px;
    right: -8px;
    width: 120px;
  }

  .hero-rate strong {
    font-size: clamp(62px, 19vw, 78px);
  }

  .hero-rate span {
    padding-top: 10px;
    font-size: 22px;
  }

  .hero-panel-link {
    min-height: 44px;
  }

  .visual-story {
    padding: 16px 0 58px;
  }

  .story-tile,
  .story-tile-wide {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .story-tile-copy {
    right: 22px;
    bottom: 22px;
    left: 22px;
  }

  .story-tile-copy h2 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .intro-copy > p {
    font-size: 15px;
    line-height: 2;
  }

  .service-grid {
    gap: 18px;
  }

  .service-card,
  .portfolio-open,
  .subsidy-detail-panel,
  .contact-form {
    border-radius: 22px;
  }

  .service-media,
  .service-card-featured .service-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .service-body {
    padding: 28px 22px 30px;
  }

  .service-body h3 {
    font-size: clamp(25px, 7.6vw, 32px);
  }

  .service-description {
    font-size: 13px;
  }

  .check-list {
    margin: 24px 0;
  }

  .text-link,
  .service-inline-contact {
    min-height: 44px;
    align-items: center;
  }

  .service-inline-contact {
    display: inline-flex;
  }

  .ec-mini-panel > a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  .subsidy-results-overview {
    gap: 18px;
  }

  .subsidy-overview-visual {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .subsidy-overview-stat {
    right: 26px;
    bottom: 28px;
    left: 26px;
  }

  .subsidy-overview-stat strong {
    font-size: clamp(80px, 25vw, 112px);
  }

  .subsidy-overview-stat > p span {
    padding-top: 14px;
    font-size: 27px;
  }

  .subsidy-overview-stat h3 {
    font-size: 19px;
  }

  .subsidy-overview-period {
    max-width: 100%;
    white-space: normal;
  }

  .subsidy-summary-card {
    min-height: 190px;
    padding: 24px 20px;
  }

  .subsidy-summary-card > p strong {
    font-size: clamp(54px, 15vw, 72px);
  }

  .subsidy-summary-card-accent {
    min-height: 210px;
  }

  .subsidy-detail-heading {
    padding: 26px 22px;
  }

  .subsidy-results-mount {
    padding: 16px;
  }

  .subsidy-empty-state {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 14px 18px;
    min-height: 0;
    padding: 24px 20px;
  }

  .subsidy-empty-icon {
    width: 58px;
    height: 58px;
    padding: 13px;
  }

  .subsidy-empty-state h4 {
    font-size: 18px;
  }

  .subsidy-empty-state p {
    font-size: 12px;
  }

  .subsidy-result-card-head,
  .subsidy-result-card-body {
    padding-inline: 18px;
  }

  .strength-visual {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .strength-big-stat {
    right: 26px;
    bottom: 60px;
    left: 26px;
  }

  .strength-big-stat strong {
    font-size: clamp(88px, 27vw, 122px);
  }

  .strength-big-stat span {
    padding-top: 14px;
    font-size: 26px;
  }

  .strength-item {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 15px;
    padding: 27px 0;
  }

  .strength-item h3 {
    font-size: clamp(21px, 6.4vw, 27px);
  }

  .process-visual {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .process-intro {
    padding-inline: 0;
  }

  .process-list li {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    padding: 30px 0;
  }

  .process-no {
    width: 48px;
    height: 48px;
  }

  .portfolio-filter {
    min-height: 48px;
    margin-bottom: 26px;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .portfolio-filter button {
    min-height: 44px;
    scroll-snap-align: start;
  }

  .portfolio-visual,
  .portfolio-card:nth-child(3n + 1) .portfolio-visual {
    aspect-ratio: 16 / 10;
  }

  .portfolio-open {
    touch-action: manipulation;
  }

  .portfolio-meta {
    padding: 22px;
  }

  .portfolio-meta h3 {
    font-size: clamp(22px, 6.6vw, 28px);
  }

  .portfolio-arrow {
    width: 44px;
    height: 44px;
  }

  .ec-showcase-inner {
    gap: 40px;
    padding-block: 72px;
  }

  .ec-showcase-copy h2 {
    font-size: clamp(40px, 11vw, 58px);
  }

  .ec-showcase-copy > p:not(.section-number):not(.ec-kicker) {
    font-size: 14px;
    line-height: 1.9;
  }

  .ec-showcase-card {
    border-radius: 22px;
  }

  .faq-list summary {
    min-height: 68px;
    grid-template-columns: 38px minmax(0, 1fr) 24px;
    padding: 20px 0;
    line-height: 1.65;
  }

  .faq-answer {
    grid-template-columns: 38px minmax(0, 1fr);
    padding-bottom: 25px;
  }

  .faq-list summary > span,
  .faq-answer > span {
    width: 36px;
    height: 36px;
  }

  .company-visual {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .company-logo-panel {
    right: 22px;
    bottom: 56px;
    left: 22px;
    min-height: 112px;
  }

  .company-data > div {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    padding: 23px 0;
  }

  .company-data dd {
    font-size: 13px;
  }

  .contact-layout {
    gap: 18px;
  }

  .contact-visual {
    min-height: 0;
  }

  .contact-copy {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    display: flex;
    min-height: 620px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 44px 26px 30px;
  }

  .contact-copy > p:not(.section-number) {
    font-size: 13px;
    line-height: 1.9;
  }

  .contact-direct a {
    min-height: 92px;
    justify-content: center;
  }

  .contact-direct strong {
    font-size: clamp(18px, 5.2vw, 24px);
  }

  .contact-form {
    padding: 30px 22px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .privacy-check {
    min-height: 44px;
    align-items: center;
  }

  .privacy-check input {
    width: 20px;
    height: 20px;
    margin-top: 0;
  }

  .footer-main {
    gap: 42px;
  }

  .footer-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  .footer-bottom {
    min-height: 80px;
    padding-bottom: calc(66px + env(safe-area-inset-bottom));
  }

  .back-to-top {
    width: 44px;
    height: 44px;
  }

  .mobile-contact-bar {
    min-height: 56px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .portfolio-modal {
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  }

  .modal-panel {
    width: 100%;
    max-height: calc(100dvh - max(20px, env(safe-area-inset-top)) - max(20px, env(safe-area-inset-bottom)));
    border-radius: 20px;
  }

  .modal-close {
    width: 44px;
    height: 44px;
  }

  .modal-visual {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .modal-content {
    padding: 30px 22px 34px;
  }

  .legal-main {
    padding-top: 48px;
  }

  .legal-container {
    padding: 30px 22px;
    border-radius: 22px;
  }

  .thanks-main {
    padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 520px) {
  :root {
    --section-space: 66px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .brand img {
    width: clamp(158px, 48vw, 174px);
  }

  .hero-inner {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 52px;
  }

  .eyebrow {
    margin-bottom: 20px;
  }

  .hero h1 {
    font-size: clamp(34px, 10.9vw, 50px);
  }

  .hero-buttons {
    gap: 10px;
  }

  .hero-trust {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .hero-panel {
    margin-top: 28px;
    padding: 22px;
  }

  .story-tile,
  .story-tile-wide {
    aspect-ratio: 1 / 1;
  }

  .service-media,
  .service-card-featured .service-media {
    aspect-ratio: 4 / 3;
  }

  .service-index {
    top: 18px;
    left: 18px;
    width: 44px;
    height: 44px;
  }

  .service-media > p {
    right: 18px;
    left: 18px;
  }

  .subsidy-overview-visual {
    aspect-ratio: 4 / 3;
  }

  /* Two compact columns fit from 361px upward; they considerably reduce
     the vertical length of the statistics section on common phones. */
  .subsidy-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .subsidy-summary-card,
  .subsidy-summary-card-accent {
    min-height: 174px;
    padding: 20px 16px;
    border-radius: 19px;
  }

  .subsidy-summary-card > p {
    margin-top: 20px;
  }

  .subsidy-summary-card > p strong {
    font-size: clamp(48px, 14vw, 62px);
  }

  .subsidy-summary-card > h3 {
    font-size: 13px;
  }

  .subsidy-summary-card-accent > small {
    margin-bottom: 16px;
  }

  .subsidy-summary-card-accent > h3 {
    font-size: clamp(19px, 5.6vw, 24px);
    line-height: 1.4;
  }

  .subsidy-summary-card-accent > p {
    font-size: 10px;
    line-height: 1.65;
  }

  .subsidy-empty-state {
    grid-template-columns: 1fr;
  }

  .subsidy-field-preview {
    grid-column: auto;
  }

  .subsidy-result-card-head {
    align-items: flex-start;
  }

  .strength-visual {
    aspect-ratio: 4 / 5;
  }

  .process-list li {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .process-no {
    width: 44px;
    height: 44px;
  }

  .ec-showcase-card-copy {
    grid-template-columns: 48px minmax(0, 1fr) 24px;
  }

  .ec-showcase-card-copy strong {
    font-size: 15px;
  }

  .company-visual {
    aspect-ratio: 1 / 1;
  }

  .company-data > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .contact-copy {
    min-height: 580px;
    padding: 38px 22px 24px;
  }

  .contact-direct {
    margin-top: 24px;
  }

  .contact-direct a {
    min-height: 86px;
    padding: 15px 16px;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .form-heading {
    margin-bottom: 28px;
  }

  .footer-logo {
    max-width: 100%;
  }

  .footer-logo img {
    width: min(190px, 100%);
  }

  .footer-bottom {
    gap: 16px;
  }

  .footer-bottom p {
    line-height: 1.6;
  }

  .legal-header .brand img {
    width: 148px;
  }

  .legal-header .container {
    width: min(calc(100% - 24px), var(--container));
  }
}

@media (max-width: 360px) {
  :root {
    --header-height: 66px;
    --section-space: 58px;
  }

  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .brand img {
    width: 148px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .hero-inner {
    padding-top: calc(var(--header-height) + 42px);
    padding-bottom: 46px;
  }

  .hero h1 {
    font-size: clamp(34px, 10.8vw, 39px);
  }

  .hero-lead {
    font-size: 13px;
  }

  .hero-panel {
    padding: 20px 18px;
  }

  .hero-panel-mark {
    width: 104px;
  }

  .section-heading h2,
  .section-top h2,
  .process-intro h2,
  .faq-heading h2,
  .contact-copy h2 {
    font-size: clamp(29px, 9.4vw, 36px);
  }

  .subsidy-summary-grid {
    grid-template-columns: 1fr;
  }

  .subsidy-summary-card,
  .subsidy-summary-card-accent {
    min-height: 158px;
  }

  .subsidy-empty-state {
    padding: 22px 17px;
  }

  .subsidy-result-card-head,
  .subsidy-result-card-body {
    padding-inline: 16px;
  }

  .strength-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .process-list li {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .process-no {
    width: 40px;
    height: 40px;
  }

  .portfolio-meta {
    padding: 20px 18px;
  }

  .contact-copy {
    min-height: 540px;
    padding-inline: 19px;
  }

  .contact-direct strong {
    font-size: 17px;
  }

  .contact-form {
    padding-inline: 18px;
  }

  .mobile-contact-bar {
    right: 8px;
    left: 8px;
    padding-inline: 17px;
    font-size: 12px;
  }

  .modal-content {
    padding-inline: 18px;
  }
}

/* Mobile landscape: use the available horizontal space instead of creating
   an unnecessarily tall first view. */
@media (min-width: 640px) and (max-width: 980px) and (max-height: 620px) and (orientation: landscape) {
  :root {
    --header-height: 64px;
  }

  .brand img {
    width: 174px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.58fr);
    gap: 26px;
    align-items: center;
    min-height: 100svh;
    padding-top: calc(var(--header-height) + 26px);
    padding-bottom: 28px;
  }

  .eyebrow {
    margin-bottom: 14px;
  }

  .hero h1 {
    margin-bottom: 16px;
    font-size: clamp(35px, 5.7vw, 50px);
  }

  .hero-lead {
    margin-bottom: 18px;
    font-size: 12px;
    line-height: 1.7;
  }

  .hero-buttons {
    margin-bottom: 14px;
  }

  .hero-buttons .button {
    min-height: 46px;
    padding: 12px 19px;
    font-size: 11px;
  }

  .hero-trust {
    display: none;
  }

  .hero-panel {
    width: 100%;
    justify-self: stretch;
    margin-top: 0;
    padding: 20px;
  }

  .hero-rate strong {
    font-size: 62px;
  }

  .hero-panel h2 {
    font-size: 15px;
  }

  .mobile-menu-inner {
    padding-top: 10px;
  }

  .mobile-menu-logo {
    display: none;
  }

  .mobile-menu nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }

  .mobile-menu nav > a:not(.mobile-menu-cta) {
    min-height: 48px;
    font-size: 14px;
  }

  .mobile-menu-cta {
    grid-column: 1 / -1;
    min-height: 48px;
    margin-top: 14px;
  }

  .mobile-contact-bar {
    display: none !important;
  }
}

@media (max-height: 680px) and (max-width: 639px) {
  .mobile-menu-logo {
    display: none;
  }

  .mobile-menu-inner {
    padding-top: 10px;
  }

  .mobile-menu nav > a:not(.mobile-menu-cta) {
    min-height: 48px;
    font-size: 14px;
  }

  .mobile-menu-cta {
    min-height: 48px;
    margin-top: 14px;
  }
}

@media (pointer: coarse) {
  .button,
  .menu-toggle,
  .mobile-menu a,
  .text-link,
  .service-inline-contact,
  .portfolio-filter button,
  .portfolio-open,
  .faq-list summary,
  .contact-direct a,
  .footer-links a,
  .back-to-top,
  .modal-close {
    touch-action: manipulation;
  }
}

@media (hover: none) {
  .service-card:hover,
  .portfolio-open:hover,
  .button:hover,
  .contact-direct a:hover,
  .back-to-top:hover {
    transform: none;
  }

  .service-card:hover .service-media img,
  .portfolio-open:hover .portfolio-visual img,
  .story-tile:hover img,
  .subsidy-overview-visual:hover > img {
    transform: none;
  }
}

/* Final small-screen text-flow and edge-overflow corrections. */
.hero h1 {
  overflow-wrap: normal;
  word-break: normal;
  line-break: strict;
  text-wrap: balance;
}

@media (max-width: 360px) {
  .portfolio-filter {
    margin-right: -12px;
    padding-right: 12px;
  }
}

/* Keep the highlighted phrase together so Japanese headings do not split at
   an awkward position on narrow phones. */
.hero h1 span {
  white-space: nowrap;
}

/* ---------- Responsive interaction safeguards ---------- */
.mobile-contact-bar {
  max-width: calc(100% - 24px);
  pointer-events: none;
}

.mobile-contact-bar.is-visible {
  pointer-events: auto;
}

body.menu-open .mobile-contact-bar,
body.modal-open .mobile-contact-bar,
body.contact-in-view .mobile-contact-bar {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}

@media (max-width: 520px) {
  .portfolio-filter {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    padding-right: 0;
    overscroll-behavior-x: contain;
  }
}
