:root {
  --blue: #07589d;
  --deep: #063f73;
  --green: #5d9c78;
  --ink: #1e2d3c;
  --line: #dce7ef
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  background: #fff
}

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

.wrap {
  width: min(1180px, 90%);
  margin: auto
}

.header {
  height: 82px;
  display: flex;
  align-items: center;
  padding: 0 4vw;
  background: rgba(255, 255, 255, .96);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 16px #1232
}

.brand {
  width: 190px;
  height: 62px;
  overflow: hidden;
  display: flex;
  align-items: center
}

.brand img {
  width: 190px;
  transform: scale(1.35)
}

nav {
  margin-left: auto;
  display: flex;
  gap: 44px
}

nav a {
  color: #182839;
  text-decoration: none;
  font-family: Georgia, serif;
  letter-spacing: .05em;
  font-size: 15px;
  position: relative
}

nav a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: .3s
}

nav a:hover:after {
  width: 100%
}

.menu {
  display: none
}

.hero {
  position: relative;
  overflow: hidden
}

.hero>img {
  width: 100%;
  height: min(70vw, 760px);
  object-fit: cover
}

.scroll {
  position: absolute;
  right: 3%;
  bottom: 5%;
  font: 12px Georgia, serif;
  letter-spacing: .2em;
  color: #fff;
  text-shadow: 0 1px 4px #0008
}

.statement {
  text-align: center;
  padding: 56px 0 42px;
  background: linear-gradient(180deg, #fff, #f5fbfd)
}

.statement h1 {
  margin: 0;
  font: clamp(34px, 4.3vw, 70px)/1.1 Georgia, "Times New Roman", serif;
  color: #3c79b3
}

.statement h1 span {
  color: #5c9d78
}

.statement .jp {
  color: #528a7c;
  letter-spacing: .3em;
  margin: 14px 0 0;
  font-size: 14px
}

.about {
  padding: 80px 0
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 70px;
  align-items: center
}

.about-photo {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  box-shadow: 0 15px 40px #18384a20
}

.about-copy {
  font-family: Georgia, "Yu Mincho", serif;
  line-height: 2.05;
  font-size: 16px
}

.about-copy p {
  margin: 0 0 1.4em
}

.services {
  padding: 0 0 95px
}

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

.service-grid article {
  position: relative;
  overflow: hidden;
  background: #eef5f8
}

.service-grid img {
  width: 100%;
  aspect-ratio: 1.65;
  object-fit: cover;
  transition: .55s
}

.service-grid article:hover img {
  transform: scale(1.04)
}

.service-grid h2 {
  font-size: 15px;
  text-align: center;
  margin: 0;
  padding: 16px 8px;
  color: #132a3e
}

.company {
  padding: 20px 0 0;
  position: relative;
  overflow: hidden
}

.section-title {
  text-align: center;
  margin-bottom: 55px
}

.section-title span {
  display: block;
  color: var(--blue);
  font: clamp(42px, 5vw, 72px)/1 Georgia, "Times New Roman", serif
}

.section-title span:after {
  content: "";
  display: block;
  width: min(760px, 70vw);
  height: 7px;
  margin: 18px auto 7px;
  background: var(--blue);
  border-radius: 50%
}

.section-title small {
  font-family: serif;
  color: #477a9e;
  letter-spacing: .25em
}

.company-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 90px;
  position: relative;
  z-index: 2
}

.company dl {
  margin: 0
}

.company dl div {
  margin-bottom: 20px
}

.company dt {
  font-weight: 700;
  color: var(--deep);
  font-size: 14px;
  margin-bottom: 5px
}

.company dt:before {
  content: "【"
}

.company dt:after {
  content: "】"
}

.company dd {
  margin: 0;
  line-height: 1.75;
  font-size: 14px
}

.company dd small {
  color: #667
}

.company-side img {
  margin-top: 25px;
  width: 100%;
  aspect-ratio: 16/8;
  object-fit: cover
}

.city {
  width: 100%;
  margin-top: -40px;
  position: relative;
  z-index: 1;
  pointer-events: none
}

.contact {
  padding: 65px 0 90px
}

.contact-bg {
  background: url('assets/contact.webp') center/cover no-repeat;
  padding: 48px 5%;
  min-height: 650px;
  display: flex;
  align-items: center
}

.contact form {
  width: min(620px, 100%);
  padding: 36px 42px;
  background: rgba(255, 255, 255, .82);
  border: 2px solid #fff;
  border-radius: 18px;
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 50px #17405b22
}

.contact h2 {
  font-size: 30px;
  margin: 0 0 20px
}

.contact label {
  display: grid;
  grid-template-columns: 50px 165px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid #ccd8df
}

.contact label b {
  background: var(--blue);
  color: #fff;
  border-radius: 6px;
  text-align: center;
  padding: 10px 4px;
  font-size: 13px
}

.contact label span {
  font-weight: 700;
  white-space: nowrap
}

.contact input,
.contact textarea {
  width: 100%;
  border: 1px solid #c9d4df;
  border-radius: 5px;
  background: #f8f9fc;
  padding: 13px;
  font: inherit
}

.contact textarea {
  height: 110px;
  resize: vertical
}

.contact button {
  display: block;
  width: 55%;
  margin: 30px auto 0;
  border: 0;
  border-radius: 6px;
  padding: 15px;
  color: #fff;
  background: linear-gradient(90deg, #064985, #0871ce);
  font-weight: 700;
  font-size: 17px;
  cursor: pointer
}

.form-note {
  text-align: center;
  font-size: 11px;
  color: #667;
  margin: 12px 0 0
}

footer {
  text-align: center;
  padding: 35px 20px 28px;
  border-top: 1px solid #e7eef3
}

footer p {
  font-family: serif;
  color: #537e8f;
  letter-spacing: .16em
}

footer small {
  color: #667
}

@media(max-width:800px) {
  .header {
    height: 66px
  }

  .brand {
    width: 145px;
    height: 52px
  }

  .brand img {
    width: 145px
  }

  .menu {
    display: flex;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    background: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px
  }

  .menu span {
    height: 2px;
    background: #123;
    width: 28px
  }

  nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 25px;
    box-shadow: 0 10px 20px #1232;
    flex-direction: column;
    gap: 22px
  }

  nav.open {
    display: flex
  }

  .hero>img {
    height: 62vh;
    min-height: 440px;
    object-position: 42% center
  }

  .statement {
    padding: 40px 0 30px
  }

  .statement h1 {
    font-size: clamp(31px, 9vw, 48px)
  }

  .statement .jp {
    letter-spacing: .12em
  }

  .about {
    padding: 55px 0
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px
  }

  .about-copy {
    font-size: 14px;
    line-height: 1.9
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px
  }

  .service-grid h2 {
    font-size: 13px
  }

  .company-grid {
    grid-template-columns: 1fr;
    gap: 20px
  }

  .company-side img {
    margin-top: 15px
  }

  .city {
    margin-top: 20px;
    min-height: 230px;
    object-fit: cover;
    object-position: center bottom
  }

  .contact {
    padding-top: 45px
  }

  .contact-bg {
    padding: 25px 4%;
    background-position: 62% center
  }

  .contact form {
    padding: 28px 20px
  }

  .contact label {
    grid-template-columns: 46px 1fr;
    gap: 8px
  }

  .contact label input,
  .contact label textarea {
    grid-column: 1/-1
  }

  .contact button {
    width: 80%
  }

  .section-title {
    margin-bottom: 35px
  }

  .section-title span:after {
    height: 5px
  }
}

/* ===== RISM plus opening animation ===== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity .8s ease, visibility .8s ease
}

.intro img {
  width: min(560px, 68vw);
  height: auto;
  opacity: 0;
  transform: translateY(10px) scale(.98);
  animation: introLogo 1s cubic-bezier(.22, .61, .36, 1) .3s forwards
}

body.intro-active {
  overflow: hidden
}

body.intro-active .header {
  opacity: 0;
  transform: translateY(-12px)
}

.header {
  transition: opacity .7s ease, transform .7s ease, background .3s ease
}

.hero {
  background: #fff
}

.hero-photo {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: scale(1.045);
  animation: heroReveal 1.7s cubic-bezier(.22, .61, .36, 1) 1.55s forwards
}

.hero-logo {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 45%;
  width: min(590px, 42vw) !important;
  height: auto !important;
  object-fit: contain !important;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.96);
  animation: heroLogoReveal .9s ease 2.65s forwards
}

.scroll {
  z-index: 4;
  opacity: 0;
  animation: softReveal .7s ease 3.65s forwards
}

.statement h1,
.statement .jp {
  opacity: 0;
  transform: translateY(24px)
}

.statement h1 {
  animation: catchReveal 1.5s cubic-bezier(.22, .61, .36, 1) 3.55s forwards
}

.statement .jp {
  animation: catchReveal 1.5s cubic-bezier(.22, .61, .36, 1) 3.85s forwards
}

body:not(.intro-active) .intro {
  opacity: 0;
  visibility: hidden
}

body:not(.intro-active) .header {
  opacity: 1;
  transform: none
}

body.intro-skip {
  overflow: auto
}

body.intro-skip .intro {
  opacity: 0 !important;
  visibility: hidden !important
}

body.intro-skip .header,
body.intro-skip .hero-photo,
body.intro-skip .hero-logo,
body.intro-skip .scroll,
body.intro-skip .statement h1,
body.intro-skip .statement .jp {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important
}

body.intro-skip .hero-logo {
  transform: translate(-50%, -50%) !important
}

@keyframes introLogo {
  to {
    opacity: 1;
    transform: translateY(0) scale(1)
  }
}

@keyframes heroReveal {
  0% {
    opacity: 0;
    transform: scale(1.045)
  }

  100% {
    opacity: 1;
    transform: scale(1)
  }
}

@keyframes heroLogoReveal {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1)
  }
}

@keyframes catchReveal {
  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes softReveal {
  to {
    opacity: 1
  }
}

@media(max-width:800px) {
  .intro img {
    width: min(420px, 76vw)
  }

  .hero-logo {
    width: min(430px, 66vw) !important;
    top: 42%
  }

  .statement h1 {
    animation-delay: 3.55s
  }

  .statement .jp {
    animation-delay: 3.85s
  }
}

@media(prefers-reduced-motion:reduce) {
  .intro {
    display: none
  }

  .header,
  .hero-photo,
  .hero-logo,
  .scroll,
  .statement h1,
  .statement .jp {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important
  }

  .hero-photo {
    transform: none !important
  }

  .hero-logo {
    transform: translate(-50%, -50%) !important
  }

  .statement h1,
  .statement .jp {
    transform: none !important
  }
}

/* ===== Scroll reveal & photoreal city transition ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s cubic-bezier(.22, .61, .36, 1), transform 1s cubic-bezier(.22, .61, .36, 1)
}

.reveal.is-visible {
  opacity: 1;
  transform: none
}

.city-bridge {
  position: relative;
  margin-top: 52px;
  min-height: clamp(390px, 52vw, 690px);
  overflow: hidden;
  background: #eef6fa;
  isolation: isolate
}

.city-bridge .city {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center 48%;
  z-index: 0;
  filter: saturate(.84) contrast(.94) brightness(1.03)
}

.city-bridge:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .72) 13%, rgba(255, 255, 255, .12) 40%, rgba(5, 40, 68, .18) 100%);
  pointer-events: none
}

.city-bridge:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  z-index: 1;
  background: linear-gradient(0deg, rgba(5, 49, 84, .68), rgba(5, 49, 84, 0));
  pointer-events: none
}

.city-message {
  position: absolute;
  z-index: 2;
  left: max(5vw, calc((100vw - 1180px)/2));
  bottom: clamp(42px, 6vw, 82px);
  width: min(650px, 86vw);
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 30, 50, .35)
}

.city-message span {
  display: block;
  margin-bottom: 12px;
  font: 12px/1.4 Georgia, serif;
  letter-spacing: .24em;
  color: rgba(255, 255, 255, .82)
}

.city-message h2 {
  margin: 0 0 15px;
  font: clamp(28px, 3.5vw, 52px)/1.25 Georgia, "Yu Mincho", serif;
  font-weight: 500;
  letter-spacing: .04em
}

.city-message p {
  margin: 0;
  max-width: 580px;
  font-size: 14px;
  line-height: 2;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .9)
}

@media(max-width:800px) {
  .reveal {
    transform: translateY(18px);
    transition-duration: .8s
  }

  .city-bridge {
    margin-top: 32px;
    min-height: 470px
  }

  .city-bridge .city {
    min-height: 0;
    object-position: 58% center
  }

  .city-bridge:before {
    background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .22) 32%, rgba(5, 40, 68, .18) 70%, rgba(5, 40, 68, .58))
  }

  .city-message {
    left: 7%;
    bottom: 38px;
    width: 86%
  }

  .city-message h2 {
    font-size: clamp(27px, 8vw, 38px)
  }

  .city-message p {
    font-size: 13px;
    line-height: 1.85
  }
}

@media(prefers-reduced-motion:reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important
  }
}

.hero>img.hero-photo {
  object-position: center 15%;
}

.statement .wrap {
  transform: translateY(-10%);
}

@media(max-width:800px) {
  .hero>img.hero-photo {
    object-position: 42% 15%;
  }

  .statement .wrap {
    transform: translateY(-10%);
  }
}

.hero-message {
  position: absolute;
  z-index: 5;
  right: 7%;
  top: 50%;
  width: min(610px, 44vw);
  transform: translateY(-34%);
  color: #fff;
  text-align: left;
  text-shadow: 0 2px 18px rgba(0, 28, 52, .42);
  opacity: 0;
  animation: heroMessageReveal 0.9s cubic-bezier(.22, .61, .36, 1) 2.7s forwards;
}

.hero-message:before {
  content: "";
  position: absolute;
  left: -28px;
  top: -30px;
  bottom: -30px;
  width: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .82) 24%, rgba(255, 255, 255, .82) 76%, rgba(255, 255, 255, 0));
}

.hero-message-jp {
  margin: 0;
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(25px, 2.25vw, 40px);
  line-height: 1.55;
  letter-spacing: .055em;
  font-weight: 500;
}

.hero-message-en {
  margin: 15px 0 0;
  font: clamp(11px, .9vw, 14px)/1.6 Georgia, "Times New Roman", serif;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .9);
}

@keyframes heroMessageReveal {
  0% {
    opacity: 0;
    transform: translateY(-27%)
  }

  100% {
    opacity: 1;
    transform: translateY(-34%)
  }
}

body.intro-skip .hero-message {
  animation: none !important;
  opacity: 1 !important;
  transform: translateY(-34%) !important
}

@media(max-width:800px) {
  .hero-message {
    right: 7%;
    left: 7%;
    top: auto;
    bottom: 13%;
    width: 86%;
    transform: translateY(12px);
    text-align: left;
    animation: heroMessageRevealMobile 0.9s cubic-bezier(.22, .61, .36, 1) 2.7s forwards;
  }

  .hero-message:before {
    left: -14px;
    top: -18px;
    bottom: -18px;
    width: 2px
  }

  .hero-message-jp {
    font-size: clamp(22px, 6vw, 31px);
    line-height: 1.5;
    letter-spacing: .035em
  }

  .hero-message-en {
    margin-top: 10px;
    font-size: 11px;
    letter-spacing: .11em
  }

  body.intro-skip .hero-message {
    transform: none !important
  }
}

@keyframes heroMessageRevealMobile {
  to {
    opacity: 1;
    transform: none
  }
}

@media(prefers-reduced-motion:reduce) {
  .hero-message {
    animation: none !important;
    opacity: 1 !important;
    transform: translateY(-34%) !important
  }
}

@media(max-width:800px) and (prefers-reduced-motion:reduce) {
  .hero-message {
    transform: none !important
  }
}

.hero-message::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -58px;
  right: -42px;
  top: -58px;
  bottom: -58px;
  background: radial-gradient(ellipse at center,
      rgba(5, 55, 94, .34) 0%,
      rgba(5, 55, 94, .25) 38%,
      rgba(5, 55, 94, .12) 66%,
      rgba(5, 55, 94, 0) 100%);
  pointer-events: none;
}

.hero-message-jp {
  text-shadow: 0 2px 8px rgba(2, 31, 55, .52), 0 5px 22px rgba(2, 31, 55, .28);
}

.hero-message-en {
  text-shadow: 0 2px 7px rgba(2, 31, 55, .52), 0 4px 18px rgba(2, 31, 55, .25);
}

@media(max-width:800px) {
  .hero-message::after {
    left: -30px;
    right: -22px;
    top: -34px;
    bottom: -34px;
    background: radial-gradient(ellipse at center,
        rgba(5, 55, 94, .38) 0%,
        rgba(5, 55, 94, .27) 42%,
        rgba(5, 55, 94, .10) 72%,
        rgba(5, 55, 94, 0) 100%);
  }
}