:root {
  color-scheme: light;
  --ink: #102b3d;
  --ink-deep: #071c2b;
  --blue: #126a92;
  --blue-bright: #2f9ac2;
  --mist: #e9f1f5;
  --line: rgba(16, 43, 61, 0.16);
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background: #dfe9ee;
  color: var(--ink-deep);
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

.first-view {
  width: 100%;
  min-height: 100svh;
  background: var(--white);
  display: grid;
  grid-template-rows: auto minmax(460px, 1fr) auto;
  overflow: hidden;
}

.site-header {
  min-height: 92px;
  padding: 17px clamp(28px, 4vw, 68px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--white);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 50px;
  height: 50px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue);
  font: 700 30px/1 Georgia, serif;
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-copy strong {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.brand-copy small {
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.header-info {
  display: flex;
  align-items: center;
  gap: clamp(22px, 4vw, 56px);
}

.header-info p {
  margin: 0;
}

.area {
  color: #4c626f;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.phone {
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.phone span {
  margin-right: 8px;
  color: var(--blue);
  font-size: 0.7em;
  letter-spacing: 0.16em;
}

.hero {
  min-height: 0;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 108px;
}

.side-note,
.side-contact {
  min-height: 0;
  color: var(--white);
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.side-note {
  gap: 18px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.side-note::before {
  content: "";
  width: 1px;
  height: 54px;
  background: rgba(255, 255, 255, 0.52);
}

.side-note span,
.side-contact > span {
  font-family: Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.side-note strong {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(5, 25, 38, 0.96) 0%, rgba(10, 44, 63, 0.91) 42%, rgba(18, 106, 146, 0.58) 100%),
    var(--mist);
}

.visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 77% 38%, rgba(72, 174, 213, 0.25), transparent 28%),
    linear-gradient(90deg, transparent 70%, rgba(255, 255, 255, 0.07) 70% 70.5%, transparent 70.5%);
}

.visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to left, black, transparent 78%);
}

.photo-placeholder {
  position: absolute;
  top: 50%;
  right: clamp(18px, 2vw, 34px);
  width: clamp(240px, 23vw, 350px);
  aspect-ratio: 1.52;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(231, 242, 247, 0.11);
  color: rgba(255, 255, 255, 0.94);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 9px;
  padding: 24px;
  text-align: center;
}

.photo-placeholder::before,
.photo-placeholder::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.24);
}

.photo-placeholder::before {
  width: 1px;
  height: 100%;
  transform: rotate(56deg);
}

.photo-placeholder::after {
  width: 1px;
  height: 100%;
  transform: rotate(-56deg);
}

.photo-placeholder > * {
  position: relative;
  z-index: 1;
}

.photo-placeholder span {
  font-family: Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.photo-placeholder strong {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.45;
}

.photo-placeholder small {
  font-size: 0.78rem;
  line-height: 1.5;
}

.hero-copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: clamp(38px, 5vw, 86px);
  width: min(52%, 650px);
  transform: translateY(-50%);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 24px;
  padding-left: 42px;
  position: relative;
  color: #9ed8ee;
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.11em;
}

.eyebrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--blue-bright);
}

.hero-copy h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(2.35rem, 4.4vw, 4.8rem);
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.32;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.hero-copy h1 span {
  font-size: 0.69em;
  white-space: nowrap;
}

.mobile-break {
  display: none;
}

.lead-line,
.desktop-lead {
  display: block;
}

.mobile-lead {
  display: none;
}

.lead {
  margin: 28px 0 0;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.85;
}

.sample-label {
  position: absolute;
  right: 22px;
  bottom: 16px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.side-contact {
  padding: 22px 14px;
  flex-direction: column;
  gap: 24px;
  background: var(--blue);
}

.side-contact > span {
  writing-mode: vertical-rl;
}

.side-contact button {
  width: 82px;
  min-height: 218px;
  padding: 18px 10px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: default;
  opacity: 1;
}

.side-contact button strong {
  writing-mode: vertical-rl;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.side-contact button small {
  display: none;
}

.button-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  display: grid;
  place-items: center;
}

.mobile-cta-label {
  display: none;
}

.service-nav {
  min-height: 108px;
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.service-intro,
.service-item {
  min-width: 0;
  padding: 22px clamp(18px, 2.5vw, 38px);
  display: grid;
  align-content: center;
}

.service-intro {
  color: var(--white);
  background: var(--ink);
  gap: 8px;
}

.service-intro span,
.service-item span,
.service-item small {
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.service-intro span {
  color: #8fd5ed;
}

.service-intro strong {
  font-size: clamp(0.95rem, 1.25vw, 1.12rem);
  letter-spacing: 0.05em;
}

.service-item {
  position: relative;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  border-right: 1px solid var(--line);
}

.service-item span {
  grid-row: 1 / 3;
  color: var(--blue);
  align-self: center;
}

.service-item strong {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  letter-spacing: 0.08em;
}

.service-item small {
  margin-top: 5px;
  color: #71838d;
  font-size: 0.62rem;
}

@media (max-width: 920px) {
  .area {
    display: none;
  }

  .hero-copy {
    width: min(50%, 520px);
  }

  .photo-placeholder {
    width: 27vw;
    right: 20px;
  }
}

@media (max-width: 640px) {
  .first-view {
    min-height: 100svh;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .site-header {
    min-height: 74px;
    padding: 11px 16px;
    gap: 12px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
    font-size: 23px;
  }

  .brand-copy strong {
    font-size: 1.05rem;
  }

  .brand-copy small {
    display: none;
  }

  .phone {
    font-size: 0.88rem;
    letter-spacing: 0;
  }

  .phone span {
    display: block;
    margin: 0 0 2px;
    font-size: 0.68rem;
    text-align: right;
  }

  .hero {
    grid-template-columns: 10px minmax(0, 1fr);
    position: relative;
  }

  .side-note {
    min-width: 0;
    font-size: 0;
  }

  .side-note > * {
    display: none;
  }

  .side-note::before {
    width: 100%;
    height: 100%;
    background: linear-gradient(var(--ink) 0 58%, var(--blue) 58%);
  }

  .visual {
    min-height: 0;
  }

  .photo-placeholder {
    top: 22px;
    right: 18px;
    width: min(51vw, 196px);
    aspect-ratio: 1.35;
    transform: none;
    padding: 12px;
    gap: 5px;
    background: rgba(231, 242, 247, 0.08);
  }

  .photo-placeholder span {
    font-size: 0.72rem;
  }

  .photo-placeholder strong {
    font-size: 1.02rem;
    line-height: 1.4;
  }

  .photo-placeholder small {
    display: none;
  }

  .hero-copy {
    top: auto;
    right: 18px;
    bottom: 26px;
    left: 20px;
    width: auto;
    transform: none;
  }

  .eyebrow {
    margin-bottom: 13px;
    padding-left: 31px;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
  }

  .eyebrow::before {
    width: 21px;
  }

  .hero-copy h1 {
    font-size: clamp(2.08rem, 9.2vw, 2.24rem);
    line-height: 1.34;
  }

  .hero-copy h1 span {
    display: block;
    margin-top: 6px;
    font-size: 0.72em;
    white-space: normal;
  }

  .mobile-break {
    display: initial;
  }

  .lead {
    margin-top: 18px;
    max-width: 27rem;
    font-size: 1rem;
    line-height: 1.75;
    letter-spacing: 0.025em;
  }

  .desktop-lead {
    display: none;
  }

  .mobile-lead,
  .mobile-lead > span {
    display: block;
  }

  .lead-last {
    padding-right: 72px;
  }

  .sample-label {
    top: 10px;
    right: auto;
    bottom: auto;
    left: 10px;
    writing-mode: vertical-rl;
    font-size: 0.6rem;
  }

  .side-contact {
    position: absolute;
    z-index: 5;
    right: 17px;
    bottom: 24px;
    width: 62px;
    height: 62px;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.18);
  }

  .side-contact > span {
    display: none;
  }

  .side-contact button {
    width: 62px;
    min-height: 62px;
    height: 62px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--blue);
  }

  .side-contact button strong,
  .side-contact button small {
    display: none;
  }

  .button-icon {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--white);
    color: var(--blue);
    font-size: 0;
  }

  .desktop-arrow {
    display: none;
  }

  .mobile-cta-label {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
  }

  .service-nav {
    min-height: 136px;
    grid-template-columns: repeat(3, 1fr);
  }

  .service-intro {
    grid-column: 1 / -1;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .service-intro span {
    font-size: 0.62rem;
  }

  .service-intro strong {
    font-size: 0.78rem;
    text-align: right;
  }

  .service-item {
    min-height: 94px;
    padding: 13px 8px;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 4px;
  }

  .service-item span {
    grid-row: auto;
    font-size: 0.62rem;
  }

  .service-item strong {
    font-size: 0.94rem;
    letter-spacing: 0.04em;
  }

  .service-item small {
    display: none;
  }
}

@media (max-width: 360px) {
  .site-header {
    padding-inline: 12px;
  }

  .phone {
    font-size: 0.8rem;
  }

  .photo-placeholder {
    width: 152px;
  }

  .hero-copy {
    right: 14px;
    left: 16px;
  }

  .lead {
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
