/* ============================================================
   Perfect Imaging Laboratory — v3 redesign
   Theme: 先進テック × 医療の信頼感
   Deep navy + clinical white + precision cyan
   ============================================================ */
:root {
  /* brand palette */
  --navy-950: #060f21;
  --navy-900: #0a1a33;
  --navy-800: #0e2547;
  --navy: #14386b;            /* brand navy (kept) */
  --blue: #1d7ac2;            /* legacy accent (kept for compatibility) */
  --blue-bright: #0076df;     /* logo blue */
  --blue-dark: #005bac;
  --cyan: #00b7e0;            /* precision cyan accent */
  --cyan-soft: rgba(0, 183, 224, .12);
  --text: #3d4a5c;
  --text-dark: #1e2b3c;
  --gray: #71809a;
  --line: #e3e9f2;
  --surface: #f6f9fc;
  --maxw: 1040px;
  --font-latin: "Nunito", "Helvetica Neue", Helvetica, Arial;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(10, 26, 51, .05);
  --shadow-md: 0 10px 30px rgba(10, 26, 51, .10);
  --shadow-lg: 0 24px 48px rgba(10, 26, 51, .16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-latin), "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text);
  font-size: 15px;
  line-height: 1.95;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ----- page enter / exit fade ----- */
body {
  opacity: 1;
  transition: opacity .35s ease;
}

@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body { animation: pageIn .55s ease both; }

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;
}

a:hover {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Underline decoration helper */
.underline {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 2px;
}

/* ---------- header ---------- */
header.site {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
}

/* precision accent line on the very top */
header.site::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--blue-bright) 45%, var(--cyan) 100%);
}

.brandrow {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 20px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brandrow .logo img {
  height: 48px;
  width: auto;
  transition: opacity .25s ease;
}

.brandrow .logo:hover img {
  opacity: .8;
}

/* Language selector */
.lang-selector {
  position: relative;
  display: inline-block;
  z-index: 110;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--navy);
  user-select: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.lang-selector:hover .lang-current {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-soft);
}

.lang-current img {
  width: 18px;
  height: auto;
  border: 1px solid #eee;
  border-radius: 2px;
}

.lang-current .arrow {
  font-size: 8px;
  color: var(--gray);
  margin-left: 2px;
}

.lang-dropdown {
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  min-width: 130px;
  overflow: hidden;
  z-index: 120;
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  color: var(--text-dark);
  font-size: 13px;
  text-decoration: none;
}

.lang-dropdown a:hover {
  background: var(--surface);
  color: var(--navy);
}

.lang-selector:hover .lang-dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* Navigation */
nav.main {
  border-top: 1px solid var(--line);
}

nav.main ul {
  list-style: none;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2px 20px;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 4px;
}

nav.main>ul>li {
  position: relative;
}

nav.main>ul>li>a {
  display: block;
  position: relative;
  padding: 12px 13px;
  font-size: 13px;
  color: var(--text-dark);
  letter-spacing: .04em;
  font-weight: 500;
}

nav.main>ul>li>a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 7px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-bright), var(--cyan));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s var(--ease);
}

nav.main>ul>li>a:hover::after,
nav.main>ul>li>a.active::after {
  transform: scaleX(1);
}

nav.main>ul>li>a:hover, nav.main>ul>li>a.active {
  color: var(--blue-bright);
  text-decoration: none;
}

/* dropdown */
.sub {
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity .25s ease, transform .25s var(--ease), visibility .25s;
  position: absolute;
  left: 50%;
  top: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  min-width: 270px;
  padding: 8px;
  z-index: 60;
}

nav.main li.dd:hover .sub {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.sub a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-dark);
  white-space: nowrap;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease, padding-left .2s ease;
}

.sub a:hover {
  background: var(--surface);
  text-decoration: none;
  color: var(--blue-bright);
  padding-left: 20px;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--navy);
  cursor: pointer;
}

/* ---------- hero (sub pages) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
}

.hero .bg {
  width: 100%;
  height: clamp(380px, 52vh, 540px);
  object-fit: cover;
}

.hero .bg.tall {
  height: clamp(440px, 62vh, 620px);
}

/* clinical navy overlay: unifies every hero photo into brand tone */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg,
      rgba(6, 15, 33, .74) 0%,
      rgba(10, 26, 51, .46) 45%,
      rgba(10, 26, 51, .20) 100%);
  pointer-events: none;
}

/* fine scanline grid over hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.hero .overlay-title {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
}

.hero .overlay-title .hero-k {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 10px;
  font-family: var(--font-latin), sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .30em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #6fd6ff, #35c9f0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: riseIn .8s var(--ease) both;
  animation-delay: .1s;
}

.hero .overlay-title h1 {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 48px;
  background: none;
  box-shadow: none;
  border: none;
  color: #fff;
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 48px);
  line-height: 1.4;
  text-align: left;
  letter-spacing: .04em;
  text-shadow: 0 2px 24px rgba(6, 15, 33, .55);
  font-feature-settings: "palt";
  animation: riseIn .9s var(--ease) both;
  animation-delay: .22s;
}

.hero .overlay-title h1::before {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--cyan), var(--blue-bright));
}

/* ---------- home hero ---------- */
.home-hero-container {
  max-width: none;
  margin: 0;
  padding: 0;
  background: #fff;
}

.home-hero {
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: 560px;
  border: none;
  margin: 0;
}

.home-hero .img {
  background-size: cover;
  background-position: center;
  background-color: #eaf3fa;
}

.home-hero .txt {
  position: relative;
  padding: 72px 24px 72px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(0, 183, 224, .10), transparent 60%),
    linear-gradient(160deg, #ffffff 0%, #f2f8fd 60%, #e8f3fb 100%);
  overflow: hidden;
}

/* subtle grid on hero text panel */
.home-hero .txt::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 56, 107, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 56, 107, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.home-hero .txt > * {
  max-width: 560px;
  position: relative;
}

.home-hero h1.hero-logo-title {
  font-weight: 600;
  font-size: 56px;
  line-height: 1.16;
  color: var(--navy);
  letter-spacing: .015em;
  margin-bottom: 30px;
}

.home-hero h1.hero-logo-title .highlight {
  background: linear-gradient(135deg, #35c9f0, #0076df);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-hero p.lead {
  font-size: 15px;
  line-height: 2.1;
  color: var(--text);
  margin-bottom: 30px;
}

.home-hero .cert {
  font-size: 12.5px;
  line-height: 1.6;
}

.home-hero .cert a {
  display: inline-block;
  text-decoration: none;
  color: var(--navy);
  border: 1px solid rgba(20, 56, 107, .28);
  border-radius: 999px;
  padding: 7px 18px;
  background: rgba(255, 255, 255, .7);
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}

.home-hero .cert a:hover {
  color: var(--blue-bright);
  border-color: var(--cyan);
  background: var(--cyan-soft);
  text-decoration: none;
}

/* ---------- 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(0, 183, 224, .25);
  border-radius: var(--radius);
  padding: 36px 28px;
  background:
    radial-gradient(ellipse 80% 120% at 50% -20%, rgba(0, 118, 223, .18), transparent 65%),
    var(--navy-950);
}

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

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

.x60 p.note {
  font-size: 12.5px;
  color: #93a5c2;
  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;
}

/* footer */
footer.site {
  position: relative;
  margin-top: 0;
  padding: 64px 20px 34px;
  text-align: left;
  font-size: 12.5px;
  color: #9fb0ca;
  background: var(--navy-950);
}

.f-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 44px;
  align-items: start;
  padding-bottom: 40px;
}

.f-logo {
  display: inline-block;
  background: #fff;
  border-radius: 10px;
  padding: 9px 16px;
}

.f-logo img {
  height: 34px;
  width: auto;
}

.f-tag {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: #c6d3e8;
  letter-spacing: .04em;
  font-feature-settings: "palt";
}

.f-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  padding-top: 6px;
}

.f-nav a {
  color: #9fb0ca;
  font-size: 13px;
}

.f-nav a:hover {
  color: var(--cyan);
  text-decoration: none;
}

.f-info .addr {
  font-size: 12.5px;
  line-height: 1.9;
  color: #c6d3e8;
  margin-bottom: 16px;
}

.btn-fill.sm {
  padding: 9px 26px;
  font-size: 13px;
}

.f-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding-top: 22px;
  text-align: center;
  font-size: 12px;
  color: #71809a;
}

@media (max-width: 900px) {
  .f-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
    justify-items: center;
  }
  .f-nav {
    padding-top: 0;
  }
}

footer.site::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--blue-bright) 45%, var(--cyan) 100%);
}

footer.site .addr {
  margin-bottom: 8px;
  color: #c6d3e8;
}

footer.site a {
  color: #c6d3e8;
}

footer.site a:hover {
  color: var(--cyan);
}

/* 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, #35c9f0, #6fd6ff);
  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;
}

/* section title tick draws in on reveal */
@keyframes tickIn {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.reveal.in h2.sec::after {
  animation: tickIn .7s var(--ease) both;
  animation-delay: .25s;
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { animation: none; }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* ============================================================
   v4 — Apple-inspired home page & refined typography
   ============================================================ */

/* Japanese display typography: proportional kerning on headings */
h1, h2, h3, .h-title, .big-state {
  font-feature-settings: "palt";
}

.pc { display: inline; }
.sp { display: 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);
}

/* ---------- header states ---------- */
header.site {
  transition: box-shadow .3s ease, background .3s ease;
}

header.site.scrolled {
  box-shadow: 0 10px 30px rgba(10, 26, 51, .08);
  background: rgba(255, 255, 255, .85);
}

/* ---------- HERO (full-bleed photo with overlaid title) ---------- */
.h-hero {
  position: relative;
  min-height: 100svh;
  padding: 120px 20px 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--navy-950);
}

.h-bg {
  position: absolute;
  inset: 0;
}

.h-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  will-change: transform;
}

/* blue-toned cinematic overlay for readability */
.h-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 60% at 50% 42%, rgba(6, 15, 33, .10), rgba(6, 15, 33, .30) 100%),
    linear-gradient(180deg, rgba(6, 15, 33, .38) 0%, rgba(10, 26, 51, .14) 45%, rgba(6, 15, 33, .38) 100%);
}

.h-inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
}

/* staggered entrance */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

.h-inner > * {
  animation: riseIn .9s var(--ease) both;
}

.h-inner > *:nth-child(1) { animation-delay: .05s; }
.h-inner > *:nth-child(2) { animation-delay: .18s; }
.h-inner > *:nth-child(3) { animation-delay: .36s; }
.h-inner > *:nth-child(4) { animation-delay: .52s; }
.h-inner > *:nth-child(5) { animation-delay: .66s; }

.h-kicker {
  font-family: var(--font-latin), sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .30em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #6fd6ff, #35c9f0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 22px;
}

.h-title {
  font-size: clamp(42px, 7.6vw, 86px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: .01em;
  color: #fff;
  text-shadow: 0 4px 40px rgba(6, 15, 33, .55);
  margin-bottom: 26px;
}

.h-sub {
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 500;
  line-height: 2;
  color: #c9d8ec;
  text-shadow: 0 2px 18px rgba(6, 15, 33, .5);
  margin-bottom: 34px;
}

.h-cta {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.h-hero .btn-ghost {
  color: #9fd8ff;
}

.h-cert {
  font-size: 12px;
}

.h-cert a {
  color: #dbe6f5;
  border: 1px solid rgba(255, 255, 255, .30);
  border-radius: 999px;
  padding: 7px 18px;
  display: inline-block;
  background: rgba(10, 26, 51, .38);
  backdrop-filter: blur(4px);
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}

.h-cert a:hover {
  color: #fff;
  border-color: var(--cyan);
  background: rgba(0, 183, 224, .16);
  text-decoration: none;
}

.h-scrollcue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  z-index: 2;
}

.h-scrollcue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--cyan);
  animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- SCROLL STORY (photoreal 3DCG, white room) ---------- */
.story {
  background: #f0f4f8;
  padding: 0;
}

.story-track {
  height: 340vh;
  position: relative;
}

.story-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.story-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(28px, 7vh, 72px);
  text-align: center;
  padding: 0 24px;
  pointer-events: none;
}

.story-step {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 16px);
  width: min(720px, 90vw);
  font-size: clamp(15px, 2vw, 19px);
  line-height: 2;
  color: #55688a;
  text-shadow: 0 1px 12px rgba(240, 244, 248, .9);
  opacity: 0;
  transition: opacity .5s ease, transform .5s var(--ease);
}

.story-step strong {
  display: block;
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 800;
  letter-spacing: .03em;
  color: #0b1830;
  margin-bottom: 8px;
  font-feature-settings: "palt";
}

.story-step.active {
  opacity: 1;
  transform: translate(-50%, 0);
}

.story-metric {
  position: absolute;
  top: clamp(20px, 5vh, 48px);
  right: clamp(20px, 5vw, 56px);
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(13, 43, 87, .14);
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(10, 26, 51, .08);
}

.story-metric-label {
  font-family: var(--font-latin), sans-serif;
  font-size: 10.5px;
  letter-spacing: .22em;
  color: #71809a;
}

.story-metric-value {
  font-family: var(--font-latin), sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #0076df;
  font-variant-numeric: tabular-nums;
}

/* ---------- big statement & pillars ---------- */
.big-state {
  font-size: clamp(28px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .02em;
  color: #0b1830;
}

.big-state.center {
  text-align: center;
}

.grad,
.big-state .grad {
  background: linear-gradient(90deg, var(--blue-bright), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 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;
}

/* ---------- bento ---------- */
.bento-sec {
  background: #f2f5f9;
  padding: 110px 20px 120px;
}

.bento-lead {
  max-width: 760px;
  margin: 26px auto 56px;
  text-align: center;
  font-size: 15px;
  color: var(--gray);
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}

.b-card {
  grid-column: span 2;
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(10, 26, 51, .05);
  transition: transform .4s var(--ease), box-shadow .4s ease;
}

.b-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(10, 26, 51, .14);
}

.b-card.b-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
}

.b-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.b-card.b-wide img {
  height: 100%;
  min-height: 320px;
}

.b-body {
  padding: 30px 30px 34px;
}

.b-card.b-wide .b-body {
  padding: 48px 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.b-body h3 {
  font-size: 21px;
  font-weight: 700;
  color: #0b1830;
  margin-bottom: 12px;
  font-feature-settings: "palt";
}

.b-card.b-wide .b-body h3 {
  font-size: 26px;
}

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

.b-more {
  display: inline-block;
  margin-left: 6px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- 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(0, 118, 223, .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;
}

/* ---------- news ---------- */
.news-sec {
  background: #fff;
  padding: 84px 20px;
}

.news-list {
  list-style: none;
  max-width: 860px;
  margin: 0 auto;
}

.news-list a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--text-dark);
  transition: background .2s ease;
}

.news-list li:first-child a {
  border-top: 1px solid var(--line);
}

.news-list a:hover {
  background: var(--surface);
  text-decoration: none;
}

.news-list time {
  flex: none;
  font-family: var(--font-latin), sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--gray);
}

.news-tag {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-bright);
  border: 1px solid rgba(0, 118, 223, .35);
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}

.news-title {
  font-size: 14.5px;
}

.news-list a:hover .news-title {
  color: var(--blue-bright);
}

/* ---------- 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;
  }
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(ellipse 70% 90% at 50% 120%, rgba(0, 118, 223, .35), transparent 70%),
    var(--navy-950);
  text-align: center;
  padding: 64px 20px;
}

.cta-band h2 {
  font-size: clamp(22px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
  margin-bottom: 28px;
  font-feature-settings: "palt";
}

/* home footer sits flush against CTA */
body.home footer.site {
  margin-top: 0;
}

/* ---------- v4 responsive ---------- */
@media (max-width: 900px) {
  .pc { display: none; }
  .sp { display: inline; }
  .pillars {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .b-card {
    grid-column: auto;
  }
  .b-card.b-wide {
    grid-column: auto;
    display: flex;
    flex-direction: column-reverse;
  }
  .b-card.b-wide img {
    min-height: 0;
    height: 210px;
  }
  .b-card.b-wide .b-body {
    padding: 30px;
  }
  .story-track {
    height: 300vh;
  }
  .story-metric {
    top: 16px;
    right: 16px;
    padding: 8px 14px;
  }
  .story-metric-value {
    font-size: 18px;
  }
  .h-hero {
    padding-top: 72px;
  }
}

/* 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;
  }
  nav.main ul {
    display: none;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }
  nav.main ul.open {
    display: flex;
  }
  nav.main>ul>li>a {
    padding: 12px 18px;
    font-size: 15px;
    text-align: center;
  }
  nav.main>ul>li>a::after {
    display: none;
  }
  .sub {
    position: static;
    visibility: visible;
    opacity: 1;
    display: block;
    box-shadow: none;
    border: none;
    padding-left: 14px;
    transform: none;
  }
  .menu-btn {
    display: block;
    position: absolute;
    right: 18px;
    top: 18px;
  }
}
