:root {
  --navy: #07386e;
  --blue: #1267c7;
  --cyan: #27c6d4;
  --header-height: clamp(76px, 6vw, 120px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--navy);
  background: #fff;
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.98);
  transition: height 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  height: 78px;
  box-shadow: 0 8px 28px rgba(5, 48, 96, 0.12);
}

.header-inner {
  width: min(1880px, 100% - 72px);
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  gap: clamp(18px, 1.7vw, 36px);
}

.brand {
  width: clamp(190px, 15vw, 300px);
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
}

.global-nav {
  height: 100%;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(18px, 1.55vw, 34px);
  white-space: nowrap;
}

.global-nav a {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
  font: 600 clamp(11px, 0.82vw, 16px)/1 "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  letter-spacing: 0.03em;
}

.global-nav a::after {
  position: absolute;
  content: "";
  left: 50%;
  bottom: 24%;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.global-nav a:hover::after,
.global-nav a.is-current::after {
  width: 100%;
}

.header-phone {
  padding-left: clamp(10px, 1vw, 20px);
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 1px solid #d5e4ee;
  white-space: nowrap;
}

.header-phone img {
  width: 18px;
}

.header-phone-details {
  display: grid;
  gap: 4px;
}

.header-phone b {
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(16px, 1.15vw, 23px);
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1.15;
  letter-spacing: 0.015em;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.header-phone small {
  display: block;
  font-size: 12px;
  letter-spacing: 0;
  word-spacing: normal;
  font-feature-settings: "palt" 1;
  white-space: nowrap;
}

.header-hours-label {
  display: inline-block;
  margin-right: 0.4em;
}

.header-hours-separator {
  display: inline-block;
  margin-inline: 0.08em;
}

.header-contact {
  height: 56%;
  min-width: clamp(150px, 10vw, 200px);
  padding: 0 clamp(14px, 1.2vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  background: linear-gradient(105deg, var(--blue), var(--cyan));
  font-size: clamp(11px, 0.75vw, 14px);
  font-weight: 700;
}

.header-contact img:first-child {
  width: 18px;
}

.header-contact img:last-child {
  width: 22px;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  height: min(1005px, 50.25vw, 100svh - var(--header-height));
  min-height: min(620px, 100svh - var(--header-height));
  margin-top: var(--header-height);
  overflow: hidden;
  background: #0d4f7e;
}

.hero::before {
  position: absolute;
  z-index: 2;
  content: "";
  inset: 0 auto 0 0;
  width: 4.8%;
  background: linear-gradient(180deg, rgba(5, 94, 170, 0.72), rgba(4, 113, 181, 0.88));
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 7s linear;
}

.hero-slide.is-active img {
  transform: scale(1.01);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(112deg, rgba(4, 43, 89, 0.58), rgba(8, 87, 128, 0.35) 54%, rgba(7, 56, 91, 0.26)), linear-gradient(180deg, rgba(2, 25, 56, 0.05), rgba(3, 35, 68, 0.24));
  pointer-events: none;
}

.hero-overlay::before,
.hero-overlay::after {
  position: absolute;
  content: "";
  inset: -28%;
  will-change: transform, opacity;
  pointer-events: none;
}

.hero-overlay::before {
  background: radial-gradient(ellipse at 22% 38%, rgba(21, 151, 221, 0.58) 0 13%, rgba(21, 151, 221, 0) 42%), radial-gradient(ellipse at 72% 58%, rgba(38, 206, 214, 0.34) 0 12%, rgba(38, 206, 214, 0) 38%), radial-gradient(ellipse at 52% 18%, rgba(28, 93, 190, 0.48) 0 15%, rgba(28, 93, 190, 0) 44%);
  filter: blur(44px);
  mix-blend-mode: screen;
  opacity: 0.6;
  animation: hero-haze-a 16s ease-in-out infinite alternate;
}

.hero-overlay::after {
  background: radial-gradient(ellipse at 78% 30%, rgba(30, 138, 211, 0.42), transparent 42%), radial-gradient(ellipse at 30% 76%, rgba(12, 100, 187, 0.46), transparent 40%);
  filter: blur(60px);
  mix-blend-mode: soft-light;
  opacity: 0.72;
  animation: hero-haze-b 22s ease-in-out infinite alternate;
}

.hero-corner {
  position: absolute;
  z-index: 2;
  content: "";
  right: 0;
  bottom: 0;
  width: 20%;
  height: 31%;
  background: linear-gradient(135deg, rgba(40, 188, 205, 0.05), rgba(45, 218, 207, 0.46));
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  z-index: 2;
  top: 51%;
  left: 50%;
  width: min(1240px, 82vw);
  color: #fff;
  text-align: center;
  transform: translate(-50%, -50%);
  text-shadow: 0 2px 12px rgba(0, 42, 80, 0.22);
}

.hero-copy > p {
  margin: 0 auto 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font: 600 clamp(9px, 0.68vw, 14px)/1 Arial, sans-serif;
  letter-spacing: 0.32em;
}

.hero-copy > p::before,
.hero-copy > p::after {
  content: "";
  width: clamp(44px, 4.5vw, 90px);
  height: 1px;
  background: rgba(255, 255, 255, 0.75);
}

.hero-copy h2 {
  margin: 0;
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(35px, 3vw, 60px);
  font-weight: 500;
  line-height: 1.62;
  letter-spacing: 0.075em;
  white-space: nowrap;
}

.hero-copy > span {
  display: block;
  margin-top: 34px;
  font-size: clamp(10px, 0.68vw, 14px);
  font-weight: 600;
  line-height: 2;
}

.hero-scroll {
  position: absolute;
  z-index: 3;
  color: rgba(255, 255, 255, 0.8);
  font: 600 10px/1 Arial, sans-serif;
  letter-spacing: 0.35em;
  writing-mode: vertical-rl;
}

.hero-scroll--left {
  inset: 0 auto 0 0;
  width: 4.8%;
  writing-mode: initial;
}

.hero-scroll--left span {
  position: absolute;
  top: 58%;
  left: 50%;
  writing-mode: vertical-rl;
  transform: translateX(-50%);
}

.hero-scroll--left i {
  position: absolute;
  top: 76%;
  left: 50%;
  width: 1px;
  height: 18%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.23);
  transform: translateX(-50%);
}

.hero-scroll--left i::after {
  position: absolute;
  content: "";
  inset: -100% 0 auto;
  height: 100%;
  background: #fff;
  animation: scroll-guide 2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.hero-scroll--right {
  top: 3%;
  right: 2.8%;
}

@keyframes scroll-guide {
  0% {
    transform: translateY(0);
  }
  55%, 100% {
    transform: translateY(200%);
  }
}
@keyframes hero-haze-a {
  0% {
    transform: translate3d(-5%, -2%, 0) scale(1.02) rotate(-2deg);
    opacity: 0.42;
  }
  45% {
    transform: translate3d(5%, 4%, 0) scale(1.12) rotate(2deg);
    opacity: 0.68;
  }
  100% {
    transform: translate3d(-1%, 7%, 0) scale(1.06) rotate(-1deg);
    opacity: 0.52;
  }
}
@keyframes hero-haze-b {
  0% {
    transform: translate3d(5%, -5%, 0) scale(1.08);
  }
  50% {
    transform: translate3d(-6%, 3%, 0) scale(1.16);
  }
  100% {
    transform: translate3d(3%, 6%, 0) scale(1.04);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-overlay::before,
  .hero-overlay::after {
    animation: none;
  }
}
.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 24px;
  display: flex;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 42px;
  height: 3px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: #fff;
}

@media (max-width: 1120px) {
  .header-inner {
    width: calc(100% - 36px);
  }
  .global-nav {
    gap: 14px;
  }
  .header-phone small {
    display: none;
  }
  .header-contact {
    min-width: 140px;
  }
}
@media (max-width: 900px) {
  :root {
    --header-height: 70px;
  }
  .site-header.is-scrolled {
    height: 64px;
  }
  .header-inner {
    width: calc(100% - 28px);
  }
  .brand {
    width: 190px;
  }
  .header-phone, .header-contact {
    display: none;
  }
  .menu-toggle {
    margin-left: auto;
    width: 42px;
    height: 42px;
    padding: 7px;
    border: 0;
    display: grid;
    align-content: center;
    gap: 6px;
    background: transparent;
  }
  .menu-toggle span {
    width: 28px;
    height: 2px;
    background: var(--navy);
    transition: 0.25s;
  }
  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .global-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: auto;
    padding: 12px 22px 22px;
    display: none;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 24px rgba(5, 48, 96, 0.12);
  }
  .global-nav.is-open {
    display: grid;
  }
  .global-nav a {
    height: 46px;
    justify-content: start;
    border-bottom: 1px solid #dce9f2;
    font-size: 12px;
  }
  .global-nav a::after {
    display: none;
  }
  .hero {
    height: 68vw;
    min-height: 500px;
  }
  .hero-copy {
    width: calc(100% - 56px);
  }
  .hero-copy h2 {
    font-size: clamp(25px, 4.5vw, 40px);
    white-space: normal;
  }
  .hero-copy > span br {
    display: none;
  }
  .hero-scroll {
    display: none;
  }
  .hero::before {
    display: none;
  }
}
@media (max-width: 520px) {
  .brand {
    width: 165px;
  }
  .hero {
    height: 580px;
  }
  .hero-slide img {
    object-position: center;
  }
  .hero-copy {
    top: 55%;
    width: calc(100% - 38px);
  }
  .hero-copy > p {
    margin-bottom: 24px;
    font-size: 8px;
    letter-spacing: 0.18em;
  }
  .hero-copy > p::after {
    width: 28px;
    margin-left: 10px;
  }
  .hero-copy h2 {
    font-size: 22px;
    line-height: 1.65;
    letter-spacing: 0.02em;
  }
  .hero-copy > span {
    margin-top: 24px;
    font-size: 10px;
    line-height: 1.75;
  }
  .hero-dots button {
    width: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .hero-scroll--left i::after {
    animation: none;
    transform: translateY(100%);
  }
}
