/* --------------------------------------------------
   Home service links / service pages
-------------------------------------------------- */
.hero-service-panel {
  max-width: 1000px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-service-heading {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: .9rem;
  font-weight: 700;
}

.hero-service-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-service-button {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  justify-content: center;
  padding: 16px 20px;
  border: 1px solid var(--green);
  background: var(--green-pale);
  color: var(--green-dark);
  text-decoration: none;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.hero-service-button:hover {
  background: #e8f0e5;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37,94,23,.08);
}

.hero-service-title {
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.5;
}

.hero-service-title::after {
  content: " →";
}

.hero-service-note {
  margin-top: 4px;
  color: #586454;
  font-size: .78rem;
  line-height: 1.55;
}

.service-page-main {
  padding: 64px 0 82px;
}

.service-page-header {
  margin-bottom: 42px;
}

.service-page-header h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(2.25rem, 4vw, 3.35rem);
  font-weight: 500;
  letter-spacing: .02em;
}

.service-page-lead {
  max-width: 830px;
  margin: 18px 0 0;
  color: #4d4d4d;
  font-size: 1.06rem;
}

.service-section {
  margin-top: 50px;
}

.service-section h2 {
  margin: 0 0 22px;
  padding-left: 14px;
  border-left: 5px solid var(--green);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 500;
}

.service-callout {
  padding: 28px 30px;
  border-top: 4px solid var(--green-light);
  background: var(--green-pale);
}

.service-callout h2,
.service-callout h3 {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  font-family: inherit;
  color: var(--green-dark);
  font-size: 1.25rem;
  font-weight: 700;
}

.service-callout p {
  margin: 8px 0 0;
}

.service-callout .button {
  margin-top: 18px;
}

.service-email {
  font-weight: 700;
}

.service-email a,
.service-body-link {
  color: var(--green-dark);
  text-underline-offset: 3px;
}

.service-numbered-list,
.service-bullet-list {
  margin: 0;
  padding-left: 1.6em;
}

.service-numbered-list li,
.service-bullet-list li {
  padding-left: .25em;
}

.service-numbered-list li + li,
.service-bullet-list li + li {
  margin-top: 9px;
}

.service-note-box {
  padding: 24px 28px;
  border-left: 4px solid var(--green);
  background: #fbfdf8;
}

.service-note-box p {
  margin: 0;
}

.service-note-box p + p {
  margin-top: 10px;
}


.legal-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.legal-service-card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: #fff;
}

.legal-service-card h3 {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 1.08rem;
  line-height: 1.5;
}

.legal-service-card p {
  margin: 0;
  color: #525b50;
  font-size: .92rem;
  line-height: 1.75;
}

.service-meta-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.service-meta-list li + li {
  margin-top: 7px;
}

.service-back {
  margin-top: 48px;
}

.service-back a {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.service-back a:hover {
  text-decoration: underline;
}


@media (max-width: 900px) {
  .hero-service-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .hero-service-panel {
    margin-top: 24px;
    padding-top: 20px;
  }

  .hero-service-actions {
    grid-template-columns: 1fr;
  }

  .legal-service-grid {
    grid-template-columns: 1fr;
  }

  .hero-service-button {
    min-height: 82px;
  }

  .service-page-main {
    padding: 48px 0 64px;
  }

  .service-callout,
  .service-note-box {
    padding: 22px 20px;
  }
}

/* --------------------------------------------------
   Legal information online service
-------------------------------------------------- */
.legal-overview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.legal-overview-header > div {
  min-width: 0;
}

.legal-online-mark {
  width: 78px;
  height: 78px;
  flex: 0 0 auto;
  margin-top: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.legal-service-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.legal-service-link:hover {
  border-color: var(--green);
  transform: translateY(-1px);
  box-shadow: 0 7px 20px rgba(37,94,23,.07);
}

.legal-service-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--green);
  font-size: .86rem;
  font-weight: 700;
}

.service-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: .84rem;
}

.service-breadcrumb a {
  color: var(--green-dark);
  text-decoration: none;
}

.service-breadcrumb a:hover {
  text-decoration: underline;
}

.service-page-header-compact {
  margin-bottom: 28px;
}

.legal-detail-copy {
  margin-top: 34px;
}

.legal-detail-copy > p {
  max-width: 900px;
  margin: 0;
  line-height: 1.9;
}

.legal-detail-copy > p + p,
.legal-detail-copy > p + ul,
.legal-detail-copy > ul + p {
  margin-top: 14px;
}

.legal-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.legal-image-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 300px));
}

.legal-image-card {
  margin: 0;
}

.legal-image-card img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  border: 1px solid #d5ddd2;
  background: #fff;
}

.legal-image-card figcaption {
  margin-top: 8px;
  color: #5b6559;
  font-size: .82rem;
}

.legal-detail-access {
  margin-top: 50px;
}

.legal-lightbox-trigger {
  cursor: zoom-in;
}

.legal-lightbox-trigger:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

body.legal-lightbox-open {
  overflow: hidden;
}

.legal-lightbox[hidden] {
  display: none;
}

.legal-lightbox {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px 32px;
  background: rgba(0, 0, 0, .82);
}

.legal-lightbox-content {
  display: flex;
  max-width: 94vw;
  max-height: 92vh;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.legal-lightbox-image {
  display: block;
  width: min(1100px, 90vw);
  max-height: 82vh;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 12px 50px rgba(0, 0, 0, .38);
}

.legal-lightbox-caption {
  margin: 0;
  color: #fff;
  font-size: .92rem;
  text-align: center;
}

.legal-lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.legal-lightbox-close:hover,
.legal-lightbox-close:focus-visible {
  background: rgba(255, 255, 255, .16);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .legal-image-grid,
  .legal-image-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .legal-overview-header {
    display: block;
  }

  .legal-online-mark {
    width: 68px;
    height: 68px;
    margin-top: 20px;
  }

  .legal-image-grid,
  .legal-image-grid-2 {
    grid-template-columns: 1fr;
  }

  .legal-lightbox {
    padding: 58px 14px 24px;
  }

  .legal-lightbox-image {
    width: 94vw;
    max-height: 78vh;
  }

  .legal-lightbox-close {
    top: 10px;
    right: 12px;
  }
}
