:root {
  --navy: #0b2a5b;
  --navy-dark: #061832;
  --blue: #1e6fd9;
  --cyan: #29c4e0;
  --gray: #f3f6fa;
  --text: #1f2a3c;
  --accent: #f08a24;
  --header-h: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { max-width: 100%; }
a { color: var(--blue); }
ul { margin: 0; padding: 0; list-style: none; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background .3s, box-shadow .3s;
}
.header.is-scrolled { background: rgba(6, 24, 50, .94); box-shadow: 0 2px 12px rgba(0,0,0,.25); backdrop-filter: blur(6px); }
.header__inner { max-width: 1200px; height: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.logo__image { display: block; width: 136px; height: auto; }
.header .logo__image { width: 240px; }
.gnav ul { display: flex; gap: 8px; align-items: center; }
.gnav a { display: block; padding: 8px 16px; color: #fff; text-decoration: none; text-align: center; line-height: 1.3; border-radius: 4px; transition: color .2s, background .2s; }
.gnav a:hover { color: var(--cyan); }
.gnav span { display: block; font-family: Montserrat, sans-serif; font-weight: 600; font-size: .9rem; letter-spacing: .08em; }
.gnav small { display: block; font-size: .65rem; opacity: .8; }
.gnav .gnav__contact { background: var(--accent); margin-left: 8px; }
.gnav .gnav__contact:hover { background: #ffa04a; color: #fff; }
.menu-btn { display: none; }

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; color: #fff; overflow: hidden;
  background:
    radial-gradient(ellipse at 75% 55%, #1b5fb8 0%, rgba(27,95,184,0) 55%),
    linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 60%, #0e3f82 100%);
}
.hero__bg { position: absolute; inset: 0; background: url("../img/bg1.png") center / cover no-repeat; animation: heroZoom 24s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,24,50,.72) 0%, rgba(6,24,50,.38) 50%, rgba(6,24,50,.05) 100%), linear-gradient(180deg, rgba(6,24,50,.45) 0%, rgba(6,24,50,0) 25%); pointer-events: none; }
.hero__content { position: relative; max-width: 1200px; width: 100%; margin: 0 auto; padding: calc(var(--header-h) + 24px) 24px 80px; }
.hero__eyebrow { font-family: Montserrat, sans-serif; letter-spacing: .25em; font-size: .85rem; color: var(--cyan); margin: 0 0 16px; }
.hero__title { font-size: clamp(2rem, 5.5vw, 3.8rem); line-height: 1.35; margin: 0 0 24px; font-weight: 700; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hero__lead { font-size: clamp(.95rem, 1.6vw, 1.15rem); margin: 0 0 36px; }
.hero__scroll { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); color: #fff; text-decoration: none; font-family: Montserrat, sans-serif; font-size: .7rem; letter-spacing: .2em; padding-bottom: 44px; }
.hero__scroll::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 36px; background: #fff; transform-origin: top; animation: scroll 1.8s ease-in-out infinite; }
@keyframes scroll { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Buttons */
.btn { display: inline-block; padding: 14px 40px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(240,138,36,.35); }
.btn--primary:hover { background: #ffa04a; transform: translateY(-2px); }
.btn--large { padding: 18px 56px; font-size: 1.1rem; }

/* Sections */
.section { padding: 110px 0; }
.section--gray { background: var(--gray); }
.section--dark { background: linear-gradient(160deg, var(--navy-dark), var(--navy)); color: #fff; position: relative; overflow: hidden; }
#network { background: linear-gradient(160deg, rgba(6,24,50,.9), rgba(11,42,91,.78)), url("../img/bg5.png") center / cover no-repeat; }
.section--dark::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(41,196,224,.25) 1.2px, transparent 1.4px); background-size: 22px 22px; opacity: .5; mask-image: radial-gradient(ellipse at 70% 50%, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000, transparent 75%); }
.container { position: relative; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 880px; }
.heading { text-align: center; margin: 0 0 60px; line-height: 1.3; }
.heading__en { display: block; font-family: Montserrat, sans-serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: .08em; color: var(--navy); }
.heading__ja { display: inline-block; position: relative; margin-top: 8px; padding-bottom: 14px; font-size: .95rem; color: #667; }
.heading__ja::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.heading--light .heading__en { color: #fff; }
.heading--light .heading__ja { color: #c5d3ea; }

/* Service */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: #fff; border-radius: 10px; padding: 40px 30px; box-shadow: 0 8px 30px rgba(11,42,91,.1); border-top: 4px solid var(--blue); position: relative; transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 38px rgba(11,42,91,.18); }
.card__photo { display: block; width: calc(100% + 60px); max-width: none; aspect-ratio: 16 / 9; object-fit: cover; margin: -40px -30px 0; border-radius: 6px 6px 0 0; }
.card__icon { position: relative; width: 72px; height: 72px; margin: -36px 0 16px; padding: 14px; border-radius: 50%; background: var(--gray); border: 4px solid #fff; box-shadow: 0 4px 12px rgba(11,42,91,.15); }
.card__icon svg { width: 100%; height: 100%; fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.card__num { position: absolute; top: 16px; right: 16px; margin: 0; padding: 6px 12px; border-radius: 4px; background: rgba(11,42,91,.85); font-family: Montserrat, sans-serif; font-weight: 700; font-size: 1.4rem; color: #fff; line-height: 1; }
.card__title { margin: 0 0 14px; font-size: 1.2rem; color: var(--navy); line-height: 1.5; }
.card__text { margin: 0; font-size: .95rem; }

/* News */
.news { background: #fff; border-radius: 10px; box-shadow: 0 6px 24px rgba(11,42,91,.08); }
.news__item { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; padding: 22px 28px; border-bottom: 1px solid #e3e9f2; }
.news__item:last-child { border-bottom: 0; }
.news__date { font-family: Montserrat, sans-serif; font-weight: 600; color: #667; }
.news__tag { font-size: .75rem; padding: 2px 14px; border-radius: 999px; background: var(--navy); color: #fff; }
.news__title { flex: 1 1 280px; }

/* Company */
.company { margin: 0; border-top: 2px solid var(--navy); }
.company > div { display: flex; padding: 22px 12px; border-bottom: 1px solid #dfe5ee; }
.company dt { flex: 0 0 220px; font-weight: 700; color: var(--navy); }
.company dd { margin: 0; flex: 1; }
.dot-list li { position: relative; padding-left: 1.1em; }
.dot-list li::before { content: ""; position: absolute; left: 0; top: .85em; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

/* Network */
.network { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; }
.network__box { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.2); border-radius: 10px; padding: 36px 32px; backdrop-filter: blur(4px); }
.network__box p { margin: 0 0 8px; }
.network__title { margin: 0 0 16px; font-size: 1.25rem; color: var(--cyan); }
.network__sub { color: #c5d3ea; font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tags li { padding: 4px 16px; border: 1px solid var(--cyan); border-radius: 999px; font-family: Montserrat, sans-serif; font-size: .9rem; }

/* Contact */
.contact { background: linear-gradient(rgba(243,246,250,.9), rgba(243,246,250,.93)), url("../img/bg4.png") center / cover no-repeat; }
.contact__body { text-align: center; }
.contact__body > p:first-child { margin: 0 0 32px; }
.contact__tel { margin: 28px 0 0; font-family: Montserrat, sans-serif; font-weight: 600; font-size: 1.4rem; }
.contact__tel a { color: var(--navy); text-decoration: none; }

/* Footer */
.footer { background: var(--navy-dark); color: #fff; padding: 36px 24px; }
.footer__inner { max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer__copy { margin: 0; font-size: .8rem; opacity: .75; }

/* Page top */
.pagetop { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 90; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.pagetop::after { content: ""; position: absolute; left: 50%; top: 52%; width: 12px; height: 12px; border-top: 2px solid #fff; border-left: 2px solid #fff; transform: translate(-50%, -50%) rotate(45deg); }
.pagetop.is-visible { opacity: 1; pointer-events: auto; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.cards .reveal:nth-child(2) { transition-delay: .12s; }
.cards .reveal:nth-child(3) { transition-delay: .24s; }

@media (max-width: 900px) {
  .cards, .network { grid-template-columns: 1fr; }
  .menu-btn { display: block; position: relative; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; z-index: 120; }
  .menu-btn span { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: transform .3s, opacity .3s, top .3s; }
  .menu-btn span:nth-child(1) { top: 14px; }
  .menu-btn span:nth-child(2) { top: 21px; }
  .menu-btn span:nth-child(3) { top: 28px; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
  .gnav { position: fixed; inset: 0; background: rgba(6,24,50,.97); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 110; }
  .gnav.is-open { opacity: 1; pointer-events: auto; }
  .gnav ul { flex-direction: column; gap: 12px; }
  .gnav span { font-size: 1.3rem; }
  .gnav small { font-size: .75rem; }
  .gnav .gnav__contact { margin: 12px 0 0; padding: 10px 40px; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .header .logo__image { width: 190px; }
  .section { padding: 72px 0; }
  .heading { margin-bottom: 40px; }
  .company > div { flex-direction: column; padding: 16px 4px; }
  .company dt { flex: none; margin-bottom: 4px; }
  .news__item { padding: 18px 18px; }
  .sp-hide { display: none; }
  .footer__inner { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll::after, .hero__bg { animation: none; }
}
