:root {
  color-scheme: light;
  --color-background: #ffffff;
  --color-surface: #f5f7fa;
  --color-text: #172033;
  --color-muted: #566175;
  --color-line: #dce2ea;
  --color-accent: #175cd3;
  --color-accent-dark: #10479f;
  --content-width: 70rem;
  --text-width: 46rem;
  --shadow-soft: 0 12px 34px rgba(23, 32, 51, 0.07);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  color: var(--color-text);
  background: var(--color-background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-accent-dark);
}

a:focus-visible {
  outline: 3px solid rgba(23, 92, 211, 0.32);
  outline-offset: 4px;
  border-radius: 0.15rem;
}

p,
h1,
h2 {
  margin-top: 0;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: min(calc(100% - 2.5rem), var(--content-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: #ffffff;
  background: var(--color-accent-dark);
  border-radius: 0.25rem;
  transform: translateY(-180%);
}

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

.site-header {
  border-bottom: 1px solid var(--color-line);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-name {
  color: var(--color-text);
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-name:hover {
  color: var(--color-accent);
}

.nav-list,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--color-text);
}

.nav-list a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 0.14rem;
  text-underline-offset: 0.45rem;
}

.hero {
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6.5rem);
  border-bottom: 1px solid var(--color-line);
  background:
    linear-gradient(90deg, var(--color-accent) 0 0.35rem, transparent 0.35rem) top left / 100% 100% no-repeat,
    linear-gradient(135deg, #ffffff 0%, #f7f9fc 100%);
}

.hero-inner {
  max-width: var(--text-width);
  margin-inline: auto;
}

.eyebrow,
.section-label {
  margin-bottom: 0.75rem;
  color: var(--color-accent);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.35rem, 7vw, 4.75rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.lead {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.9;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.panel {
  min-height: 100%;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--color-line);
  border-radius: 0.6rem;
  box-shadow: var(--shadow-soft);
}

.panel-muted {
  background: var(--color-surface);
  box-shadow: none;
}

.panel p:not(.section-label) {
  color: var(--color-muted);
}

.link-row {
  margin-top: 1.5rem;
}

.text-link,
.email-link {
  color: var(--color-text);
  font-weight: 700;
}

.contact-section {
  padding-block: clamp(3rem, 7vw, 5rem);
  color: #ffffff;
  background: var(--color-text);
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.contact-section .section-label {
  color: #91b8ff;
}

.contact-section h2 {
  margin-bottom: 0;
}

.email-link {
  color: #ffffff;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
}

.email-link:hover {
  color: #c8dcff;
}

.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--color-line);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem 2rem;
}

.footer-inner p {
  margin-bottom: 0;
}

.footer-links {
  justify-content: center;
}

.footer-links a,
.copyright {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.policy {
  max-width: var(--text-width);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.policy-header {
  margin-bottom: clamp(3rem, 7vw, 5rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-line);
}

.policy-header h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
}

.policy-header > p:last-child {
  color: var(--color-muted);
  font-size: 1.05rem;
}

.policy section {
  margin-top: 0;
  margin-bottom: 3rem;
}

.policy section p {
  color: var(--color-muted);
}

.policy-date {
  margin-top: 4rem;
  padding: 1.25rem 1.5rem;
  border-left: 0.3rem solid var(--color-accent);
  background: var(--color-surface);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 45rem) {
  .container {
    width: min(calc(100% - 2rem), var(--content-width));
  }

  .header-inner {
    min-height: 4.15rem;
    gap: 1rem;
  }

  .nav-list {
    gap: 0.75rem;
  }

  .nav-list a {
    font-size: 0.9rem;
  }

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

  .contact-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.25rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 27rem) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1rem;
  }

  .nav-list a[aria-current="page"] {
    text-underline-offset: 0.25rem;
  }

  h1 br {
    display: none;
  }
}

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

@media print {
  .skip-link,
  .site-header,
  .site-footer {
    display: none;
  }

  .policy {
    max-width: none;
    padding: 0;
  }

  a {
    color: inherit;
  }
}
