/* ===== Tokens ===== */
:root {
  --navy: #0e1f44;
  --navy-deep: #0a1733;
  --navy-soft: #16294f;
  --gold: #c6a25a;
  --gold-light: #d8bd84;
  --ink: #1c2433;
  --ink-soft: #54607a;
  --bg-soft: #f6f4ef;
  --white: #ffffff;
  --line: #e4e0d6;
  --serif: "Noto Serif JP", "Cormorant Garamond", serif;
  --sans: "Noto Sans JP", system-ui, sans-serif;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
  padding: 12px 26px;
  font-size: 15px;
  border: 1px solid var(--gold);
  box-shadow: 0 6px 18px rgba(198, 162, 90, 0.25);
}
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-lg { padding: 17px 40px; font-size: 15px; }
.arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 31, 68, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(198, 162, 90, 0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { height: 58px; width: auto; }
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: 0.08em;
  color: var(--white);
}
@media (max-width: 560px) {
  .brand-name { font-size: 19px; letter-spacing: 0.04em; }
}
.gnav {
  display: flex;
  gap: 30px;
  margin-left: auto;
  margin-right: 32px;
}
.gnav a {
  color: #e9ecf3;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.03em;
  position: relative;
  padding-bottom: 4px;
}
.gnav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.gnav a:hover { color: var(--gold-light); }
.gnav a:hover::after { width: 100%; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center right;
}
.hero-glow {
  position: absolute;
  left: -8%;
  bottom: -14%;
  width: 55%;
  height: 80%;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at 30% 70%, rgba(150,196,255,0.45) 0%, rgba(120,170,255,0.18) 32%, rgba(10,23,51,0) 62%);
  filter: blur(6px);
}
.hero-ribbons {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(216,189,132,0.4));
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(100deg, rgba(10,23,51,0.92) 0%, rgba(10,23,51,0.78) 34%, rgba(10,23,51,0.40) 60%, rgba(10,23,51,0.10) 100%);
}
.hero-inner { position: relative; z-index: 5; }
.hero-copy { max-width: 900px; padding: 60px 0; }
.hero-eyebrow {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-copy h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(38px, 6vw, 80px);
  line-height: 1.24;
  white-space: nowrap;
  color: var(--white);
  letter-spacing: 0.01em;
}
.hero-copy h1 .accent {
  color: var(--gold-light);
}
.hero-sub {
  margin: 30px 0 40px;
  font-size: clamp(17px, 1.6vw, 21px);
  color: #cdd5e6;
  letter-spacing: 0.02em;
}

/* ===== Section base ===== */
.section { padding: 92px 0; }
.eyebrow {
  text-align: center;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--gold-light); }
.section-title {
  text-align: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 44px);
  color: var(--navy-deep);
  letter-spacing: 0.04em;
  margin-bottom: 56px;
}
.section-title.light { color: var(--white); }

/* ===== Services ===== */
.services { background: var(--bg-soft); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px 26px 26px;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: background 0.35s ease, border-color 0.35s ease,
    box-shadow 0.3s ease, transform 0.3s ease;
}
.service-card > * { position: relative; z-index: 1; }
/* 背景にうっすら浮かぶ番号 */
.service-card .num {
  position: absolute;
  z-index: 0;
  top: -30px;
  right: 6px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 150px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(14, 31, 68, 0.055);
  pointer-events: none;
  user-select: none;
  transition: color 0.35s ease;
}
.service-card .svc-label {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-bottom: 16px;
  transition: color 0.35s ease;
}
/* Hover: ネイビーに反転 */
.service-card:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  box-shadow: 0 24px 48px rgba(10, 23, 51, 0.28);
  transform: translateY(-8px);
}
.service-card:hover .num { color: rgba(216, 189, 132, 0.13); }
.service-card:hover .svc-label { color: var(--gold-light); }
.service-card:hover h3 { color: var(--white); }
.service-card:hover p { color: #c9d2e2; }
.service-card:hover li { color: #dfe5f0; border-top-color: rgba(255, 255, 255, 0.14); }
.service-card:hover li::before { background: var(--gold-light); }
.service-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  color: var(--navy-deep);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
  transition: color 0.35s ease;
}
.service-card p {
  font-size: 14px;
  color: var(--ink-soft);
  text-align: left;
  flex: 1;
  margin-bottom: 24px;
  transition: color 0.35s ease;
}
.service-card ul { list-style: none; margin-top: auto; }
.service-card li {
  position: relative;
  font-size: 13px;
  color: var(--ink);
  padding: 10px 0 10px 16px;
  border-top: 1px solid var(--line);
  transition: color 0.35s ease, border-color 0.35s ease;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  transition: background 0.35s ease;
}
.link-more {
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.04em;
  align-self: flex-start;
}
.link-more:hover { color: var(--navy-deep); }

/* ===== Results ===== */
.results {
  background:
    linear-gradient(180deg, rgba(10,23,51,0.96), rgba(10,23,51,0.96)),
    radial-gradient(circle at 20% 0%, rgba(198,162,90,0.12), transparent 40%);
  background-color: var(--navy-deep);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.stat {
  text-align: center;
  padding: 12px 18px;
  position: relative;
}
.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0; top: 18%;
  height: 64%;
  width: 1px;
  background: rgba(198, 162, 90, 0.25);
}
.stat-icon { width: 52px; height: 52px; margin: 0 auto 16px; }
.stat-icon img { width: 100%; height: 100%; object-fit: contain; }
.stat-label {
  color: #cbd3e4;
  font-size: 15px;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.stat-num {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--gold-light);
  font-size: 46px;
  line-height: 1;
  margin-bottom: 14px;
}
.stat-num .unit { font-size: 18px; margin-left: 2px; }
.stat-note {
  color: #9aa6c2;
  font-size: 12px;
  line-height: 1.7;
}

/* ===== Cases（スライド式・MEMBER'S STORY風） ===== */
.cases-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: start;
}
.cases-head {
  position: sticky;
  top: 120px;
}
.cases-title { text-align: left; margin-bottom: 20px; }
.cases-head .eyebrow { text-align: left; }
.cases-lead {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 2;
  max-width: 300px;
}
.case-slides {
  display: flex;
  flex-direction: column;
  gap: 72px;
}
.case-slide { position: relative; }
.case-no {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 56px;
  line-height: 1;
  color: var(--navy-deep);
  margin-bottom: 14px;
}
.case-no span {
  font-size: 16px;
  color: var(--ink-soft);
  margin-left: 6px;
  letter-spacing: 0.1em;
}
.case-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.case-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.case-slide:hover .case-visual img { transform: scale(1.05); }
.case-plate {
  position: absolute;
  left: 0;
  bottom: 28px;
  max-width: 86%;
  background: var(--navy-deep);
  padding: 20px 28px 22px;
  box-shadow: 12px 12px 0 rgba(198, 162, 90, 0.28);
}
.case-plate .tag {
  background: var(--gold);
  color: var(--navy-deep);
  margin-bottom: 10px;
}
.case-plate h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.6;
  color: var(--white);
}
.case-desc {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 560px;
}
.tag {
  align-self: flex-start;
  background: var(--navy-deep);
  color: var(--gold-light);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  margin-bottom: 16px;
}
.case-body h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.5;
  color: var(--navy-deep);
  margin-bottom: 12px;
}
.case-body p {
  font-size: 15px;
  color: var(--ink-soft);
  flex: 1;
  margin-bottom: 20px;
}

/* ===== CTA ===== */
.cta {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}
.cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,23,51,0.82), rgba(10,23,51,0.6) 55%, rgba(10,23,51,0.85)); }
.cta-inner { position: relative; z-index: 2; text-align: center; }
.cta-inner h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 38px);
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.cta-inner p { color: #d2d9e8; font-size: 15px; margin-bottom: 36px; }

/* ===== Company ===== */
.company .section-title { text-align: left; }
.company .eyebrow { text-align: left; }
.company-table {
  max-width: 820px;
  margin: 48px 0 0;
}
.company-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
}
.company-row:first-child { border-top: 1px solid var(--line); }
.company-row dt {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.company-row dd {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.7;
}
.company-row .todo {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #b5503b;
  background: #f3e7e3;
  padding: 2px 8px;
  border-radius: 3px;
}
@media (max-width: 560px) {
  .company-row { grid-template-columns: 1fr; gap: 6px; padding: 20px 4px; }
}

/* ===== Footer ===== */
.site-footer {
  background-color: var(--navy-deep);
  background-image: url('assets/footer_bg.png');
  background-size: cover;
  background-position: center bottom;
  color: #c7cfe0;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 64px 24px 52px;
}
.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.footer-brand-link img { height: 54px; width: auto; }
.footer-brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--white);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
}
.footer-nav a {
  font-size: 15px;
  color: #c7cfe0;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal { display: flex; gap: 26px; }
.footer-legal a { font-size: 12px; color: #8a93a6; }
.footer-legal a:hover { color: var(--gold-light); }
.copyright { font-size: 12px; color: #6f7a92; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .stat:nth-child(2)::after { display: none; }
  .cases-layout { grid-template-columns: 1fr; gap: 36px; }
  .cases-head { position: static; }
  .gnav { display: none; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 28px; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat::after { display: none !important; }
  .hero-overlay { background: linear-gradient(180deg, rgba(10,23,51,0.86), rgba(10,23,51,0.55) 55%, rgba(10,23,51,0.78)); }
  .hero-copy h1 { white-space: normal; font-size: clamp(34px, 9vw, 46px); }
  .case-no { font-size: 42px; }
  .case-visual { aspect-ratio: auto; overflow: visible; }
  .case-visual img { aspect-ratio: 16 / 9; }
  .case-plate { position: static; max-width: none; box-shadow: none; padding: 18px 20px; }
  .case-plate h3 { font-size: 18px; }
  .case-plate h3 br { display: none; }
  .footer-nav { gap: 20px 26px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}

/* ===== Animations ===== */
@media (prefers-reduced-motion: no-preference) {

  /* Scroll reveal */
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
  /* Stagger children */
  .reveal[data-delay="1"] { transition-delay: 0.08s; }
  .reveal[data-delay="2"] { transition-delay: 0.16s; }
  .reveal[data-delay="3"] { transition-delay: 0.24s; }

  /* 事例スライド: 右からスライドイン */
  .reveal-x {
    opacity: 0;
    transform: translateX(110px);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
  }
  .reveal-x.is-visible {
    opacity: 1;
    transform: none;
  }

  /* Hero text — enters AFTER ribbon draw */
  .hero-copy .hero-eyebrow,
  .hero-copy h1,
  .hero-copy .hero-sub,
  .hero-copy .btn {
    opacity: 0;
    transform: translateY(26px);
    animation: heroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .hero-copy .hero-eyebrow { animation-delay: 1.45s; }
  .hero-copy h1 { animation-delay: 1.6s; }
  .hero-copy .hero-sub { animation-delay: 1.85s; }
  .hero-copy .btn { animation-delay: 2.05s; }

  @keyframes heroIn {
    to { opacity: 1; transform: none; }
  }

  /* Background image fades in with the ribbon draw */
  .hero-bg {
    opacity: 0;
    transform: scale(1.07);
    animation: heroBgIn 2.2s ease-out 0.2s forwards;
  }
  @keyframes heroBgIn {
    to { opacity: 1; transform: scale(1); }
  }

  /* Bottom-left glow burst */
  .hero-glow {
    opacity: 0;
    animation: glowIn 2.4s ease-out forwards;
  }
  @keyframes glowIn {
    0%   { opacity: 0; transform: scale(0.6); }
    35%  { opacity: 1; transform: scale(1); }
    100% { opacity: 0.45; transform: scale(1.15); }
  }

  /* Ribbons draw from bottom-left to top-right */
  .ribbon {
    stroke-dasharray: 2800;
    stroke-dashoffset: 2800;
    animation: drawRibbon 1.9s cubic-bezier(0.33, 0, 0.2, 1) forwards;
  }
  .ribbon:nth-child(1) { animation-delay: 0.15s; }
  .ribbon:nth-child(2) { animation-delay: 0.35s; }
  .ribbon:nth-child(3) { animation-delay: 0.55s; }
  .ribbon:nth-child(4) { animation-delay: 0.75s; }
  @keyframes drawRibbon {
    to { stroke-dashoffset: 0; }
  }

}

/* Card hover lift (always on) */
.stat {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Button arrow nudge */
.btn .arrow,
.link-more {
  transition: transform 0.25s ease;
  display: inline-block;
}
.btn:hover .arrow { transform: translateX(4px); }
.link-more:hover { transform: translateX(3px); }

/* Header scroll state */
.site-header {
  transition: box-shadow 0.3s ease, background-color 0.3s ease, padding 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(14, 31, 68, 0.1);
  backdrop-filter: saturate(140%) blur(8px);
}

/* ===== Contact form ===== */
.contact-head {
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
  text-align: center;
}
.contact-head.contact-head-lg { padding: 120px 0 110px; }
.contact-head-lead {
  position: relative;
  z-index: 3;
  margin: 22px auto 0;
  max-width: 640px;
  color: #d2dae8;
  font-size: 16px;
  line-height: 1.95;
}
.contact-head-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center;
}
/* 背景をゆっくりパン＆ズーム（Ken Burns）— 映像が進む演出 */
.contact-head-lg .contact-head-bg {
  transform-origin: center;
  will-change: transform;
  animation: skylinePan 12s ease-in-out infinite alternate;
}
@keyframes skylinePan {
  0%   { transform: scale(1.14) translate3d(-4.5%, 1.2%, 0); }
  100% { transform: scale(1.26) translate3d(4.5%, -3%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .contact-head-lg .contact-head-bg { animation: none; transform: scale(1.04); }
}
.contact-head-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(10,23,51,0.78), rgba(10,23,51,0.55) 55%, rgba(10,23,51,0.8));
}
.contact-head .container { position: relative; z-index: 3; }
.contact-head-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 58px);
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.contact-body {
  background: var(--bg-soft);
  padding: 80px 0 92px;
}
.contact-lead {
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
  margin: -8px auto 40px;
  max-width: 640px;
}
.contact-form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 44px 48px;
  box-shadow: 0 18px 50px rgba(14, 31, 68, 0.07);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
  margin-bottom: 9px;
}
.field .req,
.field .opt {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.field .req { background: #f3e7e3; color: #b5503b; }
.field .opt { background: #eceaf0; color: var(--ink-soft); }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 13px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.contact-form textarea { resize: vertical; line-height: 1.7; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(198, 162, 90, 0.18);
}
.contact-form input.invalid,
.contact-form select.invalid,
.contact-form textarea.invalid {
  border-color: #cf5b46;
  box-shadow: 0 0 0 3px rgba(207, 91, 70, 0.14);
}

.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.contact-form select { appearance: none; -webkit-appearance: none; cursor: pointer; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 4px 0 26px;
  cursor: pointer;
}
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.consent a { color: var(--navy); text-decoration: underline; }

.submit-btn { width: 100%; padding: 16px; font-size: 15px; }
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(198, 162, 90, 0.35); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-status {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  min-height: 1.2em;
}
.form-status.ok { color: #2e7d52; }
.form-status.err { color: #cf5b46; }

@media (max-width: 720px) {
  .contact-form { padding: 32px 22px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ===== Legal pages (privacy / tokushoho) ===== */
.legal-body {
  max-width: 820px;
  margin: 0 auto;
}
.legal-intro {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 40px;
}
.legal-section { margin-bottom: 40px; }
.legal-section h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-deep);
  letter-spacing: 0.02em;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.legal-section h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin: 18px 0 8px;
}
.legal-section p,
.legal-section li {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.95;
}
.legal-section ul,
.legal-section ol {
  padding-left: 1.4em;
  margin: 8px 0;
}
.legal-section li { margin-bottom: 4px; }
.legal-note { color: var(--ink-soft); font-size: 13.5px; }
.legal-date {
  margin-top: 48px;
  text-align: right;
  color: var(--ink-soft);
  font-size: 13.5px;
}

/* ===== SEO sub-pages (cases / results) ===== */
.seo-body { max-width: 880px; margin: 0 auto; }
.seo-intro { color: var(--ink-soft); font-size: 15px; line-height: 1.95; margin-bottom: 40px; }
.seo-cases { }
.seo-case {
  display: flex; align-items: center; gap: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 22px 26px; margin-bottom: 14px;
}
.seo-case .ind { flex: 1; }
.seo-case .ind .t { font-size: 18px; font-weight: 700; color: var(--navy); }
.seo-case .ind .k { font-size: 13.5px; color: var(--ink-soft); margin-top: 3px; }
.seo-case .amt { font-family: var(--serif); font-weight: 700; font-size: 26px; color: var(--gold); white-space: nowrap; }
.seo-case .amt span { font-size: 15px; color: var(--ink-soft); }
.seo-note { margin-top: 20px; font-size: 13px; color: var(--ink-soft); line-height: 1.8; }

.seo-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 40px; }
.seo-stat { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 30px 24px; text-align: center; }
.seo-stat .n { font-family: var(--serif); font-weight: 700; font-size: 48px; color: var(--navy); line-height: 1; }
.seo-stat .n small { font-size: 22px; color: var(--gold); }
.seo-stat .l { font-size: 14px; color: var(--ink-soft); margin-top: 10px; }
.seo-h3 { font-family: var(--serif); font-size: 20px; color: var(--navy); font-weight: 700; margin: 36px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); display: inline-block; }
@media (max-width: 560px) {
  .seo-case { flex-direction: column; align-items: flex-start; gap: 8px; }
  .seo-stats { grid-template-columns: 1fr; }
}
