.service-section {
  position: relative;
  isolation: isolate;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-ja);
}

.service-section::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("assets/service-grain.png") left top / 50px 50px repeat;
  opacity: .9;
  pointer-events: none;
  content: "";
}

.service-inner {
  position: relative;
  max-width: 1440px;
  margin-inline: auto;
  padding-bottom: 160px;
}

.service-section p,
.service-section h2,
.service-section h3 {
  margin: 0;
}

.service-intro {
  padding: 120px 40px 94px;
}

.service-intro h2 {
  margin-left: -8px;
  margin-bottom: 49px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 180px;
  line-height: .95;
  letter-spacing: -3.6px;
}

.service-intro .service-lead {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.5;
}

.service-intro-copy {
  max-width: 620px;
  margin-top: 10px;
  color: rgb(0 7 31 / 85%);
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
}

.service-list-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 260px;
  min-height: 66px;
  margin-top: 44px;
  padding: 0 38px 0 40px;
  border-radius: 33px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease;
}

.service-list-link > :last-child {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 500;
}

.service-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  column-gap: 48px;
  padding-right: 32px;
}

.service-rows { min-width: 0; }

.service-row {
  position: relative;
  padding: 48px 88px 56.2px 112px;
  scroll-margin-top: 120px;
}

.service-row::before,
.service-row:last-child::after {
  position: absolute;
  height: 1px;
  right: 8px;
  left: 32px;
  background: rgb(0 7 31 / 15%);
  content: "";
}

.service-row::before { top: 0; }
.service-row:last-child::after { bottom: 0; }

.service-row-dot {
  position: absolute;
  top: 84px;
  left: 40px;
  max-width: none;
}

.service-row-label {
  color: rgb(0 7 31 / 60%);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.service-row h3 {
  margin-top: 2px;
  margin-left: -4px;
  font-family: var(--font-en);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.52px;
}

.service-detail {
  position: absolute;
  top: 78px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid rgb(0 7 31 / 50%);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 23.52px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.service-row .service-row-lead {
  margin-top: 19.8px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
}

.service-row-copy {
  margin-top: 18px;
  color: rgb(0 7 31 / 85%);
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  overflow-wrap: anywhere;
}

.service-row .service-row-topics {
  margin-top: 16px;
  color: rgb(0 7 31 / 60%);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.service-toc {
  position: sticky;
  top: 120px;
  align-self: start;
  display: flex;
  flex-direction: column;
}

.service-toc a {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 48px;
  padding-left: 34px;
  color: rgb(0 7 31 / 60%);
  font-size: 19px;
  font-weight: 700;
  line-height: 28px;
  text-decoration: none;
  transition: color .2s ease;
}

.service-toc img {
  position: absolute;
  left: 6px;
  top: 13px;
  max-width: none;
  opacity: 0;
}

.service-toc a[aria-current="location"] { color: var(--orange); }
.service-toc a[aria-current="location"] img { opacity: 1; }

.service-chat {
  position: absolute;
  right: 6px;
  bottom: 12px;
  width: 224px;
  height: 170px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.service-chat-halo {
  position: absolute;
  top: 0;
  left: 54px;
  max-width: none;
}

.service-chat-mascot {
  position: absolute;
  top: 6px;
  left: 64px;
  width: 150px;
  height: 150px;
  object-fit: cover;
  pointer-events: none;
}

.service-chat-bubble {
  position: absolute;
  top: 72px;
  left: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 40px;
  border-radius: 8px;
  background: #1e1e1e;
  color: #fff;
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.service-section :is(a, button):focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 5px;
}

@media (hover: hover) {
  .service-list-link:hover { background: var(--orange); }
  .service-detail:hover { background: var(--ink); color: #fff; }
  .service-toc a:hover { color: var(--orange); }
}

@media (min-width: 1100px) and (max-width: 1399px) {
  .service-content { grid-template-columns: minmax(0, 1fr) 280px; column-gap: 32px; }
  .service-row { padding-left: 80px; }
  .service-row h3 { font-size: clamp(34px, 3.61vw, 52px); }
  .service-row-dot { left: 32px; }
  .service-row-lead { font-size: 24px; }
  .service-toc a { font-size: 17px; }
}

@media (max-width: 1099px) {
  .service-intro { padding: 88px 32px 64px; }
  .service-intro h2 { margin-left: -3px; margin-bottom: 36px; font-size: 120px; letter-spacing: -2.4px; }
  .service-content { display: flex; flex-direction: column; padding: 0; }
  .service-toc { position: static; order: -1; flex-flow: row wrap; gap: 12px 24px; padding: 0 32px 40px; }
  .service-toc a { min-height: 36px; align-items: center; padding-left: 16px; font-size: 15px; line-height: 1.5; }
  .service-toc img { left: 0; top: 16px; }
  .service-row { padding-right: 96px; }
  .service-detail { right: 32px; }
  .service-row::before, .service-row:last-child::after { right: 32px; }
  .service-row h3 { font-size: clamp(36px, 4.9vw, 52px); }
}

@media (max-width: 599px) {
  .service-inner { padding-bottom: 140px; }
  .service-intro { padding: 72px 24px 48px; }
  .service-intro h2 { margin-bottom: 32px; font-size: 82px; letter-spacing: -1.64px; }
  .service-intro .service-lead { font-size: 25px; line-height: 1.6; }
  .service-intro-copy { margin-top: 18px; font-size: 14px; line-height: 1.9; }
  .service-list-link { width: 240px; min-height: 60px; margin-top: 28px; padding-inline: 32px; font-size: 15px; }
  .service-toc { gap: 4px 20px; padding: 0 24px 32px; }
  .service-toc a { min-height: 38px; font-size: 12px; }
  .service-toc img { top: 16px; }
  .service-row { padding: 34px 24px 42px; scroll-margin-top: 88px; }
  .service-row::before, .service-row:last-child::after { left: 24px; right: 24px; }
  .service-row-dot { left: 24px; top: 37px; }
  .service-row-label { padding-left: 26px; font-size: 12px; line-height: 20px; }
  .service-row h3 { max-width: calc(100% - 42px); margin: 12px 0 0; font-size: 35px; line-height: 1.06; letter-spacing: -.35px; }
  .service-detail { top: 63px; right: 24px; width: 38px; height: 38px; font-size: 20px; }
  .service-row .service-row-lead { margin-top: 24px; font-size: 20px; line-height: 1.6; }
  .service-row-copy { margin-top: 16px; font-size: 14px; line-height: 2; }
  .service-row .service-row-topics { margin-top: 18px; font-size: 12px; line-height: 1.8; }
  .service-chat { right: 10px; bottom: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .service-section :is(a, button) { transition: none; }
}
