/* ============================================================
   Perfect Imaging Laboratory — v4 redesign
   Theme: 自然・グリーン寄り「優しい医療」
   Sky blue + fresh green + soft yellow on warm white
   Fonts: Nunito (Latin) + M PLUS Rounded 1c (JP)
   ============================================================ */
:root {
  /* v4 palette */
  --navy: #14386b;
  --blue: #1f7fcf;
  --sky: #3fb0e8;
  --green: #5aa62b;
  --leaf: #7cc242;
  --sun: #f6c344;
  --sun-dark: #d9a413;
  --text: #35483c;
  --text-soft: #55665c;
  --muted: #8a9a90;
  --line: #e3ede0;
  --bg: #f9fcf7;
  --bg-2: #eef7e8;
  --bg-foot: #f3f8ee;
  --maxw: 1240px;
  --radius: 28px;
  --shadow: 0 16px 40px rgba(40, 80, 50, .08);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font-jp: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --font-latin: "Nunito", "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* legacy aliases (used by sub-page components) */
  --navy-950: #14386b;
  --navy-900: #1a4a85;
  --navy-800: #1f5aa0;
  --blue-bright: #1f7fcf;
  --blue-dark: #14386b;
  --cyan: #7cc242;
  --cyan-soft: rgba(124, 194, 66, .16);
  --text-dark: #14386b;
  --gray: #8a9a90;
  --surface: #f3f8ee;
  --shadow-sm: 0 1px 2px rgba(40, 80, 50, .05);
  --shadow-md: 0 10px 30px rgba(40, 80, 50, .10);
  --shadow-lg: 0 24px 48px rgba(40, 80, 50, .14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-latin), var(--font-jp);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-jp); font-feature-settings: "palt"; }

/* page enter / exit fade */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
body { animation: pageIn .55s ease both; transition: opacity .35s ease; }
html.page-exit body { opacity: 0; }

img { max-width: 100%; display: block; }
::selection { background: var(--cyan-soft); color: var(--navy); }
a { color: var(--blue); text-decoration: none; transition: color .2s ease, background-color .2s ease, transform .3s var(--ease); }
a:hover { color: var(--navy); }
.latin { font-family: var(--font-latin); }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.pc { display: inline; }
.sp { display: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@keyframes tickIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.reveal.in h2.sec::after { animation: tickIn .7s var(--ease) both; animation-delay: .25s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- buttons (v4) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 30px; border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; }
.btn-white { background: #fff; color: var(--navy); box-shadow: 0 10px 28px rgba(0, 30, 60, .2); }
.btn-white:hover { color: var(--navy); transform: translateY(-2px); }
.btn-line { border: 1.5px solid rgba(255, 255, 255, .8); color: #fff; background: rgba(255, 255, 255, .12); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-weight: 600; }
.btn-line:hover { color: #fff; background: rgba(255, 255, 255, .22); }
.btn-green { background: linear-gradient(135deg, var(--green) 0%, var(--leaf) 100%); color: #fff; box-shadow: 0 12px 26px rgba(90, 166, 43, .28); }
.btn-green:hover { color: #fff; filter: brightness(1.05); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; height: 40px; padding: 0 20px; font-size: 14px; }
.btn-navy:hover { color: #fff; background: var(--blue); }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--blue); }
.more svg { width: 14px; height: 14px; }
.more:hover { gap: 10px; }

/* ---------- typography (v4) ---------- */
.kicker { font-family: var(--font-latin); font-size: 12.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--green); font-weight: 700; }
.h2 { font-size: 40px; font-weight: 800; line-height: 1.4; color: var(--navy); text-wrap: pretty; }
.sec-head { display: flex; flex-direction: column; gap: 14px; }
.sec-head.center { align-items: center; text-align: center; }
.sec-head .lead { font-size: 15.5px; line-height: 1.95; color: var(--text-soft); max-width: 760px; }

/* ---------- header (transparent, sits over the hero photo) ---------- */
header.site { position: absolute; top: 0; left: 0; right: 0; z-index: 30; }
header.site .bar {
  max-width: var(--maxw); margin: 0 auto; height: 84px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: relative;
}
header.site .logo { background: rgba(255, 255, 255, .92); border-radius: 12px; padding: 6px 12px; display: flex; align-items: center; }
header.site .logo img { height: 34px; width: auto; }
nav.main { display: flex; align-items: center; gap: 2px; }
nav.main > a, nav.main .dd > a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: #fff; padding: 10px 12px; border-radius: 999px; text-shadow: 0 1px 8px rgba(0, 30, 60, .35); }
nav.main > a:hover, nav.main .dd:hover > a, nav.main > a.active, nav.main .dd > a.active { background: rgba(255, 255, 255, .18); color: #fff; }
nav.main .dd { position: relative; }
nav.main .dd > a svg { width: 12px; height: 12px; }
nav.main .sub {
  position: absolute; top: 100%; left: 0; min-width: 260px; padding: 8px;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
nav.main .dd:hover .sub, nav.main .dd:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
nav.main .sub a { padding: 9px 14px; border-radius: 10px; font-size: 13.5px; color: var(--text); text-shadow: none; }
nav.main .sub a:hover, nav.main .sub a.active { background: var(--bg-2); color: var(--navy); }
nav.main .lang { margin-left: 6px; height: 36px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .7); font-family: var(--font-latin); font-size: 12.5px; text-shadow: none; }
nav.main .lang svg { width: 14px; height: 14px; }
nav.main .cta { margin-left: 6px; height: 40px; padding: 0 20px; background: #fff; color: var(--navy); font-weight: 700; text-shadow: none; }
nav.main .cta:hover { background: var(--bg-2); color: var(--navy); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 26px; height: 26px; }

/* ---------- home hero ---------- */
.top-hero { position: relative; min-height: 820px; overflow: hidden; display: flex; flex-direction: column; padding-top: 84px; }
.top-hero-bg { position: absolute; inset: 0; }
.top-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.top-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 50, 90, .45) 0%, rgba(10, 50, 90, .18) 55%, rgba(249, 252, 247, 0) 88%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10, 50, 90, .55) 0%, rgba(10, 50, 90, .28) 45%, rgba(10, 50, 90, 0) 72%);
}
.top-hero-inner { position: relative; z-index: 2; max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 118px 24px 140px; display: flex; flex-direction: column; gap: 24px; }
.top-hero .kicker { color: #fff; font-size: 13px; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.top-hero h1 { font-size: 66px; line-height: 1.28; font-weight: 800; color: #fff; text-shadow: 0 4px 24px rgba(0, 30, 60, .35); text-wrap: pretty; }
.top-hero .sub { font-size: 18px; line-height: 1.9; color: #fff; text-shadow: 0 2px 12px rgba(0, 30, 60, .45); max-width: 520px; }
.top-hero .cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.top-hero .cert { display: inline-flex; align-items: center; gap: 10px; width: fit-content; margin-top: 6px; padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--text); font-size: 12.5px; font-weight: 500; }
.top-hero .cert i { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: #eaf5e0; align-items: center; justify-content: center; }
.top-hero .cert svg { width: 14px; height: 14px; }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.top-hero .rise { animation: riseIn .9s var(--ease) both; }
.top-hero .rise-2 { animation-delay: .15s; }
.top-hero .rise-3 { animation-delay: .3s; }
.top-hero .rise-4 { animation-delay: .45s; }

/* ---------- sub-page hero (photo + overlaid title) ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); }
.hero .bg { width: 100%; height: clamp(400px, 52vh, 560px); object-fit: cover; }
.hero .bg.tall { height: clamp(460px, 62vh, 640px); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 50, 90, .5) 0%, rgba(10, 50, 90, .15) 40%, rgba(10, 50, 90, .05) 70%, rgba(249, 252, 247, .0) 100%),
    linear-gradient(90deg, rgba(10, 50, 90, .55) 0%, rgba(10, 50, 90, .25) 50%, rgba(10, 50, 90, 0) 80%);
}
.hero .overlay-title { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; }
.hero .overlay-title .hero-k { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px 10px; font-family: var(--font-latin); font-size: 12.5px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: #d8f0c2; text-shadow: 0 1px 8px rgba(0, 30, 60, .35); animation: riseIn .8s var(--ease) both; animation-delay: .1s; }
.hero .overlay-title h1 { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px 56px; color: #fff; font-weight: 800; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.4; letter-spacing: .03em; text-shadow: 0 4px 24px rgba(0, 30, 60, .45); animation: riseIn .9s var(--ease) both; animation-delay: .22s; }
.hero .overlay-title h1::before { content: ""; display: block; width: 52px; height: 4px; border-radius: 2px; margin-bottom: 18px; background: linear-gradient(90deg, var(--leaf), var(--sky)); }

/* ---------- home: pillars ---------- */
.pillars-sec { position: relative; z-index: 3; margin-top: -96px; padding: 0 20px 96px; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.pillar { padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; border-top: 6px solid var(--leaf); }
.pillar.blue { border-top-color: var(--sky); }
.pillar.sun { border-top-color: var(--sun); }
.pillar .k { font-family: var(--font-latin); font-size: 12px; letter-spacing: .2em; color: var(--green); font-weight: 800; }
.pillar.blue .k { color: var(--blue); }
.pillar.sun .k { color: var(--sun-dark); }
.pillar h3 { font-size: 22px; color: var(--navy); }
.pillar p { font-size: 14.5px; color: var(--text-soft); }
.why { margin-top: 72px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.why .more { margin-top: 8px; }

/* ---------- home: story steps ---------- */
.story-sec { position: relative; background: #fff; padding: 104px 20px; overflow: hidden; }
.story-sec .curve { position: absolute; left: 0; top: 0; width: 100%; height: 200px; pointer-events: none; opacity: .7; }
.story-grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; align-items: center; }
.story-copy { grid-column: span 5; display: flex; flex-direction: column; gap: 16px; }
.story-copy p { font-size: 15.5px; line-height: 1.95; color: var(--text-soft); }
.steps { grid-column: span 7; position: relative; display: flex; flex-direction: column; gap: 18px; }
.steps .rail { position: absolute; left: 44px; top: 40px; height: calc(100% - 80px); width: 4px; pointer-events: none; }
.steps .rail path { stroke: #bfe0a3; stroke-width: 3; stroke-dasharray: 10 14; animation: dash 3s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -80; } }
.step { position: relative; display: flex; gap: 24px; align-items: flex-start; background: var(--bg); border-radius: 24px; padding: 24px 28px; }
.step .ic { display: inline-flex; flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 3px solid var(--leaf); align-items: center; justify-content: center; color: var(--green); }
.step.blue .ic { border-color: var(--sky); color: var(--blue); }
.step.sun .ic { border-color: var(--sun); color: var(--sun-dark); }
.step .ic svg { width: 24px; height: 24px; }
.step .body { display: flex; flex-direction: column; gap: 6px; }
.step .k { font-family: var(--font-latin); font-size: 12px; letter-spacing: .2em; color: var(--green); font-weight: 800; }
.step.blue .k { color: var(--blue); }
.step.sun .k { color: var(--sun-dark); }
.step h3 { font-size: 21px; color: var(--navy); }
.step p { font-size: 14.5px; line-height: 1.85; color: var(--text-soft); }

/* ---------- home: business bento ---------- */
.bento-sec { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); padding: 104px 20px; }
.bento-sec .wrap { display: flex; flex-direction: column; gap: 48px; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.b-card { overflow: hidden; display: flex; flex-direction: column; }
.b-card.wide { grid-column: span 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.b-card img { width: 100%; height: 190px; object-fit: cover; }
.b-card.wide img { height: 100%; }
.b-body { padding: 28px 30px 32px; display: flex; flex-direction: column; gap: 10px; }
.b-card.wide .b-body { padding: 40px 36px; gap: 14px; justify-content: center; }
.b-k { font-family: var(--font-latin); font-size: 12px; letter-spacing: .2em; font-weight: 800; color: var(--blue); }
.b-k.green { color: var(--green); }
.b-k.sun { color: var(--sun-dark); }
.b-body h3 { font-size: 22px; color: var(--navy); }
.b-card.wide .b-body h3 { font-size: 26px; }
.b-body p { font-size: 14px; line-height: 1.85; color: var(--text-soft); }
.b-card.wide .b-body p { font-size: 14.5px; line-height: 1.9; }
.b-body .more { margin-top: 6px; }

/* ---------- home: news ---------- */
.news-sec { background: #fff; padding: 96px 20px; }
.news-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; }
.news-grid .sec-head { grid-column: span 4; }
.news-list { grid-column: span 8; list-style: none; border-top: 1px solid var(--line); }
.news-list a { display: flex; align-items: center; gap: 24px; padding: 22px 12px; border-bottom: 1px solid var(--line); border-radius: 12px; color: var(--text); }
.news-list a:hover { background: #f1f8ec; }
.news-list time { font-family: var(--font-latin); font-size: 14px; color: var(--muted); width: 76px; flex-shrink: 0; }
.news-tag { font-size: 11.5px; font-weight: 800; color: var(--blue); background: #e6f3fc; padding: 4px 10px; border-radius: 999px; flex-shrink: 0; line-height: 1.6; }
.news-tag.green { color: var(--green); background: #eaf5e0; }
.news-title { font-size: 15px; font-weight: 700; color: var(--navy); }

/* ---------- CTA band (shared by all pages) ---------- */
section.cta-band { padding: 0 20px 96px; background: #fff; overflow: hidden; }
section.cta-band .band {
  position: relative; overflow: hidden; max-width: var(--maxw); margin: 0 auto; border-radius: 36px;
  background: linear-gradient(120deg, #e4f4d6 0%, #dff0fb 100%);
  padding: 72px 64px; display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
section.cta-band .ring { position: absolute; right: 300px; top: -60px; width: 260px; height: 260px; opacity: .55; pointer-events: none; animation: drift 6s ease-in-out infinite; }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
section.cta-band .txt { position: relative; display: flex; flex-direction: column; gap: 10px; }
section.cta-band h2 { font-size: 36px; font-weight: 800; line-height: 1.4; color: var(--navy); }
section.cta-band .txt p { font-size: 15px; color: var(--text-soft); }
section.cta-band .btn { position: relative; height: 58px; padding: 0 34px; font-size: 16px; flex-shrink: 0; }

/* ---------- footer ---------- */
footer.site { background: var(--bg-foot); border-top: 1px solid var(--line); padding: 56px 20px 32px; }
.f-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
.f-brand { grid-column: span 5; display: flex; flex-direction: column; gap: 16px; }
.f-brand img { height: 36px; width: auto; align-self: flex-start; }
.f-brand p { font-size: 14px; color: var(--text-soft); }
.f-nav { grid-column: span 4; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.f-nav a { font-size: 14px; color: var(--text); }
.f-nav a:hover { color: var(--blue); }
.f-info { grid-column: span 3; display: flex; flex-direction: column; gap: 14px; }
.f-info .addr { font-size: 13px; line-height: 1.8; color: var(--text-soft); }
.f-info .btn { width: fit-content; font-size: 13px; }
.f-bottom { max-width: var(--maxw); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--font-latin); font-size: 12px; color: var(--muted); }

/* ============================================================
   Page components (carried over from v3, re-themed)
   ============================================================ */
/* ---------- sections ---------- */
section {
  padding: 78px 20px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
}

h2.sec {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: .06em;
}

/* precision tick under section titles */
h2.sec::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  border-radius: 2px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, var(--blue-bright), var(--cyan));
}

h2.sec.blue {
  color: var(--blue-bright);
}

h2.sec.left {
  text-align: left;
}

h2.sec.left::after {
  margin-left: 0;
}

.center {
  text-align: center;
}

.muted {
  color: var(--gray);
}

.small {
  font-size: 13px;
}

/* strengths (home) */
.strengths {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 56px;
  align-items: center;
}

.strengths .txt {
  text-align: center;
  font-size: 15.5px;
  line-height: 2.2;
}

.strengths .txt .underline {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}

.strengths img {
  width: calc(100% + ((100vw - var(--maxw)) / 2) + 20px);
  max-width: none;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius) 0 0 var(--radius);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 1080px) {
  .strengths img {
    width: 100%;
    border-radius: var(--radius);
  }
}

/* cards 3col */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease;
  overflow: hidden;
}

/* cyan precision line that draws on hover */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-bright), var(--cyan));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .4s var(--ease);
  z-index: 1;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 183, 224, .45);
}

.card:hover::before {
  transform: scaleX(1);
}

.card img.ph {
  width: calc(100% + 52px);
  max-width: none;
  height: 210px;
  object-fit: cover;
  margin: -26px -26px 22px;
  transition: none;
  box-shadow: none;
}

.card h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  text-align: left;
}

.card p {
  font-size: 13.5px;
  text-align: justify;
  color: var(--text);
  line-height: 1.9;
}

.card ul {
  margin-left: 1.3em;
}

.card li {
  margin-bottom: 8px;
  color: var(--text);
}

/* icon feature columns */
.feat {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease;
}

.feat:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 183, 224, .45);
}

.feat img {
  width: 116px;
  height: 116px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 18px;
  outline: 3px solid var(--cyan-soft);
  outline-offset: 4px;
  transition: transform .4s var(--ease), outline-color .4s ease;
}

.feat:hover img {
  transform: scale(1.05);
  outline-color: rgba(0, 183, 224, .4);
}

.feat h3 {
  font-size: 16px;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 12px;
}

.feat p {
  font-size: 13.5px;
  text-align: justify;
  color: var(--text);
  line-height: 1.85;
}

/* technology page: card grid */
.t-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 12px;
}

.t-ico {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 118, 223, .10), rgba(0, 183, 224, .14));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-bright);
  transition: transform .3s var(--ease);
}

.t-ico svg {
  width: 27px;
  height: 27px;
}

.techgrid .card:hover .t-ico {
  transform: scale(1.08);
  color: var(--cyan);
}

.techgrid .card h3 {
  font-size: 16.5px;
  line-height: 1.45;
  margin-bottom: 0;
}

.techgrid .card h3 a {
  color: var(--navy);
}

.techgrid .card h3 a:hover {
  color: var(--blue-bright);
  text-decoration: none;
}

.techgrid .card h3 a::after {
  content: " →";
  color: var(--cyan);
  font-weight: 400;
}

/* stretched link: the whole card is clickable */
.techgrid .card h3 a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.techgrid .card:hover h3 a {
  color: var(--blue-bright);
}

.techgrid .card p {
  font-size: 13px;
}

/* technology list page */
.techlist h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 38px 0 8px;
  padding-left: 16px;
  border-left: 3px solid var(--cyan);
  line-height: 1.5;
}

.techlist h3 a {
  color: var(--navy);
}

.techlist h3 a:hover {
  color: var(--blue-bright);
  text-decoration: none;
}

.techlist h3 a::after {
  content: " →";
  color: var(--cyan);
  font-weight: 400;
  transition: padding-left .2s ease;
}

.techlist p {
  font-size: 14px;
  color: var(--text);
}

/* figure blocks */
figure.fig {
  margin: 38px auto;
  text-align: center;
}

figure.fig img {
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

figure.fig figcaption {
  font-size: 13px;
  color: var(--gray);
  margin-top: 14px;
  text-align: center;
}

.figrow {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.figrow figure {
  flex: 1 1 300px;
  max-width: 460px;
}

.ref {
  display: block;
  text-align: right;
  font-size: 13px;
  margin-top: 6px;
  color: var(--gray);
}

.ref:hover {
  color: var(--cyan);
}

/* prose */
.prose {
  max-width: 860px;
  margin: 0 auto;
}

.prose p {
  margin-bottom: 18px;
}

.prose ul {
  margin: 0 0 18px 1.4em;
}

.prose li {
  margin-bottom: 10px;
}

/* x60 banner (DRR) */
.x60 {
  text-align: center;
  border: 1px solid rgba(124, 194, 66, .35);
  border-radius: var(--radius);
  padding: 36px 28px;
  background:
    radial-gradient(ellipse 80% 120% at 50% -20%, rgba(124, 194, 66, .22), transparent 65%),
    var(--navy-950);
}

.x60 .big {
  font-size: 68px;
  font-weight: 200;
  line-height: 1.2;
  background: linear-gradient(135deg, #a8e07a, #6fd0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.x60 p {
  color: #f2f8ff;
  font-weight: 700;
  font-size: 16px;
}

.x60 p.note {
  font-size: 12.5px;
  color: #c9dbe8;
  font-weight: 400;
}

/* company table */
.company p {
  margin-bottom: 14px;
}

/* recruit */
.joblist {
  max-width: 780px;
  margin: 0 auto;
}

.job {
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  border-radius: 10px;
  padding: 22px 26px;
  margin-bottom: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s var(--ease);
}

.job:hover {
  border-left-color: var(--cyan);
  box-shadow: var(--shadow-md);
  transform: translateX(3px);
}

.job h3 {
  font-size: 17px;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 4px;
}

.job .date {
  font-size: 12.5px;
  color: var(--gray);
  margin-bottom: 8px;
  letter-spacing: .03em;
}

.job p {
  font-size: 14px;
  color: var(--text);
}

/* Forms and inputs */
form.contact {
  max-width: 640px;
  margin: 0 auto;
}

.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

form.contact label {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  display: block;
  margin: 18px 0 6px;
}

form.contact input,
form.contact textarea,
form.contact select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ccd6e4;
  background: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  color: var(--text-dark);
}

form.contact input:focus,
form.contact textarea:focus,
form.contact select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-soft);
}

form.contact textarea {
  min-height: 130px;
  margin-top: 4px;
  resize: vertical;
}

.select-wrapper {
  position: relative;
}

/* Buttons */
.btn-outline {
  display: inline-block;
  background: linear-gradient(120deg, var(--blue-bright), var(--cyan));
  color: #fff;
  border: none;
  padding: 12px 48px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.06em;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 118, 223, .28);
  transition: transform .25s var(--ease), box-shadow .25s ease, filter .25s ease;
}

.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 118, 223, .38);
  filter: brightness(1.06);
}

.form-note {
  font-size: 12.5px;
  color: var(--gray);
  margin-top: 12px;
}

/* contact split */
.split {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.split img.side {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* ---------- site chrome ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #7cc242, #3fb0e8);
  z-index: 200;
  pointer-events: none;
}

header.site {
  transition: box-shadow .3s ease, background .3s ease, transform .35s var(--ease);
}

header.site.hide {
  transform: translateY(-100%);
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-bright), var(--cyan));
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 118, 223, .35);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s var(--ease);
  z-index: 150;
}

.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  filter: brightness(1.08);
}

/* custom scrollbar (WebKit) */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #eef2f7;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--blue-bright), var(--cyan));
  border-radius: 8px;
  border: 3px solid #eef2f7;
}

/* lightbox */
img.zoomable {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(6, 15, 33, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity .25s ease;
}

.lightbox.open {
  opacity: 1;
}

.lightbox img {
  max-width: 94%;
  max-height: 92%;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  transform: scale(.96);
  transition: transform .25s var(--ease);
}

.lightbox.open img {
  transform: none;
}

/* ---------- buttons ---------- */
.btn-fill {
  display: inline-block;
  background: linear-gradient(120deg, var(--blue-bright), var(--cyan));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 13px 34px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 118, 223, .30);
  transition: transform .25s var(--ease), box-shadow .25s ease, filter .25s ease;
}

.btn-fill:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 118, 223, .40);
  filter: brightness(1.06);
}

.btn-fill.lg {
  font-size: 17px;
  padding: 16px 44px;
}

.btn-ghost {
  display: inline-block;
  color: var(--blue-bright);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 13px 10px;
}

.btn-ghost span {
  transition: transform .25s var(--ease);
  display: inline-block;
}

.btn-ghost:hover {
  text-decoration: none;
}

.btn-ghost:hover span {
  transform: translateX(4px);
}

/* prominent inline message (recruit / sta) */
.callout {
  font-size: clamp(21px, 3.2vw, 34px);
  font-weight: 800;
  line-height: 1.7;
  letter-spacing: .02em;
  color: #0b1830;
  font-feature-settings: "palt";
}

.pillars-sec {
  background: #fbfdff;
  padding: 110px 20px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
}

.pillar .pillar-k {
  font-family: var(--font-latin), sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.pillar h3 {
  font-size: 21px;
  font-weight: 700;
  color: #0b1830;
  margin-bottom: 10px;
}

.pillar p {
  font-size: 14.5px;
  color: var(--gray);
  line-height: 1.95;
}

.pillars-photo {
  margin: 72px 0 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.pillars-photo img {
  width: 100%;
  height: clamp(280px, 40vw, 480px);
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}

/* ---------- FAQ (beginner's guide) ---------- */
.faq {
  max-width: 820px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 30px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.faq-item h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17.5px;
  font-weight: 700;
  color: #0b1830;
  margin-bottom: 12px;
  font-feature-settings: "palt";
}

.q-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--blue-bright), var(--cyan));
  color: #fff;
  font-family: var(--font-latin), sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.faq-item p {
  font-size: 14.5px;
  line-height: 2;
  color: var(--text);
}

.faq-item strong {
  color: var(--navy);
}

/* ---------- stats (numbers) ---------- */
.stats-sec {
  background:
    radial-gradient(ellipse 70% 90% at 50% -30%, rgba(124, 194, 66, .25), transparent 70%),
    var(--navy-950);
  padding: 72px 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-latin), sans-serif;
  font-size: clamp(38px, 4.6vw, 60px);
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(135deg, #6fd6ff, #4f9dfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #9fb0ca;
  letter-spacing: .04em;
}

/* ---------- president message ---------- */
.msg-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
  max-width: 940px;
  margin: 0 auto;
}

.president-photo {
  margin: 6px 0 0;
}

.president-photo img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  outline: 4px solid var(--cyan-soft);
  outline-offset: 5px;
  margin: 0 auto;
}

.msg p {
  font-size: 15px;
  line-height: 2.1;
}

.msg-sign {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 28px;
}

.msg-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: .06em;
  margin-bottom: 4px;
}

.sign-img {
  width: min(260px, 60vw);
  height: auto;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .msg-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    justify-items: center;
  }
  .msg-grid .msg {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-list a {
    flex-wrap: wrap;
    gap: 8px 14px;
  }
}

/* responsive */
@media(max-width:900px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .home-hero .img {
    height: 300px;
  }
  .home-hero .txt {
    padding: 48px 24px;
  }
  .home-hero h1.hero-logo-title {
    font-size: 38px;
  }
  .hero .overlay-title h1 {
    font-size: 22px;
    padding-bottom: 32px;
  }
  .grid3 {
    grid-template-columns: 1fr;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .strengths {
    grid-template-columns: 1fr;
  }
  .strengths img {
    width: 100%;
    height: 300px;
    border-radius: var(--radius);
  }
  .split {
    grid-template-columns: 1fr;
  }
  .split img.side {
    height: 280px;
  }
}

/* ============================================================
   v4 responsive (must stay last)
   ============================================================ */
@media (max-width: 1100px) {
  nav.main > a, nav.main .dd > a { padding: 10px 9px; font-size: 13px; }
  .top-hero h1 { font-size: 54px; }
}
@media (max-width: 960px) {
  .pc { display: none; }
  .sp { display: inline; }
  .h2 { font-size: 32px; }

  .menu-btn { display: inline-flex; position: static; }
  nav.main {
    position: absolute; left: 16px; right: 16px; top: 76px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-radius: 20px; padding: 12px; box-shadow: var(--shadow);
    display: none;
  }
  nav.main.open { display: flex; }
  nav.main > a, nav.main .dd > a { color: var(--text); padding: 12px 14px; text-shadow: none; }
  nav.main > a:hover, nav.main .dd:hover > a, nav.main > a.active, nav.main .dd > a.active { background: var(--bg-2); color: var(--navy); }
  nav.main .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 6px 18px; min-width: 0; display: flex; border: none; }
  nav.main .lang { margin: 6px 0 0; border-color: var(--line); color: var(--text); width: fit-content; }
  nav.main .cta { margin: 6px 0 0; background: var(--navy); color: #fff; justify-content: center; }
  nav.main .cta:hover { background: var(--blue); color: #fff; }

  .top-hero { min-height: 0; }
  .top-hero-bg img { object-position: 62% 40%; }
  .top-hero-inner { padding: 60px 22px 120px; gap: 18px; }
  .top-hero h1 { font-size: 40px; }
  .top-hero .sub { font-size: 15px; }
  .top-hero .cta-row { flex-direction: column; align-items: stretch; }
  .top-hero .cta-row .btn { height: 50px; }
  .top-hero .cert { font-size: 11.5px; }

  .hero .bg { height: 360px; }
  figure img, .fig img, .figrow img, .prose img, main img.zoomable { max-width: 100% !important; height: auto; }
  .hero .overlay-title h1 { font-size: 26px; padding-bottom: 36px; }

  .pillars-sec { margin-top: -70px; padding-bottom: 56px; }
  .pillars { grid-template-columns: 1fr; gap: 14px; }
  .pillar { padding: 22px 24px; border-top-width: 5px; }
  .pillar h3 { font-size: 19px; }
  .why { margin-top: 32px; }

  .story-sec { padding: 56px 20px; }
  .story-grid { grid-template-columns: 1fr; gap: 22px; }
  .story-copy, .steps { grid-column: auto; }
  .steps .rail { display: none; }
  .step { padding: 20px; gap: 16px; }
  .step .ic { width: 44px; height: 44px; }
  .step .ic svg { width: 20px; height: 20px; }
  .step h3 { font-size: 17px; }

  .bento-sec { padding: 56px 20px; }
  .bento-sec .wrap { gap: 24px; }
  .bento { grid-template-columns: 1fr; gap: 16px; }
  .b-card.wide { grid-column: auto; display: flex; flex-direction: column; }
  .b-card.wide img { height: 190px; order: -1; }
  .b-card.wide .b-body { padding: 24px 24px 28px; }
  .b-card.wide .b-body h3 { font-size: 22px; }

  .news-sec { padding: 56px 20px; }
  .news-grid { grid-template-columns: 1fr; gap: 20px; }
  .news-grid .sec-head, .news-list { grid-column: auto; }
  .news-list a { flex-wrap: wrap; gap: 8px 14px; padding: 16px 8px; }
  .news-title { width: 100%; font-size: 14.5px; }

  section.cta-band { padding-bottom: 48px; }
  section.cta-band .band { flex-direction: column; align-items: stretch; padding: 32px 24px; border-radius: 24px; gap: 18px; }
  section.cta-band .ring { right: -60px; top: -100px; }
  section.cta-band h2 { font-size: 24px; }
  section.cta-band .btn { height: 50px; padding: 0; }

  footer.site { padding: 36px 20px 24px; }
  .f-grid { grid-template-columns: 1fr; gap: 22px; }
  .f-brand, .f-nav, .f-info { grid-column: auto; }
  .f-bottom { margin-top: 24px; }
}
@media (max-width: 480px) {
  .top-hero h1 { font-size: 34px; }
  .h2 { font-size: 27px; }
  .why .h2 { font-size: 25px; }
  .top-hero-inner { padding: 48px 20px 110px; }
}
