:root {
  --blue: #03629C;
  --blue-deep: #024A75;
  --blue-soft: #EAF3F9;
  --gold: #8B732D;
  --gold-light: #B89A5A;
  --ink: #1B2430;
  --muted: #5C6672;
  --line: #D8E2EA;
  --white: #FFFFFF;
  --font-en: 'Oswald', sans-serif;
  --font-sans: 'Noto Sans JP', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.85;
  overflow-x: hidden;
  font-size: 15px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { border: none; background: none; cursor: pointer; }
ul { list-style: none; }

.container {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

/* ===== Header (mobile first) ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, height 0.3s;
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 16px rgba(2, 74, 117, 0.08);
}
.header__inner {
  height: 100%;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 210;
}
.header__logo img { height: 36px; width: auto; }
.header__logo span {
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
}
.header__nav {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  z-index: 205;
}
.header__nav.is-open { transform: translateX(0); }
.header__nav a {
  opacity: 0;
  transform: translateY(12px);
  transition: color 0.25s, opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.header__nav.is-open a {
  opacity: 1;
  transform: none;
}
.header__nav.is-open a:nth-child(1) { transition-delay: 0.05s; }
.header__nav.is-open a:nth-child(2) { transition-delay: 0.1s; }
.header__nav.is-open a:nth-child(3) { transition-delay: 0.15s; }
.header__nav.is-open a:nth-child(4) { transition-delay: 0.2s; }
.header__nav.is-open a:nth-child(5) { transition-delay: 0.25s; }
.header__nav.is-open a:nth-child(6) { transition-delay: 0.3s; }
.header__nav a:hover,
.header__nav a.is-current { color: var(--blue); }
.header__cta {
  padding: 14px 28px;
  background: var(--blue);
  color: #fff !important;
  border-radius: 4px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.header__menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px 9px;
  z-index: 210;
  -webkit-tap-highlight-color: transparent;
}
.header__menu span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}
.header__menu.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.header__menu.is-active span:nth-child(2) { opacity: 0; }
.header__menu.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 48px) 0 64px;
  overflow: hidden;
  color: #fff;
}
.hero--page {
  min-height: 42svh;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 48px;
}
.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  filter: grayscale(0.2);
  animation: heroZoom 8s var(--ease) forwards;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(2, 74, 117, 0.9) 0%, rgba(3, 98, 156, 0.7) 55%, rgba(3, 98, 156, 0.55) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}
.hero__label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}
.hero__title {
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.35s forwards;
}
.hero__lead {
  font-size: 0.9375rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.5s forwards;
  margin-bottom: 28px;
}
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.65s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* Home hero — staggered reveal after opener */
.hero--home {
  min-height: clamp(620px, 78svh, 760px);
  align-items: flex-end;
  padding: calc(var(--header-h) + 40px) 0 72px;
}
.hero--home .hero__bg img {
  filter: grayscale(0.15);
  transform: scale(1.1);
  animation: none;
}
.hero--home.is-ready .hero__bg img {
  animation: heroZoom 10s var(--ease) forwards;
}
.hero--home .hero__overlay {
  background: linear-gradient(160deg, rgba(2, 74, 117, 0.9) 0%, rgba(3, 98, 156, 0.72) 55%, rgba(3, 98, 156, 0.58) 100%);
}
.hero--home .hero__label,
.hero--home .hero__title,
.hero--home .hero__lead,
.hero--home .hero__actions {
  opacity: 0;
  animation: none;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.hero--home.is-ready .hero__label {
  opacity: 1;
  transform: none;
  transition-delay: 0.05s;
}
.hero--home.is-ready .hero__title {
  opacity: 1;
  transform: none;
  transition-delay: 0.2s;
}
.hero--home.is-ready .hero__lead {
  opacity: 1;
  transform: none;
  transition-delay: 0.35s;
}
.hero--home.is-ready .hero__actions {
  opacity: 1;
  transform: none;
  transition-delay: 0.5s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 4px;
  transition: transform 0.3s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-light); box-shadow: 0 8px 20px rgba(139, 115, 45, 0.28); }
.btn--line { border: 1.5px solid rgba(255,255,255,0.75); color: #fff; }
.btn--line:hover { background: #fff; color: var(--blue); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); box-shadow: 0 8px 20px rgba(3, 98, 156, 0.28); }
.btn--full { width: 100%; }

/* Breadcrumb */
.crumb {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 0;
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.crumb a:hover { color: var(--blue); }

/* Sections */
.section { padding: 64px 0; }
.section--tint { background: var(--blue-soft); }
.section-head { margin-bottom: 36px; }
.section-head__en {
  display: block;
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.section-head h2 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  color: var(--blue-deep);
  letter-spacing: 0.08em;
}
.section-head p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Flow blocks */
.flow-block { display: grid; gap: 20px; }
.flow-block__num {
  font-family: var(--font-en);
  font-size: 2.75rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.04em;
}
.flow-block__head h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-deep);
  letter-spacing: 0.08em;
}
.flow-block__en {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.flow-list li {
  position: relative;
  padding: 0 0 24px 20px;
}
.flow-list li:last-child { padding-bottom: 0; }
.flow-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
.flow-list h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 6px;
}
.flow-list p { font-size: 0.875rem; color: var(--muted); }

.lead-prose {
  max-width: 720px;
  margin: 0 auto;
}
.lead-prose p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.95;
  margin-bottom: 16px;
}
.lead-prose p:last-child { margin-bottom: 0; }
.lead-prose__quote {
  font-size: 1.25rem !important;
  font-weight: 700;
  color: var(--blue-deep) !important;
  letter-spacing: 0.06em;
  line-height: 1.7 !important;
}
.flow-block__body p { color: var(--muted); margin-bottom: 12px; }
.flow-block__body p:last-child { margin-bottom: 0; }
.flow-block__body ul {
  list-style: disc;
  padding-left: 1.2em;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.flow-block__body li { margin-bottom: 8px; line-height: 1.7; }
.promise-grid {
  display: grid;
  gap: 14px;
}
.promise-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 20px;
}
.promise-card h3 {
  font-size: 1.0625rem;
  color: var(--blue-deep);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.promise-card p {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Home feature cards */
.feature-grid {
  display: grid;
  gap: 14px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 20px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(2, 74, 117, 0.1);
  border-color: rgba(3, 98, 156, 0.35);
}
.feature-card__num {
  font-family: var(--font-en);
  font-size: 1.5rem;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}
.feature-card h3 {
  font-size: 1.125rem;
  color: var(--blue-deep);
  margin-bottom: 8px;
}
.feature-card p { font-size: 0.875rem; color: var(--muted); }

/* Service rows */
.service-row {
  display: grid;
  gap: 8px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s var(--ease);
}
.service-row:first-child { border-top: 1px solid var(--line); }
.service-row:hover { padding-left: 8px; }
.service-row__num {
  font-family: var(--font-en);
  color: var(--gold);
  font-size: 1.125rem;
}
.service-row h3 {
  font-size: 1.0625rem;
  color: var(--blue-deep);
  font-weight: 700;
}
.service-row p { font-size: 0.875rem; color: var(--muted); }

/* Company table */
.company__list { border-top: 1px solid var(--line); }
.company__row {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.company__row dt { font-weight: 700; color: var(--blue); }
.company__row dd { color: var(--muted); line-height: 1.75; word-break: break-word; }
.company-map {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.company-map__title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 10px;
}
.company-map__addr {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.7;
}
.company-map__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--blue-soft);
}
.company-map__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.company-map__link {
  margin-top: 12px;
  font-size: 0.8125rem;
}
.company-map__link a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.message-box {
  background: #fff;
  border-left: 3px solid var(--gold);
  padding: 24px 20px;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 10px 30px rgba(2, 74, 117, 0.06);
}
.message-box__quote {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.message-box p { font-size: 0.9375rem; color: var(--muted); margin-bottom: 12px; }
.message-box p:last-of-type { margin-bottom: 0; }
.message-sign {
  display: block;
  margin: 14px auto 0;
  width: min(280px, 88%);
  height: 96px;
  object-fit: cover;
  object-position: center;
}

.message-layout {
  display: grid;
  gap: 24px;
  align-items: start;
}
.message-photo {
  margin: 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(2, 74, 117, 0.08);
  max-width: 420px;
}
.message-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}
.message-teaser .message-box p:last-of-type { margin-bottom: 0; }
.message-teaser__fade {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
}
.message-teaser__meta {
  font-size: 0.8125rem !important;
  color: var(--blue-deep) !important;
  letter-spacing: 0.06em;
  margin: 16px 0 0 !important;
}
.message-teaser__action {
  position: relative;
  z-index: 5;
  text-align: center;
  margin-top: 28px;
}
.message-teaser__action .btn {
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

/* CTA band */
.cta-band {
  padding: 56px 0;
  background: linear-gradient(165deg, #F7FBFD, var(--blue-soft));
  text-align: center;
}
.cta-band__en {
  font-family: var(--font-en);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.75rem;
  margin-bottom: 8px;
}
.cta-band h2 {
  font-size: 1.5rem;
  color: var(--blue-deep);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.cta-band p { color: var(--muted); font-size: 0.875rem; margin-bottom: 28px; }
.cta-btns {
  display: grid;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
  grid-template-columns: 1fr;
}
.cta-btn {
  display: block;
  background: var(--blue);
  color: #fff;
  border-radius: 10px;
  padding: 16px 18px;
  transition: background 0.25s, transform 0.3s var(--ease), box-shadow 0.25s;
  box-shadow: 0 8px 22px rgba(3, 98, 156, 0.2);
}
.cta-btn:hover {
  background: var(--blue-deep);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(3, 98, 156, 0.28);
}
.cta-btn__sub { display: block; font-size: 0.75rem; opacity: 0.9; margin-bottom: 4px; }
.cta-btn__main { display: block; font-size: 1rem; font-weight: 700; }

/* Form */
.form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 18px;
  box-shadow: 0 12px 36px rgba(2, 74, 117, 0.06);
}
.form-heading {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blue-deep);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue);
}
.form-req {
  font-size: 0.75rem;
  color: var(--muted);
  margin: -8px 0 16px;
}
.form-error {
  margin: 0 0 20px;
  padding: 14px 16px;
  color: #7a1f1f;
  background: #fff4f4;
  border: 1px solid #d48a8a;
  border-left: 4px solid #b53232;
  border-radius: 6px;
}
.form-error:focus {
  outline: 3px solid rgba(181, 50, 50, 0.22);
  outline-offset: 2px;
}
.form-error__title {
  margin: 0 0 4px;
  font-size: 0.9375rem;
  font-weight: 700;
}
.form-error__text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.7;
}
.form-privacy {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.7;
}
.form-privacy a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-check em {
  font-style: normal;
  color: var(--blue);
  font-size: 0.6875rem;
  margin-left: 2px;
}
.form-row { display: grid; gap: 14px; }

/* Contact hub (format like type selection) */
.contact-pick {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}
.contact-pick__card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 20px;
  box-shadow: 0 10px 28px rgba(2, 74, 117, 0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.25s;
}
.contact-pick__card:hover {
  transform: translateY(-3px);
  border-color: rgba(3, 98, 156, 0.35);
  box-shadow: 0 16px 36px rgba(2, 74, 117, 0.12);
}
.contact-pick__en {
  display: block;
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.contact-pick__card h3 {
  font-size: 1.125rem;
  color: var(--blue-deep);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.contact-pick__card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}
.contact-intro {
  max-width: 720px;
  margin: 0 auto;
}
.contact-intro h2 {
  font-size: 1.25rem;
  color: var(--blue-deep);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.contact-intro p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 10px;
}
.contact-intro__note a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ID upload (limited URL, not in main nav) */
.id-notice {
  max-width: 720px;
  margin: 0 auto 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 22px 20px;
}
.id-notice h2 {
  font-size: 1.0625rem;
  color: var(--blue-deep);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.id-notice ul {
  list-style: disc;
  padding-left: 1.2em;
  color: var(--muted);
  font-size: 0.875rem;
}
.id-notice li { margin-bottom: 8px; line-height: 1.7; }
.id-notice strong { color: var(--ink); font-weight: 700; }
.file-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 4px;
  background: #F8FBFD;
  font-size: 0.875rem;
}
.file-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 6px;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.thanks-box {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 20px 24px;
}
.thanks-box__en {
  font-family: var(--font-en);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.75rem;
  margin-bottom: 10px;
}
.thanks-box h1 {
  font-size: 1.5rem;
  color: var(--blue-deep);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.thanks-box p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 12px;
}
.thanks-box__note {
  font-size: 0.8125rem !important;
  margin-bottom: 28px !important;
}

/* FAQ */
.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.faq-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue-deep);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.faq-tabs a:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.faq-block { max-width: 800px; margin: 0 auto; }
.faq-cat {
  font-size: 1.35rem;
  color: var(--blue-deep);
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
}
.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 48px 18px 18px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  line-height: 1.6;
  min-height: 52px;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
  font-size: 1.25rem;
  font-weight: 400;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item__body {
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.faq-item__body p { margin-bottom: 10px; }
.faq-item__body p:last-child { margin-bottom: 0; }
.faq-item__body ul {
  list-style: disc;
  padding-left: 1.2em;
  margin: 0 0 10px;
}
.faq-item__body li { margin-bottom: 4px; }
.faq-item__body strong { color: var(--blue-deep); font-weight: 700; }

/* Form fields */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.form-group label em {
  font-style: normal;
  color: var(--blue);
  font-size: 0.6875rem;
  margin-left: 4px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #F8FBFD;
  font-size: 16px; /* iOS ズーム防止 */
  min-height: 48px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(3, 98, 156, 0.12);
}
.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.8125rem;
  margin-bottom: 16px;
  cursor: pointer;
}
.form-check input { margin-top: 4px; accent-color: var(--blue); }
.form-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 12px;
}

/* Privacy */
.privacy-doc {
  max-width: 760px;
  margin: 0 auto;
}
.privacy-doc h2 {
  font-size: 1.0625rem;
  color: var(--blue-deep);
  margin: 28px 0 10px;
  letter-spacing: 0.04em;
}
.privacy-doc h2:first-child { margin-top: 0; }
.privacy-doc p,
.privacy-doc li {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 10px;
}
.privacy-doc ol,
.privacy-doc ul {
  padding-left: 1.25em;
  margin-bottom: 12px;
}
.privacy-doc ol { list-style: decimal; }
.privacy-doc ul { list-style: disc; }

/* Footer */
.footer {
  background: var(--blue-deep);
  color: #fff;
  padding: 40px 20px;
}
.footer__inner {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
}
.footer__brand {
  position: relative;
  display: grid;
  place-items: center;
  padding: 12px 16px;
}
.footer__brand::before {
  content: '';
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.12) 55%, transparent 72%);
}
.footer__brand img {
  position: relative;
  z-index: 1;
  width: 72px;
  height: auto;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
  font-size: 0.8125rem;
}
.footer__nav a { opacity: 0.85; transition: opacity 0.25s, color 0.25s; }
.footer__nav a:hover { opacity: 1; color: var(--gold-light); }
.footer__copy {
  width: 100%;
  font-size: 0.75rem;
  opacity: 0.5;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: calc(var(--delay, 0) * 0.1s);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal-left.is-visible {
  opacity: 1;
  transform: none;
}

/* Page loader + enter (home only markup) */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #0B1520;
  transition: opacity 0.7s var(--ease), visibility 0.7s, transform 0.9s var(--ease);
}
.page-loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.page-loader img {
  width: 96px;
  height: auto;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  animation: loaderLogoIn 0.7s var(--ease) 0.15s forwards;
}
.page-loader__brand {
  font-family: var(--font-en);
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  opacity: 0;
  animation: loaderLogoIn 0.7s var(--ease) 0.35s forwards;
}
.page-loader__bar {
  display: block;
  width: 120px;
  height: 1px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.page-loader__bar i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left center;
  animation: loaderBar 1.5s var(--ease) 0.4s forwards;
}
.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
  transform: translateY(-12px);
}
@keyframes loaderLogoIn {
  to { opacity: 1; transform: none; }
}
@keyframes loaderBar {
  to { transform: scaleX(1); }
}
html.is-loading,
html.is-loading body {
  overflow: hidden;
}
.page-enter main {
  animation: pageIn 0.7s var(--ease) 0.15s both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Mobile polish (メイン媒体) */
@media (max-width: 767px) {
  .container {
    width: min(1080px, calc(100% - 32px));
  }
  .header__inner {
    width: min(1180px, calc(100% - 24px));
  }
  .header__logo span {
    font-size: 0.8125rem;
    max-width: 11em;
    line-height: 1.3;
  }
  .header__nav {
    gap: 22px;
    padding: env(safe-area-inset-top) 24px env(safe-area-inset-bottom);
    font-size: 1.125rem;
  }
  .header__nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .hero {
    min-height: 100svh;
    min-height: 100dvh;
    padding: calc(var(--header-h) + 32px) 0 calc(48px + env(safe-area-inset-bottom));
  }
  .hero--page {
    min-height: 36svh;
    padding: calc(var(--header-h) + 32px) 0 40px;
  }
  .hero--home {
    min-height: clamp(540px, 76svh, 640px);
    padding: calc(var(--header-h) + 24px) 0 calc(36px + env(safe-area-inset-bottom));
  }
  .hero__title {
    font-size: clamp(1.75rem, 9vw, 2.5rem);
    letter-spacing: 0.08em;
  }
  .hero__lead {
    max-width: 28em;
    line-height: 1.8;
  }
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
  .section {
    padding: 56px 0;
  }
  .section__title {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  }
  .contact-pick__card {
    padding: 20px 18px;
  }
  .contact-pick__card:active {
    transform: scale(0.99);
  }
  .company-map__frame {
    aspect-ratio: 4 / 3;
    min-height: 240px;
  }
  .cta-band {
    padding: 56px 0;
  }
  .cta-btn {
    width: 100%;
  }
  .footer {
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
  }
  .form-wrap {
    padding: 24px 16px;
  }
}

/* Desktop */
@media (min-width: 768px) {
  :root { --header-h: 72px; }
  body { font-size: 16px; }
  .header__logo img { height: 40px; }
  .header__logo span { font-size: 0.9375rem; }
  .header__menu { display: none; }
  .header__nav {
    position: static;
    inset: auto;
    background: none;
    flex-direction: row;
    gap: clamp(14px, 2vw, 28px);
    font-size: 0.8125rem;
    transform: none;
  }
  .header__nav a {
    opacity: 1;
    transform: none;
  }
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .promise-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .flow-block {
    grid-template-columns: minmax(180px, 260px) 1fr;
    gap: 48px;
    align-items: start;
  }
  .company__row {
    grid-template-columns: 160px 1fr;
    gap: 16px;
  }
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-wrap { padding: 36px 40px; }
  .message-layout {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
  }
  .message-photo {
    max-width: none;
    width: 100%;
  }
  .message-photo img {
    aspect-ratio: 3 / 4;
    height: auto;
  }
  .message-box {
    padding: 18px 20px 16px;
    align-self: start;
    height: auto;
  }
  /* トップの代表挨拶ブロックは写真幅を元に戻す */
  .message-teaser {
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
  }
  .message-teaser .message-photo img {
    aspect-ratio: 4 / 3;
    height: auto;
  }
  .cta-btns {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: stretch;
  }
  .cta-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 88px;
  }
  .footer__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .footer__nav {
    justify-content: center;
    max-width: 720px;
  }
  .footer__copy { grid-column: 1 / -1; text-align: center; }
  .section { padding: 88px 0; }
  .cta-band { padding: 80px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal, .reveal-left, .hero__label, .hero__title, .hero__lead, .hero__actions {
    opacity: 1 !important;
    transform: none !important;
  }
  .page-loader { display: none !important; }
  .hero--home .hero__bg img { transform: none !important; }
}
