:root {
  --blue: #0069a8;
  --deep: #00395c;
  --navy: #061e31;
  --green: #00a779;
  --aqua: #e9f8fb;
  --paper: #f6fbfd;
  --ink: #102232;
  --muted: #627684;
  --shadow: 0 22px 56px rgba(0, 46, 72, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  background: var(--paper);
  overflow-x: hidden;
  line-height: 1.75;
}
body.intro-active { overflow: hidden; }
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.opening {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  color: #fff;
  background: radial-gradient(circle at 50% 38%, #008ac0, #00395c 58%, #061e31);
  overflow: hidden;
  transition: opacity .42s ease, visibility .42s ease;
}
.opening.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.opening-wave {
  position: absolute;
  inset: auto -12% -12%;
  height: 48%;
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,.72), transparent 7%),
    radial-gradient(circle at 72% 30%, rgba(141,240,198,.55), transparent 9%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 420' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23dff6fa' fill-opacity='.92' d='M0 160l80 28c80 28 240 84 400 60s320-128 480-142 320 64 400 104l80 40v170H0z'/%3E%3Cpath fill='%23ffffff' fill-opacity='.72' d='M0 244l80 14c80 14 240 42 400 26s320-76 480-78 320 52 400 80l80 28v106H0z'/%3E%3C/svg%3E") center bottom / cover no-repeat;
  animation: openingWave 1.9s ease-in-out forwards;
}
.opening-content {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(620px, calc(100% - 40px));
  text-align: center;
  animation: openingRise 1.7s ease-out both;
}
.opening-mark { width: 70px; height: 54px; margin-bottom: 12px; }
.opening-character { width: min(116px, 26vw); margin: 4px 0 12px; filter: drop-shadow(0 18px 24px rgba(0,0,0,.25)); animation: characterFloat 3.2s ease-in-out infinite; }
.opening-content p { margin: 0 0 4px; color: #9af6d1; font-weight: 950; letter-spacing: .08em; }
.opening-content strong { font-size: clamp(30px, 7vw, 62px); line-height: 1.18; text-shadow: 0 8px 28px rgba(0,0,0,.24); }
.opening-skip {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  padding: 8px 14px;
  color: #fff;
  font-weight: 900;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  cursor: pointer;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: 72px;
  padding: 10px clamp(16px, 4vw, 56px);
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255,255,255,.91);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(0, 45, 78, .08);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 42px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 950;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--blue), var(--green));
  clip-path: polygon(0 0, 38% 0, 50% 30%, 62% 0, 100% 0, 72% 50%, 100% 100%, 62% 100%, 50% 70%, 38% 100%, 0 100%, 28% 50%);
}
.brand strong { display: block; font-size: 15px; line-height: 1.1; }
.brand small { display: block; font-size: 9px; line-height: 1.1; letter-spacing: .08em; }
.header-nav { margin-left: auto; display: flex; gap: 22px; font-weight: 900; font-size: 13px; }
.header-cta {
  padding: 10px 18px;
  border-radius: 999px;
  color: #fff;
  font-weight: 950;
  background: var(--green);
  box-shadow: 0 10px 24px rgba(0, 166, 125, .28);
}

.section-inner { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.section-dark { color: #fff; background: var(--deep); }
.eyebrow, .section-kicker { margin: 0 0 12px; color: var(--green); font-weight: 950; letter-spacing: .08em; }
.section-dark .eyebrow, .section-dark .section-kicker { color: #8df0c6; }
.section-title {
  margin: 0 0 24px;
  text-align: center;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.25;
  letter-spacing: 0;
}
.section-title::before, .section-title::after {
  content: "";
  display: inline-block;
  width: 42px;
  height: 3px;
  margin: 0 14px .35em;
  background: currentColor;
  color: var(--green);
}

.hero {
  position: relative;
  min-height: 820px;
  padding: 116px 0 76px;
  overflow: hidden;
  isolation: isolate;
  background: #041f34;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(255,255,255,.93) 0%, rgba(255,255,255,.82) 26%, rgba(255,255,255,.15) 48%, rgba(0,40,66,.22) 100%),
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,58,92,.38)),
    url("../images/phase2-hero-dam.webp") center / cover no-repeat;
  transform: scale(1.06);
  animation: slowZoom 18s ease-out forwards;
}
.hero-water {
  position: absolute;
  inset: auto -15% -28px;
  z-index: -1;
  height: 190px;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(255,255,255,.92), rgba(255,255,255,0) 62%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23f6fbfd' d='M0 94l80 16c80 16 240 48 400 28S800 46 960 34s320 54 400 88l80 34v24H0z'/%3E%3Cpath fill='%23dff6fa' fill-opacity='.75' d='M0 132l90 4c90 4 270 12 450-10S900 52 1080 50s300 70 360 94v36H0z'/%3E%3C/svg%3E") center bottom / cover no-repeat;
  animation: waterSlide 8s ease-in-out infinite alternate;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 36px));
  min-height: 630px;
  margin: 0 auto;
}
.hero-layer-copy {
  position: absolute;
  left: 0;
  bottom: 58px;
  width: min(650px, 58vw);
  color: #071b2a;
}
.hero h1 {
  margin: 0;
  font-size: clamp(58px, 8.2vw, 106px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 3px 0 rgba(255,255,255,.7);
}
.hero h1 span { color: var(--blue); }
.hero-lead {
  width: min(590px, 100%);
  margin: 24px 0 26px;
  padding: 12px 16px;
  color: #fff;
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 950;
  background: var(--blue);
  box-shadow: 10px 10px 0 rgba(0,167,121,.86);
  transform: rotate(-1.4deg);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 950;
}
.button-primary { color: #fff; background: var(--green); box-shadow: 0 18px 34px rgba(0, 138, 155, .28); }
.button-ghost { color: var(--blue); background: rgba(255,255,255,.92); border: 2px solid rgba(0,104,168,.16); }
.hero-people {
  position: absolute;
  right: min(9vw, 110px);
  bottom: 34px;
  width: min(420px, 36vw);
  box-shadow: -22px 22px 0 rgba(0, 167, 121, .82);
  z-index: 2;
}
.hero-people::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(0,59,92,.18));
  pointer-events: none;
}
.hero-people img { width: 100%; aspect-ratio: 8 / 9; object-fit: cover; }
.hero-character {
  position: absolute;
  right: -6px;
  bottom: 48px;
  width: min(178px, 17vw);
  text-align: center;
  z-index: 3;
  padding: 8px 8px 0;
}
.hero-character::before {
  content: "";
  position: absolute;
  inset: 46px -4px 2px;
  z-index: -1;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 999px 999px 18px 18px;
  box-shadow: 0 18px 44px rgba(0,45,70,.2);
  backdrop-filter: blur(2px);
}
.char-img {
  width: 100%;
  height: auto;
  transform-origin: 50% 100%;
}
.hero-character .char-img, .entry-character .char-img, .guide-note .char-img, .section-guide .char-img {
  filter: drop-shadow(0 18px 24px rgba(0,35,55,.24));
  animation: characterFloat 4.6s ease-in-out infinite;
}
.char-power { animation-delay: .2s; }
.char-guide { animation-delay: .55s; }
.guide-note .char-img, .section-guide .char-img {
  transform: rotate(-2deg);
}
.speech {
  position: relative;
  margin: 0 0 10px;
  padding: 15px 16px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 950;
  background: #fff;
  border: 2px solid rgba(5,43,69,.25);
  border-radius: 999px;
}
.speech::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: -10px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-right: 2px solid rgba(5,43,69,.25);
  border-bottom: 2px solid rgba(5,43,69,.25);
  transform: rotate(45deg);
}

.mission { padding: 88px 0 82px; background: #fff; }
.mission-grid { display: grid; grid-template-columns: .85fr 1.35fr; gap: 48px; align-items: center; }
.mission h2, .outline h2 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.16;
  letter-spacing: 0;
}
.mission h2 span { color: var(--blue); }
.mission-copy p:last-child { font-weight: 800; }
.mission-photos { display: grid; grid-template-columns: 1.5fr .9fr; gap: 12px; }
.mission-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow); }
.mission-photos .photo-main { grid-row: span 2; min-height: 450px; }

.guide-note, .section-guide {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}
.guide-note img { width: 70px; flex: 0 0 auto; }
.guide-note p, .section-guide p {
  position: relative;
  margin: 0;
  padding: 16px 18px;
  color: var(--ink);
  font-weight: 950;
  line-height: 1.55;
  background: #fff;
  border: 2px solid rgba(0, 105, 168, .18);
  border-radius: 6px;
  box-shadow: 0 14px 34px rgba(0, 56, 88, .09);
}
.guide-note-dark p { color: #fff; background: rgba(0, 26, 44, .54); border-color: rgba(255,255,255,.22); }
.section-guide {
  width: min(760px, 100%);
  margin: 0 auto 28px;
  justify-content: center;
}
.section-guide img { width: 58px; flex: 0 0 auto; }

.scale-photo {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #08283f;
}
.scale-bg {
  position: absolute;
  inset: -7% 0;
  background: linear-gradient(90deg, rgba(4,31,52,.88), rgba(4,31,52,.28)), url("../images/phase2-dam-full.webp") center / cover no-repeat;
  transform: translate3d(0, 0, 0) scale(1.08);
  will-change: transform;
}
.scale-content {
  position: relative;
  z-index: 1;
  margin-left: max(18px, calc((100vw - 1120px) / 2));
}
.scale-content h2 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 78px);
  line-height: 1.16;
}
.scale-content p { max-width: 620px; margin: 0; font-size: 18px; font-weight: 800; }

.work-flow { padding: 82px 0; background: linear-gradient(180deg, #fff, var(--aqua)); }
.flow-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.flow-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding-bottom: 18px;
  color: #fff;
  background: var(--navy);
  box-shadow: var(--shadow);
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}
.flow-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s ease; }
.flow-card:hover img { transform: scale(1.08); }
.flow-card strong { display: block; margin: -52px 16px 8px; color: #fff; font-size: 46px; line-height: 1; text-shadow: 0 4px 16px rgba(0,0,0,.42); }
.flow-card h3, .flow-card p { margin-left: 18px; margin-right: 18px; }
.flow-card h3 { margin-top: 0; margin-bottom: 6px; font-size: 17px; }
.flow-card p { margin-top: 0; color: rgba(255,255,255,.84); font-size: 13px; line-height: 1.65; }

.field-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 620px; background: var(--navy); }
.field-panel { position: relative; overflow: hidden; min-height: 620px; color: #fff; }
.field-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(3,28,45,.76)); }
.field-panel img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.field-panel.is-visible img { transform: scale(1.06); }
.field-copy {
  position: absolute;
  z-index: 1;
  left: clamp(18px, 5vw, 60px);
  right: clamp(18px, 5vw, 60px);
  bottom: clamp(24px, 5vw, 62px);
}
.field-copy span { color: #8df0c6; font-weight: 950; letter-spacing: .1em; }
.field-copy h2 { margin: 8px 0 0; font-size: clamp(28px, 4.2vw, 54px); line-height: 1.22; }

.track-record {
  position: relative;
  padding: 86px 0;
  overflow: hidden;
  background: linear-gradient(120deg, #00395c, #061e31);
}
.track-record::after {
  content: "JAPAN";
  position: absolute;
  right: 3vw;
  bottom: 2vw;
  color: rgba(255,255,255,.07);
  font-size: clamp(80px, 18vw, 220px);
  font-weight: 950;
}
.record-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .8fr .9fr 1fr;
  gap: 24px;
  align-items: center;
}
.record-copy h2 { margin: 0 0 16px; font-size: clamp(34px, 5vw, 58px); line-height: 1.2; }
.project-map {
  position: relative;
  min-height: 430px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 56% 44%, rgba(141,240,198,.2), transparent 18%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.13), transparent 34%),
    url("../images/phase2-entry-dam.webp") center / cover no-repeat;
  box-shadow: 0 22px 56px rgba(0,0,0,.25);
  overflow: hidden;
}
.project-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 43, 70, .64);
}
.map-dot {
  position: absolute;
  z-index: 1;
  padding: 6px 10px 6px 22px;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  background: rgba(0, 167, 121, .84);
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(141,240,198,.75);
  animation: pulse 2.8s ease-out infinite;
}
.map-dot::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
}
.dot-1 { left: 58%; top: 30%; }
.dot-2 { left: 48%; top: 48%; animation-delay: .25s; }
.dot-3 { left: 42%; top: 62%; animation-delay: .5s; }
.dot-4 { left: 34%; top: 68%; animation-delay: .75s; }
.dot-5 { left: 27%; top: 74%; animation-delay: 1s; }
.dot-6 { left: 37%; top: 70%; animation-delay: 1.15s; }
.dot-7 { left: 30%; top: 66%; animation-delay: 1.3s; }
.dot-8 { left: 33%; top: 82%; animation-delay: 1.45s; }
.project-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
.project-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 42% 1fr;
  color: var(--ink);
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 20px 44px rgba(0,0,0,.18);
}
.project-card img { width: 100%; height: 100%; min-height: 130px; object-fit: cover; }
.project-card h3 { margin: 18px 18px 0; font-size: 20px; }
.project-card p { margin: 0 18px 18px; color: var(--muted); font-weight: 900; }

.appeal { padding: 86px 0; background: #f6fdff; }
.appeal-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.appeal-item { min-width: 0; padding: 24px 18px; background: #fff; border-radius: 6px; box-shadow: var(--shadow); }
.appeal-item span { color: var(--blue); font-size: 30px; font-weight: 950; }
.appeal-item h3 { margin: 8px 0; font-size: 17px; line-height: 1.4; }
.appeal-item p { margin: 0; color: var(--muted); font-size: 14px; }
.team-band { position: relative; margin-top: 30px; overflow: hidden; border-radius: 6px; min-height: 330px; color: #fff; }
.team-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,48,78,.82), rgba(0,48,78,.08)); }
.team-band img { width: 100%; height: 380px; object-fit: cover; filter: saturate(1.04); }
.team-band p {
  position: absolute;
  z-index: 1;
  left: 32px;
  top: 28px;
  max-width: 520px;
  margin: 0;
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.22;
  font-weight: 950;
  text-shadow: 0 3px 18px rgba(0,0,0,.45);
}

.interview { padding: 86px 0; background: linear-gradient(180deg, #fff, #dff5fb); }
.interview-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 18px; align-items: stretch; }
.interview-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(330px, 1fr) auto;
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.interview-card:first-child { grid-row: span 2; }
.interview-card img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; }
.interview-card div { padding: 24px 22px; }
.interview-card span { display: inline-block; padding: 6px 10px; color: #fff; font-size: 12px; font-weight: 950; background: var(--green); border-radius: 999px; }
.interview-card h3 { margin: 14px 0 18px; font-size: clamp(18px, 2.1vw, 25px); line-height: 1.55; }
.mini-link {
  display: inline-flex;
  padding: 9px 16px;
  color: #fff;
  font: inherit;
  font-weight: 950;
  background: var(--green);
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}

.outline { padding: 86px 0; background: #fff; }
.outline-grid { display: grid; grid-template-columns: .62fr 1.38fr; gap: 34px; align-items: start; }
.outline-table-wrap { min-width: 0; }
.outline-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  background: #fff;
  border: 1px solid #cbe8ef;
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.outline-table th,
.outline-table td {
  padding: 17px 18px;
  border-bottom: 1px solid #d8edf2;
  vertical-align: top;
  text-align: left;
}
.outline-table th {
  width: 180px;
  color: var(--blue);
  font-weight: 950;
  background: #eef9fb;
}
.outline-table td { font-weight: 850; }
.outline-table tr:last-child th,
.outline-table tr:last-child td { border-bottom: 0; }
.outline-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; font-weight: 800; }

.entry {
  position: relative;
  min-height: 640px;
  padding: 110px 0 98px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(0,42,68,.92), rgba(0,72,110,.72), rgba(0,42,68,.5)), url("../images/phase2-team-wide.webp") center / cover no-repeat;
}
.entry::before {
  content: "";
  position: absolute;
  inset: -1px -5% auto;
  height: 140px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' d='M0 0h1440v60l-80 18c-80 18-240 54-400 42S640 48 480 44 160 90 80 112L0 134z'/%3E%3C/svg%3E") center top / cover no-repeat;
}
.entry-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 360px 1fr; gap: 34px; align-items: end; }
.entry-characters {
  position: relative;
  min-height: 360px;
}
.entry-character {
  position: absolute;
  bottom: 0;
  width: 190px;
  text-align: center;
}
.entry-character-left {
  left: 0;
  transform-origin: 50% 100%;
}
.entry-character-right {
  right: 0;
  width: 170px;
  transform-origin: 50% 100%;
}
.entry-character-left .char-img { animation-name: characterFloat; }
.entry-character-right .char-img { animation-name: characterWave; animation-duration: 3.8s; }
.entry-character .speech {
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
}
.entry h2 { margin: 0 0 18px; font-size: clamp(42px, 7vw, 86px); line-height: 1.14; }
.entry-copy > p:not(.eyebrow):not(.entry-note) { max-width: 690px; margin: 0 0 26px; font-size: 19px; font-weight: 900; }
.entry .button-primary { min-width: min(360px, 100%); min-height: 66px; font-size: 20px; background: var(--green); }
.entry-note { margin: 14px 0 0; min-height: 1.5em; color: #bfffe7; font-weight: 900; }

.entry-form-section { padding: 86px 0; background: #fff; }
.entry-form-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 34px; align-items: start; }
.entry-form-copy h2 { margin: 0 0 16px; font-size: clamp(34px, 5vw, 58px); line-height: 1.2; }
.entry-form-copy p { margin: 0; font-weight: 850; color: var(--muted); }
.entry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 28px;
  background: #f7fcfd;
  border: 1px solid #cbe8ef;
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; gap: 7px; min-width: 0; }
.form-row-full, .form-actions { grid-column: 1 / -1; }
.form-row label { color: var(--deep); font-size: 14px; font-weight: 950; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  background: #fff;
  border: 1px solid #bddde5;
  border-radius: 6px;
}
.form-row textarea { resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-note { margin: 0; color: var(--muted); font-size: 13px; font-weight: 800; }

.interview-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  padding: 20px;
}
.interview-modal.is-open { display: grid; place-items: center; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 22, 35, .72);
  backdrop-filter: blur(5px);
}
.modal-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: clamp(20px, 4vw, 34px);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0,0,0,.32);
}
.modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 42px;
  height: 42px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  background: var(--green);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.modal-profile { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 24px; align-items: center; clear: both; }
.modal-profile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.modal-profile span { display: inline-block; margin-bottom: 8px; color: var(--green); font-weight: 950; }
.modal-profile h2 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 48px); line-height: 1.18; }
.modal-profile p { margin: 0; font-size: 18px; font-weight: 900; }
.modal-qa { display: grid; gap: 14px; margin: 28px 0 0; }
.modal-qa div { padding: 17px 18px; background: #f3fbfd; border-radius: 6px; border: 1px solid #d6edf3; }
.modal-qa dt { color: var(--blue); font-weight: 950; }
.modal-qa dd { margin: 6px 0 0; font-weight: 800; white-space: pre-line; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px clamp(16px, 4vw, 56px); color: #fff; background: #061e31; }
.site-footer p { margin: 0; font-size: 12px; }
.site-footer a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .brand a { text-decoration: none; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .72s ease, transform .72s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.guide-pop { opacity: 0; transform: translateY(26px) scale(.92); transition: opacity .72s ease, transform .72s cubic-bezier(.2,.8,.2,1); }
.guide-pop.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.section-guide.is-visible .char-img { animation: slideFromLeft .62s ease-out both, characterFloat 4.6s ease-in-out .7s infinite; }
.guide-note .char-img { animation: slideFromLeft .62s ease-out both, characterFloat 4.6s ease-in-out .7s infinite; }
.guide-note-dark .char-img { animation-name: slideFromRight, characterFloat; }
.entry-characters.is-visible .entry-character-left { animation: slideFromLeft .7s ease-out both; }
.entry-characters.is-visible .entry-character-right { animation: slideFromRight .7s ease-out .12s both; }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .22s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes characterFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-9px) rotate(1.5deg); }
}
@keyframes characterWave {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  20% { transform: translateY(-5px) rotate(-2deg); }
  45% { transform: translateY(-8px) rotate(2.5deg); }
  70% { transform: translateY(-4px) rotate(-1deg); }
}
@keyframes slideFromLeft {
  from { opacity: 0; transform: translateX(-24px) rotate(-4deg); }
  to { opacity: 1; transform: translateX(0) rotate(0deg); }
}
@keyframes slideFromRight {
  from { opacity: 0; transform: translateX(24px) rotate(4deg); }
  to { opacity: 1; transform: translateX(0) rotate(0deg); }
}
@keyframes slowZoom {
  from { transform: scale(1.12); }
  to { transform: scale(1.04); }
}
@keyframes waterSlide {
  from { transform: translateX(-28px); }
  to { transform: translateX(28px); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(141,240,198,.72); }
  72%, 100% { box-shadow: 0 0 0 22px rgba(141,240,198,0); }
}
@keyframes openingRise {
  0% { opacity: 0; transform: translateY(18px) scale(.96); }
  58% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes openingWave {
  0% { transform: translateY(44px) scale(1.08); }
  100% { transform: translateY(0) scale(1); }
}

@media (max-width: 1100px) {
  .flow-cards { grid-template-columns: repeat(3, 1fr); }
  .appeal-grid { grid-template-columns: repeat(3, 1fr); }
  .record-grid { grid-template-columns: 1fr 1fr; }
  .project-list { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .site-header { height: 64px; padding: 8px 14px; }
  .header-nav { display: none; }
  .brand strong { font-size: 13px; }
  .header-cta { margin-left: auto; padding: 8px 12px; font-size: 12px; }
  .hero { min-height: 760px; padding-top: 94px; }
  .hero-bg { background-position: 60% center; }
  .hero-inner { min-height: 620px; }
  .hero-layer-copy { width: min(100%, 620px); bottom: 170px; }
  .hero h1 { font-size: clamp(46px, 14vw, 76px); }
  .hero-lead { font-size: 14px; box-shadow: 7px 7px 0 rgba(0,167,121,.86); }
  .hero-people { right: 26px; bottom: 40px; width: 230px; }
  .hero-character { right: 6px; bottom: 28px; width: 134px; }
  .speech { font-size: 11px; padding: 9px 10px; }
  .mission-grid, .outline-grid, .entry-inner { grid-template-columns: 1fr; }
  .mission-photos { grid-template-columns: 1fr 1fr; }
  .mission-photos .photo-main { grid-column: 1 / -1; min-height: 280px; }
  .scale-photo { min-height: 540px; }
  .field-split { grid-template-columns: 1fr; }
  .field-panel { min-height: 460px; }
  .record-grid { grid-template-columns: 1fr; }
  .project-map { min-height: 330px; }
  .flow-cards, .appeal-grid, .project-list { grid-template-columns: 1fr; }
  .flow-card { clip-path: none; border-radius: 6px; }
  .interview-grid { grid-template-columns: 1fr; }
  .interview-card:first-child { grid-row: auto; }
  .entry-inner { gap: 18px; }
  .entry-characters { min-height: 300px; width: min(340px, 100%); }
  .entry-character { width: 150px; }
  .entry-character-right { width: 136px; }
  .entry-character .speech { font-size: 11px; padding: 9px 10px; }
  .entry-form-grid { grid-template-columns: 1fr; }
  .entry-form { grid-template-columns: 1fr; padding: 22px; }
  .site-footer { display: grid; }
}

@media (max-width: 520px) {
  .section-inner { width: min(100% - 28px, 1120px); }
  .section-title::before, .section-title::after { width: 24px; margin-inline: 8px; }
  .hero { min-height: 810px; }
  .hero-inner { width: min(100% - 28px, 1200px); min-height: 690px; }
  .hero-bg {
    background:
      linear-gradient(180deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.52) 38%, rgba(0,39,63,.22) 100%),
      linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,58,92,.34)),
      url("../images/phase2-hero-dam.webp") 58% center / cover no-repeat;
  }
  .hero-layer-copy { bottom: 180px; }
  .hero h1 { font-size: clamp(42px, 13vw, 58px); }
  .hero-actions .button { width: 100%; }
  .hero-people { width: 152px; right: 18px; bottom: 26px; box-shadow: -10px 10px 0 rgba(0,167,121,.82); }
  .hero-character { width: 72px; right: 4px; bottom: 22px; }
  .hero-character::before { display: none; }
  .hero-character .speech { display: none; }
  .mission, .work-flow, .track-record, .appeal, .interview, .outline { padding: 62px 0; }
  .mission h2, .outline h2 { font-size: clamp(34px, 10vw, 48px); }
  .guide-note, .section-guide { align-items: flex-end; gap: 10px; }
  .guide-note img, .section-guide img { width: 48px; }
  .guide-note p, .section-guide p { padding: 12px 13px; font-size: 13px; }
  .scale-content h2 { font-size: clamp(34px, 10vw, 48px); }
  .scale-content p { font-size: 15px; }
  .field-panel { min-height: 420px; }
  .project-card { grid-template-columns: 1fr; }
  .project-card img { min-height: 180px; }
  .team-band img { height: 300px; }
  .team-band p { left: 16px; right: 16px; top: 16px; }
  .interview-card { grid-template-rows: minmax(250px, auto) auto; }
  .interview-card img { min-height: 250px; }
  .entry { min-height: 620px; padding: 88px 0 74px; background-position: 48% center; }
  .entry-copy { order: 1; }
  .entry-characters { order: 2; min-height: 245px; width: min(300px, 100%); margin-top: 8px; }
  .entry-character { width: 126px; }
  .entry-character-right { width: 112px; }
  .entry-character .speech { max-width: 142px; font-size: 10px; }
  .entry h2 { font-size: clamp(38px, 11vw, 54px); }
  .opening-content strong { font-size: clamp(30px, 10vw, 42px); }
  .outline-table, .outline-table tbody, .outline-table tr, .outline-table th, .outline-table td { display: block; width: 100%; }
  .outline-table tr { border-bottom: 1px solid #d8edf2; }
  .outline-table tr:last-child { border-bottom: 0; }
  .outline-table th, .outline-table td { border-bottom: 0; padding: 13px 14px; }
  .outline-table th { padding-bottom: 4px; }
  .outline-table td { padding-top: 4px; }
  .modal-profile { grid-template-columns: 1fr; }
  .modal-panel { padding: 18px; }
  .modal-profile p { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}


/* WordPress / SWELL child theme adjustments */
body.yamato-recruit-page .l-header,
body.yamato-recruit-page #header,
body.yamato-recruit-page #fix_header,
body.yamato-recruit-page .p-breadcrumb,
body.yamato-recruit-page .l-mainContent__inner > .c-pageTitle,
body.yamato-recruit-page .p-fixBtnWrap {
  display: none !important;
}

body.yamato-recruit-page .l-content,
body.yamato-recruit-page .l-mainContent,
body.yamato-recruit-page .l-mainContent__inner {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

body.yamato-recruit-page .wpcf7 { width: 100%; }
body.yamato-recruit-page .cf7-entry-form { display: block; }
body.yamato-recruit-page .cf7-entry-form .wpcf7-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
body.yamato-recruit-page .cf7-entry-form p { margin: 0; }
body.yamato-recruit-page .cf7-entry-form label {
  display: grid;
  gap: 8px;
  font-weight: 900;
  color: var(--deep);
}
body.yamato-recruit-page .cf7-entry-form input,
body.yamato-recruit-page .cf7-entry-form select,
body.yamato-recruit-page .cf7-entry-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cfe5eb;
  border-radius: 6px;
  font: inherit;
  background: #fff;
}
body.yamato-recruit-page .cf7-entry-form textarea { min-height: 150px; resize: vertical; }
body.yamato-recruit-page .cf7-entry-form .wpcf7-submit {
  width: auto;
  min-width: 220px;
  border: 0;
  cursor: pointer;
}
body.yamato-recruit-page .cf7-entry-form .wpcf7-response-output,
body.yamato-recruit-page .cf7-entry-form .wpcf7-spinner {
  grid-column: 1 / -1;
}
body.yamato-recruit-page .cf7-entry-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 13px;
}

@media (max-width: 760px) {
  body.yamato-recruit-page .cf7-entry-form .wpcf7-form { grid-template-columns: 1fr; }
  body.yamato-recruit-page .cf7-entry-form .wpcf7-submit { width: 100%; }
}


/* Fallback when SWELL renders body classes before page template detection. */
body:has(.yamato-recruit-lp) .l-header,
body:has(.yamato-recruit-lp) #header,
body:has(.yamato-recruit-lp) #fix_header,
body:has(.yamato-recruit-lp) .p-breadcrumb,
body:has(.yamato-recruit-lp) .l-mainContent__inner > .c-pageTitle,
body:has(.yamato-recruit-lp) .p-fixBtnWrap {
  display: none !important;
}

body:has(.yamato-recruit-lp) .l-content,
body:has(.yamato-recruit-lp) .l-mainContent,
body:has(.yamato-recruit-lp) .l-mainContent__inner {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.yamato-recruit-lp .wpcf7 { width: 100%; }
.yamato-recruit-lp .cf7-entry-form { display: block; }
.yamato-recruit-lp .cf7-entry-form .wpcf7-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.yamato-recruit-lp .cf7-entry-form p { margin: 0; }
.yamato-recruit-lp .cf7-entry-form label {
  display: grid;
  gap: 8px;
  font-weight: 900;
  color: var(--deep);
}
.yamato-recruit-lp .cf7-entry-form input,
.yamato-recruit-lp .cf7-entry-form select,
.yamato-recruit-lp .cf7-entry-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cfe5eb;
  border-radius: 6px;
  font: inherit;
  background: #fff;
}
.yamato-recruit-lp .cf7-entry-form textarea { min-height: 150px; resize: vertical; }
.yamato-recruit-lp .cf7-entry-form .wpcf7-submit {
  width: auto;
  min-width: 220px;
  border: 0;
  cursor: pointer;
}
.yamato-recruit-lp .cf7-entry-form .wpcf7-response-output,
.yamato-recruit-lp .cf7-entry-form .wpcf7-spinner {
  grid-column: 1 / -1;
}
.yamato-recruit-lp .cf7-entry-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 13px;
}

@media (max-width: 760px) {
  .yamato-recruit-lp .cf7-entry-form .wpcf7-form { grid-template-columns: 1fr; }
  .yamato-recruit-lp .cf7-entry-form .wpcf7-submit { width: 100%; }
}

/* Phase4: closer to the GPT-generated brand page direction. */
.yamato-recruit-lp {
  --phase4-navy: #031f32;
  --phase4-deep: #052f4c;
  --phase4-blue: #006eaf;
  --phase4-green: #00ad7d;
  --phase4-mist: #e8f8fb;
}

.site-header {
  height: 72px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
}

.brand-logo {
  display: block;
  width: clamp(150px, 15vw, 214px);
  height: auto;
}

.site-header .brand {
  min-width: 0;
}

.opening {
  background: #021d31;
  overflow: hidden;
}

.opening::before,
.opening::after {
  content: "";
  position: absolute;
  inset: auto -8% -22%;
  height: 42%;
  z-index: 2;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 260' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23e8f8fb' fill-opacity='.84' d='M0 122l80 20c80 20 240 60 400 38s320-106 480-116 320 54 400 86l80 32v78H0z'/%3E%3Cpath fill='%23ffffff' fill-opacity='.9' d='M0 166l80 10c80 10 240 30 400 12s320-72 480-74 320 46 400 68l80 22v56H0z'/%3E%3C/svg%3E") center bottom / cover no-repeat;
  animation: openingCurrent 2s ease both;
}

.opening::after {
  inset: 0;
  height: auto;
  background:
    radial-gradient(circle at 64% 46%, rgba(255,255,255,.45), transparent 16%),
    radial-gradient(circle at 74% 42%, rgba(255,255,255,.36), transparent 12%),
    linear-gradient(90deg, rgba(3,31,50,.5), rgba(0,110,175,.18));
  mix-blend-mode: screen;
}

.opening-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.opening-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .56;
  transform: scale(1.08);
  animation: openingPhoto 2.1s ease both;
}

.opening-media img + img {
  inset: auto 8% 10% auto;
  width: min(420px, 38vw);
  height: auto;
  aspect-ratio: 7 / 8;
  clip-path: polygon(0 7%, 94% 0, 100% 92%, 9% 100%);
  opacity: .9;
  box-shadow: 0 28px 72px rgba(0,0,0,.34);
  animation: openingCrew 1.9s cubic-bezier(.2,.8,.2,1) both;
}

.opening-wave {
  display: none;
}

.opening-content {
  z-index: 3;
  width: min(920px, calc(100% - 32px));
  align-items: flex-start;
  text-align: left;
  transform: translateY(18px);
}

.opening-logo {
  width: min(260px, 58vw);
  height: auto;
  margin-bottom: 28px;
  padding: 10px 12px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 46px rgba(0,0,0,.18);
}

.opening-character {
  right: clamp(18px, 8vw, 150px);
  bottom: 14%;
  z-index: 4;
  width: min(145px, 15vw);
  filter: drop-shadow(0 22px 30px rgba(0,0,0,.32));
}

.opening-content p {
  color: #8df0c6;
}

.opening-content strong {
  max-width: 780px;
  color: #fff;
  font-size: clamp(38px, 7.6vw, 88px);
  line-height: .98;
  letter-spacing: .02em;
  text-shadow: 0 6px 0 rgba(0,65,103,.45), 0 24px 50px rgba(0,0,0,.35);
}

.opening-skip {
  z-index: 5;
}

@keyframes openingPhoto {
  from { transform: scale(1.12); filter: saturate(.86) contrast(.96); }
  to { transform: scale(1.03); filter: saturate(1.08) contrast(1.08); }
}

@keyframes openingCrew {
  from { opacity: 0; transform: translateX(60px) rotate(4deg) scale(.94); }
  to { opacity: .9; transform: translateX(0) rotate(1deg) scale(1); }
}

@keyframes openingCurrent {
  from { transform: translateY(40px); opacity: .2; }
  to { transform: translateY(0); opacity: 1; }
}

.hero {
  min-height: 930px;
  padding-top: 86px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 22%, rgba(255,255,255,.78) 0 1.5px, transparent 2px) 0 0 / 18px 18px,
    radial-gradient(circle at 80% 28%, rgba(255,255,255,.52) 0 2px, transparent 3px) 0 0 / 28px 28px;
  mask-image: radial-gradient(circle at 82% 28%, #000 0 20%, transparent 36%);
}

.hero-bg {
  background:
    linear-gradient(90deg, rgba(2,25,42,.82) 0%, rgba(2,33,54,.58) 32%, rgba(2,33,54,.22) 58%, rgba(2,33,54,.72) 100%),
    linear-gradient(180deg, rgba(2,25,42,.08) 0%, rgba(2,25,42,.16) 56%, rgba(2,25,42,.82) 100%),
    url("../images/phase2-hero-dam.webp") center / cover no-repeat;
  filter: saturate(1.15) contrast(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: auto -8% -8%;
  height: 35%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 260' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' fill-opacity='.86' d='M0 96l80 24c80 24 240 72 400 50s320-114 480-128 320 50 400 82l80 32v104H0z'/%3E%3Cpath fill='%23dff6fa' fill-opacity='.78' d='M0 150l80 14c80 14 240 42 400 24s320-82 480-86 320 46 400 70l80 24v64H0z'/%3E%3C/svg%3E") center bottom / cover no-repeat;
}

.hero-water {
  opacity: .65;
  mix-blend-mode: screen;
}

.hero-inner {
  min-height: 790px;
}

.hero-layer-copy {
  z-index: 3;
  width: min(760px, 57vw);
  bottom: 82px;
}

.hero .eyebrow {
  color: #b9ffe5;
  font-size: 18px;
  text-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.hero h1 {
  color: #fff;
  font-size: clamp(72px, 9.1vw, 132px);
  line-height: .96;
  font-weight: 1000;
  transform: rotate(-2.2deg);
  text-shadow:
    0 4px 0 rgba(0,65,103,.7),
    0 16px 32px rgba(0,0,0,.34);
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.2));
}

.hero h1 span {
  color: #fff;
  -webkit-text-stroke: 2px rgba(255,255,255,.12);
}

.hero h1::after {
  content: "";
  display: block;
  width: min(440px, 80%);
  height: 12px;
  margin-top: 10px;
  background: rgba(0,173,125,.88);
  transform: skewX(-18deg);
}

.hero-lead {
  margin-top: 24px;
  background: rgba(0,78,125,.92);
  border: 1px solid rgba(255,255,255,.16);
}

.hero-actions .button {
  min-width: 190px;
  min-height: 58px;
  font-size: 16px;
  box-shadow: 0 20px 38px rgba(0,0,0,.25);
}

.hero-people {
  z-index: 2;
  right: clamp(64px, 8vw, 132px);
  bottom: 95px;
  width: min(455px, 35vw);
  opacity: .96;
}

.hero-people::before {
  inset: -54px -70px -28px -32px;
  background:
    radial-gradient(circle at 84% 28%, rgba(255,255,255,.92), transparent 0 2px, transparent 3px),
    linear-gradient(135deg, rgba(0,173,125,.82), rgba(0,110,175,.62)),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 600 420' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' fill-opacity='.32' d='M33 252c85-104 186-152 302-142 98 8 163-18 220-80-18 88-66 151-144 188-104 50-222 37-378 34z'/%3E%3C/svg%3E") center / cover no-repeat;
  clip-path: polygon(10% 2%, 100% 14%, 88% 100%, 0 86%);
}

.hero-people img {
  opacity: .96;
  filter: saturate(1.05) contrast(1.04);
}

.hero-character {
  z-index: 4;
  right: 22px;
  bottom: 118px;
  width: min(180px, 14vw);
}

.hero-character::before {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(2px);
}

.hero-character .speech {
  transform: rotate(-2deg);
  border: 2px solid rgba(0,110,175,.18);
}

.mission {
  transform: skewY(-2.2deg);
  margin-top: -50px;
}

.mission > * {
  transform: skewY(2.2deg);
}

.mission h2 {
  font-size: clamp(50px, 7vw, 92px);
  line-height: 1.04;
}

.mission-photos {
  grid-template-columns: 1.1fr 1fr 1fr;
  align-items: end;
}

.mission-photos .photo-main,
.mission-photos figure img {
  min-height: 390px;
}

.mission-photos figure {
  transform: translateY(42px) rotate(1.5deg);
}

.mission-photos figure:nth-child(3) {
  transform: translateY(20px) rotate(-1.5deg);
}

.movie-section {
  position: relative;
  padding: 108px 0;
  background:
    radial-gradient(circle at 78% 16%, rgba(0,173,125,.16), transparent 24%),
    linear-gradient(135deg, #f5fcfd, #fff 48%, #dff6fa);
  overflow: hidden;
}

.movie-section::before {
  content: "MOVIE";
  position: absolute;
  right: -20px;
  bottom: -40px;
  color: rgba(0,110,175,.06);
  font-size: clamp(90px, 18vw, 260px);
  font-weight: 1000;
  line-height: 1;
}

.movie-grid {
  display: grid;
  grid-template-columns: .85fr 1.25fr;
  gap: 48px;
  align-items: center;
}

.movie-copy h2 {
  margin: 0 0 18px;
  color: var(--phase4-navy);
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 1.08;
}

.movie-frame {
  position: relative;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(0,173,125,.9), rgba(0,110,175,.82)),
    url("../images/phase2-dam-full.webp") center / cover no-repeat;
  box-shadow: 0 32px 80px rgba(0,45,70,.24);
  transform: rotate(1deg);
}

.movie-frame::before {
  content: "";
  position: absolute;
  inset: -22px 24px 26px -22px;
  z-index: -1;
  background: rgba(3,31,50,.94);
  clip-path: polygon(0 7%, 100% 0, 92% 100%, 5% 88%);
}

.movie-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  background: #000;
}

.movie-label {
  position: absolute;
  left: 26px;
  top: -16px;
  z-index: 2;
  padding: 9px 13px;
  color: #fff;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .12em;
  background: var(--phase4-navy);
  transform: rotate(-4deg);
}

.dam-process {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 36px 0 34px;
  padding: 16px;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(0,110,175,.14);
  box-shadow: 0 22px 58px rgba(0,58,92,.12);
}

.dam-process div {
  position: relative;
  min-height: 108px;
  padding: 18px 14px;
  color: #234;
  background: #fff;
  border: 1px solid rgba(0,110,175,.14);
}

.dam-process div::after {
  content: ">";
  position: absolute;
  right: -12px;
  top: 50%;
  z-index: 2;
  color: var(--phase4-blue);
  font-weight: 1000;
  transform: translateY(-50%);
}

.dam-process div:last-child::after {
  display: none;
}

.dam-process span {
  display: block;
  color: var(--phase4-blue);
  font-size: 28px;
  font-weight: 1000;
}

.dam-process strong {
  display: block;
  margin-top: 8px;
  color: var(--phase4-navy);
  font-size: 15px;
  line-height: 1.35;
}

.dam-process small {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 7px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  background: var(--phase4-green);
}

.dam-process .is-yamato {
  color: #fff;
  background: linear-gradient(135deg, var(--phase4-green), var(--phase4-blue));
  transform: translateY(-8px);
}

.dam-process .is-yamato span,
.dam-process .is-yamato strong {
  color: #fff;
}

.dam-process .is-yamato small {
  color: var(--phase4-navy);
  background: #fff;
}

.track-record {
  padding: 118px 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(0,173,125,.15), transparent 30%),
    linear-gradient(135deg, #03243a, #06466e 52%, #021827);
}

.record-grid {
  grid-template-columns: .72fr 1.35fr .82fr;
  gap: 26px;
}

.record-copy h2 {
  font-size: clamp(48px, 6vw, 86px);
  line-height: 1.02;
}

.record-name-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.record-name-list li {
  padding: 6px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
}

.project-map {
  min-height: 700px;
  background:
    radial-gradient(circle at 50% 50%, rgba(0,173,125,.18), transparent 34%),
    rgba(0,0,0,.14);
}

.japan-map {
  width: min(96%, 560px);
}

.map-dot {
  box-shadow: 0 0 0 0 rgba(141,240,198,.7), 0 0 22px rgba(141,240,198,.72);
  animation: mapPulse 2.4s ease-in-out infinite;
}

.dot-9 { left: 68%; top: 23%; }
.dot-10 { left: 37%; top: 64%; }
.dot-11 { left: 20%; top: 74%; }

@keyframes mapPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(141,240,198,.58), 0 0 18px rgba(141,240,198,.65); }
  50% { box-shadow: 0 0 0 10px rgba(141,240,198,0), 0 0 32px rgba(141,240,198,.9); }
}

.project-list {
  gap: 12px;
}

.project-card {
  background: rgba(255,255,255,.94);
}

.instagram-card {
  display: grid;
  gap: 8px;
  min-height: 190px;
  padding: 22px;
  color: #fff;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(0,173,125,.9), rgba(0,110,175,.88)),
    url("../images/team.webp") center / cover no-repeat;
  box-shadow: 0 24px 58px rgba(0,0,0,.24);
}

.instagram-card strong {
  font-size: 22px;
  font-weight: 1000;
}

.instagram-card span {
  width: fit-content;
  padding: 6px 10px;
  color: var(--phase4-navy);
  font-weight: 1000;
  background: #fff;
}

.feature-numbers {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  margin: 34px 0 42px;
  background: rgba(0,110,175,.14);
  border: 1px solid rgba(0,110,175,.14);
}

.feature-numbers div {
  min-height: 112px;
  padding: 18px 12px;
  text-align: center;
  background: rgba(255,255,255,.94);
}

.feature-numbers strong {
  display: block;
  color: var(--phase4-blue);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  font-weight: 1000;
}

.feature-numbers span {
  display: block;
  margin-top: 10px;
  color: var(--phase4-navy);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
}

.interview {
  background:
    linear-gradient(180deg, #f3fbfd, #fff 46%, #e6f7fb);
}

.interview .section-title {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.06;
}

.interview-card {
  position: relative;
  overflow: visible;
  background: #fff;
  transform: rotate(-.6deg);
}

.interview-card:nth-child(2) {
  transform: rotate(.7deg);
}

.interview-card:nth-child(3) {
  transform: rotate(-.2deg);
}

.interview-card h3 {
  position: relative;
  padding: 0 0 0 0;
  font-size: 25px;
}

.interview-card h3::before {
  content: "“";
  position: absolute;
  left: -14px;
  top: -30px;
  z-index: -1;
  color: rgba(0,173,125,.12);
  font-size: 92px;
  line-height: 1;
}

.entry {
  margin-bottom: 0;
  background:
    linear-gradient(90deg, rgba(2,25,42,.92), rgba(3,55,84,.76)),
    url("../images/phase2-entry-dam.webp") center / cover no-repeat;
}

.entry h2 {
  font-size: clamp(48px, 7vw, 92px);
  line-height: 1.05;
}

.entry-form-section {
  margin-top: -1px;
  padding: 82px 0 102px;
  background:
    radial-gradient(circle at 82% 12%, rgba(0,173,125,.14), transparent 24%),
    linear-gradient(180deg, #06273d, #e8f8fb 0, #f7fcfd 100%);
}

.entry-form-grid {
  padding: 26px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(0,110,175,.12);
  box-shadow: 0 30px 76px rgba(0,45,70,.18);
}

.entry-form-copy h2 {
  color: var(--phase4-navy);
  font-size: clamp(36px, 5vw, 60px);
}

.company-profile {
  position: relative;
  padding: 96px 0;
  background: #fff;
  overflow: hidden;
}

.company-profile::before {
  content: "YAMATO KOHKI";
  position: absolute;
  left: -18px;
  bottom: -28px;
  color: rgba(0,110,175,.05);
  font-size: clamp(70px, 15vw, 210px);
  font-weight: 1000;
  white-space: nowrap;
}

.company-grid {
  display: grid;
  grid-template-columns: .78fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.company-copy h2 {
  margin: 0 0 16px;
  color: var(--phase4-navy);
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.08;
}

.kingyo-logo {
  display: block;
  width: min(260px, 74vw);
  margin-top: 28px;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 28px 70px rgba(0,45,70,.12);
}

.company-table th,
.company-table td {
  padding: 15px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(0,110,175,.12);
}

.company-table th {
  width: 150px;
  color: var(--phase4-blue);
  font-weight: 1000;
  background: #f0f9fb;
}

.company-table td {
  color: var(--phase4-navy);
  font-weight: 800;
}

.site-footer {
  position: relative;
  color: var(--phase4-navy);
  background: #fff;
  border-top: 1px solid rgba(0,110,175,.12);
}

.site-footer .brand-logo {
  width: min(210px, 48vw);
}

.footer-kingyo {
  width: 92px;
  height: auto;
}

.site-footer a {
  color: var(--phase4-blue);
}

@media (max-width: 980px) {
  .hero-layer-copy { width: min(100%, 700px); }
  .hero-people {
    right: 32px;
    width: 330px;
  }
  .hero-character {
    right: 10px;
    width: 130px;
  }
  .movie-grid,
  .company-grid {
    grid-template-columns: 1fr;
  }
  .record-grid {
    grid-template-columns: 1fr;
  }
  .project-map {
    min-height: 620px;
  }
  .dam-process,
  .feature-numbers {
    grid-template-columns: repeat(3, 1fr);
  }
  .dam-process div:nth-child(3)::after {
    display: none;
  }
}

@media (max-width: 620px) {
  .site-header {
    height: 64px;
  }
  .brand-logo {
    width: 166px;
  }
  .opening-media img + img {
    right: 12px;
    bottom: 18%;
    width: 140px;
  }
  .opening-content {
    justify-content: center;
  }
  .opening-logo {
    width: 190px;
    margin-bottom: 22px;
  }
  .opening-character {
    width: 92px;
    right: 18px;
    bottom: 12%;
  }
  .opening-content strong {
    font-size: clamp(36px, 12vw, 56px);
  }
  .hero {
    min-height: 880px;
  }
  .hero-bg {
    background:
      linear-gradient(180deg, rgba(2,25,42,.54), rgba(2,25,42,.24) 48%, rgba(2,25,42,.76) 100%),
      url("../images/phase2-hero-dam.webp") 58% center / cover no-repeat;
  }
  .hero-layer-copy {
    bottom: 232px;
  }
  .hero .eyebrow {
    font-size: 14px;
  }
  .hero h1 {
    font-size: clamp(54px, 16vw, 72px);
    line-height: 1;
    transform: rotate(-1.4deg);
  }
  .hero-lead {
    padding: 14px 16px;
  }
  .hero-actions {
    gap: 10px;
  }
  .hero-actions .button {
    min-height: 52px;
    width: 100%;
  }
  .hero-people {
    right: 48px;
    bottom: 48px;
    width: 188px;
  }
  .hero-character {
    right: 12px;
    bottom: 50px;
    width: 82px;
  }
  .mission {
    transform: none;
    margin-top: -20px;
  }
  .mission > * {
    transform: none;
  }
  .mission-photos {
    grid-template-columns: 1fr;
    transform: none;
  }
  .mission-photos .photo-main,
  .mission-photos figure img {
    min-height: 240px;
  }
  .mission-photos figure,
  .mission-photos figure:nth-child(3) {
    transform: none;
  }
  .field-panel,
  .field-panel:nth-child(2) {
    min-height: 500px;
  }
  .field-copy {
    padding: 20px;
  }
  .field-copy h2 {
    font-size: clamp(34px, 10.8vw, 44px);
    line-height: 1.16;
  }
  .movie-section {
    padding: 78px 0;
  }
  .movie-frame {
    padding: 10px;
    transform: none;
  }
  .dam-process,
  .feature-numbers {
    grid-template-columns: 1fr 1fr;
  }
  .dam-process div {
    min-height: 104px;
  }
  .dam-process div::after {
    display: none;
  }
  .project-map {
    min-height: 520px;
  }
  .record-name-list li {
    font-size: 11px;
  }
  .interview-card,
  .interview-card:nth-child(2),
  .interview-card:nth-child(3) {
    transform: none;
  }
  .entry-form-grid {
    padding: 18px;
  }
  .company-table,
  .company-table tbody,
  .company-table tr,
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }
  .company-table th {
    padding-bottom: 6px;
  }
  .company-table td {
    padding-top: 6px;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .company-copy h2 {
    max-width: 100%;
    font-size: clamp(34px, 10vw, 42px);
    overflow-wrap: anywhere;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-kingyo {
    width: 74px;
  }
}

/* Final tone pass: unify section rhythm without changing the LP structure. */
.yamato-recruit-lp {
  background:
    linear-gradient(180deg, #eef9fb 0%, #fff 18%, #e8f8fb 36%, #052b44 54%, #f4fbfd 72%, #fff 100%);
}

.hero-people {
  isolation: isolate;
  mix-blend-mode: normal;
}

.hero-people::before {
  opacity: .88;
  filter: blur(.2px);
}

.hero-people::after {
  content: "";
  position: absolute;
  inset: -36px -52px -34px -44px;
  z-index: -2;
  background:
    radial-gradient(circle at 74% 20%, rgba(255,255,255,.84), transparent 19%),
    radial-gradient(circle at 36% 70%, rgba(223,246,250,.74), transparent 24%),
    linear-gradient(135deg, rgba(0,173,125,.24), rgba(0,110,175,.2));
  clip-path: polygon(8% 0, 100% 10%, 92% 100%, 0 88%);
  backdrop-filter: blur(2px);
}

.hero-people img {
  opacity: .92;
  filter: saturate(1.02) contrast(1.02);
}

.hero-photo-label {
  box-shadow: 0 14px 26px rgba(0,0,0,.24);
}

.hero-character {
  filter: drop-shadow(0 20px 28px rgba(0,0,0,.2));
}

.hero-character::before {
  opacity: .76;
}

.movie-section {
  margin-top: -28px;
  padding-top: 128px;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 170' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' d='M0 0h1440v58c-150 46-325 72-525 55C656 91 478 12 242 34 140 44 58 66 0 88z'/%3E%3C/svg%3E") center top / 100% 170px no-repeat,
    radial-gradient(circle at 78% 16%, rgba(0,173,125,.16), transparent 24%),
    linear-gradient(180deg, #e8f8fb 0%, #f7fcfd 42%, #e4f6fa 100%);
}

.movie-copy h2,
.section-title,
.record-copy h2,
.entry h2,
.company-copy h2 {
  letter-spacing: 0;
}

.movie-copy p,
.mission-copy p,
.scale-content p {
  color: #28485b;
}

.movie-frame {
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 30px 76px rgba(0,55,86,.22);
}

.work-flow {
  position: relative;
  padding-top: 112px;
  background:
    radial-gradient(circle at 16% 12%, rgba(0,173,125,.12), transparent 22%),
    linear-gradient(180deg, #f7fcfd 0%, #e6f7fb 100%);
}

.flow-cards {
  gap: 18px;
}

.flow-cards::before {
  height: 7px;
  background: linear-gradient(90deg, rgba(0,173,125,.18), var(--phase4-green), var(--phase4-blue), rgba(0,173,125,.18));
  box-shadow: 0 0 28px rgba(0,173,125,.34);
}

.flow-card {
  min-height: 430px;
  box-shadow: 0 26px 66px rgba(0,42,68,.18);
}

.flow-card img {
  aspect-ratio: 5 / 4;
}

.flow-card h3 {
  font-size: 21px;
}

.flow-card p {
  font-size: 14px;
}

.track-record {
  padding-top: 132px;
  padding-bottom: 132px;
}

.record-grid {
  grid-template-columns: .72fr minmax(520px, 1.58fr) .76fr;
  align-items: center;
}

.record-copy {
  position: relative;
  z-index: 2;
}

.record-copy h2::after {
  content: "奈良から日本全国へ。";
  display: block;
  margin-top: 14px;
  color: #8df0c6;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.3;
}

.project-map {
  min-height: 760px;
  transform: translateX(-8px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 34px 82px rgba(0,0,0,.18);
}

.project-map::after {
  content: "施工実績ポイント";
  position: absolute;
  right: 24px;
  bottom: 22px;
  color: rgba(255,255,255,.7);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.japan-map {
  width: min(100%, 620px);
}

.project-list {
  position: relative;
  z-index: 3;
  margin-left: -38px;
}

.project-card {
  grid-template-columns: 112px 1fr;
  min-height: 132px;
  box-shadow: 0 22px 58px rgba(0,0,0,.16);
}

.project-card img {
  height: 100%;
}

.instagram-card {
  min-height: 160px;
}

.appeal {
  background:
    linear-gradient(180deg, #f3fbfd 0%, #fff 48%, #e8f8fb 100%);
}

.feature-numbers {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  box-shadow: 0 24px 64px rgba(0,60,92,.12);
}

.feature-numbers div {
  min-height: 148px;
}

.feature-numbers small {
  display: block;
  margin-top: 8px;
  color: #5c7280;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.55;
}

.interview {
  background:
    radial-gradient(circle at 18% 18%, rgba(0,173,125,.11), transparent 22%),
    linear-gradient(180deg, #eef9fb, #fff 54%, #e8f8fb);
}

.interview .section-guide p::before {
  content: none;
  display: none;
}

.interview-card {
  border: 0;
  box-shadow: 0 26px 66px rgba(0,54,86,.15);
}

.interview-card::after {
  content: none;
  display: none;
  position: absolute;
  right: 18px;
  top: 292px;
  z-index: 2;
  padding: 7px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 1000;
  background: var(--phase4-navy);
  transform: rotate(4deg);
}

.interview-card p {
  color: #345366;
}

.outline {
  background:
    linear-gradient(90deg, rgba(232,248,251,.72) 0 38%, transparent 38%),
    #fff;
}

.outline-table {
  overflow: hidden;
}

.outline-table th {
  background: #dff4f8;
}

.outline-table td {
  background: rgba(255,255,255,.94);
}

.entry-form-section {
  background:
    radial-gradient(circle at 88% 8%, rgba(0,173,125,.13), transparent 25%),
    linear-gradient(180deg, #e8f8fb 0%, #f7fcfd 100%);
}

.entry-form-grid {
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(232,248,251,.88)),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 720 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%2300ad7d' fill-opacity='.08' d='M0 72c90 42 175 48 255 18 111-42 214-84 465-8v98H0z'/%3E%3C/svg%3E") center bottom / cover no-repeat;
}

.entry-form {
  background: rgba(255,255,255,.92);
}

.company-profile {
  padding-bottom: 42px;
}

.closing-cta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 28px;
  align-items: center;
  width: min(1180px, calc(100% - 38px));
  margin: 72px auto 0;
  padding: 30px clamp(22px, 4vw, 46px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(3,31,50,.94), rgba(0,84,132,.84)),
    url("../images/phase2-entry-dam.webp") center / cover no-repeat;
  box-shadow: 0 28px 72px rgba(0,45,70,.2);
}

.closing-cta p {
  grid-column: 1 / -1;
  margin: 0;
  color: #8df0c6;
  font-weight: 1000;
}

.closing-cta h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 4.8vw, 62px);
  line-height: 1.08;
}

.closing-cta .button {
  min-width: 220px;
}

@media (max-width: 980px) {
  .record-grid {
    grid-template-columns: 1fr;
  }
  .project-list {
    margin-left: 0;
  }
  .feature-numbers {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-numbers div {
    min-height: 132px;
  }
  .closing-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero-people::after {
    inset: -20px -24px -18px -20px;
  }
  .movie-section {
    margin-top: -12px;
    padding-top: 92px;
  }
  .work-flow {
    padding-top: 78px;
  }
  .flow-card {
    min-height: 0;
  }
  .track-record {
    padding-top: 84px;
    padding-bottom: 84px;
  }
  .project-map {
    min-height: 540px;
    transform: none;
  }
  .project-card {
    grid-template-columns: 1fr;
  }
  .interview-card::after {
    top: 238px;
    right: 14px;
  }
  .outline {
    background:
      linear-gradient(90deg, rgba(232,248,251,.72) 0 42%, transparent 42%),
      #fff;
  }
  .feature-numbers {
    grid-template-columns: 1fr;
  }
  .feature-numbers div {
    min-height: 116px;
    text-align: left;
  }
  .feature-numbers strong,
  .feature-numbers span,
  .feature-numbers small {
    display: inline;
  }
  .feature-numbers strong {
    margin-right: 10px;
  }
  .feature-numbers span {
    margin-right: 8px;
  }
  .closing-cta {
    margin-top: 48px;
    padding: 24px 20px;
  }
  .closing-cta .button {
    width: 100%;
  }
}

/* Phase3 redesign: scale, rhythm, and photo-led recruiting experience. */
.yamato-recruit-lp {
  --phase-shadow: 0 30px 70px rgba(1, 34, 55, .2);
  --phase-border: 1px solid rgba(0, 105, 168, .14);
  background:
    linear-gradient(180deg, #f6fbfd 0%, #fff 20%, #eef9fb 42%, #fff 68%, #f6fbfd 100%);
}

.yamato-recruit-lp .section-inner { width: min(1180px, calc(100% - 38px)); }

.hero {
  min-height: 900px;
  padding-top: 94px;
  background: #021b2d;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 72px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.68), transparent);
  z-index: 2;
}

.hero-bg {
  background:
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.84) 25%, rgba(255,255,255,.16) 48%, rgba(2,27,45,.18) 100%),
    linear-gradient(180deg, rgba(2,27,45,0) 42%, rgba(2,27,45,.66) 100%),
    url("../images/phase2-hero-dam.webp") center / cover no-repeat;
  filter: saturate(1.08) contrast(1.04);
}

.hero-inner { min-height: 720px; }
.hero-layer-copy {
  width: min(690px, 58vw);
  bottom: 44px;
}

.hero h1 {
  font-size: clamp(60px, 8.2vw, 108px);
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-lead {
  width: min(640px, 100%);
  margin-bottom: 18px;
  padding: 16px 20px;
  background: linear-gradient(90deg, #0069a8, #004b78);
  box-shadow: 14px 14px 0 rgba(0,167,121,.9);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #07304d;
  font-size: 12px;
  font-weight: 950;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(0,105,168,.14);
  box-shadow: 0 12px 28px rgba(0,56,88,.1);
}

.hero-proof strong { color: var(--green); letter-spacing: .08em; }

.hero-people {
  right: clamp(22px, 3.2vw, 46px);
  bottom: 68px;
  width: min(440px, 34vw);
  overflow: visible;
  box-shadow: none;
  transform: rotate(1.2deg);
}

.hero-people::before {
  content: "";
  position: absolute;
  inset: -28px -28px 24px 32px;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(0,167,121,.88), rgba(0,105,168,.82)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, transparent 1px 12px);
  clip-path: polygon(8% 0, 100% 5%, 91% 100%, 0 88%);
  box-shadow: var(--phase-shadow);
}

.hero-people::after {
  inset: -20px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.16), rgba(0,31,52,.18)),
    radial-gradient(circle at 88% 18%, rgba(141,240,198,.34), transparent 22%);
  clip-path: polygon(2% 4%, 96% 0, 100% 92%, 7% 100%);
}

.hero-people img {
  aspect-ratio: 7 / 8;
  clip-path: polygon(0 7%, 94% 0, 100% 92%, 9% 100%);
  box-shadow: 0 28px 62px rgba(0,35,55,.25);
}

.hero-photo-label {
  position: absolute;
  left: -22px;
  top: 28px;
  z-index: 2;
  padding: 9px 13px;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  background: var(--navy);
  transform: rotate(-6deg);
}

.hero-character {
  right: 4px;
  bottom: 90px;
  width: min(188px, 15vw);
}

.hero-character::before {
  inset: 52px -10px -8px;
  background: rgba(255,255,255,.64);
  box-shadow: 0 26px 60px rgba(0,45,70,.28);
}

.mission {
  position: relative;
  padding: 112px 0 102px;
  background:
    radial-gradient(circle at 16% 18%, rgba(0,167,121,.13), transparent 24%),
    linear-gradient(180deg, #fff, #eef9fb);
  overflow: hidden;
}

.mission::before {
  content: "";
  position: absolute;
  inset: auto -8% -80px;
  height: 220px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23dff6fa' fill-opacity='.7' d='M0 74l80 18c80 18 240 54 400 36s320-90 480-96 320 54 400 84l80 30v74H0z'/%3E%3Cpath fill='%23ffffff' fill-opacity='.86' d='M0 128l80 8c80 8 240 24 400 10s320-56 480-58 320 36 400 54l80 18v60H0z'/%3E%3C/svg%3E") center bottom / cover no-repeat;
}

.mission-grid { grid-template-columns: .78fr 1.45fr; gap: 56px; }
.mission-copy { position: relative; z-index: 1; }
.mission h2 { font-size: clamp(46px, 6.6vw, 78px); }
.mission-photos {
  position: relative;
  z-index: 1;
  grid-template-columns: 1.55fr .85fr;
  gap: 14px;
  transform: rotate(-1deg);
}

.mission-photos img,
.mission-photos figure {
  min-width: 0;
  margin: 0;
}

.mission-photos img {
  border-radius: 0;
  box-shadow: var(--phase-shadow);
}

.mission-photos .photo-main {
  min-height: 560px;
  clip-path: polygon(0 4%, 94% 0, 100% 96%, 8% 100%);
}

.mission-photos figure {
  position: relative;
  overflow: hidden;
  box-shadow: var(--phase-shadow);
}

.mission-photos figure img { min-height: 270px; }
.mission-photos figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  background: rgba(0,57,92,.88);
}

.work-flow {
  padding: 100px 0 108px;
  background: linear-gradient(180deg, #fff 0%, #eef9fb 54%, #dff6fa 100%);
  overflow: hidden;
}

.flow-cards {
  position: relative;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 0;
}

.flow-cards::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 54px;
  height: 6px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  box-shadow: 0 12px 28px rgba(0,105,168,.16);
}

.flow-card {
  min-height: 430px;
  padding-bottom: 24px;
  border: 8px solid #fff;
  clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
}

.flow-card:nth-child(even) { margin-top: 54px; }
.flow-card img { aspect-ratio: 5 / 4; }
.flow-card strong { margin-top: -62px; font-size: 58px; }
.flow-card h3 { font-size: 19px; }

.field-split {
  min-height: 760px;
  grid-template-columns: 1.1fr .9fr;
}

.field-panel { min-height: 760px; }
.field-panel:nth-child(2) { margin-top: 84px; min-height: 676px; }
.field-copy h2 { max-width: 760px; font-size: clamp(36px, 5vw, 72px); }
.field-copy span { display: inline-block; padding: 6px 10px; background: rgba(0,57,92,.72); }

.track-record {
  padding: 110px 0;
  background:
    radial-gradient(circle at 48% 45%, rgba(0,167,121,.18), transparent 28%),
    linear-gradient(120deg, #00253d, #061e31 62%, #00395c);
}

.record-grid {
  grid-template-columns: minmax(260px, .72fr) minmax(390px, 1.2fr) minmax(300px, .92fr);
  gap: 28px;
}

.record-copy h2 { font-size: clamp(40px, 5.4vw, 72px); }
.record-copy > p { font-size: 16px; font-weight: 850; }

.project-map {
  min-height: 620px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 52% 48%, rgba(141,240,198,.18), transparent 24%),
    linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 0;
  box-shadow: 0 32px 72px rgba(0,0,0,.32);
}

.project-map::before {
  background:
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: .55;
}

.map-heading {
  position: absolute;
  left: 24px;
  top: 20px;
  z-index: 2;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .16em;
}

.japan-map {
  position: relative;
  z-index: 1;
  width: min(88%, 470px);
  height: auto;
  filter: drop-shadow(0 22px 28px rgba(0,0,0,.24));
}

.map-land {
  fill: rgba(223,246,250,.92);
  stroke: rgba(255,255,255,.9);
  stroke-width: 5;
}

.kansai { fill: rgba(141,240,198,.96); }

.map-dot {
  z-index: 3;
  border: 1px solid rgba(255,255,255,.66);
}

.dot-1 { left: 55%; top: 44%; }
.dot-2 { left: 61%; top: 55%; }
.dot-3 { left: 42%; top: 66%; }
.dot-4 { left: 38%; top: 70%; }
.dot-5 { left: 33%; top: 77%; }
.dot-6 { left: 43%; top: 72%; }
.dot-7 { left: 34%; top: 75%; }
.dot-8 { left: 36%; top: 84%; }

.project-card {
  grid-template-columns: 44% 1fr;
  min-height: 152px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 0;
}

.project-card div { padding: 18px; }
.project-card h3,
.project-card p { margin-left: 0; margin-right: 0; }
.project-card h3 { margin-top: 6px; }
.project-card p { margin-bottom: 0; }
.project-card span {
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
}

.appeal {
  padding: 104px 0 0;
  background: #fff;
}

.appeal-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid #cbe8ef;
  border-left: 1px solid #cbe8ef;
}

.appeal-item {
  min-height: 220px;
  padding: 28px 20px;
  border-right: 1px solid #cbe8ef;
  border-bottom: 1px solid #cbe8ef;
  border-radius: 0;
  box-shadow: none;
}

.appeal-item span {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  font-size: 20px;
  background: var(--blue);
  border-radius: 50%;
}

.appeal-item h3 { font-size: 20px; }
.team-band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 54px;
  border-radius: 0;
}
.team-band img { height: min(56vw, 560px); min-height: 360px; }
.team-band p { left: max(24px, calc((100vw - 1180px) / 2)); top: 42px; }

.interview {
  padding: 106px 0;
  background: linear-gradient(180deg, #eef9fb, #fff);
}

.interview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.interview-card,
.interview-card:first-child {
  grid-row: auto;
  display: grid;
  grid-template-rows: 310px 1fr;
  min-height: 620px;
  border-radius: 0;
  border: var(--phase-border);
  box-shadow: var(--phase-shadow);
  cursor: pointer;
  transition: transform .28s ease, box-shadow .28s ease;
}

.interview-card:hover,
.interview-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: 0 38px 78px rgba(1,34,55,.28);
}

.interview-card img {
  min-height: 0;
  height: 310px;
  object-fit: cover;
}

.interview-card div {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  padding: 24px;
}

.interview-card span {
  width: fit-content;
  border-radius: 0;
}

.interview-card h3 {
  margin: 14px 0 8px;
  color: var(--deep);
  font-size: 26px;
  line-height: 1.25;
}

.interview-card p {
  margin: 0 0 22px;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.65;
}

.mini-link {
  width: 100%;
  justify-content: center;
  min-height: 46px;
  border-radius: 0;
}

.modal-panel {
  border-radius: 0;
  box-shadow: 0 38px 90px rgba(0,0,0,.38);
}

.modal-profile {
  grid-template-columns: minmax(260px, .82fr) 1fr;
  gap: 28px;
}

.modal-profile img {
  min-height: 360px;
  object-fit: cover;
}

.modal-qa div {
  padding: 18px 0;
  border-bottom: 1px solid #d8edf2;
}

.outline {
  padding: 108px 0;
  background:
    linear-gradient(90deg, #f6fbfd 0 38%, #fff 38% 100%);
}

.outline-grid { grid-template-columns: .58fr 1.42fr; }
.outline-table { border-radius: 0; box-shadow: var(--phase-shadow); }
.outline-table tr { display: grid; grid-template-columns: 210px 1fr; }
.outline-table th {
  width: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--deep);
  background: #e6f6f9;
}

.outline-table th::before {
  content: "";
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.22);
}

.outline-table td strong,
.outline-table td { color: var(--ink); }

.entry-form {
  border-radius: 0;
  box-shadow: var(--phase-shadow);
}

@media (max-width: 980px) {
  .hero { min-height: 850px; }
  .hero-layer-copy { width: min(100%, 650px); }
  .hero-people { width: 330px; right: 54px; bottom: 36px; }
  .hero-character { width: 142px; bottom: 54px; right: 10px; }
  .mission-grid,
  .record-grid,
  .outline-grid { grid-template-columns: 1fr; }
  .project-map { min-height: 560px; }
  .flow-cards { grid-template-columns: 1fr; gap: 16px; }
  .flow-cards::before { left: 28px; right: auto; top: 0; bottom: 0; width: 5px; height: auto; }
  .flow-card,
  .flow-card:nth-child(even) {
    min-height: 0;
    margin-top: 0;
    clip-path: none;
  }
  .field-split,
  .interview-grid { grid-template-columns: 1fr; }
  .field-panel,
  .field-panel:nth-child(2) { min-height: 560px; margin-top: 0; }
  .appeal-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .site-header { height: 64px; padding-inline: 12px; }
  .header-nav { display: none; }
  .brand strong { font-size: 13px; }
  .brand small { display: none; }
  .hero {
    min-height: 840px;
    padding-top: 84px;
  }
  .hero-bg {
    background:
      linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.76) 42%, rgba(2,27,45,.18) 72%, rgba(2,27,45,.56) 100%),
      url("../images/phase2-hero-dam.webp") 58% center / cover no-repeat;
  }
  .hero-inner { min-height: 720px; width: min(100% - 28px, 1200px); }
  .hero-layer-copy { bottom: 205px; }
  .hero h1 { font-size: clamp(48px, 15vw, 68px); }
  .hero-lead { margin-top: 18px; font-size: 13px; transform: rotate(-.6deg); box-shadow: 8px 8px 0 rgba(0,167,121,.86); }
  .hero-proof span { padding: 6px 9px; font-size: 10px; }
  .hero-actions .button { width: 100%; min-height: 50px; }
  .hero-people {
    width: 178px;
    right: 42px;
    bottom: 42px;
  }
  .hero-people::before { inset: -14px -12px 12px 14px; }
  .hero-photo-label { left: -12px; top: 14px; font-size: 9px; }
  .hero-character { width: 84px; right: 2px; bottom: 42px; }
  .hero-character .speech { display: none; }
  .mission,
  .work-flow,
  .track-record,
  .interview,
  .outline,
  .entry-form-section { padding: 70px 0; }
  .mission-photos { grid-template-columns: 1fr 1fr; transform: none; }
  .mission-photos .photo-main { grid-column: 1 / -1; min-height: 330px; clip-path: none; }
  .mission-photos figure img { min-height: 160px; }
  .scale-photo { min-height: 620px; }
  .scale-content h2,
  .field-copy h2 { font-size: clamp(34px, 10vw, 48px); }
  .project-map { min-height: 470px; }
  .japan-map { width: 96%; }
  .map-dot { font-size: 10px; padding: 5px 8px 5px 18px; }
  .project-card { grid-template-columns: 1fr; }
  .project-card img { min-height: 190px; }
  .appeal { padding-top: 72px; }
  .appeal-grid { grid-template-columns: 1fr; }
  .appeal-item { min-height: 0; }
  .team-band img { height: 380px; }
  .interview-card,
  .interview-card:first-child {
    grid-template-rows: 260px 1fr;
    min-height: 590px;
  }
  .interview-card img { height: 260px; }
  .interview-card div { padding: 20px; }
  .interview-card h3 { font-size: 24px; }
  .outline-table,
  .outline-table tbody,
  .outline-table tr,
  .outline-table th,
  .outline-table td {
    display: block;
    width: 100%;
  }
  .outline-table tr {
    border-bottom: 1px solid #d8edf2;
    grid-template-columns: 1fr;
  }
  .outline-table th { padding-bottom: 8px; }
  .outline-table td { padding-top: 8px; }
  .modal-profile { grid-template-columns: 1fr; }
  .modal-profile img { min-height: 260px; }
}

/* Pre-launch polish: remove internal-looking decoration and improve readability. */
.yamato-recruit-lp h1,
.yamato-recruit-lp h2,
.yamato-recruit-lp h3,
.yamato-recruit-lp p,
.yamato-recruit-lp a,
.yamato-recruit-lp span,
.yamato-recruit-lp th,
.yamato-recruit-lp td,
.yamato-recruit-lp dt,
.yamato-recruit-lp dd {
  line-break: strict;
  word-break: auto-phrase;
}

.header-nav {
  gap: 26px;
  font-size: 15px;
}

.header-cta {
  padding-inline: 20px;
  font-size: 14px;
}

.hero .eyebrow {
  width: fit-content;
  padding: 8px 12px;
  color: #005f49;
  background: rgba(255,255,255,.88);
  box-shadow: 0 10px 24px rgba(0,45,70,.12);
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}

.hero-proof {
  display: none !important;
}

.hero::after {
  display: none !important;
}

.hero-people::before {
  background: linear-gradient(135deg, rgba(0,167,121,.86), rgba(0,105,168,.8));
}

.hero-people::after {
  display: none;
}

.hero-people img {
  filter: saturate(1.03) contrast(1.02);
}

.hero-character::before {
  background: rgba(255,255,255,.78);
}

.movie-section {
  background:
    radial-gradient(circle at 18% 4%, rgba(0,167,121,.1), transparent 26%),
    linear-gradient(180deg, #eaf8fb 0%, #f6fbfd 42%, #fff 100%);
}

.flow-card,
.flow-card:hover,
.flow-card:focus-within {
  color: #fff;
}

.flow-card strong,
.flow-card:hover strong,
.flow-card:focus-within strong {
  display: block;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  color: #fff;
  text-shadow: 0 4px 16px rgba(0,0,0,.46);
}

.flow-card h3,
.flow-card p,
.flow-card:hover h3,
.flow-card:hover p,
.flow-card:focus-within h3,
.flow-card:focus-within p {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.track-record {
  padding: 118px 0;
}

.track-record .section-inner {
  width: min(1260px, calc(100% - 56px));
}

.record-grid {
  grid-template-columns: minmax(280px, .9fr) minmax(460px, 1.35fr) minmax(300px, .9fr);
  gap: clamp(26px, 3vw, 46px);
  align-items: center;
}

.record-copy h2 {
  max-width: 560px;
  line-height: 1.15;
}

.record-copy > p {
  max-width: 520px;
  line-height: 1.9;
}

.record-name-list {
  gap: 8px;
}

.project-map {
  min-height: 680px;
  overflow: visible;
  background:
    radial-gradient(circle at 48% 48%, rgba(141,240,198,.24), transparent 28%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.12), transparent 54%),
    linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.025));
}

.project-map::before {
  opacity: .32;
}

.japan-map {
  width: min(94%, 540px);
  transform: translateX(-2%);
}

.map-land {
  fill: rgba(232,248,251,.95);
  stroke: rgba(255,255,255,.86);
  stroke-width: 4;
}

.kansai {
  fill: rgba(137,236,198,.98);
}

.project-list {
  gap: 16px;
  margin-left: -16px;
}

.project-card {
  min-height: 142px;
  box-shadow: 0 20px 46px rgba(0,0,0,.2);
}

.instagram-card {
  position: relative;
  gap: 5px;
  padding: 22px 20px 22px 76px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,.34), transparent 18%),
    linear-gradient(135deg, #feda75, #fa7e1e 28%, #d62976 55%, #962fbf 76%, #4f5bd5);
  border: 0;
}

.instagram-card i {
  position: absolute;
  left: 20px;
  top: 24px;
  width: 46px;
  height: 46px;
  border: 3px solid #fff;
  border-radius: 12px;
}

.instagram-card i::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 3px solid #fff;
  border-radius: 50%;
}

.instagram-card i::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 6px;
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
}

.instagram-card .sns-label {
  color: rgba(255,255,255,.92);
  font-size: 12px;
  letter-spacing: .12em;
}

.feature-numbers div {
  min-width: 0;
}

.feature-numbers strong,
.feature-numbers span,
.feature-numbers small {
  display: block;
  word-break: keep-all;
  overflow-wrap: normal;
}

.feature-numbers strong {
  font-size: clamp(26px, 2.7vw, 44px);
  letter-spacing: 0;
}

.feature-numbers span {
  min-height: 2.8em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-panel {
  position: relative;
  max-height: min(86vh, 920px);
  padding-top: 34px;
  background:
    linear-gradient(180deg, #fff 0%, #f6fbfd 100%);
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 5;
}

.modal-profile {
  clear: both;
}

.modal-qa {
  gap: 18px;
}

.modal-qa div {
  padding: 20px 22px;
  background: #fff;
  border: 1px solid #d8edf2;
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(0,52,82,.08);
}

.modal-qa dt {
  display: inline;
  padding: 5px 9px;
  color: #fff;
  background: var(--blue);
  border-radius: 4px;
}

.modal-qa dd {
  margin-top: 12px;
  line-height: 1.9;
}

.modal-insert-photo {
  margin: 2px 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 20px 44px rgba(0,45,70,.14);
}

.modal-insert-photo img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.outline-table th {
  gap: 0;
  padding-left: 20px;
}

.outline-table th::before {
  display: none;
}

.outline-note {
  display: none;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 64px);
}

.site-footer .brand-logo {
  width: min(220px, 48vw);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  font-size: 14px;
  font-weight: 900;
}

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

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #8df0c6;
}

.site-footer p {
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 800;
}

.footer-kingyo {
  display: none;
}

@media (max-width: 980px) {
  .track-record .section-inner {
    width: min(100% - 36px, 760px);
  }

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

  .project-list {
    margin-left: 0;
  }

  .project-map {
    min-height: 560px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 620px) {
  .hero .eyebrow {
    padding: 6px 9px;
    font-size: 12px;
  }

  .hero-people::before {
    inset: -12px -10px 10px 12px;
  }

  .movie-section {
    padding-top: 72px;
  }

  .track-record .section-inner {
    width: min(100% - 28px, 520px);
  }

  .record-copy h2 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .project-map {
    min-height: 430px;
  }

  .japan-map {
    width: 92%;
    transform: none;
  }

  .map-dot {
    font-size: 9px;
    padding: 4px 7px 4px 15px;
  }

  .instagram-card {
    padding: 20px 18px 20px 70px;
  }

  .feature-numbers {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .feature-numbers div {
    min-height: 154px;
    padding: 18px 10px;
  }

  .feature-numbers strong {
    font-size: clamp(24px, 9vw, 34px);
  }

  .feature-numbers span {
    min-height: 2.4em;
    font-size: 12px;
  }

  .modal-panel {
    width: min(100% - 20px, 760px);
    max-height: 88vh;
    padding: 16px;
  }

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

  .modal-qa div {
    padding: 16px 14px;
  }

  .modal-insert-photo img {
    aspect-ratio: 16 / 9;
  }

  .footer-nav {
    max-width: 320px;
    gap: 10px 18px;
  }
}

/* Final tone-up before client sharing. Keep the structure, add only a little more weight and warmth. */
@media (min-width: 981px) {
  .section-title {
    font-size: clamp(42px, 4.7vw, 60px);
    line-height: 1.16;
    font-weight: 950;
  }

  .mission h2 {
    font-size: clamp(58px, 6.9vw, 88px);
    line-height: 1.08;
  }

  .movie-copy h2,
  .scale-content h2,
  .outline h2,
  .entry-form-copy h2 {
    font-size: clamp(44px, 5.1vw, 70px);
    line-height: 1.14;
    font-weight: 950;
  }

  .record-copy h2 {
    max-width: 620px;
    font-size: clamp(58px, 6vw, 86px);
    line-height: 1.08;
  }

  .interview .section-title {
    font-size: clamp(48px, 5.4vw, 74px);
  }

  .interview-card,
  .interview-card:first-child {
    height: 700px;
  }

  .track-record .section-inner {
    width: min(1320px, calc(100% - 64px));
  }

  .record-grid {
    grid-template-columns: minmax(300px, .82fr) minmax(540px, 1.48fr) minmax(300px, .82fr);
    gap: clamp(34px, 3.6vw, 58px);
  }

  .project-map {
    min-height: 740px;
    padding: 30px;
  }

  .japan-map {
    width: min(98%, 610px);
  }

  .project-list {
    margin-left: -8px;
  }

  .outline-grid,
  .entry-form-grid {
    gap: clamp(42px, 4.6vw, 72px);
  }
}

.interview-card {
  position: relative;
  transform: none;
}

.interview-card:nth-child(2),
.interview-card:nth-child(3) {
  transform: none;
}

.interview-card:hover,
.interview-card:focus-visible {
  transform: translateY(-8px);
}

.interview-card::before {
  content: none;
  display: none;
  position: absolute;
  left: 18px;
  top: 292px;
  z-index: 3;
  padding: 7px 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  background: #00a779;
  box-shadow: 6px 6px 0 rgba(0,57,92,.24);
  transform: rotate(-3deg);
}

.interview-card:nth-child(2)::before {
  content: none;
  background: #0069a8;
  transform: rotate(2.5deg);
}

.interview-card:nth-child(3)::before {
  content: none;
  background: #00395c;
  transform: rotate(-2deg);
}

.interview-card h3 {
  position: relative;
}

.interview-card h3::before {
  content: "";
  position: absolute;
  left: -10px;
  top: .35em;
  width: 5px;
  height: 1.6em;
  background: var(--green);
  border-radius: 999px;
}

.outline {
  background:
    radial-gradient(circle at 18% 8%, rgba(0,167,121,.12), transparent 24%),
    linear-gradient(135deg, #edf9fb 0%, #fff 45%, #f6fbfd 100%);
}

.outline-table-wrap,
.entry-form {
  border: 1px solid rgba(0,105,168,.12);
}

.entry-form-section {
  background:
    radial-gradient(circle at 84% 12%, rgba(0,167,121,.12), transparent 23%),
    linear-gradient(180deg, #eaf8fb 0%, #f6fbfd 58%, #fff 100%);
}

.entry-form-copy {
  position: relative;
}

.entry-form-copy::after {
  content: "まずは話を聞くだけでもOK";
  display: inline-flex;
  margin-top: 18px;
  padding: 8px 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  background: var(--blue);
  box-shadow: 7px 7px 0 rgba(0,167,121,.22);
  transform: rotate(-1.4deg);
}

.closing-cta {
  padding: clamp(34px, 5vw, 58px) clamp(20px, 4vw, 52px);
  background:
    linear-gradient(120deg, rgba(0,38,61,.88), rgba(0,105,168,.72)),
    url("../images/phase2-entry-dam.webp") center / cover no-repeat;
}

.closing-cta p {
  color: #8df0c6;
  font-weight: 950;
}

.closing-cta h2 {
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.12;
  text-shadow: 0 12px 30px rgba(0,0,0,.24);
}

.closing-cta .button {
  min-width: min(320px, 100%);
  min-height: 60px;
  box-shadow: 0 18px 38px rgba(0, 167, 121, .34);
}

@media (max-width: 620px) {
  .interview-card::before {
    top: 242px;
    left: 16px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .interview-card h3::before {
    left: -8px;
  }

  .entry-form-copy::after {
    font-size: 12px;
  }

  .closing-cta {
    padding: 34px 20px;
  }

  .closing-cta h2 {
    font-size: clamp(30px, 9vw, 42px);
  }
}

/* Public-release final fixes: readability, map replacement, form and footer polish. */
.hero-lead {
  margin-bottom: 34px;
}

.hero-actions {
  margin-top: 4px;
}

.hero-character::before {
  inset: 64px 10px 12px;
  background: radial-gradient(ellipse at 50% 78%, rgba(255,255,255,.58), rgba(255,255,255,.2) 56%, transparent 72%);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 18px 34px rgba(0,45,70,.16);
  backdrop-filter: none;
}

.hero-character .char-img {
  filter: drop-shadow(0 18px 24px rgba(0,35,55,.28));
}

.mission h2,
.movie-copy h2,
.record-copy h2,
.entry-form-copy h2 {
  max-width: none;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.mission-copy {
  min-width: 0;
}

.movie-copy {
  min-width: 0;
}

.flow-card {
  isolation: isolate;
}

.flow-card::after {
  z-index: 0;
}

.flow-card img {
  position: relative;
  z-index: 0;
}

.flow-card strong,
.flow-card h3,
.flow-card p {
  position: relative;
  z-index: 4;
  mix-blend-mode: normal !important;
}

.flow-card strong,
.flow-card:hover strong,
.flow-card:focus-within strong {
  opacity: 1 !important;
  visibility: visible !important;
  color: #fff !important;
  transform: none !important;
  filter: none !important;
}

.flow-card:hover img {
  transform: scale(1.035);
}

.project-map {
  padding: clamp(26px, 3vw, 44px);
}

.project-map .japan-map {
  width: min(100%, 620px);
  max-height: 650px;
  object-fit: contain;
  filter: drop-shadow(0 22px 32px rgba(0,0,0,.18));
  transform: none;
}

.map-land {
  display: none;
}

.map-dot {
  transform: translate(-50%, -50%);
}

.dot-1 { left: 56%; top: 34%; }
.dot-2 { left: 58%; top: 48%; }
.dot-3 { left: 48%; top: 64%; }
.dot-4 { left: 45%; top: 66%; }
.dot-5 { left: 42%; top: 71%; }
.dot-6 { left: 44%; top: 70%; }
.dot-7 { left: 40%; top: 69%; }
.dot-8 { left: 43%; top: 75%; }
.dot-9 { left: 59%; top: 24%; }
.dot-10 { left: 43%; top: 61%; }
.dot-11 { left: 34%; top: 71%; }

.instagram-card {
  color: #fff;
}

.instagram-card .sns-label {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  color: #d62976;
  background: #fff;
  font-weight: 950;
}

.instagram-card strong {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.feature-numbers div:nth-child(3) {
  grid-column: span 2;
}

.feature-numbers div:nth-child(3) strong,
.feature-numbers div:nth-child(3) span {
  white-space: nowrap;
}

.feature-numbers div:nth-child(3) span::before {
  content: "";
}

.entry-form-copy h2 {
  white-space: nowrap;
  font-size: clamp(34px, 4.2vw, 58px);
}

body.yamato-recruit-page .cf7-entry-form .wpcf7-submit,
.yamato-recruit-lp .cf7-entry-form .wpcf7-submit {
  display: block;
  width: min(100%, 280px);
  min-height: 62px;
  margin: 6px auto 0;
  padding: 16px 30px;
  color: #fff !important;
  font-size: 17px;
  font-weight: 950;
  background: linear-gradient(135deg, #00a779, #0076b6) !important;
  border: 0;
  box-shadow: 0 18px 38px rgba(0, 118, 182, .28);
}

body.yamato-recruit-page .cf7-entry-form .wpcf7-submit:hover,
.yamato-recruit-lp .cf7-entry-form .wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(0, 118, 182, .34);
}

.site-footer {
  grid-template-columns: minmax(260px, .9fr) minmax(420px, 1.1fr);
  align-items: start;
  padding-top: 40px;
  padding-bottom: 34px;
  background:
    linear-gradient(120deg, rgba(6,30,49,.96), rgba(0,57,92,.94)),
    url("../images/phase2-pipe-full.webp") center / cover no-repeat;
}

.footer-company {
  display: grid;
  gap: 14px;
}

.footer-company p,
.footer-copy {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  justify-items: end;
  gap: 18px;
}

.footer-nav {
  justify-content: flex-end;
}

.footer-copy {
  color: #8df0c6;
  font-size: 15px;
  font-weight: 950;
}

@media (max-width: 980px) {
  .entry-form-copy h2 {
    white-space: normal;
  }

  .footer-links {
    justify-items: center;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero-lead {
    margin-bottom: 24px;
  }

  .hero-character::before {
    display: block;
    inset: 36px 4px 6px;
    background: radial-gradient(ellipse at 50% 74%, rgba(255,255,255,.46), rgba(255,255,255,.14) 58%, transparent 74%);
    box-shadow: 0 12px 22px rgba(0,45,70,.12);
  }

  .mission h2,
  .movie-copy h2,
  .record-copy h2,
  .entry-form-copy h2 {
    text-wrap: balance;
  }

  .entry-form-copy h2 {
    white-space: nowrap;
    font-size: clamp(26px, 7vw, 31px);
    line-height: 1.18;
  }

  .project-map .japan-map {
    width: min(100%, 360px);
    max-height: 410px;
  }

  .feature-numbers {
    grid-template-columns: 1fr;
  }

  .feature-numbers div:nth-child(3) {
    grid-column: auto;
  }

  .feature-numbers div:nth-child(3) strong {
    font-size: clamp(28px, 9vw, 38px);
  }

  body.yamato-recruit-page .cf7-entry-form .wpcf7-submit,
  .yamato-recruit-lp .cf7-entry-form .wpcf7-submit {
    width: 100%;
    min-height: 58px;
  }

  .site-footer {
    padding: 34px 20px 28px;
  }

  .footer-company,
  .footer-links {
    justify-items: center;
    text-align: center;
  }
}

/* Layout breathing pass: prioritize natural reading order over packed visual density. */
.section-inner {
  width: min(1160px, calc(100% - 48px));
}

.mission-grid,
.movie-grid {
  gap: clamp(44px, 5vw, 84px);
  align-items: center;
}

.mission h2,
.movie-copy h2,
.scale-content h2,
.record-copy h2,
.entry-form-copy h2 {
  white-space: normal;
  overflow-wrap: normal;
  word-break: keep-all;
  text-wrap: balance;
}

.mission h2 {
  max-width: 720px;
}

.movie-copy h2 {
  max-width: 760px;
}

.track-record .section-inner {
  width: min(1180px, calc(100% - 56px));
}

.record-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(34px, 5vw, 64px);
  align-items: stretch;
}

.record-copy {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.record-copy h2 {
  max-width: 900px;
  margin-inline: auto;
  font-size: clamp(46px, 5.4vw, 76px);
  line-height: 1.12;
}

.record-copy > p {
  max-width: 760px;
  margin-inline: auto;
}

.record-name-list {
  justify-content: center;
}

.record-copy .guide-note {
  width: min(560px, 100%);
  margin: 22px auto 0;
  text-align: left;
}

.project-map {
  width: min(880px, 100%);
  min-height: 620px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 64px);
  overflow: hidden;
}

.project-map::after {
  content: "";
  position: absolute;
  inset: 14%;
  z-index: 0;
  background:
    radial-gradient(circle at 60% 30%, rgba(141,240,198,.28), transparent 18%),
    radial-gradient(circle at 44% 70%, rgba(0,167,121,.24), transparent 24%),
    linear-gradient(135deg, transparent 35%, rgba(141,240,198,.16) 36% 38%, transparent 39% 100%);
  filter: blur(.2px);
  pointer-events: none;
}

.project-map .japan-map {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  max-height: 540px;
  opacity: .92;
}

.map-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  color: transparent;
  font-size: 0;
  background: rgba(141,240,198,.92);
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 0 0 12px rgba(0,167,121,.14), 0 0 28px rgba(141,240,198,.72);
  pointer-events: none;
}

.map-dot::before {
  display: none;
}

.dot-1 { left: 64%; top: 24%; }
.dot-2 { left: 60%; top: 44%; }
.dot-3 { left: 46%; top: 60%; }
.dot-4 { left: 48%; top: 67%; }
.dot-5 { left: 42%; top: 72%; }
.dot-6 { left: 55%; top: 72%; }
.dot-7 { left: 38%; top: 70%; }
.dot-8 { left: 45%; top: 78%; }
.dot-9 { left: 68%; top: 18%; }
.dot-10 { left: 42%; top: 58%; }
.dot-11 { left: 34%; top: 74%; }

.project-list {
  width: min(1040px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  min-height: 180px;
}

.instagram-card {
  min-height: 180px;
}

.entry-form-grid {
  grid-template-columns: 1fr;
  gap: 34px;
  width: min(920px, 100%);
}

.entry-form-copy {
  max-width: 760px;
}

.entry-form-copy h2 {
  white-space: normal;
  max-width: 760px;
}

.entry-form {
  width: min(860px, 100%);
  justify-self: stretch;
}

.yamato-recruit-lp .cf7-entry-form .wpcf7-form,
body.yamato-recruit-page .cf7-entry-form .wpcf7-form {
  gap: 22px 24px;
}

.site-footer {
  grid-template-columns: minmax(260px, .9fr) minmax(380px, 1.1fr);
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 18%, rgba(0,167,121,.12), transparent 22%),
    linear-gradient(180deg, #f6fbfd, #eaf8fb);
  border-top: 1px solid #d6edf3;
}

.site-footer .brand-logo {
  filter: none;
}

.footer-company p,
.footer-copy {
  color: #496272;
}

.footer-nav a,
.site-footer a {
  color: var(--deep);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--green);
}

.footer-copy {
  color: var(--blue);
}

@media (max-width: 980px) {
  .section-inner,
  .track-record .section-inner {
    width: min(100% - 36px, 760px);
  }

  .mission-grid,
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .record-copy {
    text-align: left;
  }

  .record-copy h2,
  .record-copy > p {
    margin-inline: 0;
  }

  .record-name-list {
    justify-content: flex-start;
  }

  .record-copy .guide-note {
    margin-inline: 0;
  }

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

  .project-map {
    min-height: 500px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 620px) {
  .section-inner,
  .track-record .section-inner {
    width: min(100% - 28px, 520px);
  }

  .mission h2,
  .movie-copy h2,
  .record-copy h2,
  .entry-form-copy h2 {
    line-height: 1.2;
  }

  .record-copy h2 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .project-map {
    min-height: 360px;
    padding: 24px;
  }

  .project-map .japan-map {
    width: min(100%, 320px);
    max-height: 320px;
  }

  .map-dot {
    width: 9px;
    height: 9px;
    box-shadow: 0 0 0 8px rgba(0,167,121,.12), 0 0 20px rgba(141,240,198,.62);
  }

  .entry-form-grid {
    gap: 24px;
  }

  .site-footer {
    padding: 32px 20px 26px;
  }
}

/* Prevent headline overlap by letting dense visual sections breathe vertically. */
.mission-grid,
.movie-grid {
  grid-template-columns: 1fr;
}

.mission-copy,
.movie-copy {
  width: min(860px, 100%);
}

.mission h2,
.movie-copy h2 {
  max-width: 860px;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.15;
}

.mission-photos,
.movie-frame {
  width: min(980px, 100%);
  justify-self: center;
}

.mission-photos .photo-main {
  min-height: 480px;
}

.movie-frame {
  margin-top: 8px;
}

@media (max-width: 620px) {
  .mission h2,
  .movie-copy h2 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .mission-photos .photo-main {
    min-height: 300px;
  }
}

/* Final visibility and alignment pass. */
.hero-bg {
  filter: saturate(1.02) contrast(.96) brightness(.92);
}

.hero h1 {
  color: #fff;
  text-shadow:
    0 4px 0 rgba(0,57,92,.48),
    0 16px 38px rgba(0,30,48,.45),
    0 0 2px rgba(0,30,48,.9);
  -webkit-text-stroke: 1px rgba(0,57,92,.28);
}

.hero h1 span {
  color: #0076b6;
  text-shadow:
    0 3px 0 rgba(255,255,255,.78),
    0 14px 28px rgba(0,57,92,.38);
  -webkit-text-stroke: 0;
}

.scale-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3,28,45,.86), rgba(3,28,45,.54) 48%, rgba(3,28,45,.72));
  pointer-events: none;
}

.scale-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: clamp(24px, 4vw, 44px);
  background: rgba(3,28,45,.62);
  box-shadow: 0 24px 54px rgba(0,0,0,.28);
}

.scale-content .section-kicker,
.scale-content h2,
.scale-content p {
  color: #fff;
  text-shadow: 0 4px 20px rgba(0,0,0,.42);
}

.scale-content .section-kicker {
  color: #8df0c6;
}

.dam-process {
  gap: 14px;
}

.dam-process div::after {
  display: none !important;
}

.dam-process div {
  min-height: 150px;
}

@media (min-width: 981px) {
  .record-name-list {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .record-name-list li {
    padding: 9px 10px;
    font-size: 12px;
    white-space: nowrap;
  }
}

.map-dot {
  display: none !important;
}

.project-map::after {
  inset: 12%;
  background:
    radial-gradient(circle at 62% 22%, rgba(141,240,198,.32), transparent 16%),
    radial-gradient(circle at 52% 50%, rgba(141,240,198,.24), transparent 22%),
    radial-gradient(circle at 38% 72%, rgba(0,167,121,.24), transparent 24%),
    linear-gradient(140deg, transparent 35%, rgba(141,240,198,.18) 36% 38%, transparent 39% 100%);
}

.project-list .instagram-card {
  display: none !important;
}

.feature-numbers {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  border: 0;
}

.feature-numbers div,
.feature-numbers div:nth-child(3) {
  grid-column: auto;
  min-height: 176px;
}

.feature-numbers strong,
.feature-numbers span {
  white-space: nowrap;
}

.feature-numbers div:nth-child(3) strong {
  font-size: clamp(26px, 2.6vw, 38px);
}

.entry-form-grid {
  justify-items: center;
  text-align: left;
}

.entry-form-copy {
  width: min(760px, 100%);
  justify-self: center;
}

.entry-form {
  justify-self: center;
  width: min(760px, 100%);
}

.yamato-recruit-lp .cf7-entry-form .wpcf7-form,
body.yamato-recruit-page .cf7-entry-form .wpcf7-form {
  grid-template-columns: 1fr;
  max-width: 680px;
  margin-inline: auto;
}

.footer-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.footer-instagram img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.footer-copy {
  color: #004b78;
  text-shadow: none;
}

.site-footer .footer-copy {
  color: #004b78 !important;
}

@media (max-width: 980px) {
  .feature-numbers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .hero h1 {
    -webkit-text-stroke: .6px rgba(0,57,92,.28);
    text-shadow:
      0 3px 0 rgba(0,57,92,.42),
      0 10px 26px rgba(0,30,48,.42),
      0 0 2px rgba(0,30,48,.9);
  }

  .scale-content {
    padding: 22px 18px;
  }

  .dam-process {
    gap: 10px;
  }

  .feature-numbers {
    grid-template-columns: 1fr;
  }

  .feature-numbers div {
    min-height: 148px;
  }

  .footer-instagram {
    width: 32px;
    height: 32px;
  }
}

/* Final client-share polish: remove map, simplify cards, and tighten controls. */
.track-record {
  background:
    radial-gradient(circle at 78% 18%, rgba(141,240,198,.16), transparent 22%),
    linear-gradient(135deg, #00253d, #061e31 58%, #00395c);
}

.record-grid {
  grid-template-columns: 1fr;
  align-items: start;
  gap: clamp(28px, 4vw, 52px);
}

.record-copy {
  width: min(980px, 100%);
  margin-inline: auto;
  text-align: center;
}

.record-copy h2,
.record-copy > p {
  margin-inline: auto;
}

.record-copy > p {
  max-width: 820px;
}

.record-name-list {
  justify-content: center;
  width: min(1080px, 100%);
  margin: 26px auto 0;
}

.record-name-list li {
  padding: 10px 14px;
  font-size: 13px;
  background: rgba(255,255,255,.13);
}

.record-copy .guide-note {
  width: min(620px, 100%);
  margin: 26px auto 0;
  text-align: left;
}

.project-map,
.project-map::before,
.project-map::after,
.japan-map,
.map-heading,
.map-dot {
  display: none !important;
}

.project-list {
  width: min(1120px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  grid-template-columns: minmax(180px, 42%) 1fr;
  min-height: 220px;
  margin: 0;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(214,237,243,.88);
  border-radius: 8px;
  box-shadow: 0 22px 48px rgba(0,28,45,.22);
}

.project-card img {
  min-height: 220px;
}

.feature-numbers {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-numbers div,
.feature-numbers div:nth-child(3) {
  min-height: 168px;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 16%, rgba(0,167,121,.08), transparent 32%),
    #fff;
  border: 1px solid #d8edf2;
  box-shadow: 0 16px 34px rgba(0,52,82,.08);
}

.feature-numbers strong {
  color: #0069a8;
  font-size: clamp(24px, 2.2vw, 34px);
}

.feature-numbers span {
  min-height: auto;
  color: var(--deep);
}

.feature-numbers small {
  color: #496272;
}

.interview-card h3::before {
  display: none !important;
}

.interview-card {
  border-left: 0;
}

.modal-close {
  display: inline-grid;
  place-items: center;
  padding: 0;
  text-align: center;
  line-height: 1;
}

.modal-close::before {
  content: "";
  display: none;
}

.entry::before,
.entry::after,
.closing-cta::before,
.closing-cta::after {
  opacity: .12;
}

.closing-cta {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(0,34,55,.9), rgba(0,74,112,.76)),
    url("../images/phase2-entry-dam.webp") center / cover no-repeat;
}

.closing-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 18%, rgba(141,240,198,.12), transparent 24%);
  pointer-events: none;
}

.closing-cta > * {
  position: relative;
  z-index: 1;
}

.header-nav a,
.footer-nav a {
  white-space: nowrap;
}

@media (max-width: 980px) {
  .project-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .record-copy {
    text-align: left;
  }

  .record-copy h2,
  .record-copy > p {
    margin-inline: 0;
  }

  .record-name-list,
  .record-copy .guide-note {
    justify-content: flex-start;
    margin-inline: 0;
  }

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

  .project-card img {
    min-height: 210px;
  }

  .feature-numbers {
    grid-template-columns: 1fr;
  }

  .feature-numbers div,
  .feature-numbers div:nth-child(3) {
    min-height: 142px;
  }

  .feature-numbers strong {
    font-size: clamp(26px, 8vw, 34px);
  }
}

/* Final publication pass: photo framing, copy clarity, and click affordance. */
.hero-people {
  width: min(520px, 36vw);
}

.hero-people img {
  aspect-ratio: 16 / 10;
  object-position: center 44%;
}

.project-card h3 {
  color: var(--deep);
}

.feature-numbers {
  background: transparent !important;
}

.feature-numbers div,
.feature-numbers div:nth-child(3) {
  background: #fff !important;
  box-shadow: 0 14px 30px rgba(0,52,82,.07);
}

.interview-card::before,
.interview-card::after {
  display: none !important;
  content: none !important;
}

.interview-card {
  cursor: pointer;
}

.interview-card h3 {
  min-height: 3.15em;
  font-size: clamp(21px, 1.8vw, 25px);
  line-height: 1.45;
}

.interview-card p {
  min-height: 3.3em;
}

.mini-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  cursor: pointer;
}

.button,
.header-cta,
.header-nav a,
.footer-nav a,
.footer-instagram,
.interview-card,
.mini-link,
.wpcf7-submit {
  transition:
    color .22s ease,
    background-color .22s ease,
    border-color .22s ease,
    box-shadow .22s ease,
    opacity .22s ease,
    transform .22s ease;
}

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

.header-nav a::after,
.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s ease;
}

@media (hover: hover) and (pointer: fine) {
  .header-nav a:hover,
  .header-nav a:focus-visible,
  .footer-nav a:hover,
  .footer-nav a:focus-visible {
    color: var(--green);
  }

  .header-nav a:hover::after,
  .header-nav a:focus-visible::after,
  .footer-nav a:hover::after,
  .footer-nav a:focus-visible::after {
    transform: scaleX(1);
  }

  .button:hover,
  .button:focus-visible,
  .header-cta:hover,
  .header-cta:focus-visible,
  .mini-link:hover,
  .mini-link:focus-visible,
  .wpcf7-submit:hover,
  .wpcf7-submit:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(0,105,168,.22);
  }

  .footer-instagram:hover,
  .footer-instagram:focus-visible {
    transform: translateY(-2px);
    opacity: .86;
  }

  .interview-card:hover,
  .interview-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 34px 70px rgba(1,34,55,.22);
  }
}

@media (max-width: 980px) {
  .hero-people {
    width: 300px;
  }
}

@media (max-width: 620px) {
  .hero-people {
    right: 18px;
    bottom: 66px;
    width: 250px;
  }

  .hero-people img {
    aspect-ratio: 4 / 3;
    object-position: center center;
  }

  .hero-character {
    bottom: 42px;
  }

  .interview-card h3,
  .interview-card p {
    min-height: 0;
  }
}

/* Art direction final pass: reduce artificial gloss and keep the page calm. */
:root {
  --shadow: 0 10px 24px rgba(0, 46, 72, .08);
}

.opening {
  background: #062d47;
}

.opening::before,
.opening::after {
  opacity: .08;
  background: none;
  mix-blend-mode: normal;
}

.opening-media {
  display: none !important;
}

.opening-media img {
  opacity: .5;
  transform: none;
  filter: none;
}

.opening-media img + img {
  width: min(500px, 42vw);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 44%;
  clip-path: none;
  opacity: .9;
  border-radius: 4px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.opening-logo {
  box-shadow: none;
}

.opening-character,
.hero-character .char-img,
.entry-character .char-img,
.guide-note .char-img,
.section-guide .char-img {
  filter: drop-shadow(0 8px 14px rgba(0,35,55,.12));
}

.opening-content strong {
  text-shadow: 0 3px 12px rgba(0,0,0,.28);
}

.site-header {
  box-shadow: 0 1px 14px rgba(0,45,78,.05);
  backdrop-filter: none;
}

.hero {
  background:
    linear-gradient(90deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.72) 32%, rgba(255,255,255,.16) 56%, rgba(2,25,42,.45) 100%),
    url("../images/phase2-hero-dam.webp") center / cover no-repeat;
  filter: none;
}

.hero::before,
.hero::after,
.hero-water {
  opacity: .12;
}

.hero h1 {
  text-shadow:
    0 2px 0 rgba(0,57,92,.42),
    0 8px 18px rgba(0,30,48,.24);
}

.hero-lead,
.speech,
.guide-note,
.section-guide {
  box-shadow: none;
}

.hero-people {
  box-shadow: -10px 10px 0 rgba(0,167,121,.42);
}

.button-primary,
.header-cta {
  box-shadow: 0 8px 18px rgba(0,138,155,.14);
}

.mission-photos img,
.flow-card,
.project-card,
.appeal-item,
.interview-card,
.entry-form,
.outline-table-wrap,
.company-table-wrap,
.modal-panel {
  box-shadow: none !important;
}

.track-record {
  background: #062d47;
}

.record-name-list li {
  background: rgba(255,255,255,.1);
}

.project-card,
.interview-card,
.appeal-item,
.entry-form,
.outline-table-wrap,
.company-table-wrap {
  border-color: #d8edf2;
}

.feature-numbers div,
.feature-numbers div:nth-child(3) {
  background: #fff !important;
  box-shadow: none !important;
}

.feature-numbers strong {
  color: #0069a8;
}

.entry {
  background:
    linear-gradient(90deg, rgba(0,42,68,.82), rgba(0,42,68,.64)),
    url("../images/phase2-team-wide.webp") center / cover no-repeat;
}

.entry::before,
.entry::after,
.closing-cta::before,
.closing-cta::after {
  display: none !important;
}

.closing-cta {
  background:
    linear-gradient(90deg, rgba(0,34,55,.82), rgba(0,34,55,.66)),
    url("../images/phase2-entry-dam.webp") center / cover no-repeat;
}

.closing-cta h2 {
  display: grid;
  gap: .42em;
}

.closing-cta h2 span {
  display: block;
}

.entry-form-section {
  background: #f7fcfd;
}

.modal-backdrop {
  backdrop-filter: none;
  background: rgba(2,25,42,.58);
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 1;
}

.modal-close::after {
  content: "×";
  display: block;
  font-size: 28px;
  line-height: 1;
  transform: translateY(-1px);
}

.modal-qa {
  gap: 18px;
}

.modal-qa div {
  padding: 18px 20px;
  background: #f7fcfd;
  border-color: #d8edf2;
}

.modal-qa dt {
  margin-bottom: 8px;
  line-height: 1.55;
}

.modal-qa dd {
  margin-top: 0;
  line-height: 1.9;
}

.site-footer {
  color: var(--deep);
  background: #f7fcfd;
  border-top: 1px solid #d8edf2;
}

.site-footer a,
.site-footer p,
.site-footer .footer-copy {
  color: var(--deep) !important;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover,
  .button:focus-visible,
  .header-cta:hover,
  .header-cta:focus-visible,
  .mini-link:hover,
  .mini-link:focus-visible,
  .wpcf7-submit:hover,
  .wpcf7-submit:focus-visible {
    box-shadow: 0 10px 22px rgba(0,105,168,.14);
  }

  .interview-card:hover,
  .interview-card:focus-visible {
    box-shadow: none;
    transform: translateY(-4px);
  }
}

@media (max-width: 620px) {
  .opening-media img + img {
    right: 18px;
    bottom: 16%;
    width: min(300px, 76vw);
    aspect-ratio: 4 / 3;
    object-position: center center;
  }

  .opening-content strong {
    max-width: 92vw;
    font-size: clamp(34px, 10.5vw, 42px);
    line-height: 1.08;
  }

  .opening-content p {
    margin-bottom: 8px;
  }

  .closing-cta h2 {
    gap: .36em;
  }
}

/* Final design review: remove decorative leftovers and tighten responsive layout. */
.hero h1::after,
.hero-people::before,
.hero-people::after,
.hero-character::before {
  display: none !important;
  content: none !important;
}

.hero-people {
  background: transparent;
  box-shadow: none;
}

.hero-photo-label {
  box-shadow: none;
}

.hero-character .speech {
  border-width: 1px;
  transform: none;
}

.dam-process {
  align-items: stretch;
}

.dam-process div {
  display: grid;
  grid-template-rows: auto auto 1.35em;
  align-content: start;
  min-height: 126px;
  transform: none !important;
}

.dam-process div small {
  align-self: end;
  min-height: 1.35em;
}

.dam-process div:not(.is-yamato) small {
  visibility: hidden;
}

.dam-process .is-yamato {
  color: #234;
  background: #fff;
  border-color: rgba(0, 167, 121, .36);
}

.dam-process .is-yamato span {
  color: var(--phase4-blue);
}

.dam-process .is-yamato strong {
  color: var(--phase4-navy);
}

.dam-process .is-yamato small {
  width: fit-content;
  min-height: 0;
  padding: 3px 7px;
  color: #00694f;
  font-size: 10px;
  line-height: 1.2;
  background: #e8f8f2;
  border: 1px solid rgba(0, 167, 121, .18);
  border-radius: 2px;
}

.flow-cards {
  gap: 16px;
}

.flow-cards::before {
  display: none !important;
  content: none !important;
}

.feature-numbers {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.feature-numbers div,
.feature-numbers div:nth-child(3) {
  border: 1px solid #d8edf2;
  border-radius: 4px;
  box-shadow: none !important;
}

.entry-form-section {
  background: #fff;
}

.entry-form-grid {
  background: transparent;
}

.entry-form-copy,
.entry-form {
  background: #fff;
  box-shadow: none !important;
}

.entry-form {
  border-radius: 4px;
}

.project-card {
  border-radius: 4px;
}

.project-card span {
  color: #0069a8;
  background: #eaf6f8;
}

.modal-qa div {
  border-radius: 2px;
  background: #fbfeff;
}

.footer-instagram,
.footer-youtube {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  transition: opacity .22s ease, transform .22s ease;
}

.footer-instagram img,
.footer-youtube img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.footer-youtube img {
  width: 32px;
  height: 32px;
}

.footer-nav {
  align-items: center;
  gap: 18px;
}

.footer-nav a,
.site-footer a {
  font-size: 14px;
  line-height: 1.5;
}

.footer-company p {
  font-size: 14px;
  line-height: 1.8;
}

.footer-copy {
  font-size: 13px;
  line-height: 1.8;
}

@media (hover: hover) and (pointer: fine) {
  .footer-youtube:hover,
  .footer-youtube:focus-visible {
    transform: translateY(-2px);
    opacity: .86;
  }
}

@media (max-width: 760px) {
  .hero h1,
  .mission h2,
  .movie-copy h2,
  .scale-content h2,
  .record-copy h2,
  .interview .section-title,
  .outline h2,
  .entry-form-copy h2,
  .section-title {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: keep-all;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 58px);
    line-height: 1.04;
  }

  .mission h2,
  .movie-copy h2,
  .scale-content h2,
  .record-copy h2,
  .interview .section-title,
  .outline h2,
  .entry-form-copy h2,
  .section-title {
    font-size: clamp(30px, 8.6vw, 42px);
    line-height: 1.18;
  }

  .project-card {
    display: grid;
    grid-template-columns: 1fr;
    background: #fff;
  }

  .project-card img {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .project-card div {
    padding: 18px;
    background: #fff;
  }

  .project-card h3,
  .project-card p {
    color: var(--deep);
  }

  .feature-numbers {
    gap: 14px;
  }

  .feature-numbers div,
  .feature-numbers div:nth-child(3) {
    min-height: 0;
    padding: 20px 18px;
    text-align: left;
  }

  .feature-numbers strong,
  .feature-numbers span,
  .feature-numbers small {
    width: 100%;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
  }

  .feature-numbers strong {
    font-size: clamp(28px, 8vw, 34px);
  }

  .entry-form-grid {
    width: min(100%, 560px);
  }

  .entry-form-copy {
    padding-inline: 0;
  }

  .modal-qa {
    gap: 14px;
  }

  .modal-qa div {
    padding: 16px 14px;
    border-radius: 0;
  }

  .modal-qa dt {
    line-height: 1.6;
  }

  .modal-qa dd {
    line-height: 1.85;
  }

  .site-footer {
    gap: 22px;
  }

  .footer-nav {
    justify-content: center;
    gap: 14px 16px;
  }

  .footer-nav a,
  .site-footer a,
  .footer-company p,
  .footer-copy {
    font-size: 13px;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: clamp(39px, 12.2vw, 52px);
  }

  .hero-layer-copy,
  .hero-copy {
    width: min(100%, calc(100vw - 34px));
  }

  .mission h2,
  .movie-copy h2,
  .scale-content h2,
  .record-copy h2,
  .interview .section-title,
  .outline h2,
  .entry-form-copy h2,
  .section-title {
    font-size: clamp(28px, 8vw, 36px);
  }

  .dam-process div {
    min-height: 116px;
  }

  .footer-instagram,
  .footer-youtube {
    width: 32px;
    height: 32px;
  }
}

/* Final sharing polish: reduce floating feel and tighten long mobile sections. */
.hero-people img {
  opacity: .86;
  filter: saturate(.92) contrast(.96);
}

.hero-photo-label {
  opacity: .54;
  transform: rotate(-4deg) scale(.9);
}

.hero-character {
  opacity: .9;
}

.hero-character .char-img {
  filter: drop-shadow(0 3px 5px rgba(0,35,55,.08));
}

.hero-character .speech {
  color: rgba(2,25,42,.82);
  background: rgba(255,255,255,.74);
  border-color: rgba(0,110,175,.1);
}

.dam-process div {
  padding: 18px 16px;
  gap: 5px;
}

.dam-process span {
  font-size: clamp(28px, 2.6vw, 34px);
}

.dam-process strong {
  margin-top: 2px;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.4;
}

.dam-process .is-yamato small {
  margin-top: 4px;
}

.entry-form-copy p {
  max-width: 680px;
  color: var(--deep);
  font-weight: 900;
  line-height: 1.9;
}

.footer-instagram,
.footer-youtube {
  width: 36px;
  height: 36px;
}

.footer-instagram img {
  width: 27px;
  height: 27px;
}

.footer-youtube img {
  width: 34px;
  height: 34px;
}

.modal-qa {
  gap: 20px;
}

.modal-qa div {
  padding: 18px 18px 20px;
  background: #fbfeff;
  border-color: #e4f1f4;
  border-radius: 0;
}

.modal-qa dt {
  display: block;
  margin: 0 0 15px;
  padding: 12px 14px;
  background: #edf8fb;
  color: var(--deep);
  line-height: 1.75;
}

.modal-qa dd {
  margin-top: 0;
  line-height: 1.95;
}

.cta-line-future,
.company-heading-line {
  white-space: nowrap;
}

.project-card div {
  gap: 6px;
}

.project-card h3 {
  margin-top: 0;
}

@media (max-width: 760px) {
  .outline,
  .entry-form-section,
  .company-profile {
    padding-block: 54px;
  }

  .outline-grid,
  .entry-form-grid,
  .company-grid {
    gap: 22px;
  }

  .entry-form-copy p {
    font-size: 14px;
    line-height: 1.75;
  }

  .dam-process div {
    padding: 16px 14px;
  }

  .flow-card,
  .flow-card:nth-child(even) {
    min-height: 0;
  }

  .flow-card img {
    aspect-ratio: 16 / 9;
  }

  .flow-card div,
  .flow-card h3,
  .flow-card p {
    margin-top: 0;
  }

  .flow-card h3 {
    font-size: 20px;
    line-height: 1.35;
  }

  .flow-card p {
    font-size: 13px;
    line-height: 1.75;
  }

  .flow-card strong {
    font-size: 42px;
  }

  .entry-copy h2,
  .closing-cta h2 {
    font-size: clamp(31px, 8.4vw, 39px);
    line-height: 1.22;
  }

  .entry-copy .cta-line-future,
  .closing-cta .cta-line-future {
    font-size: .9em;
    letter-spacing: 0;
  }

  .company-copy h2 {
    font-size: clamp(27px, 7.15vw, 33px);
    line-height: 1.25;
  }

  .company-heading-line {
    font-size: .86em;
    letter-spacing: 0;
  }

  .modal-qa {
    gap: 18px;
  }

  .modal-qa div {
    padding: 16px 14px 18px;
    background: #fcfeff;
  }

  .modal-qa dt {
    margin-bottom: 16px;
    padding: 13px 12px;
    background: #f0f9fb;
    line-height: 1.85;
  }

  .modal-qa dd {
    line-height: 1.9;
  }

  .footer-instagram,
  .footer-youtube {
    width: 36px;
    height: 36px;
  }
}

/* Final quality balance: keep the page readable and aligned without adding decoration. */
.section-title,
.mission h2,
.movie-copy h2,
.scale-content h2,
.record-copy h2,
.outline h2,
.entry-form-copy h2,
.company-copy h2 {
  line-height: 1.18;
}

.section-title {
  font-size: clamp(34px, 4.2vw, 54px);
}

.mission h2,
.movie-copy h2,
.scale-content h2,
.record-copy h2,
.outline h2,
.entry-form-copy h2,
.company-copy h2 {
  font-size: clamp(32px, 4vw, 52px);
}

.interview .section-title {
  font-size: clamp(30px, 3.2vw, 44px);
  white-space: nowrap;
}

.feature-numbers div,
.feature-numbers div:nth-child(3) {
  align-content: start;
  gap: 7px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 5px;
  border: 1px solid #cfe6ea;
  border-radius: 50%;
  background: #f8fcfd;
  color: #00706d;
  font-style: normal;
  line-height: 1;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-numbers strong {
  line-height: 1.15;
}

.modal-qa div {
  border-left: 3px solid #9fd3df;
}

.modal-qa dt {
  position: relative;
  padding-left: 46px;
  border-bottom: 1px solid #d7e9ee;
}

.modal-qa dt::before {
  content: "Q";
  position: absolute;
  left: 14px;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #007f9f;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  transform: translateY(-50%);
}

.company-grid {
  grid-template-columns: 1fr;
  gap: 30px;
  width: min(100% - 48px, 1040px);
}

.company-copy {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.company-copy p {
  margin-inline: auto;
}

.kingyo-logo {
  margin-inline: auto;
}

.company-table-wrap {
  width: 100%;
}

.company-table th {
  width: 190px;
}

.footer-nav a,
.site-footer a {
  font-size: 15px;
}

.footer-company p {
  font-size: 15px;
  line-height: 1.85;
}

.footer-copy {
  font-size: 14px;
}

@media (max-width: 760px) {
  .section-title {
    font-size: clamp(27px, 7.3vw, 34px);
  }

  .mission h2,
  .movie-copy h2,
  .scale-content h2,
  .record-copy h2,
  .outline h2,
  .entry-form-copy h2 {
    font-size: clamp(27px, 7.2vw, 34px);
    line-height: 1.22;
  }

  .interview .section-title {
    font-size: clamp(24px, 6.3vw, 29px);
  }

  .feature-icon {
    margin-inline: 0;
  }

  .modal-qa div {
    border-left-width: 2px;
  }

  .modal-qa dt {
    padding-left: 42px;
    border-bottom-color: #dceef2;
  }

  .modal-qa dt::before {
    left: 12px;
    width: 21px;
    height: 21px;
    font-size: 11px;
  }

  .company-grid {
    width: min(100%, calc(100vw - 34px));
    gap: 24px;
  }

  .company-copy {
    text-align: left;
  }

  .kingyo-logo {
    margin-left: 0;
  }

  .company-table th {
    width: auto;
  }

  .footer-nav a,
  .site-footer a {
    font-size: 14px;
  }

  .footer-company p {
    font-size: 14px;
  }
}

.hero-lead {
  width: fit-content;
  max-width: 560px;
}

.interview .section-kicker {
  display: block;
  margin-bottom: 8px;
  text-align: center;
}

.interview .section-title {
  margin-top: 0;
}

.hero-nowrap,
.no-orphan,
.scale-heading-line {
  display: inline-block;
}

.hero h1 em {
  color: inherit;
  font-style: normal;
}

.movie-copy .no-orphan,
.scale-heading-line {
  white-space: nowrap;
}

.modal-qa div,
.modal-qa div:hover,
.modal-qa div:focus-within {
  border-left-width: 1px;
  border-left-color: #e4f1f4;
}

@media (max-width: 760px) {
  .hero h1 {
    font-size: clamp(36px, 10.6vw, 46px);
  }

  .hero-lead {
    width: auto;
    max-width: 100%;
    font-size: 13px;
    line-height: 1.75;
    letter-spacing: 0;
  }

  .movie-copy h2 {
    font-size: clamp(25px, 6.7vw, 31px);
  }

  .scale-content h2 {
    font-size: clamp(26px, 6.9vw, 32px);
  }

  .scale-heading-line {
    letter-spacing: 0;
  }

  .modal-qa div,
  .modal-qa div:hover,
  .modal-qa div:focus-within {
    border-left-width: 1px;
  }
}

/* Recruit sub pages and final utility adjustments. */
.movie-guide {
  width: min(100%, 560px) !important;
  margin: 24px auto 0 !important;
  justify-content: center !important;
}

.movie-guide p {
  text-align: center;
}

.form-privacy-note {
  grid-column: 1 / -1;
  margin: 8px 0 0 !important;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
  color: #365366;
}

.form-privacy-note a {
  color: #006da8;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.yamato-subpage {
  min-height: 100vh;
  background: #f5fbfd;
  color: var(--deep);
}

.yamato-subpage .site-header {
  position: sticky;
  top: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.subpage-main {
  width: min(100% - 32px, 1040px);
  margin: 0 auto;
  padding: clamp(88px, 11vw, 132px) 0 clamp(64px, 8vw, 104px);
}

.subpage-hero {
  padding: clamp(40px, 6vw, 72px);
  border-radius: 8px;
  background: #fff;
  border: 1px solid #d8edf2;
}

.subpage-hero h1 {
  margin: 8px 0 18px;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.16;
  letter-spacing: 0;
}

.subpage-hero p {
  margin: 0;
  max-width: 760px;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.9;
  font-weight: 800;
  color: #365366;
}

.policy-content {
  margin-top: 28px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 8px;
  background: #fff;
  border: 1px solid #d8edf2;
}

.policy-content h2 {
  margin: 34px 0 10px;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.35;
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.95;
  font-weight: 700;
  color: #365366;
}

.subpage-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.subpage-actions .button {
  min-width: 220px;
  min-height: 50px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1.2;
}

.subpage-actions .button-secondary {
  color: #005a88;
  background: #fff;
  border: 1px solid #9fd3df;
  box-shadow: none;
}

.thanks-main,
.notfound-main {
  min-height: 62vh;
  display: grid;
  align-content: center;
}

@media (max-width: 760px) {
  .movie-guide {
    width: min(100%, 440px) !important;
    margin-inline: auto !important;
    justify-content: center !important;
    text-align: center;
  }

  .movie-guide p {
    flex: 0 1 auto;
    text-align: center;
  }

  .form-privacy-note {
    font-size: 13px;
  }

  .subpage-main {
    width: min(100% - 24px, 640px);
    padding-top: 96px;
  }

  .subpage-hero,
  .policy-content {
    padding: 24px 18px;
  }

  .subpage-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .subpage-actions .button {
    width: 100%;
    min-width: 0;
  }

  .footer-nav {
    display: flex;
    flex-wrap: wrap;
  }

.footer-instagram,
.footer-youtube {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
}

  .footer-instagram img,
  .footer-youtube img {
    width: 30px;
    height: 30px;
  }
}

.footer-sns {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .footer-sns {
    flex: 0 0 100%;
    width: 100%;
    margin-top: 2px;
  }
}

/* Final requested ENTRY section background replacement. */
.entry {
  background:
    linear-gradient(90deg, rgba(0, 31, 49, .78), rgba(0, 72, 100, .54)),
    url("../images/cta-dsc06903.webp") center 47% / 114% auto no-repeat !important;
}

/* Final form and utility-page CTA sizing. */
.yamato-recruit-lp .cf7-entry-form .wpcf7-submit,
body.yamato-recruit-page .cf7-entry-form .wpcf7-submit {
  display: block !important;
  width: min(100%, 280px) !important;
  min-height: 54px !important;
  margin: 8px auto 0 !important;
  padding: 14px 28px !important;
  line-height: 1.25 !important;
}

.form-privacy-note {
  width: 100%;
  margin: 4px auto 2px !important;
  text-align: center;
}

.yamato-subpage .subpage-actions .button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  aspect-ratio: auto !important;
  min-width: 220px !important;
  min-height: 50px !important;
  width: auto !important;
  height: auto !important;
  padding: 13px 28px !important;
  border-radius: 999px !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  background-image: none !important;
  text-indent: 0 !important;
  color: #fff !important;
}

.yamato-subpage .subpage-actions .button-secondary {
  color: #005a88 !important;
  background: #fff !important;
  border: 1px solid #9fd3df !important;
}

.yamato-subpage .site-header.subpage-header {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

@media (max-width: 760px) {
  .yamato-recruit-lp .cf7-entry-form .wpcf7-submit,
  body.yamato-recruit-page .cf7-entry-form .wpcf7-submit {
    width: min(100%, 280px) !important;
  }

  .yamato-subpage .subpage-actions .button {
    width: min(100%, 280px) !important;
    height: auto !important;
    margin-inline: auto;
  }
}

/* Pre-share final audit adjustments. */
.team-band {
  margin-top: 18px;
}

.entry-form-copy h2 {
  font-size: clamp(34px, 4.4vw, 56px);
}

@media (max-width: 760px) {
  .hero h1 {
    font-size: clamp(40px, 11.7vw, 51px);
  }

  .hero-lead {
    width: fit-content;
    max-width: calc(100% - 12px);
  }

  .feature-numbers div,
  .feature-numbers div:nth-child(3) {
    text-align: center;
  }

  .feature-numbers strong,
  .feature-numbers span,
  .feature-numbers small {
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  .feature-icon {
    margin: 0 auto 6px;
  }

  .entry-form-copy h2 {
    font-size: clamp(30px, 8vw, 37px);
  }
}

/* Public final finishing pass: remove hidden sections visually, adjust copy, and settle spacing. */
.hero-character {
  right: 20px;
  bottom: 28px;
  width: clamp(118px, 9.4vw, 148px);
}

.hero-character .char-img {
  filter: drop-shadow(0 2px 4px rgba(0,35,55,.06));
}

.hero-character .speech {
  padding: 9px 11px;
  font-size: 12px;
  opacity: .86;
}

.guide-note img,
.section-guide img {
  width: 66px;
}

.movie-guide .char-img {
  width: 82px;
}

.entry-character {
  width: 168px;
}

.entry-character-right {
  width: 152px;
}

.track-record {
  background: #0b3856;
}

.record-copy > p {
  max-width: 760px;
}

.record-name-list {
  gap: 10px;
}

.record-name-list li {
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.45;
}

.appeal-item h3 {
  min-height: 3.1em;
}

.feature-numbers {
  margin-bottom: 36px;
}

.team-band {
  margin-top: 34px;
}

.team-band img {
  object-position: center center;
}

.outline-subtitle {
  margin: 0 0 14px;
  padding: 0 0 10px;
  color: var(--deep);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 950;
  border-bottom: 2px solid #d8edf2;
}

.outline-table + .outline-subtitle {
  margin-top: 34px;
}

.outline-table td a {
  color: #0069a8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.modal-qa div,
.modal-qa div:hover,
.modal-qa div:focus-within {
  border: 1px solid #e4f1f4;
}

@media (max-width: 760px) {
  .hero-character {
    right: -2px;
    bottom: 20px;
    width: 96px;
  }

  .hero-character .char-img {
    filter: drop-shadow(0 2px 3px rgba(0,35,55,.05));
  }

  .guide-note img,
  .section-guide img {
    width: 54px;
  }

  .movie-guide .char-img {
    width: 66px;
  }

  .entry-character {
    width: 136px;
  }

  .entry-character-right {
    width: 124px;
  }

  .record-name-list li {
    padding: 10px 13px;
    font-size: 14px;
    line-height: 1.45;
  }

  .outline-subtitle {
    margin-bottom: 10px;
    font-size: 22px;
  }

  .appeal-item h3 {
    min-height: 0;
  }

  .feature-numbers {
    margin-bottom: 30px;
  }

  .team-band {
    margin-top: 28px;
  }
}

/* Final handoff adjustment: keep the page lighter and make the outline shorter with tabs. */
.opening {
  background: #14557b;
}

.opening::before,
.opening::after {
  opacity: .035;
}

.track-record {
  background: #104b70;
}

.hero-character {
  right: -18px;
  bottom: -4px;
  width: clamp(108px, 8.2vw, 130px);
}

.hero-character .speech {
  width: 206px;
  max-width: 206px;
  padding: 12px 18px;
  border-radius: 999px;
  line-height: 1.45;
  letter-spacing: 0;
}

.hero-character .speech::after {
  display: none;
}

.team-band img {
  object-position: center 34%;
}

.entry,
.closing-cta {
  background-position: center 68%;
}

.guide-note img,
.section-guide img {
  width: 74px;
}

.movie-guide .char-img {
  width: 92px;
}

@media (max-width: 760px) {
  .movie-label {
    display: none;
  }
}

.entry-character {
  width: 178px;
}

.entry-character-right {
  width: 160px;
}

.outline-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.outline-tab-lead {
  margin: 0 0 10px;
  color: #476173;
  font-size: 14px;
  font-weight: 850;
}

.outline-tab {
  appearance: none;
  border: 1px solid #98cbd8;
  border-radius: 999px;
  background: #fff;
  color: var(--deep);
  padding: 11px 22px;
  min-height: 46px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.outline-tab:hover,
.outline-tab:focus-visible {
  border-color: #007aa0;
  background: #eef9fb;
  color: #006d8a;
  transform: translateY(-1px);
}

.outline-tab.is-active,
.outline-tab[aria-selected="true"] {
  border-color: #007aa0;
  background: #007aa0;
  color: #fff;
}

.outline-table-wrap {
  border: 0 !important;
}

.outline-table {
  border: 0 !important;
}

.outline-panel[hidden] {
  display: none !important;
}

.outline-panel {
  min-width: 0;
}

.outline-panel .outline-subtitle {
  margin-top: 0;
}

@media (max-width: 760px) {
  .hero-character {
    right: -18px;
    bottom: -14px;
    width: 80px;
  }

  .guide-note img,
  .section-guide img {
    width: 60px;
  }

  .movie-guide .char-img {
    width: 74px;
  }

  .entry-character {
    width: 142px;
  }

  .entry-character-right {
    width: 130px;
  }

  .outline-tabs {
    gap: 8px;
    margin-bottom: 16px;
  }

  .outline-tab {
    flex: 1 1 130px;
    padding: 10px 14px;
    min-height: 44px;
    font-size: 14px;
  }
}

/* Alternate character design Phase2. */
.hero-entry-bridge {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(240px, 1fr);
  gap: 14px;
  align-items: stretch;
  width: min(100%, 620px);
  margin-top: 24px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 8px;
  background: rgba(255,255,255,.82);
}

.hero-entry-bridge img {
  width: 100%;
  height: 100%;
  min-height: 128px;
  object-fit: cover;
  object-position: 44% center;
  border-radius: 6px;
}

.hero-entry-bridge .hero-actions {
  align-content: center;
  gap: 10px;
}

.hero-entry-bridge .button-primary {
  min-height: 66px;
  background: #00a779;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 12px 28px rgba(0, 129, 102, .22);
}

.hero-entry-bridge .button-primary::after {
  content: "";
  display: inline-block;
  width: .55em;
  height: .55em;
  margin-left: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.hero-character {
  z-index: 3;
  right: 220px;
  bottom: 42px;
  width: clamp(116px, 9vw, 152px);
  opacity: .96;
  pointer-events: none;
}

.hero-character .speech {
  display: none;
}

.hero-character .char-img {
  transform: rotate(-4deg);
  filter: drop-shadow(0 5px 10px rgba(0,35,55,.12));
}

.hero-people {
  z-index: 4;
}

.appeal-item {
  position: relative;
  overflow: hidden;
  padding-right: 92px;
}

.appeal-illust {
  position: absolute;
  right: -12px;
  bottom: -18px;
  width: 118px;
  max-width: 38%;
  opacity: .8;
  pointer-events: none;
}

.appeal-item:nth-child(2n) .appeal-illust {
  right: -20px;
  bottom: -26px;
  width: 128px;
}

.feature-icon {
  display: none;
}

.feature-illust {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 8px;
  object-fit: contain;
}

@media (hover: hover) and (pointer: fine) {
  .hero-entry-bridge .button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(0, 129, 102, .28);
  }
}

@media (max-width: 980px) {
  .hero-entry-bridge {
    grid-template-columns: 160px 1fr;
    width: min(100%, 560px);
  }

  .hero-character {
    right: 116px;
    bottom: 58px;
    width: 104px;
  }
}

@media (max-width: 760px) {
  .hero-entry-bridge {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
    padding: 9px;
  }

  .hero-entry-bridge img {
    min-height: 118px;
    max-height: 150px;
    object-position: 46% center;
  }

  .hero-entry-bridge .hero-actions .button {
    width: 100%;
  }

  .hero-entry-bridge .button-primary {
    min-height: 58px;
    font-size: 16px;
  }

  .hero-character {
    right: 20px;
    bottom: 46px;
    width: 72px;
  }

  .hero-people {
    display: none;
  }

  .appeal-item {
    padding-right: 84px;
  }

  .appeal-illust {
    width: 100px;
    max-width: 35%;
    right: -12px;
    bottom: -14px;
  }

  .feature-illust {
    width: 64px;
    height: 64px;
  }
}

/* Final requested refinements: speech integration, FV overlap, feature icons, entry photo. */
.hero-character {
  right: 34px;
  bottom: 118px;
  width: clamp(82px, 6.5vw, 104px);
  opacity: .9;
}

.hero-character .char-img {
  filter: drop-shadow(0 2px 5px rgba(0, 35, 55, .08));
}

.hero-character .speech {
  display: block;
  position: absolute;
  right: 58px;
  bottom: 76px;
  width: 210px;
  max-width: 210px;
  padding: 11px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 122, 160, .16);
  background: rgba(255, 255, 255, .88);
  color: #06344d;
  box-shadow: none;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0;
}

.hero-character .speech::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  border-right: 1px solid rgba(0, 122, 160, .16);
  border-bottom: 1px solid rgba(0, 122, 160, .16);
  background: rgba(255, 255, 255, .88);
  transform: rotate(45deg);
}

.guide-note,
.section-guide {
  display: inline-flex;
  align-items: flex-end;
  width: auto;
  gap: 0;
  margin-top: 16px;
}

.guide-note img,
.section-guide img {
  width: 82px;
  margin-right: -10px;
  transform: translateY(8px);
  z-index: 2;
}

.movie-guide .char-img {
  width: 96px;
}

.guide-note p,
.section-guide p,
.guide-note-dark p {
  display: block;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 12px 16px 12px 22px;
  border: 1px solid rgba(0, 122, 160, .18);
  border-radius: 12px;
  background: rgba(255, 255, 255, .88);
  color: #06344d;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.7;
}

.guide-note-dark p {
  background: rgba(255, 255, 255, .92);
  color: #06344d;
}

.entry-character .speech {
  display: block;
  max-width: 190px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .9);
  color: #06344d;
  box-shadow: none;
}

.entry-character .speech::after {
  opacity: .9;
}

.feature-illust {
  width: 78px;
  height: 78px;
  margin-bottom: 12px;
}

.feature-numbers > div {
  min-height: 176px;
}

.entry {
  background:
    linear-gradient(90deg, rgba(0, 31, 49, .78), rgba(0, 72, 100, .54)),
    url("../images/entry-hachiman.webp") center 56% / cover no-repeat;
}

.closing-cta {
  background:
    linear-gradient(90deg, rgba(0, 31, 49, .78), rgba(0, 72, 100, .54)),
    url("../images/phase2-entry-dam.webp") center 64% / cover no-repeat;
}

@media (max-width: 980px) {
  .hero-character {
    right: 24px;
    bottom: 92px;
    width: 88px;
  }
}

@media (max-width: 760px) {
  .hero-character {
    right: 70px;
    bottom: 22px;
    width: 72px;
  }

  .hero-character .speech {
    right: 44px;
    bottom: 56px;
    width: 154px;
    max-width: 154px;
    padding: 9px 12px;
    font-size: 11px;
    line-height: 1.55;
  }

  .guide-note,
  .section-guide {
    margin-top: 12px;
  }

  .guide-note img,
  .section-guide img {
    width: 66px;
    margin-right: -8px;
  }

  .movie-guide .char-img {
    width: 76px;
  }

  .guide-note p,
  .section-guide p,
  .guide-note-dark p {
    padding: 10px 12px 10px 18px;
    font-size: 12px;
    line-height: 1.65;
  }

  .entry-character .speech {
    max-width: 154px;
    font-size: 11px;
  }

  .feature-illust {
    width: 82px;
    height: 82px;
  }

  .feature-numbers > div {
    min-height: 164px;
  }

  .entry {
    background-position: center 58%;
  }
}

/* Final SP placement fix for the FV speech bubble. */
@media (max-width: 760px) {
  .hero-character {
    right: 70px;
    bottom: 22px;
    width: 72px;
  }

  .hero-character .speech {
    right: 44px;
    bottom: 56px;
    width: 154px;
    max-width: 154px;
  }
}

@media (max-width: 760px) {
  .hero-character {
    right: 70px;
    bottom: 22px;
    width: 72px;
  }

  .hero-character .speech {
    right: 44px;
    bottom: 56px;
    width: 154px;
    max-width: 154px;
  }
}

/* Phase3 character system refinement. */
.guide-note,
.section-guide {
  align-items: center;
  gap: 14px;
}

.guide-note img,
.section-guide img {
  width: 88px;
}

.guide-note p,
.section-guide p {
  border-radius: 8px;
  box-shadow: none;
}

.movie-guide .char-img {
  width: 112px;
}

.appeal-grid {
  align-items: stretch;
}

.appeal-item {
  min-height: 220px;
  padding-right: 104px;
}

.appeal-item span {
  position: relative;
  z-index: 2;
}

.appeal-item h3,
.appeal-item p {
  position: relative;
  z-index: 2;
}

.appeal-illust {
  width: 132px;
  max-width: 42%;
  opacity: .9;
}

.appeal-item:nth-child(2n) .appeal-illust {
  width: 138px;
  max-width: 44%;
}

.feature-numbers {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-illust {
  width: 66px;
  height: 66px;
}

.entry,
.closing-cta {
  background:
    linear-gradient(90deg, rgba(0, 31, 49, .78), rgba(0, 72, 100, .58)),
    url("../images/cta-group1784.webp") center 47% / 114% auto no-repeat;
}

.entry-character .speech {
  display: none;
}

.entry-character {
  opacity: .94;
}

.hero-character {
  right: 236px;
  bottom: 34px;
}

.hero-character .char-img {
  filter: drop-shadow(0 4px 8px rgba(0, 35, 55, .10));
}

@media (max-width: 1180px) {
  .appeal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .feature-numbers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-character {
    right: 118px;
    bottom: 54px;
  }

  .entry,
  .closing-cta {
    background-size: cover;
    background-position: center 46%;
  }
}

@media (max-width: 760px) {
  .guide-note img,
  .section-guide img {
    width: 76px;
  }

  .movie-guide .char-img {
    width: 88px;
  }

  .hero-character {
    right: 16px;
    bottom: 42px;
    width: 74px;
  }

  .appeal-grid,
  .feature-numbers {
    grid-template-columns: 1fr;
  }

  .appeal-item {
    min-height: 172px;
    padding-right: 96px;
  }

  .appeal-illust,
  .appeal-item:nth-child(2n) .appeal-illust {
    width: 112px;
    max-width: 38%;
  }

  .feature-illust {
    width: 70px;
    height: 70px;
  }
}

/* Phase4 final character art direction. */
.hero-entry-bridge {
  grid-template-columns: minmax(168px, 238px) minmax(260px, 1fr);
  gap: 0;
  overflow: visible;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 10px 24px rgba(0, 42, 64, .12);
}

.hero-entry-bridge img {
  min-height: 150px;
  border-radius: 8px 0 0 8px;
  object-position: 42% center;
}

.hero-entry-bridge .hero-actions {
  position: relative;
  padding: 18px 20px;
}

.hero-entry-bridge .button-primary {
  min-height: 70px;
  font-size: 19px;
  background: #00a779;
  box-shadow: 0 10px 22px rgba(0, 129, 102, .2);
}

.hero-entry-bridge .button-ghost {
  background: rgba(255, 255, 255, .94);
}

.hero-character {
  right: 202px;
  bottom: 62px;
  width: clamp(108px, 8.5vw, 140px);
  opacity: .92;
  z-index: 4;
}

.hero-character .char-img {
  transform: rotate(-3deg);
  filter: drop-shadow(0 3px 6px rgba(0, 35, 55, .08));
}

.guide-note,
.section-guide {
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.guide-note p,
.section-guide p,
.guide-note-dark p {
  display: none;
}

.guide-note img,
.section-guide img {
  width: 94px;
  opacity: .95;
  filter: drop-shadow(0 3px 7px rgba(0, 35, 55, .08));
}

.movie-guide .char-img {
  width: 118px;
}

.record-copy .guide-note,
.entry-form-copy .guide-note {
  margin-top: 12px;
}

.appeal-item {
  min-height: 212px;
  padding: 24px 24px 28px;
}

.appeal-item h3,
.appeal-item p {
  max-width: none;
}

.appeal-illust,
.appeal-item:nth-child(2n) .appeal-illust {
  right: -20px;
  bottom: -24px;
  width: 144px;
  max-width: 46%;
  opacity: .18;
  z-index: 1;
}

.appeal-item span,
.appeal-item h3,
.appeal-item p {
  position: relative;
  z-index: 2;
}

.outline-tab-lead {
  font-weight: 800;
}

.outline-tabs {
  align-items: center;
}

.outline-tab {
  border: 2px solid #0a7f9c;
  background: #fff;
  color: #075a72;
  box-shadow: none;
}

.outline-tab.is-active,
.outline-tab[aria-selected="true"] {
  border-color: #006d8a;
  background: #006d8a;
  color: #fff;
}

.outline-tab:hover,
.outline-tab:focus-visible {
  border-color: #00a779;
  background: #eef9f5;
  color: #006d8a;
}

.outline-tab.is-active:hover,
.outline-tab.is-active:focus-visible {
  background: #006d8a;
  color: #fff;
}

.entry,
.closing-cta {
  background:
    linear-gradient(90deg, rgba(0, 31, 49, .78), rgba(0, 72, 100, .54)),
    url("../images/phase2-entry-dam.webp") center 64% / cover no-repeat;
}

.entry-character {
  width: 188px;
  opacity: .9;
}

.entry-character-right {
  width: 168px;
}

@media (max-width: 980px) {
  .hero-entry-bridge {
    grid-template-columns: 176px 1fr;
  }

  .hero-character {
    right: 96px;
    bottom: 62px;
  }
}

@media (max-width: 760px) {
  .hero-entry-bridge {
    grid-template-columns: 1fr;
    border-radius: 8px;
  }

  .hero-entry-bridge img {
    min-height: 150px;
    max-height: 168px;
    border-radius: 8px 8px 0 0;
    object-position: 42% center;
  }

  .hero-entry-bridge .hero-actions {
    padding: 14px 10px 12px;
  }

  .hero-entry-bridge .button-primary {
    min-height: 58px;
    font-size: 16px;
  }

  .hero-character {
    right: 20px;
    bottom: 24px;
    width: 78px;
  }

  .guide-note img,
  .section-guide img {
    width: 78px;
  }

  .movie-guide .char-img {
    width: 92px;
  }

  .appeal-item {
    min-height: 156px;
    padding: 22px 20px 24px;
  }

  .appeal-illust,
  .appeal-item:nth-child(2n) .appeal-illust {
    width: 118px;
    max-width: 42%;
    opacity: .16;
  }

  .entry,
  .closing-cta {
    background-position: center 62%;
  }

  .entry-character {
    width: 150px;
  }

  .entry-character-right {
    width: 138px;
  }
}

/* Requested final override: restore speech, avoid FV face overlap, use supplied feature icons. */
.hero-character {
  right: 34px;
  bottom: 118px;
  width: clamp(82px, 6.5vw, 104px);
  opacity: .9;
  z-index: 5;
}

.hero-character .char-img {
  filter: drop-shadow(0 2px 5px rgba(0, 35, 55, .08));
}

.hero-character .speech {
  display: block;
  position: absolute;
  right: 58px;
  bottom: 76px;
  width: 210px;
  max-width: 210px;
  padding: 11px 16px;
  border: 1px solid rgba(0, 122, 160, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .88);
  color: #06344d;
  box-shadow: none;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0;
}

.hero-character .speech::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -7px;
  display: block;
  width: 14px;
  height: 14px;
  border-right: 1px solid rgba(0, 122, 160, .16);
  border-bottom: 1px solid rgba(0, 122, 160, .16);
  background: rgba(255, 255, 255, .88);
  transform: rotate(45deg);
}

.guide-note,
.section-guide {
  display: inline-flex;
  align-items: flex-end;
  width: auto;
  gap: 0;
  margin-top: 16px;
}

.guide-note img,
.section-guide img {
  width: 82px;
  margin-right: -10px;
  transform: translateY(8px);
  z-index: 2;
}

.movie-guide .char-img {
  width: 96px;
}

.guide-note p,
.section-guide p,
.guide-note-dark p {
  display: block;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 12px 16px 12px 22px;
  border: 1px solid rgba(0, 122, 160, .18);
  border-radius: 12px;
  background: rgba(255, 255, 255, .88);
  color: #06344d;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.7;
}

.guide-note-dark p {
  background: rgba(255, 255, 255, .92);
  color: #06344d;
}

.entry-character .speech {
  display: block;
  max-width: 190px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .9);
  color: #06344d;
  box-shadow: none;
}

.feature-illust {
  width: 78px;
  height: 78px;
  margin-bottom: 12px;
}

.feature-numbers > div {
  min-height: 176px;
}

.entry {
  background:
    linear-gradient(90deg, rgba(0, 31, 49, .78), rgba(0, 72, 100, .54)),
    url("../images/entry-hachiman.webp") center 56% / cover no-repeat;
}

.closing-cta {
  background:
    linear-gradient(90deg, rgba(0, 31, 49, .78), rgba(0, 72, 100, .54)),
    url("../images/phase2-entry-dam.webp") center 64% / cover no-repeat;
}

@media (max-width: 980px) {
  .hero-character {
    right: 24px;
    bottom: 92px;
    width: 88px;
  }
}

@media (max-width: 760px) {
  .hero-character {
    right: 16px;
    bottom: 22px;
    width: 72px;
  }

  .hero-character .speech {
    right: 42px;
    bottom: 56px;
    width: 154px;
    max-width: 154px;
    padding: 9px 12px;
    font-size: 11px;
    line-height: 1.55;
  }

  .guide-note,
  .section-guide {
    margin-top: 12px;
  }

  .guide-note img,
  .section-guide img {
    width: 66px;
    margin-right: -8px;
  }

  .movie-guide .char-img {
    width: 76px;
  }

  .guide-note p,
  .section-guide p,
  .guide-note-dark p {
    padding: 10px 12px 10px 18px;
    font-size: 12px;
    line-height: 1.65;
  }

  .entry-character .speech {
    max-width: 154px;
    font-size: 11px;
  }

  .feature-illust {
    width: 82px;
    height: 82px;
  }

  .feature-numbers > div {
    min-height: 164px;
  }

  .entry {
    background-position: center 58%;
  }
}

/* Final SP placement fix for the FV speech bubble. */
@media (max-width: 760px) {
  .hero-character {
    right: 70px;
    bottom: 22px;
    width: 72px;
  }

  .hero-character .speech {
    right: 44px;
    bottom: 56px;
    width: 154px;
    max-width: 154px;
  }
}

@media (max-width: 760px) {
  .hero-character {
    right: 112px;
  }
}

/* FV final stability pass: header clearance, button sizing, mascot placement. */
.hero .hero-inner {
  padding-top: clamp(128px, 10vw, 156px);
}

.hero-entry-bridge .hero-actions {
  align-items: stretch;
  justify-items: stretch;
  gap: 12px;
}

.hero-entry-bridge .hero-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 252px);
  min-height: 58px;
  padding: 0 24px;
  line-height: 1.25;
  text-align: center;
}

.hero-character {
  right: max(20px, calc((100vw - 1180px) / 2 - 12px));
  bottom: 86px;
  width: clamp(78px, 5.6vw, 94px);
  z-index: 6;
  animation: mascotHeroIn .7s cubic-bezier(.2, .75, .25, 1) both, characterFloat 5.2s ease-in-out .75s infinite;
}

.hero-character .char-img {
  filter: drop-shadow(0 2px 4px rgba(0, 35, 55, .07));
}

.hero-character .speech {
  right: 56px;
  bottom: 62px;
  width: 196px;
  max-width: 196px;
  padding: 10px 15px;
  border-radius: 16px;
  line-height: 1.55;
  transform-origin: right bottom;
}

.guide-note img,
.section-guide img,
.movie-guide .char-img,
.entry-character,
.entry-character-right {
  animation: mascotSectionIn .65s cubic-bezier(.2, .75, .25, 1) both, characterFloat 5.4s ease-in-out .8s infinite;
}

.entry {
  background:
    linear-gradient(90deg, rgba(0, 31, 49, .78), rgba(0, 72, 100, .54)),
    url("../images/entry-hachiman.webp") center 72% / cover no-repeat;
}

@keyframes mascotHeroIn {
  from {
    opacity: 0;
    transform: translate3d(18px, 8px, 0) scale(.98);
  }

  to {
    opacity: .9;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes mascotSectionIn {
  from {
    opacity: 0;
    transform: translate3d(-14px, 8px, 0) scale(.98);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (max-width: 980px) {
  .hero .hero-inner {
    padding-top: 118px;
  }

  .hero-character {
    right: 20px;
    bottom: 74px;
    width: 82px;
  }

  .hero-character .speech {
    right: 48px;
    bottom: 58px;
    width: 178px;
    max-width: 178px;
  }
}

@media (max-width: 760px) {
  .hero .hero-inner {
    padding-top: 104px;
  }

  .hero-entry-bridge .hero-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-entry-bridge .hero-actions .button {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
  }

  .hero-character {
    right: 92px;
    bottom: 18px;
    width: 68px;
  }

  .hero-character .speech {
    right: 40px;
    bottom: 54px;
    width: 158px;
    max-width: 158px;
    padding: 9px 12px;
    font-size: 11px;
    line-height: 1.55;
  }

  .entry {
    background-position: center 74%;
  }
}

@media (max-width: 430px) {
  .hero .hero-inner {
    padding-top: 108px;
  }

  .hero-character {
    right: 84px;
    bottom: 16px;
  }
}

@media (max-width: 390px) {
  .hero-character {
    right: 72px;
  }

  .hero-character .speech {
    right: 38px;
    width: 150px;
    max-width: 150px;
  }
}

/* FV final correction after live visual check. */
.hero-layer-copy {
  bottom: 24px;
}

.hero-character {
  right: max(10px, calc((100vw - 1180px) / 2 - 120px));
  bottom: 86px;
}

.hero-character .speech {
  right: -12px;
  bottom: -8px;
  width: 184px;
  max-width: 184px;
}

@media (max-width: 980px) {
  .hero-layer-copy {
    bottom: 112px;
  }

  .hero-character {
    right: 18px;
    bottom: 56px;
  }

  .hero-character .speech {
    right: 38px;
    bottom: 54px;
    width: 164px;
    max-width: 164px;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 900px;
  }

  .hero-inner {
    min-height: 760px;
  }

  .hero-layer-copy {
    bottom: 122px;
  }

  .hero-character {
    right: 88px;
    bottom: 20px;
  }

  .hero-character .speech {
    right: 40px;
    bottom: 54px;
    width: 154px;
    max-width: 154px;
  }
}

@media (max-width: 430px) {
  .hero {
    min-height: 910px;
  }

  .hero-inner {
    min-height: 772px;
  }

  .hero-layer-copy {
    bottom: 124px;
  }
}

@media (max-width: 390px) {
  .hero-character {
    right: 76px;
  }
}

/* Final character direction update: remove FV mascot and integrate guide mascots. */
.hero-character {
  display: none !important;
}

.guide-note,
.section-guide {
  align-items: center;
}

.guide-note img,
.section-guide img {
  align-self: center;
  margin-top: 0;
  margin-bottom: 0;
  transform: none;
}

.guide-note p,
.section-guide p,
.guide-note-dark p {
  align-self: center;
}

.guide-note img,
.movie-guide .char-img,
.entry-character {
  animation: mascotEnterFromLeft .72s cubic-bezier(.2, .75, .25, 1) both, mascotSideDrift 6s ease-in-out .85s infinite;
}

.section-guide img,
.entry-character-right {
  animation: mascotEnterFromRight .72s cubic-bezier(.2, .75, .25, 1) both, mascotSideDriftReverse 6.2s ease-in-out .85s infinite;
}

.entry {
  background:
    linear-gradient(90deg, rgba(0, 31, 49, .78), rgba(0, 72, 100, .54)),
    url("../images/entry-hachiman.webp") center 64% / cover no-repeat;
}

@keyframes mascotEnterFromLeft {
  from {
    opacity: 0;
    transform: translate3d(-24px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes mascotEnterFromRight {
  from {
    opacity: 0;
    transform: translate3d(24px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes mascotSideDrift {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(8px, -3px, 0);
  }
}

@keyframes mascotSideDriftReverse {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-8px, -3px, 0);
  }
}

@media (max-width: 760px) {
  .guide-note,
  .section-guide {
    align-items: center;
  }

  .guide-note img,
  .section-guide img {
    transform: none;
  }

  .entry {
    background-position: center 66%;
  }
}

/* Reference-style mascot motion: enter from outside when each block scrolls in. */
.mascot-motion {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity .62s ease, transform .72s cubic-bezier(.2, .76, .25, 1);
}

.mascot-motion.from-left {
  transform: translate3d(-72px, 0, 0);
}

.mascot-motion.from-right {
  transform: translate3d(72px, 0, 0);
}

.entry-character.mascot-motion.from-left {
  transform: translate3d(-105vw, 0, 0);
}

.entry-character.mascot-motion.from-right {
  transform: translate3d(105vw, 0, 0);
}

.mascot-motion.is-mascot-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.mascot-motion .char-img {
  animation: mascotSideDrift 5.8s ease-in-out .8s infinite;
}

.mascot-motion.from-right .char-img,
.entry-character-right .char-img {
  animation-name: mascotSideDriftReverse;
}

.entry-character.mascot-motion {
  animation: none;
}

.entry-character.mascot-motion.is-mascot-visible {
  transform: translate3d(0, 0, 0);
}

@media (max-width: 760px) {
  .mascot-motion.from-left {
    transform: translate3d(-54px, 0, 0);
  }

  .mascot-motion.from-right {
    transform: translate3d(54px, 0, 0);
  }

  .entry-character.mascot-motion.from-left {
    transform: translate3d(-105vw, 0, 0);
  }

  .entry-character.mascot-motion.from-right {
    transform: translate3d(105vw, 0, 0);
  }

  .mascot-motion.is-mascot-visible {
    transform: translate3d(0, 0, 0);
  }

  .entry-character.mascot-motion.is-mascot-visible {
    transform: translate3d(0, 0, 0);
  }
}

/* Final refinement: CSS-built entry buttons and character-only motion. */
.hero-entry-bridge .button-primary,
.entry .button-primary {
  width: min(100%, 330px);
  min-height: 70px;
  padding: 0 34px;
  border: 2px solid rgba(255, 255, 255, .92);
  border-radius: 999px;
  background: #00a779;
  box-shadow: 0 12px 24px rgba(0, 105, 88, .2);
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
  white-space: nowrap;
  text-indent: 0;
  letter-spacing: 0;
  overflow: visible;
}

.entry .button-primary {
  width: min(100%, 380px);
  min-height: 86px;
  font-size: 28px;
}

.hero-entry-bridge .hero-actions .button-primary {
  width: min(100%, 330px);
}

.hero-entry-bridge .button-primary::after,
.entry .button-primary::after {
  content: "›";
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: 14px;
  border-radius: 50%;
  background: #fff;
  color: #00a779;
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
  transform: none;
}

.entry .button-primary::after {
  width: 42px;
  height: 42px;
  margin-left: 18px;
  font-size: 42px;
}

.mascot-motion {
  opacity: 1;
  transform: none;
  transition: none;
}

.mascot-motion.from-left,
.mascot-motion.from-right,
.entry-character.mascot-motion.from-left,
.entry-character.mascot-motion.from-right,
.entry-character.mascot-motion.is-mascot-visible {
  transform: none;
}

.mascot-motion .char-img {
  opacity: 0;
  transition: opacity .5s ease, transform .78s cubic-bezier(.2, .78, .24, 1);
  animation: none;
}

.mascot-motion.from-left .char-img {
  transform: translate3d(-90px, 0, 0) rotate(-4deg);
}

.mascot-motion.from-right .char-img {
  transform: translate3d(90px, 0, 0) rotate(4deg);
}

.entry-character.mascot-motion.from-left .char-img {
  transform: translate3d(-110vw, 0, 0) rotate(-7deg);
}

.entry-character.mascot-motion.from-right .char-img {
  transform: translate3d(110vw, 0, 0) rotate(7deg);
}

.mascot-motion.is-mascot-visible .char-img {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0);
  animation: mascotCharacterWiggle 5.8s ease-in-out .85s infinite;
}

.mascot-motion.from-right.is-mascot-visible .char-img,
.entry-character-right.mascot-motion.is-mascot-visible .char-img {
  animation-name: mascotCharacterWiggleReverse;
}

@keyframes mascotCharacterWiggle {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  35% {
    transform: translate3d(8px, -4px, 0) rotate(2deg);
  }

  70% {
    transform: translate3d(-3px, 2px, 0) rotate(-1deg);
  }
}

@keyframes mascotCharacterWiggleReverse {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  35% {
    transform: translate3d(-8px, -4px, 0) rotate(-2deg);
  }

  70% {
    transform: translate3d(3px, 2px, 0) rotate(1deg);
  }
}

.entry {
  overflow: hidden;
}

.movie-frame::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -12px;
  z-index: 1;
  width: 88px;
  aspect-ratio: 1 / 1.25;
  background: url("../character/yamatokouki_kansei-1.png") center bottom / contain no-repeat;
  pointer-events: none;
  opacity: .88;
  transform-origin: 50% 100%;
  animation: mascotPeek 4.8s ease-in-out infinite;
}

@keyframes mascotPeek {
  0%, 100% {
    transform: translate3d(0, 16px, 0) rotate(-2deg);
  }

  42% {
    transform: translate3d(0, 0, 0) rotate(2deg);
  }

  58% {
    transform: translate3d(-4px, 0, 0) rotate(-1deg);
  }
}

@media (max-width: 760px) {
  .hero-entry-bridge .button-primary {
    width: 100%;
    min-height: 72px;
    padding-inline: 28px;
    font-size: 19px;
  }

  .entry .button-primary {
    width: 100%;
    min-height: 78px;
    font-size: 25px;
  }

  .mascot-motion.from-left .char-img {
    transform: translate3d(-72px, 0, 0) rotate(-4deg);
  }

  .mascot-motion.from-right .char-img {
    transform: translate3d(72px, 0, 0) rotate(4deg);
  }

  .entry-character.mascot-motion.from-left .char-img {
    transform: translate3d(-110vw, 0, 0) rotate(-7deg);
  }

  .entry-character.mascot-motion.from-right .char-img {
    transform: translate3d(110vw, 0, 0) rotate(7deg);
  }

  .mascot-motion.is-mascot-visible .char-img {
    transform: translate3d(0, 0, 0) rotate(0);
  }

  .movie-frame::after {
    right: -4px;
    bottom: -8px;
    width: 58px;
    opacity: .82;
  }
}

/* Entry01 asset application and transparent fixed header. */
.site-header {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.header-cta,
.yamato-recruit-lp a.button-primary[href="#entry-form"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1832 / 856;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: url("../images/entry01.png") center / contain no-repeat;
  box-shadow: none;
  color: transparent !important;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
  overflow: visible;
  white-space: nowrap;
}

.header-cta {
  width: 156px;
  min-height: 0;
  filter: drop-shadow(0 8px 16px rgba(0, 55, 46, .18));
}

.hero-entry-bridge .hero-actions {
  grid-template-columns: minmax(260px, 360px);
  justify-items: center;
}

.hero-entry-bridge .hero-actions .button-primary,
.hero-entry-bridge .button-primary {
  width: min(100%, 340px);
  min-height: 0;
}

.entry .button-primary,
.closing-cta .button-primary {
  width: min(100%, 420px);
  min-height: 0;
}

.hero-entry-bridge .button-primary::after,
.entry .button-primary::after,
.closing-cta .button-primary::after,
.header-cta::after {
  display: none !important;
  content: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .header-cta:hover,
  .yamato-recruit-lp a.button-primary[href="#entry-form"]:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 10px 18px rgba(0, 55, 46, .22));
  }
}

@media (max-width: 760px) {
  .site-header {
    background: transparent;
  }

  .header-cta {
    width: 116px;
  }

  .hero-entry-bridge .hero-actions {
    grid-template-columns: 1fr;
  }

  .hero-entry-bridge .hero-actions .button-primary,
  .hero-entry-bridge .button-primary {
    width: min(100%, 320px);
  }

  .entry .button-primary,
  .closing-cta .button-primary {
    width: min(100%, 355px);
  }
}

/* Final CTA asset split and mascot integration pass. */
.hero-entry-bridge {
  display: block;
  width: min(390px, 100%);
  margin-top: 28px;
}

.hero-entry-bridge img {
  display: none !important;
}

.hero-entry-bridge .hero-actions {
  display: block;
  width: min(390px, 100%);
}

.entry-button {
  aspect-ratio: 1560 / 856;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.entry-button-header {
  background-image: url("../images/entry01.png");
}

.entry-button-fv {
  background-image: url("../images/entry02.png") !important;
}

.entry-button-entry {
  background-image: url("../images/entry03.png") !important;
}

.entry-button-closing {
  background-image: url("../images/entry01.png") !important;
}

.header-cta,
.yamato-recruit-lp a.entry-button[href="#entry-form"] {
  background-color: transparent !important;
}

.hero-entry-bridge .button-primary,
.hero-entry-bridge .hero-actions .button-primary {
  width: min(100%, 390px);
}

.entry .button-primary {
  width: min(100%, 440px);
}

.closing-cta .button-primary {
  width: min(100%, 410px);
}

.hero-character.guide-pop {
  display: flex !important;
  position: absolute;
  top: clamp(112px, 12vw, 168px);
  right: clamp(18px, 5vw, 72px);
  bottom: auto;
  z-index: 5;
  width: auto;
  align-items: center;
  gap: 16px;
  pointer-events: none;
  transform: translate3d(24px, 0, 0);
  animation: heroGuidePeekIn .82s cubic-bezier(.2, .78, .24, 1) .35s both;
}

.hero-character .char-img,
.guide-note .char-img,
.section-guide .char-img,
.entry-character .char-img {
  width: clamp(118px, 12vw, 168px);
}

.hero-character .speech {
  min-width: 210px;
  max-width: 278px;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.58;
  align-self: center;
  margin: 0;
  transform: none;
  box-shadow: 0 10px 22px rgba(0, 68, 96, .13);
}

@keyframes heroGuidePeekIn {
  0% {
    opacity: 0;
    transform: translate3d(96px, 0, 0) rotate(2deg);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0);
  }
}

.entry-character .speech {
  min-width: 190px;
  padding: 15px 18px;
  font-size: 14px;
  line-height: 1.58;
}

.feature-numbers {
  overflow: visible;
}

.feature-numbers > div {
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.feature-numbers > div > * {
  position: relative;
  z-index: 2;
}

.feature-numbers > div::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 82px;
  aspect-ratio: 1 / 1.18;
  background: url("../character/yamato-character-guide.png") center bottom / contain no-repeat;
  opacity: .72;
  pointer-events: none;
  transform-origin: 50% 100%;
  animation: cardMascotPeek 5.6s ease-in-out infinite;
}

.feature-numbers > div:nth-child(2n)::after {
  right: -34px;
  bottom: 14px;
}

.feature-numbers > div:nth-child(2n + 1)::after {
  left: -38px;
  bottom: 12px;
  background-image: url("../character/yamato-character-power.png");
  transform: scaleX(-1);
  animation-name: cardMascotPeekLeft;
}

.feature-numbers > div:nth-child(1)::after,
.feature-numbers > div:nth-child(4)::after,
.feature-numbers > div:nth-child(7)::after {
  display: none;
}

@keyframes cardMascotPeek {
  0%, 100% { transform: translate3d(10px, 8px, 0) rotate(-1deg); }
  45% { transform: translate3d(0, 0, 0) rotate(1deg); }
  62% { transform: translate3d(-3px, 0, 0) rotate(0); }
}

@keyframes cardMascotPeekLeft {
  0%, 100% { transform: translate3d(-10px, 8px, 0) scaleX(-1) rotate(1deg); }
  45% { transform: translate3d(0, 0, 0) scaleX(-1) rotate(-1deg); }
  62% { transform: translate3d(3px, 0, 0) scaleX(-1) rotate(0); }
}

@media (max-width: 760px) {
  .hero-entry-bridge,
  .hero-entry-bridge .hero-actions {
    width: min(100%, 350px);
    margin-inline: auto;
  }

  .hero-entry-bridge .button-primary,
  .hero-entry-bridge .hero-actions .button-primary {
    width: min(100%, 350px);
  }

  .hero-character.guide-pop {
    top: auto;
    right: 14px;
    bottom: 204px;
    z-index: 6;
    gap: 10px;
  }

  .hero-character .char-img,
  .guide-note .char-img,
  .section-guide .char-img,
  .entry-character .char-img {
    width: clamp(104px, 28vw, 136px);
  }

  .hero-character .speech {
    min-width: 176px;
    max-width: 222px;
    padding: 13px 15px;
    font-size: 13px;
    line-height: 1.55;
  }

  .entry-character .speech {
    min-width: 150px;
    padding: 12px 14px;
    font-size: 12px;
  }

  .feature-numbers > div::after {
    width: 66px;
    opacity: .62;
  }

  .feature-numbers > div:nth-child(2n)::after {
    right: -22px;
    bottom: 10px;
  }

  .feature-numbers > div:nth-child(2n + 1)::after {
    left: -24px;
    bottom: 10px;
  }
}

/* Keep the FV photo clean; speech mascots remain in CTA/guide areas. */
.hero-character.guide-pop {
  display: none !important;
}

.entry-character {
  width: 190px;
}

.entry-character-right {
  width: 174px;
}

@media (max-width: 760px) {
  .entry-character {
    width: 148px;
  }

.entry-character-right {
  width: 136px;
  }
}

/* Latest CTA/character balance refinements. */
.entry-button {
  aspect-ratio: 1656 / 856;
}

.header-cta {
  width: clamp(172px, 14vw, 230px);
  margin-top: 12px;
  transform: translateY(10px);
}

.hero-entry-bridge,
.hero-entry-bridge .hero-actions {
  width: min(430px, 100%);
}

.hero-entry-bridge .button-primary,
.hero-entry-bridge .hero-actions .button-primary {
  width: min(100%, 430px);
}

.entry .button-primary {
  width: min(100%, 470px);
}

.closing-cta .button-primary {
  width: min(100%, 440px);
}

.entry-character .speech {
  min-width: 230px;
  max-width: 280px;
  padding: 18px 22px;
  font-size: 15px;
  line-height: 1.62;
}

.feature-illust {
  width: clamp(86px, 8vw, 116px);
  height: clamp(86px, 8vw, 116px);
  object-fit: contain;
  margin-bottom: 16px;
}

.feature-numbers > div::after {
  display: none !important;
  content: none !important;
  background-image: none !important;
  animation: none !important;
}

@media (max-width: 760px) {
  .header-cta {
    width: clamp(134px, 38vw, 162px);
    margin-top: 8px;
    transform: translateY(8px);
  }

  .hero-entry-bridge,
  .hero-entry-bridge .hero-actions,
  .hero-entry-bridge .button-primary,
  .hero-entry-bridge .hero-actions .button-primary {
    width: min(100%, 354px);
  }

  .entry .button-primary,
  .closing-cta .button-primary {
    width: min(100%, 360px);
  }

  .entry-character .speech {
    min-width: 168px;
    max-width: 190px;
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.6;
  }

  .feature-illust {
    width: 96px;
    height: 96px;
    margin-bottom: 14px;
  }
}

/* Requested polish: nav cleanup, frameless FV CTA, tighter middle CTA, speech balance. */
.site-header {
  overflow: visible;
}

.header-nav {
  gap: clamp(14px, 1.6vw, 24px);
}

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

.header-cta {
  width: clamp(190px, 15vw, 246px);
  margin-top: 42px;
  transform: none;
}

.hero-entry-bridge {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.hero-entry-bridge .hero-actions {
  padding: 0 !important;
}

.entry {
  min-height: auto;
  padding: clamp(72px, 8vw, 108px) 0 clamp(64px, 7vw, 92px);
}

.entry-inner {
  grid-template-columns: minmax(250px, 320px) 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.entry-characters {
  min-height: 300px;
}

.entry-character {
  width: 168px;
}

.entry-character-right {
  width: 154px;
}

.entry-character .speech {
  min-width: 258px;
  max-width: 340px;
  padding: 22px 26px;
  font-size: 17px;
  line-height: 1.64;
}

@media (max-width: 1120px) {
  .header-nav {
    gap: 12px;
  }

  .header-nav a {
    font-size: 13px;
  }

  .header-cta {
    width: clamp(166px, 14vw, 204px);
  }
}

@media (max-width: 760px) {
  .header-cta {
    width: clamp(146px, 40vw, 176px);
    margin-top: 24px;
    transform: none;
  }

  .entry {
    padding: 64px 0 58px;
  }

  .entry-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .entry-characters {
    min-height: 218px;
    width: min(318px, 100%);
    margin-inline: auto;
  }

  .entry-character {
    width: 126px;
  }

  .entry-character-right {
    width: 116px;
  }

  .entry-character .speech {
    min-width: 188px;
    max-width: 232px;
    padding: 16px 18px;
    font-size: 14px;
    line-height: 1.62;
  }

  .entry-character-right .speech {
    transform: translateX(-88px);
  }
}

/* Tight spacing pass after CTA asset update. */
.site-header {
  min-height: 88px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.header-cta {
  width: clamp(188px, 14.5vw, 236px);
  margin-top: 56px;
}

.hero-entry-bridge {
  margin-top: 18px;
}

.hero-lead {
  margin-bottom: 14px;
}

.entry {
  padding: clamp(58px, 6.6vw, 86px) 0 clamp(52px, 5.8vw, 74px);
}

.entry-inner {
  grid-template-columns: minmax(300px, 380px) 1fr;
  gap: clamp(18px, 3vw, 36px);
}

.entry-characters {
  min-height: 270px;
}

.entry-character {
  width: 152px;
}

.entry-character-right {
  top: 8px;
  right: 0;
  bottom: auto;
  width: 140px;
}

.entry-character-left {
  left: 0;
  bottom: 0;
}

.entry-character .speech {
  min-width: 278px;
  max-width: 350px;
  padding: 24px 28px;
  font-size: 18px;
  line-height: 1.62;
}

.entry-character-right .speech {
  transform: translateX(-128px);
}

.entry-copy > p:not(.eyebrow):not(.entry-note) {
  margin-bottom: 18px;
}

@media (max-width: 1120px) {
  .site-header {
    min-height: 82px;
  }

  .header-cta {
    margin-top: 48px;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 78px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .header-cta {
    width: clamp(142px, 38vw, 166px);
    margin-top: 34px;
  }

  .hero-entry-bridge {
    margin-top: 14px;
  }

  .entry {
    padding: 54px 0 48px;
  }

  .entry-inner {
    gap: 12px;
  }

  .entry-characters {
    min-height: 204px;
    width: min(330px, 100%);
  }

  .entry-character {
    width: 112px;
  }

  .entry-character-right {
    top: 0;
    width: 104px;
  }

  .entry-character .speech {
    min-width: 206px;
    max-width: 248px;
    padding: 18px 20px;
    font-size: 15px;
    line-height: 1.6;
  }

  .entry-character-right .speech {
    transform: translateX(-112px);
  }

  .entry-copy > p:not(.eyebrow):not(.entry-note) {
    margin-bottom: 14px;
  }
}

/* Stabilize middle CTA mascots: larger speech, smaller characters, no overlap. */
.entry-characters {
  display: grid;
  gap: 14px;
  align-content: center;
  min-height: 0;
}

.entry-character,
.entry-character-right {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  max-width: none !important;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  text-align: left;
  opacity: 1;
  transform: none !important;
}

.entry-character.mascot-motion,
.entry-character.mascot-motion.from-left,
.entry-character.mascot-motion.from-right,
.entry-character.mascot-motion.is-mascot-visible {
  width: 100% !important;
  max-width: none !important;
  transform: none !important;
}

.entry-character-right {
  grid-template-columns: minmax(0, 1fr) 78px;
}

.entry-character .char-img {
  width: 82px !important;
  max-width: 82px;
  justify-self: center;
  opacity: 1 !important;
  transform: none !important;
  animation: characterFloat 4.6s ease-in-out infinite !important;
}

.entry-character-right .char-img {
  order: 2;
  width: 78px !important;
  max-width: 78px;
  animation-name: characterWave !important;
}

.entry-character .speech {
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 22px 24px;
  font-size: 18px;
  line-height: 1.62;
  transform: none !important;
}

.entry-character-left .speech {
  order: 2;
}

.entry-character-right .speech {
  order: 1;
}

@media (max-width: 760px) {
  .entry-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .entry-copy {
    order: 1;
    width: 100%;
  }

  .entry-characters {
    order: 2;
    gap: 10px;
    width: min(340px, 100%);
    margin: 10px auto 0;
  }

  .entry-character,
  .entry-character-right {
    display: flex !important;
    width: min(100%, 340px) !important;
    flex-direction: row;
    gap: 9px;
  }

  .entry-character-right {
    flex-direction: row-reverse;
  }

  .entry-character .char-img {
    width: 66px !important;
    max-width: 66px;
  }

  .entry-character-right .char-img {
    width: 62px !important;
    max-width: 62px;
  }

  .entry-character .speech {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    padding: 16px 17px;
    font-size: 15px;
    line-height: 1.58;
  }
}

/* Final requested CTA and speech sizing adjustments. */
.entry-button-header {
  background-image: url("../images/entry_header.png") !important;
}

.hero-entry-bridge,
.hero-entry-bridge .hero-actions,
.hero-entry-bridge .button-primary,
.hero-entry-bridge .hero-actions .button-primary {
  width: min(100%, 404px);
}

.entry .button-primary {
  width: min(100%, 426px);
}

.closing-cta .button-primary {
  width: min(100%, 396px);
}

.guide-note,
.section-guide {
  gap: 18px;
  padding: 18px 22px;
}

.guide-note p,
.section-guide p,
.guide-note-dark p {
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.58;
}

.movie-guide .char-img,
.guide-note .char-img,
.section-guide .char-img {
  width: clamp(126px, 12vw, 172px);
}

.entry {
  padding: clamp(44px, 5.2vw, 70px) 0 clamp(42px, 4.8vw, 64px);
}

.entry-inner {
  gap: clamp(14px, 2.5vw, 30px);
}

.entry-characters {
  gap: 10px;
}

.entry-character .char-img {
  width: 76px !important;
  max-width: 76px;
}

.entry-character-right .char-img {
  width: 72px !important;
  max-width: 72px;
}

.entry-character .speech {
  padding: 24px 28px;
  font-size: 19px;
  line-height: 1.62;
}

.entry-copy > p:not(.eyebrow):not(.entry-note) {
  margin-bottom: 14px;
}

@media (max-width: 760px) {
  .hero-entry-bridge,
  .hero-entry-bridge .hero-actions,
  .hero-entry-bridge .button-primary,
  .hero-entry-bridge .hero-actions .button-primary,
  .entry .button-primary,
  .closing-cta .button-primary {
    width: min(100%, 332px);
  }

  .guide-note,
  .section-guide {
    gap: 12px;
    padding: 16px 18px;
  }

  .guide-note p,
  .section-guide p,
  .guide-note-dark p {
    font-size: 16px;
    line-height: 1.58;
  }

  .movie-guide .char-img,
  .guide-note .char-img,
  .section-guide .char-img {
    width: clamp(104px, 30vw, 132px);
  }

  .entry {
    padding: 44px 0 42px;
  }

  .entry-inner {
    gap: 8px;
  }

  .entry-characters {
    gap: 8px;
    margin-top: 6px;
  }

  .entry-character .char-img {
    width: 60px !important;
    max-width: 60px;
  }

  .entry-character-right .char-img {
    width: 58px !important;
    max-width: 58px;
  }

  .entry-character .speech {
    padding: 17px 19px;
    font-size: 16px;
    line-height: 1.58;
  }
}

/* Final micro-adjustments: CTA hover, compact guide spacing, one-column outline. */
@media (hover: hover) and (pointer: fine) {
  .header-cta:hover,
  .header-cta:focus-visible {
    opacity: .78;
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
  }
}

.header-cta:hover,
.header-cta:focus-visible {
  opacity: .78 !important;
  box-shadow: none !important;
  filter: none !important;
}

.hero-entry-bridge,
.hero-entry-bridge .hero-actions,
.hero-entry-bridge .button-primary,
.hero-entry-bridge .hero-actions .button-primary {
  width: min(100%, 370px) !important;
}

.entry .button-primary {
  width: min(100%, 382px) !important;
}

.closing-cta .button-primary {
  width: min(100%, 358px) !important;
}

.yamato-recruit-lp .entry-button-entry {
  width: min(100%, 382px) !important;
  inline-size: min(100%, 382px) !important;
  max-width: 382px !important;
  min-width: 0 !important;
  flex: 0 0 auto;
  margin-inline: auto;
}

.yamato-recruit-lp .entry-button-closing {
  width: min(100%, 358px) !important;
  inline-size: min(100%, 358px) !important;
  max-width: 358px !important;
  min-width: 0 !important;
  flex: 0 0 auto;
  margin-inline: auto;
}

.guide-note,
.section-guide {
  gap: 10px;
  padding: 14px 18px;
}

.guide-note p,
.section-guide p,
.guide-note-dark p {
  margin: 0;
}

.movie-guide .char-img,
.guide-note .char-img,
.section-guide .char-img {
  flex: 0 0 auto;
}

.entry-characters {
  gap: 6px;
}

.entry-character,
.entry-character-right {
  gap: 8px;
}

.entry-character .speech {
  padding: 20px 24px;
}

.outline-grid {
  display: block;
}

.outline-grid > .reveal:first-child {
  max-width: 880px;
  margin: 0 auto 28px;
  text-align: center;
}

.outline-grid > .reveal:first-child .guide-note {
  width: min(640px, 100%);
  margin: 22px auto 0;
  justify-content: center;
  text-align: left;
}

.outline-table-wrap {
  width: min(1040px, 100%);
  margin: 0 auto;
}

@media (max-width: 760px) {
  .hero-entry-bridge,
  .hero-entry-bridge .hero-actions,
  .hero-entry-bridge .button-primary,
  .hero-entry-bridge .hero-actions .button-primary,
  .entry .button-primary,
  .closing-cta .button-primary {
    width: min(100%, 292px) !important;
  }

  .yamato-recruit-lp .entry-button-entry,
  .yamato-recruit-lp .entry-button-closing {
    width: min(100%, 292px) !important;
    inline-size: min(100%, 292px) !important;
    max-width: 292px !important;
    min-width: 0 !important;
    flex-basis: 292px !important;
    margin-inline: auto;
  }

  .guide-note,
  .section-guide {
    gap: 8px;
    padding: 13px 15px;
  }

  .entry-characters {
    gap: 6px;
    margin-top: 4px;
  }

  .entry-character,
  .entry-character-right {
    gap: 7px;
  }

  .entry-character .speech {
    padding: 16px 18px;
  }

  .outline-grid > .reveal:first-child {
    margin-bottom: 22px;
    text-align: left;
  }

  .outline-grid > .reveal:first-child .guide-note {
    margin-top: 16px;
  }
}

/* Latest mobile readability and tab usability refinements. */
.outline-tab-lead {
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.75;
  font-weight: 900;
}

.outline-tabs {
  gap: clamp(12px, 2vw, 18px);
}

.outline-tab {
  min-height: 64px;
  padding: 18px 34px;
  font-size: clamp(18px, 1.55vw, 23px);
  font-weight: 950;
}

.entry-characters {
  margin-bottom: 0;
}

.entry-copy {
  margin-top: 0;
}

@media (max-width: 760px) {
  .header-cta {
    width: clamp(158px, 44vw, 190px);
  }

  .hero-inner {
    width: min(100% - 24px, 1200px);
  }

  .hero-copy {
    width: 100%;
    max-width: none;
    text-align: center;
    align-items: center;
  }

  .hero-copy .eyebrow {
    margin-inline: auto;
  }

  .hero h1 {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    font-size: clamp(56px, 16.8vw, 72px);
    line-height: .96;
    text-align: center;
  }

  .hero-lead {
    margin-inline: auto;
    text-align: center;
  }

  .hero-entry-bridge,
  .hero-entry-bridge .hero-actions,
  .hero-entry-bridge .button-primary,
  .hero-entry-bridge .hero-actions .button-primary,
  .entry .button-primary,
  .closing-cta .button-primary,
  .yamato-recruit-lp .entry-button-entry,
  .yamato-recruit-lp .entry-button-closing {
    width: min(100%, 346px) !important;
    inline-size: min(100%, 346px) !important;
    max-width: 346px !important;
  }

  .movie-guide .char-img {
    display: none !important;
  }

  .movie-guide {
    min-height: 0;
    justify-content: center;
  }

  .movie-guide p {
    width: 100%;
    max-width: none;
    text-align: center;
  }

  .movie-grid {
    gap: 20px;
  }

  .movie-copy {
    margin-bottom: 0;
  }

  .movie-copy .guide-note,
  .section-guide,
  .guide-note {
    margin-bottom: 8px;
  }

  .feature-numbers {
    gap: 18px;
  }

  .feature-numbers > div,
  .feature-numbers div,
  .feature-numbers div:nth-child(3) {
    padding: 28px 22px;
    min-height: 0;
  }

  .feature-illust {
    width: 132px;
    height: 132px;
    margin-bottom: 18px;
  }

  .feature-numbers strong {
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1.05;
  }

  .feature-numbers span {
    font-size: 17px;
    line-height: 1.35;
  }

  .feature-numbers small {
    font-size: 15px;
    line-height: 1.65;
  }

  .entry {
    background-size: auto 132%;
    background-position: 50% 42%;
  }

  .entry-characters {
    margin-top: 0;
    margin-bottom: -2px;
  }

  .entry-character,
  .entry-character-right {
    margin: 0;
  }

  .outline-tab-lead {
    font-size: 16px;
    line-height: 1.7;
    text-align: center;
  }

  .outline-tabs {
    gap: 10px;
  }

  .outline-tab {
    flex: 1 1 0;
    min-height: 58px;
    padding: 15px 12px;
    font-size: 17px;
  }
}

/* Final correction: keep guide mascot, remove floating movie mascot, tune tabs and FV wrap. */
.outline-tab {
  min-width: 220px;
  min-height: 50px;
  padding: 11px 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
}

.outline-tabs {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  justify-content: center;
}

.outline-tab:hover,
.outline-tab:focus-visible {
  border-color: #0783c5;
  color: #005a88;
  box-shadow: 0 0 0 3px rgba(7, 131, 197, .14);
}

.outline-tab.is-active:hover,
.outline-tab.is-active:focus-visible,
.outline-tab[aria-selected="true"]:hover,
.outline-tab[aria-selected="true"]:focus-visible {
  border-color: #006da8;
  color: #fff;
}

/* Final alignment pass for outline lead and guide mascots. */
.outline-tab-lead {
  text-align: center;
}

.appeal .section-guide,
.interview .section-guide {
  width: 100% !important;
  max-width: 100%;
  margin: 24px auto 0 !important;
  justify-content: center;
}

@media (max-width: 760px) {
  .appeal .section-guide,
  .interview .section-guide {
    width: 100% !important;
    max-width: 100%;
    margin-inline: auto !important;
  }

  .outline-tabs {
    width: min(100%, 340px);
    flex-wrap: nowrap;
  }

  .outline-tab {
    flex: 1 1 calc((100% - 10px) / 2);
    min-width: 0;
    max-width: none;
  }
}

.entry-character .speech::after {
  display: none !important;
  content: none !important;
}

@media (max-width: 760px) {
  .hero h1 {
    font-size: clamp(54px, 15.6vw, 68px);
    letter-spacing: 0;
  }

  .hero-copy {
    position: relative;
    top: -70px;
    transform: none;
  }

  .hero-lead {
    padding: 18px 20px;
    font-size: clamp(17px, 4.5vw, 20px);
    line-height: 1.75;
  }

  .hero-nowrap {
    display: inline-block;
    white-space: nowrap;
  }

  .movie-guide .char-img {
    display: block !important;
    width: clamp(106px, 30vw, 132px);
    max-width: clamp(106px, 30vw, 132px);
    margin: 0;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .movie-guide {
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    overflow: visible;
    padding-inline: 12px;
  }

  .movie-guide p {
    width: auto;
    flex: 1 1 auto;
    text-align: left;
  }

  .movie-frame::after {
    display: none !important;
    content: none !important;
  }

  .feature-numbers strong,
  .feature-numbers div:nth-child(3) strong {
    font-size: clamp(36px, 10vw, 44px) !important;
    line-height: 1.05;
  }

  .outline-tabs {
    justify-content: center;
    align-items: center;
  }

  .outline-tab {
    flex: 0 1 160px;
    min-width: 154px;
    min-height: 48px;
    padding: 10px 20px;
    justify-content: center;
    text-align: center;
  }
}

/* Last-pass overrides for public utility pages and footer SNS alignment. */
.movie-guide {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  width: min(100%, 560px) !important;
  margin: 24px auto 0 !important;
  justify-content: center !important;
  gap: 12px !important;
}

.movie-guide p {
  width: min(100%, 360px) !important;
  text-align: left !important;
}

.movie-guide .char-img {
  transform: none !important;
  margin: 0 !important;
}

@media (min-width: 761px) {
  .movie-guide {
    transform: translateX(clamp(0px, calc((min(1180px, calc(100vw - 56px)) - 860px) / 2), 160px)) !important;
  }
}

.footer-sns {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .movie-guide {
    width: min(100%, 440px) !important;
    margin-inline: auto !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-align: center;
  }

  .movie-guide p {
    width: auto !important;
    flex: 0 1 auto !important;
    text-align: left !important;
  }

  .footer-sns {
    flex: 0 0 100%;
    width: 100%;
    margin-top: 2px;
  }
}

@media (max-width: 760px) {
  .entry {
    background:
      linear-gradient(90deg, rgba(0, 31, 49, .78), rgba(0, 72, 100, .54)),
      url("../images/cta-dsc06903.webp") center center / cover no-repeat !important;
  }
}
