:root {
  --ink: #172338;
  --ink-soft: #4c5a6d;
  --navy: #173b64;
  --navy-deep: #102b49;
  --blue-soft: #edf4fa;
  --gold: #b68b3a;
  --gold-soft: #f5ecdc;
  --paper: #fffdf8;
  --white: #ffffff;
  --line: #d8e0e8;
  --notice: #fff8e8;
  --danger: #9a3c33;
  --shadow: 0 16px 42px rgba(23, 59, 100, 0.1);
  --radius: 18px;
  --content: 1120px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans JP", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--navy);
  text-underline-offset: 0.2em;
}

a:hover {
  color: #245f97;
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  padding: 0.65rem 1rem;
  color: var(--white);
  background: var(--navy-deep);
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(calc(100% - 40px), var(--content));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", serif;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 700;
}

.global-nav a {
  padding: 0.58rem 0.7rem;
  color: var(--ink);
  border-radius: 7px;
  text-decoration: none;
  white-space: nowrap;
}

.global-nav a:hover,
.global-nav a[aria-current="page"] {
  color: var(--navy);
  background: var(--blue-soft);
}

main {
  min-height: 60vh;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(480px, 34vw, 580px);
  box-sizing: border-box;
  overflow: hidden;
  padding: clamp(72px, 8vw, 108px) 0;
  color: var(--white);
  background-color: #161616;
  background-image: var(--hero-image);
  background-position: var(--hero-position, center);
  background-size: cover;
}

.hero-home {
  --hero-image: url("/assets/hero-home.jpg");
  --hero-position: center top;
}

.hero-inner,
.page-heading-inner,
.section-inner,
.footer-inner {
  position: relative;
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  min-width: 0;
}

.hero-inner,
.page-heading-inner {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section .eyebrow {
  color: var(--gold);
}

.hero h1,
.page-heading h1 {
  margin: 0;
  font-family: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", serif;
  font-size: clamp(2.15rem, 5.5vw, 4rem);
  line-height: 1.22;
  letter-spacing: 0.035em;
}

.hero-lead {
  max-width: 780px;
  margin: 1rem 0 0;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.8;
}

.page-heading {
  display: flex;
  align-items: center;
  min-height: clamp(460px, 36vw, 580px);
  box-sizing: border-box;
  padding: clamp(60px, 7vw, 96px) 0;
  color: var(--white);
  background-color: #161616;
  background-image: var(--hero-image);
  background-position: var(--hero-position, center);
  background-size: cover;
}

.hero-jimukumiai {
  --hero-image: url("/assets/hero-jimukumiai.jpg");
  --hero-position: 62% top;
}

.hero-hitorioyakata {
  --hero-image: url("/assets/hero-hitorioyakata.jpg");
  --hero-position: 62% top;
}

.hero-dantai {
  --hero-image: url("/assets/hero-dantai.jpg");
  --hero-position: 62% top;
}

.hero-privacy {
  --hero-image: url("/assets/hero-privacy.jpg");
  --hero-position: 64% top;
}

.hero-not-found {
  --hero-image: url("/assets/hero-404.jpg");
  --hero-position: 64% top;
}

.page-heading h1 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
}

.page-heading p:last-child {
  max-width: 740px;
  margin: 0.75rem 0 0;
  color: #e1eaf2;
}

.section {
  padding: clamp(64px, 8vw, 104px) 0;
}

.section-tint {
  background: var(--blue-soft);
}

.section-dark {
  color: var(--white);
  background: var(--navy-deep);
}

.section-heading {
  max-width: 790px;
  margin: 0 0 2.2rem;
}

.section-heading h2,
.content-block h2,
.legal-content h2 {
  margin: 0 0 1rem;
  color: var(--navy-deep);
  font-family: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", serif;
  font-size: clamp(1.7rem, 3.5vw, 2.45rem);
  line-height: 1.45;
}

.section-heading p {
  margin: 0;
  color: var(--ink-soft);
}

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

.choice-grid > *,
.entity-grid > *,
.content-layout > * {
  min-width: 0;
}

.choice-card {
  min-height: 255px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 3vw, 34px);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.choice-card:hover {
  color: var(--ink);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(23, 59, 100, 0.16);
}

.choice-card:nth-child(2) {
  border-top-color: var(--gold);
}

.choice-card.phone-choice {
  border-top-color: #607286;
}

.choice-number {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.choice-card h3 {
  margin: 1rem 0;
  font-size: clamp(1.14rem, 2vw, 1.38rem);
  line-height: 1.65;
}

.choice-action {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
}

.guidance-note,
.notice-box {
  margin: 24px 0 0;
  padding: 18px 22px;
  background: var(--notice);
  border: 1px solid #ead8aa;
  border-left: 5px solid var(--gold);
  border-radius: 10px;
}

.guidance-note p,
.notice-box p {
  margin: 0;
}

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

.entity-card {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.entity-card h3 {
  margin: 0 0 0.65rem;
  color: var(--navy-deep);
  font-size: 1.08rem;
}

.entity-card p {
  margin: 0;
  color: var(--ink-soft);
}

.entity-link {
  display: inline-block;
  margin-top: 1.8rem;
  font-weight: 800;
}

.phone-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 5vw, 48px);
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--ink);
}

.phone-panel h2 {
  margin: 0 0 0.4rem;
  color: var(--navy-deep);
  font-family: "Yu Mincho", YuMincho, serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.phone-panel p {
  margin: 0;
}

.phone-link {
  display: inline-block;
  color: var(--navy-deep);
  font-family: Arial, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}

.content-block + .content-block {
  margin-top: clamp(54px, 7vw, 84px);
  padding-top: clamp(48px, 6vw, 70px);
  border-top: 1px solid var(--line);
}

.content-block h3 {
  margin: 2rem 0 0.8rem;
  color: var(--navy-deep);
  font-size: 1.25rem;
}

.content-block p {
  max-width: 820px;
}

.content-block ul {
  padding-left: 1.4rem;
}

.content-block li + li {
  margin-top: 0.4rem;
}

.data-table-wrap {
  margin: 1.8rem 0;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
  line-height: 1.7;
}

.data-table th,
.data-table td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.data-table tr:last-child th,
.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table th {
  width: 31%;
  color: var(--navy-deep);
  background: var(--blue-soft);
  font-weight: 800;
}

.data-table thead th {
  width: auto;
  color: var(--white);
  background: var(--navy);
}

.attention {
  margin-top: 1.8rem;
  padding: 20px 22px;
  background: var(--notice);
  border-left: 5px solid var(--gold);
}

.attention p {
  margin: 0;
}

.side-nav {
  position: sticky;
  top: 24px;
  padding: 22px;
  background: var(--blue-soft);
  border-radius: 14px;
}

.side-nav p {
  margin: 0 0 0.75rem;
  color: var(--navy-deep);
  font-weight: 800;
}

.side-nav a {
  display: block;
  padding: 0.58rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.next-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 3rem;
}

.next-link {
  padding: 21px 22px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
}

.next-link:hover {
  color: var(--navy);
  border-color: #9cb4ca;
}

.contact-list {
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-list strong {
  display: inline-block;
  min-width: 5.5em;
}

.legal-content {
  max-width: 900px;
}

.legal-content > h2 {
  margin-top: 3.2rem;
  padding-bottom: 0.65rem;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  border-bottom: 1px solid var(--line);
}

.legal-lead {
  margin-bottom: 2rem;
  font-size: 1.04rem;
}

.legal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2rem 0;
}

.legal-badges span {
  padding: 0.5rem 0.8rem;
  color: var(--navy-deep);
  background: var(--gold-soft);
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 800;
}

.legal-meta {
  margin-top: 3.5rem;
  padding: 24px;
  background: var(--blue-soft);
  border-radius: 14px;
}

.legal-meta dl {
  margin: 0;
}

.legal-meta div {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.legal-meta div:last-child {
  border-bottom: 0;
}

.legal-meta dt {
  color: var(--navy-deep);
  font-weight: 800;
}

.legal-meta dd {
  margin: 0;
}

.site-footer {
  padding: 52px 0 28px;
  color: #dce6ee;
  background: #0b2037;
}

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

.footer-title {
  margin: 0 0 0.8rem;
  color: var(--white);
  font-family: "Yu Mincho", YuMincho, serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-phone {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-phone-note {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.84rem;
}

.footer-entities {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.84rem;
}

.footer-entities li + li {
  margin-top: 0.35rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
}

.footer-bottom a {
  color: var(--white);
}

@media (max-width: 960px) {
  .header-inner {
    width: 100%;
    min-height: auto;
    padding: 14px 20px 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .site-brand {
    align-self: flex-start;
  }

  .global-nav {
    min-width: 0;
    flex-wrap: wrap;
    margin: 0;
    padding: 0 0 12px;
    overflow: visible;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: 0;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
    order: -1;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 15px;
    line-height: 1.8;
  }

  .hero-inner,
  .page-heading-inner,
  .section-inner,
  .footer-inner {
    width: min(calc(100% - 32px), var(--content));
  }

  .hero {
    min-height: 440px;
    padding: 48px 0;
  }

  .page-heading {
    min-height: 380px;
    padding: 48px 0;
  }

  .brand-logo {
    width: 58px;
    height: 58px;
  }

  .entity-grid,
  .next-links,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .phone-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .data-table th,
  .data-table td {
    padding: 14px;
  }

  .legal-meta div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
