/* ============================================================
   SORALINK Website — shared styles
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: #030d26;
  color: #ffffff;
  font-family: 'Noto Sans JP', sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: #4aa3ff; text-decoration: none; }
a:hover { color: #8cc6ff; }

@keyframes slfade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- scroll reveal (only hidden when JS is active) ---------- */
.js [data-anim] { opacity: 0; transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); will-change: opacity, transform; }
.js [data-anim="up"]    { transform: translateY(34px); }
.js [data-anim="fade"]  { transform: none; }
.js [data-anim="left"]  { transform: translateX(-40px); }
.js [data-anim="right"] { transform: translateX(40px); }
.js [data-anim="scale"] { transform: scale(0.94); }
.js [data-anim].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-anim] { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* ---------- three.js field canvases ---------- */
.hero-field {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; pointer-events: none; z-index: 0;
}
.hero-copy { position: relative; z-index: 2; }

/* Hero readability scrim — mobile only: darkens the cityscape so the
   overlaid copy stays legible where text sits over the bright image. */
.hero-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; display: none; }
@media (max-width: 900px) {
  .hero-scrim { display: block;
    background: linear-gradient(180deg, rgba(3,13,38,0.6) 0%, rgba(3,13,38,0.46) 32%, rgba(4,16,45,0.9) 100%); }
}

/* Mobile: side-accent photos (社長挨拶 / 採用情報) were hidden on small screens.
   Show them as a full-cover background with a dark overlay so the copy stays
   readable — consistent with the 会社概要 half that already does this. */
@media (max-width: 900px) {
  .mobile-band {
    position: absolute !important; inset: 0 !important;
    right: auto !important; top: auto !important;
    width: 100% !important; height: 100% !important;
    -webkit-mask-image: none !important; mask-image: none !important;
  }
  .mobile-band::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(125deg, rgba(4,16,45,0.86) 0%, rgba(6,26,72,0.58) 100%);
  }
}
.page-hero__content { position: relative; z-index: 2; }
.page-hero__field {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; pointer-events: none; z-index: 1; opacity: 0.85;
}

/* ---------- header shrink ---------- */
.site-header { transition: background 0.3s, box-shadow 0.3s; }
.site-header.is-shrunk { background: rgba(3,13,38,0.96); box-shadow: 0 8px 30px rgba(0,0,0,0.35); }
.site-header.is-shrunk .header-inner { height: 64px; }
.site-header .header-inner, .brand img { transition: height 0.3s, transform 0.3s; }
.site-header.is-shrunk .brand img { height: 50px; }

/* ---------- contact form (pstrust-style construction) ---------- */
.contact-form { display: grid; gap: 26px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-field { display: grid; gap: 10px; }
.form-label, .form-field > label {
  font-size: 13px; letter-spacing: 0.1em; color: #8cc6ff;
}
.required { color: #ff7a7a; font-size: 12px; margin-left: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.radio-group { display: flex; gap: 28px; flex-wrap: wrap; padding: 4px 0; }
.radio-option {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 300; color: rgba(255,255,255,0.9); cursor: pointer;
}
.radio-option input { accent-color: #1668e3; width: 18px; height: 18px; }
.form-field.has-error .fld { border-color: #ff7a7a; background: rgba(255,90,90,0.08); }
.field-error { margin: 4px 0 0; font-size: 13px; color: #ff9a9a; }

.consent-box { border: 1px solid rgba(255,255,255,0.18); padding: 24px; background: rgba(255,255,255,0.03); }
.consent-box > h4 { margin: 0 0 16px; font-size: 15px; font-weight: 500; color: #fff; letter-spacing: 0.04em; }
.consent-box__scroll {
  max-height: 180px; overflow-y: auto; padding: 16px 18px; margin-bottom: 18px;
  background: rgba(3,13,38,0.55); border: 1px solid rgba(255,255,255,0.1);
  font-size: 13px; line-height: 1.9; font-weight: 300; color: rgba(255,255,255,0.72);
}
.consent-box__scroll h5 { margin: 16px 0 6px; font-size: 13px; color: #8cc6ff; letter-spacing: 0.06em; }
.consent-box__scroll h5:first-child { margin-top: 0; }
.consent-box__scroll p, .consent-box__scroll ul { margin: 0 0 8px; }
.consent-box__scroll ul { padding-left: 18px; }
.consent-check { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 300; color: rgba(255,255,255,0.92); cursor: pointer; }
.consent-check input { accent-color: #1668e3; width: 18px; height: 18px; }

.btn-submit {
  border: none; padding: 18px 48px; background: #1668e3; color: #fff;
  font-size: 15px; letter-spacing: 0.12em; font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer; transition: background 0.2s; display: inline-flex; align-items: center; gap: 16px;
}
.btn-submit:hover { background: #2f8fff; }
.btn-submit:disabled { opacity: 0.6; cursor: default; }

.form-message { margin-top: 18px; padding: 0; font-size: 14px; line-height: 1.9; opacity: 0; max-height: 0; overflow: hidden; transition: opacity 0.3s, max-height 0.3s, padding 0.3s; }
.form-message.is-visible { opacity: 1; max-height: 240px; padding: 16px 18px; }
.form-message--success { background: rgba(46,143,255,0.14); border: 1px solid rgba(74,163,255,0.5); color: #bcdcff; }
.form-message--error { background: rgba(255,90,90,0.1); border: 1px solid rgba(255,122,122,0.5); color: #ffb4b4; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(3,13,38,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  height: 78px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 70px; width: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.nav-item {
  display: block; padding: 8px 12px; text-align: center;
  color: #ffffff; position: relative;
}
.nav-item .en {
  display: block; font-family: 'Jost', sans-serif;
  font-size: 13px; letter-spacing: 0.14em; color: #ffffff;
}
.nav-item .ja {
  display: block; font-size: 10px; color: rgba(255,255,255,0.55); margin-top: 3px;
}
.nav-item:not(.nav-cta):hover .en { color: #8cc6ff; }
.nav-item.active .en { color: #8cc6ff; }
.nav-item.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0;
  height: 2px; background: #4aa3ff;
}
.nav-cta {
  margin-left: 10px; padding: 14px 26px; background: #1668e3;
  transition: background 0.2s;
}
.nav-cta .en { color: #ffffff; }
.nav-cta .ja { color: rgba(255,255,255,0.8); }
.nav-cta:hover { background: #2f8fff; }

/* mobile nav toggle (hidden on desktop) */
.nav-toggle { display: none; }
.nav-burger { display: none; }

/* ---------- Buttons ---------- */
.btn-outline {
  display: inline-flex; align-items: center; justify-content: space-between;
  gap: 28px; min-width: 210px; padding: 16px 22px;
  border: 1px solid rgba(255,255,255,0.4); cursor: pointer;
  font-size: 13px; letter-spacing: 0.08em; color: #ffffff;
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline:hover { background: #1668e3; border-color: #1668e3; color: #ffffff; }
.btn-outline .arw { font-family: 'Jost', sans-serif; }

.btn-solid {
  display: inline-flex; align-items: center; gap: 24px;
  padding: 18px 44px; background: #1668e3; cursor: pointer;
  font-size: 14px; letter-spacing: 0.1em; color: #ffffff;
  transition: background 0.2s;
}
.btn-solid:hover { background: #2f8fff; color: #ffffff; }
.btn-solid .arw { font-family: 'Jost', sans-serif; }

.biz-card { transition: transform 0.25s; }
.biz-card:hover { transform: translateY(-6px); }
.biz-card:hover img { transform: scale(1.05); }
.biz-card img { transition: transform 0.5s; }

.contact-mail:hover .mail-arw { color: #8cc6ff; }

/* form fields */
.fld {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.2);
  color: #ffffff; padding: 15px 16px; font-size: 15px;
  font-family: 'Noto Sans JP', sans-serif; width: 100%;
}
.fld:focus { outline: none; border-color: #4aa3ff; background: rgba(255,255,255,0.09); }
.fld::placeholder { color: rgba(255,255,255,0.4); }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .header-inner { padding: 0 20px; }
  .main-nav { gap: 2px; }
  .nav-item { padding: 8px 8px; }
  .nav-item .en { font-size: 12px; letter-spacing: 0.08em; }
  .nav-cta { padding: 12px 16px; }
}

@media (max-width: 900px) {
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; cursor: pointer; z-index: 60;
  }
  .nav-burger span {
    display: block; height: 2px; width: 26px; background: #fff;
    transition: transform 0.25s, opacity 0.25s;
  }
  .main-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 82vw);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 96px 24px 40px;
    background: #061c4e; border-left: 1px solid rgba(255,255,255,0.1);
    transform: translateX(100%); transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .nav-toggle:checked ~ .main-nav { transform: translateX(0); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-item {
    text-align: left; padding: 16px 8px; border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: baseline; gap: 12px;
  }
  .nav-item .en { font-size: 14px; letter-spacing: 0.12em; }
  .nav-item .ja { margin-top: 0; }
  .nav-item.active::after { display: none; }
  .nav-cta { margin-left: 0; margin-top: 20px; justify-content: center; }
  .nav-cta .en, .nav-cta .ja { display: inline; }

  /* generic stacking for two-column grids */
  .stack-md { grid-template-columns: 1fr !important; }
  .hide-md { display: none !important; }
}

@media (max-width: 1024px) {
  /* hero headline: prevent overflow in the tablet range */
  .hero-copy h1 { font-size: 44px !important; line-height: 1.5 !important; }
}

@media (max-width: 768px) {
  /* scale down oversized display type on small screens (inline styles need !important) */
  main h1 { font-size: 34px !important; line-height: 1.5 !important; letter-spacing: 0.04em !important; }
  .hero-copy h1 { font-size: 32px !important; }
  main h2 { font-size: 28px !important; }
  .hero-copy { padding: 84px 24px 72px !important; }
  .mvv-big { font-size: 40px !important; letter-spacing: 0.28em !important; }
  .mvv-lead { font-size: 20px !important; line-height: 1.9 !important; }
}

@media (max-width: 640px) {
  .brand img { height: 54px; }
  .header-inner { height: 72px; }
  .sec-pad { padding-left: 24px !important; padding-right: 24px !important; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   Philosophy (私たちの想い) page
   ============================================================ */
.eyebrow { font-family: 'Jost', sans-serif; font-size: 13px; letter-spacing: 0.28em; color: #4aa3ff; }

.phil-hero { position: relative; overflow: hidden; background: linear-gradient(120deg,#03102e 0%,#061c4e 55%,#0a2a72 100%); }
.phil-hero__media { position: absolute; right: 0; top: 0; width: 54%; height: 100%; clip-path: url(#philHero); }
.phil-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phil-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(6,20,60,0.65) 0%,rgba(6,20,60,0) 42%); }
.phil-hero__inner { position: relative; max-width: 1280px; margin: 0 auto; padding: 118px 32px 96px 104px; }
.phil-hero__title { font-family: 'Shippori Mincho', serif; font-size: 60px; font-weight: 500; margin: 18px 0 0; letter-spacing: 0.1em; }
.phil-hero__lead { margin: 32px 0 0; font-size: 16px; line-height: 2.2; color: rgba(255,255,255,0.85); font-weight: 300; }
.phil-hero__crumb { margin-top: 58px; font-family: 'Jost', sans-serif; font-size: 12px; letter-spacing: 0.14em; color: rgba(255,255,255,0.55); }

.phil-body { background: linear-gradient(180deg,#0b2b6b 0%,#061c46 100%); padding: 104px 0 118px; }
.phil-wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

.sec-heading { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 0 0 56px; }
.sec-heading::before, .sec-heading::after { content: ""; height: 1px; width: 110px; }
.sec-heading::before { background: linear-gradient(90deg,transparent,rgba(140,198,255,0.55)); }
.sec-heading::after { background: linear-gradient(90deg,rgba(140,198,255,0.55),transparent); }
.sec-heading span { font-family: 'Jost', sans-serif; font-size: 21px; letter-spacing: 0.28em; color: #8cc6ff; white-space: nowrap; }

.mvv-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.mvv-card { background: #fff; padding: 42px 38px 40px; box-shadow: 0 22px 55px rgba(0,0,0,0.28); }
.mvv-card__head { display: flex; align-items: flex-start; gap: 16px; }
.mvv-card__num { font-family: 'Jost', sans-serif; font-size: 54px; line-height: 0.85; color: #1668e3; font-weight: 300; }
.mvv-card__titles { flex: 1; padding-top: 8px; }
.mvv-card__en { font-family: 'Jost', sans-serif; font-size: 22px; letter-spacing: 0.12em; color: #0a2a52; font-weight: 500; }
.mvv-card__ja { font-size: 14px; color: #5b6b86; margin-top: 5px; letter-spacing: 0.1em; }
.mvv-card__icon { flex-shrink: 0; }
.mvv-card__rule { width: 44px; height: 2px; background: #1668e3; margin: 24px 0 22px; }
.mvv-card__body { font-size: 14.5px; line-height: 2; color: #37475f; font-weight: 400; }

.value-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 20px; }
.value-card { background: #fff; padding: 38px 20px 34px; text-align: center; box-shadow: 0 22px 55px rgba(0,0,0,0.28); display: flex; flex-direction: column; align-items: center; }
.value-card__icon { height: 54px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.value-card__en { font-size: 19px; font-weight: 600; color: #0a2a52; letter-spacing: 0.03em; }
.value-card__ja { font-size: 12px; color: #5b6b86; margin-top: 6px; letter-spacing: 0.08em; }
.value-card__rule { width: 28px; height: 2px; background: #1668e3; margin: 16px 0; }
.value-card__body { font-size: 13px; line-height: 1.95; color: #37475f; }

.ic { display: block; }

@media (max-width: 980px) {
  .value-grid { grid-template-columns: repeat(3,1fr); gap: 16px; }
}
@media (max-width: 900px) {
  .phil-hero__media { position: relative; width: 100%; height: 240px; clip-path: none; }
  .phil-hero__inner { padding: 60px 24px 54px; }
  .phil-hero__lead br { display: none; }
  .phil-body { padding: 72px 0 84px; }
  .mvv-grid { grid-template-columns: 1fr; }
  .sec-heading::before, .sec-heading::after { width: 40px; }
}
@media (max-width: 640px) {
  /* decorative heading: let the long English label wrap instead of clipping */
  .sec-heading { gap: 12px; margin-bottom: 40px; }
  .sec-heading::before, .sec-heading::after { width: 24px; }
  .sec-heading span { font-size: 15px; letter-spacing: 0.14em; white-space: normal; }
}
@media (max-width: 560px) {
  .value-grid { grid-template-columns: 1fr 1fr; }
  .mvv-card { padding: 30px 24px 28px; }
  .mvv-card__head { flex-wrap: wrap; }   /* let head items wrap on narrow phones instead of forcing card wider */
  .mvv-card__num { font-size: 44px; }
  .value-card { padding: 26px 14px 24px; }
}

/* ============================================================
   Service detail pages + generalized dark split hero
   (used on service, company, message, recruit, contact too)
   ============================================================ */
.svc-hero { position: relative; overflow: hidden; background: linear-gradient(120deg,#03102e 0%,#061c4e 55%,#0a2a72 100%); }
.svc-hero__media { position: absolute; right: 0; top: 0; width: 52%; height: 100%; clip-path: url(#heroClip); }
.svc-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(6,20,60,0.62) 0%,rgba(6,20,60,0) 46%); }
.svc-hero__lines { position: absolute; left: 0; top: 0; width: 60%; height: 100%; pointer-events: none;
  background: repeating-linear-gradient(112deg,rgba(255,255,255,0.05) 0,rgba(255,255,255,0.05) 1px,transparent 1px,transparent 26px);
  -webkit-mask-image: linear-gradient(100deg,rgba(0,0,0,0.9) 0%,rgba(0,0,0,0) 70%);
  mask-image: linear-gradient(100deg,rgba(0,0,0,0.9) 0%,rgba(0,0,0,0) 70%); }
.svc-hero__inner { position: relative; max-width: 1280px; margin: 0 auto; padding: 104px 32px 82px 104px; }
.svc-hero__en { font-family: 'Jost', sans-serif; font-size: 15px; letter-spacing: 0.26em; color: #4aa3ff; margin-top: 14px; }
.svc-hero__title { font-family: 'Shippori Mincho', serif; font-size: 54px; font-weight: 500; margin: 16px 0 0; letter-spacing: 0.08em; }
.svc-hero__lead { margin: 26px 0 0; font-size: 16px; line-height: 2.1; color: rgba(255,255,255,0.85); font-weight: 300; }
.svc-hero__crumb { margin-top: 42px; font-family: 'Jost', sans-serif; font-size: 12px; letter-spacing: 0.14em; color: rgba(255,255,255,0.55); }

.svc-sec { padding: 100px 0; }
.svc-sec--a { background: linear-gradient(180deg,#04123a 0%,#061c4e 100%); }
.svc-sec--b { background: #061c4e; }
.svc-sec--c { background: linear-gradient(180deg,#061c4e 0%,#04123a 100%); }
.svc-head { text-align: center; margin-bottom: 54px; }
.svc-head__en { font-family: 'Jost', sans-serif; font-size: 13px; letter-spacing: 0.3em; color: #4aa3ff; }
.svc-head__ja { font-size: 32px; font-weight: 500; margin: 14px 0 0; letter-spacing: 0.06em; }

.merit-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.merit-card { background: #fff; padding: 40px 26px 36px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.26); }
.merit-card__icon { height: 58px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.merit-card__t { font-size: 16px; font-weight: 600; color: #0a2a52; letter-spacing: 0.02em; }
.merit-card__rule { width: 26px; height: 2px; background: #1668e3; margin: 14px auto 16px; }
.merit-card__b { font-size: 13px; line-height: 1.95; color: #37475f; }

.flow { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; }
.flow__step { position: relative; text-align: center; padding: 0 6px; }
.flow__step:not(:last-child)::after { content: "›"; position: absolute; top: 20px; right: -4px; transform: translateX(50%); font-family: 'Jost', sans-serif; font-size: 30px; line-height: 1; color: #4aa3ff; }
.flow__badge { width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid rgba(140,198,255,0.32); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.flow__no { font-family: 'Jost', sans-serif; font-size: 12px; letter-spacing: 0.16em; color: #4aa3ff; }
.flow__t { font-size: 15px; font-weight: 500; margin-top: 6px; }
.flow__b { font-size: 12.5px; line-height: 1.8; color: rgba(255,255,255,0.7); margin-top: 10px; font-weight: 300; }

.trouble { max-width: 900px; margin: 0 auto; background: linear-gradient(150deg,#0d3a92,#08245f); border: 1px solid rgba(120,180,255,0.28); padding: 54px 56px; }
.trouble__t { font-size: 24px; font-weight: 500; text-align: center; letter-spacing: 0.04em; }
.trouble__list { display: grid; gap: 16px; margin: 34px 0 0; max-width: 560px; margin-left: auto; margin-right: auto; }
.trouble__item { display: flex; align-items: flex-start; gap: 14px; font-size: 15px; line-height: 1.7; font-weight: 300; color: rgba(255,255,255,0.92); }
.trouble__check { flex-shrink: 0; color: #4aa3ff; margin-top: 2px; }
.trouble__cta { margin: 40px auto 0; text-align: center; }

/* service overview cards */
.svc-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.svc-card { position: relative; display: block; overflow: hidden; min-height: 220px; color: #fff; }
.svc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.svc-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(4,16,45,0.35),rgba(4,16,45,0.9)); z-index: 1; }
.svc-card:hover img { transform: scale(1.05); }
.svc-card__body { position: relative; z-index: 2; padding: 40px 34px; }
.svc-card__no { font-family: 'Jost', sans-serif; font-size: 14px; letter-spacing: 0.2em; color: #8cc6ff; }
.svc-card__t { font-size: 24px; font-weight: 500; margin: 10px 0 0; letter-spacing: 0.05em; }
.svc-card__tag { display: inline-block; margin-top: 12px; padding: 5px 12px; background: rgba(22,104,227,0.5); font-size: 11px; letter-spacing: 0.06em; color: #dbeafe; }
.svc-card__arw { position: absolute; right: 30px; bottom: 32px; z-index: 2; font-family: 'Jost', sans-serif; color: #8cc6ff; }

@media (max-width: 900px) {
  .svc-hero__media { position: relative; width: 100%; height: 230px; clip-path: none; }
  .svc-hero__lines { display: none; }
  .svc-hero__inner { padding: 56px 24px 48px; }
  .svc-sec { padding: 72px 0; }
  .merit-grid { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr 1fr; gap: 28px 8px; }
  .flow__step:not(:last-child)::after { display: none; }
  .trouble { padding: 40px 26px; }
  .svc-cards { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .merit-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
}

/* ============================================================
   Light theme — service pages (matches design images)
   Header / footer / contact bar stay dark (global).
   ============================================================ */
.theme-svc-light .svc-hero { background: linear-gradient(120deg,#eef4fc 0%,#dcebfc 58%,#cadffb 100%); }
.theme-svc-light .svc-hero__lines { background: repeating-linear-gradient(112deg,rgba(22,104,227,0.07) 0,rgba(22,104,227,0.07) 1px,transparent 1px,transparent 26px); }
.theme-svc-light .svc-hero__media::after { background: linear-gradient(90deg,rgba(238,244,252,0.55) 0%,rgba(238,244,252,0) 42%); }
.theme-svc-light .svc-hero__title { color: #0a2a52; }
.theme-svc-light .svc-hero__lead { color: #3a4a63; }
.theme-svc-light .svc-hero__crumb { color: rgba(10,42,82,0.5); }
.theme-svc-light .eyebrow,
.theme-svc-light .svc-hero__en,
.theme-svc-light .svc-head__en { color: #1668e3; }
.theme-svc-light .svc-head__ja { color: #0a2a52; }

.theme-svc-light .svc-sec--a { background: #ffffff; }
.theme-svc-light .svc-sec--b { background: #f2f7ff; }
.theme-svc-light .svc-sec--c { background: #ffffff; }

.theme-svc-light .merit-card { border: 1px solid #e2ebf7; box-shadow: 0 14px 34px rgba(20,60,120,0.09); }

.theme-svc-light .flow__badge { background: #eaf2ff; border-color: #c7ddff; }
.theme-svc-light .flow__badge svg { stroke: #1668e3; }
.theme-svc-light .flow__no { color: #1668e3; }
.theme-svc-light .flow__t { color: #0a2a52; }
.theme-svc-light .flow__b { color: #55627a; }
.theme-svc-light .flow__step:not(:last-child)::after { color: #9cc0f0; }

.theme-svc-light .svc-intro { color: #3a4a63 !important; }

/* ============================================================
   Prevent hero Mincho font-swap flash (FOUT)
   Hero serif titles stay hidden until Shippori Mincho is ready,
   then fade in — so the fallback gothic is never shown swapping.
   Gated on .js so text still shows if JavaScript is unavailable.
   ============================================================ */
html.js .svc-hero__title,
html.js .hero-mincho { opacity: 0; }
html.js.fonts-ready .svc-hero__title,
html.js.fonts-ready .hero-mincho { opacity: 1; transition: opacity 0.28s ease; }

/* ============================================================
   Strength section + 5-item grids
   ============================================================ */
.grid5 { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
@media (max-width: 1024px) { .grid5 { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 640px) { .grid5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .grid5 { grid-template-columns: 1fr; } }

.str-card { border: 1px solid rgba(255,255,255,0.16); padding: 32px 26px; background: linear-gradient(160deg,rgba(22,104,227,0.13),rgba(255,255,255,0.02)); }
.str-card__no { font-family: 'Jost', sans-serif; font-size: 24px; color: #4aa3ff; letter-spacing: 0.1em; font-weight: 300; }
.str-card__t { font-size: 16px; font-weight: 600; margin: 12px 0 0; letter-spacing: 0.03em; line-height: 1.6; }
.str-card__rule { width: 28px; height: 2px; background: #4aa3ff; margin: 14px 0; }
.str-card__b { font-size: 13px; line-height: 1.95; color: rgba(255,255,255,0.72); font-weight: 300; margin: 0; }
