:root {
  --navy: #0a1f44;
  --paper: #ffffff;
  --ink: #111111;
  --mute: #6b7280;
  --line: #e5e7eb;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "palt";
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.9;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

main,
section {
  overflow-x: clip;
}

.container {
  margin: 0 auto;
  max-width: 1400px;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

.en-head {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--navy);
  letter-spacing: 0.06em;
  line-height: 1.1;
  font-weight: 500;
  word-break: normal;
  overflow-wrap: anywhere;
}

.jp-head {
  color: var(--ink);
  letter-spacing: 0.12em;
  font-weight: 500;
}

.hairline {
  display: inline-block;
  width: 48px;
  height: 1px;
  background: var(--navy);
  vertical-align: middle;
}

.section {
  padding: 96px 0;
}

@media (max-width: 767px) {
  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 36px;
  }

  #about.section {
    padding-bottom: 44px;
  }

  .about-values {
    margin-top: 28px;
    padding-top: 20px;
    gap: 12px;
  }
}

@media (min-width: 768px) {
  .section {
    padding: 112px 0;
  }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (min-width: 768px) {
  .header-bar {
    height: 80px;
  }
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

@media (min-width: 768px) {
  .brand {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    align-content: center;
    row-gap: 3px;
  }
}

.brand-main {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  color: var(--navy);
  font-size: 20px;
  letter-spacing: 0.18em;
  font-weight: 500;
  line-height: 1;
}

@media (min-width: 768px) {
  .brand-main {
    font-size: 24px;
  }
}

.brand-sub {
  display: block;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--mute);
  line-height: 1;
  margin-top: 2px;
}

@media (min-width: 768px) {
  .brand-sub {
    margin-top: 0;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 40px;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--navy);
}

.nav-item span {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  font-weight: 500;
}

.nav-item small {
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--mute);
}

.hamburger {
  width: 32px;
  height: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 0;
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header.is-open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.is-open .hamburger span:nth-child(2) {
  opacity: 0;
}
.site-header.is-open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-drawer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease;
  background: #fff;
  border-top: 1px solid var(--line);
}

.site-header.is-open .nav-drawer {
  max-height: 480px;
}

.nav-mobile {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav-link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--navy);
}

.nav-link small {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--mute);
}

/* Hero */
.hero {
  padding-top: 96px;
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
  background: #fff;
}

@media (max-width: 767px) {
  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero > .container {
    order: 2;
  }

  .hero > .hero-media {
    order: 1;
  }
}

@media (min-width: 768px) {
  .hero {
    display: grid;
    grid-template-columns: 56% 44%;
    align-items: stretch;
    min-height: 100svh;
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero > .container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    padding-top: 110px;
    padding-bottom: 80px;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: end;
  position: relative;
  z-index: 1;
  padding-bottom: 24px;
}

@media (min-width: 768px) {
  .hero-copy {
    width: 100%;
    max-width: 100%;
    padding-right: 0;
    text-align: left;
  }

  .hero-grid {
    grid-template-columns: 1fr auto;
    max-width: 100%;
    padding-bottom: 0;
    width: 100%;
  }

  .hero-title,
  .hero-lead {
    max-width: 100%;
  }
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-kicker-text {
  font-size: 10px;
  letter-spacing: 0.35em;
}

.hero-title {
  margin: 24px 0 0;
  color: var(--navy);
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: 0.12em;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 44px;
  }
}
@media (min-width: 768px) {
  .hero-title {
    margin-top: 32px;
    font-size: 48px;
    max-width: none;
    line-height: 1.25;
  }
}
@media (min-width: 1024px) {
  .hero-title {
    font-size: 56px;
    max-width: none;
  }
}

.hero-lead {
  margin-top: 20px;
  max-width: 48rem;
  font-size: 14px;
  line-height: 2;
  color: #fff;
  background: var(--navy);
  padding: 16px 20px;
  border-radius: 10px;
}

@media (max-width: 767px) {
  .hero-copy {
    text-align: center;
    padding-top: 20px;
  }

  .hero-kicker {
    justify-content: center;
    margin-bottom: 10px;
  }

  .hero-title {
    margin-top: 18px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
}

@media (min-width: 768px) {
  .hero-lead {
    margin-top: 24px;
    font-size: 15px;
    max-width: 100%;
  }
}

.hero-vertical-label {
  display: none;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5em;
  font-size: 12px;
  writing-mode: vertical-rl;
}

@media (min-width: 768px) {
  .hero-vertical-label {
    display: block;
    font-family: "Playfair Display", Georgia, serif;
  }
}

.hero-media {
  display: block;
  position: relative;
  width: 100%;
  height: 38svh;
  min-height: 240px;
  margin-top: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.55),
    transparent,
    rgba(10, 31, 68, 0.28)
  );
}

@media (min-width: 768px) {
  .hero-media {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 520px;
    margin-top: 0;
  }
  .hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .hero-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.35) 0%,
      transparent 30%
    );
  }
}

/* Section head */
.section-head {
  margin-bottom: 56px;
}

@media (min-width: 768px) {
  .section-head {
    margin-bottom: 56px;
  }
}

.section-head-top {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}

.section-no {
  font-size: 14px;
  letter-spacing: 0.3em;
}

.section-title {
  margin: 20px 0 0;
  font-size: 40px;
  line-height: 1;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 64px;
  }
}

.section-subtitle {
  margin-top: 16px;
  font-size: 14px;
  color: var(--mute);
  letter-spacing: 0.2em;
}

/* About */
.about {
  background: #fff;
}

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

@media (max-width: 767px) {
  .about-grid {
    gap: 20px;
  }
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 5fr 7fr;
    gap: 40px;
    align-items: start;
  }
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 31, 68, 0.2), transparent);
}

.about-catch {
  margin: 0;
  color: var(--navy);
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media (min-width: 768px) {
  .about-catch {
    font-size: 56px;
  }
}

.about-panel {
  margin-top: 40px;
  background: var(--navy);
  color: #fff;
  padding: 20px 24px;
  border-radius: 10px;
}

.about-panel p {
  margin: 0;
  font-size: 15px;
  line-height: 2.1;
}

.about-panel p + p {
  margin-top: 28px;
}

.about-values {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .about-values {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.about-values > div {
  background: #f8f9fc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 16px;
}

.about-values-k {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--mute);
}

.about-values dd {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--navy);
  font-weight: 500;
  letter-spacing: 0.06em;
}

@media (min-width: 768px) {
  .about-values dd {
    font-size: 16px;
  }
}

@media (min-width: 768px) {
  .about-values {
    margin-top: 40px;
    padding-top: 28px;
  }
}

/* Services */
.services {
  background: #fafafb;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.service-card {
  background: #fff;
  padding: 32px;
  transition: background-color 0.5s ease, color 0.5s ease;
}

@media (min-width: 768px) {
  .service-card {
    padding: 48px;
  }
}

.service-card:hover {
  background: var(--navy);
}

.service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.service-no {
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--navy);
  transition: color 0.5s ease;
}

.service-card:hover .service-no {
  color: rgba(255, 255, 255, 0.8);
}

.service-card .hairline {
  transition: background-color 0.5s ease;
}
.service-card:hover .hairline {
  background: rgba(255, 255, 255, 0.6);
}

.service-title {
  margin: 32px 0 0;
  font-size: 24px;
  line-height: 1.2;
  color: var(--navy);
  transition: color 0.5s ease;
}

@media (max-width: 767px) {
  .service-title {
    margin: 20px 0 0;
    font-size: 22px;
  }
}

@media (min-width: 768px) {
  .service-title {
    font-size: 30px;
  }
}

.service-card:hover .service-title {
  color: #fff;
}

.service-sub {
  margin: 8px 0 0;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--mute);
  transition: color 0.5s ease;
}

.service-card:hover .service-sub {
  color: rgba(255, 255, 255, 0.7);
}

.service-desc {
  margin: 32px 0 0;
  font-size: 14px;
  line-height: 2;
  color: rgba(17, 17, 17, 0.8);
  transition: color 0.5s ease;
}

.service-card:hover .service-desc {
  color: rgba(255, 255, 255, 0.85);
}

/* Why */
.why {
  background: #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 56px;
  }
}

.why-card {
  border-top: 1px solid var(--navy);
  padding-top: 32px;
}

.why-no {
  font-size: 56px;
  color: var(--navy);
}

@media (min-width: 768px) {
  .why-no {
    font-size: 64px;
  }
}

.why-title {
  margin: 24px 0 0;
  font-size: 20px;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .why-title {
    font-size: 24px;
  }
}

.why-sub {
  margin: 8px 0 0;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--mute);
}

.why-desc {
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 2;
  color: rgba(17, 17, 17, 0.8);
}

/* Company */
.company {
  background: #fafafb;
}

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

@media (min-width: 768px) {
  .company-grid {
    grid-template-columns: 5fr 7fr;
    gap: 40px;
    align-items: start;
  }
}

.company-tagline {
  font-size: 24px;
  line-height: 1.25;
  margin: 0;
}

@media (min-width: 768px) {
  .company-tagline {
    font-size: 30px;
  }
}

.company-dl {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.company-row {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
}

.company-row:first-child {
  border-top: 0;
}

@media (min-width: 768px) {
  .company-row {
    padding: 24px 0;
    grid-template-columns: 3fr 9fr;
    gap: 16px;
    align-items: start;
  }
}

.company-row dt {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--navy);
  padding-top: 4px;
}

@media (min-width: 768px) {
  .company-row dt {
    font-size: 14px;
  }
}

.company-row dd {
  margin: 8px 0 0;
  font-size: 14px;
  color: rgba(17, 17, 17, 0.85);
}

@media (min-width: 768px) {
  .company-row dd {
    margin-top: 0;
    font-size: 16px;
  }
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 64px 0 0;
}

.footer-grid {
  padding-bottom: 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding-bottom: 96px;
  }
}

.footer-brand {
  color: #fff;
  font-size: 30px;
  letter-spacing: 0.15em;
}

@media (min-width: 768px) {
  .footer-brand {
    font-size: 40px;
  }
}

.footer-copy {
  margin-top: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-nav-wrap {
  display: flex;
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .footer-nav-wrap {
    justify-content: flex-end;
  }
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-bottom-tag {
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.3em;
}

.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: inline;
  }
}

/* Reveal on scroll — 上品にふわっと */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition:
    opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* SplitText: 1文字ずつ下からふわっと */
.split-text {
  display: inline;
  max-width: 100%;
}
.split-word {
  display: inline;
  white-space: normal;
}
.split-char {
  display: inline-block;
  transition-property: opacity, transform;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

/* 動きを控えたいユーザー向け */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible,
  .split-char {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Simple underline link */
.u-link {
  position: relative;
  display: inline-block;
}
.u-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 0.5s ease;
}
.u-link:hover::after {
  transform-origin: left;
  transform: scaleX(0);
}

::selection {
  background: var(--navy);
  color: #fff;
}
