:root {
  --bg: #f3f8fb;
  --surface: #ffffff;
  --surface-alt: #dfeef0;
  --text: #2a5772;
  --muted: #5d7d90;
  --primary: #4790bb;
  --primary-dark: #2a5772;
  --primary-light: #b0d7d5;
  --accent: #b0d7d5;
  --accent-hover: #8ebfbc;
  --border: #c6dde5;
  --header-bg: color-mix(in srgb, #dfeef0 56%, white);
  --shadow-rgb: 42 87 114;
  --shadow: 0 10px 28px rgb(var(--shadow-rgb) / 0.12);
  --shadow-hover: 0 14px 34px rgb(var(--shadow-rgb) / 0.18);
  --radius: 16px;
  --container: 1100px;
  --footer-bg: #4790bb;
  --footer-text: #ffffff;
  --footer-link: #ffffff;
  --hero-bg: #4790bb;
  --hero-contrast-text: #ffffff;
  --hero-contrast-muted: rgb(255 255 255 / 0.86);
  --hero-cta-bg: #f0b04f;
  --hero-cta-hover: #e2a242;
  --hero-cta-text: #ffffff;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ambient-breathe {
  0%, 100% {
    opacity: 0.25;
    transform: translate(0, 0) scale(1);
  }
  30% {
    opacity: 0.35;
    transform: translate(12px, -8px) scale(1.04);
  }
  60% {
    opacity: 0.2;
    transform: translate(-8px, 6px) scale(0.97);
  }
}

@keyframes ambient-breathe-alt {
  0%, 100% {
    opacity: 0.2;
    transform: translate(0, 0) scale(1);
  }
  40% {
    opacity: 0.3;
    transform: translate(-10px, 10px) scale(1.05);
  }
  70% {
    opacity: 0.15;
    transform: translate(8px, -6px) scale(0.96);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Yu Gothic UI", "Hiragino Sans", "Meiryo", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a {
  color: var(--primary);
  text-underline-offset: 0.15em;
  transition: color 180ms ease, text-underline-offset 180ms ease;
}

a:hover,
a:focus-visible {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: color-mix(in srgb, var(--header-bg) 95%, transparent);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  z-index: 20;
  animation: fade-up 480ms ease both;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1rem 0;
}

.brand-block {
  min-width: 0;
}

.site-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.site-name a {
  text-decoration: none;
  color: var(--text);
}

.site-tagline {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 1rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  transition: color 180ms ease, opacity 180ms ease;
}

.site-nav a[aria-current="page"] {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.15rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 0.8;
}

.hero {
  padding: 5rem 0 3rem;
  background: var(--surface-alt);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-content {
  max-width: 44rem;
  animation: fade-up 620ms ease 120ms both;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  line-height: 1.25;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 42rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.button.cta {
  background: var(--accent);
}

.button.secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
  box-shadow: none;
}

.text-link-button {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, color 180ms ease;
}

.text-link-button::after {
  content: "→";
  margin-left: 0.45rem;
  transition: transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  background: var(--primary-dark);
}

.button.cta:hover,
.button.cta:focus-visible {
  background: var(--accent-hover);
}

.text-link-button:hover,
.text-link-button:focus-visible {
  transform: translateX(2px);
}

.text-link-button:hover::after,
.text-link-button:focus-visible::after {
  transform: translateX(2px);
}

.hero-card,
.card,
.notice-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.5rem;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.section {
  padding: 5rem 0;
  background: var(--surface);
}

.section.alt {
  background: var(--surface-alt);
}

.section-warm {
  background: var(--surface);
}

.section-header {
  margin-bottom: 1.5rem;
}

.home-hero-section {
  padding: 0;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 30%),
    radial-gradient(circle at left 20% bottom 15%, rgba(255, 255, 255, 0.1), transparent 24%),
    linear-gradient(135deg, var(--hero-bg) 0%, var(--hero-bg) 100%);
  color: var(--hero-contrast-text);
}

.home-intro {
  padding: 5.5rem 0 4.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.home-intro h1 {
  margin: 0;
  line-height: 1.35;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  letter-spacing: 0.02em;
  color: #ffffff;
}

.hero-title-break {
  display: inline;
}

.home-tagline {
  color: var(--hero-contrast-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 1.25rem auto 2rem;
  max-width: 38rem;
}

.home-hero-section .button {
  background: var(--hero-cta-bg);
  color: var(--hero-cta-text);
  box-shadow: 0 8px 20px rgb(102 82 26 / 0.22);
}

.home-hero-section .button:hover,
.home-hero-section .button:focus-visible {
  background: var(--hero-cta-hover);
  color: var(--hero-cta-text);
}

.home-hero-section .button.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--hero-contrast-text);
}

.home-hero-section .button.secondary:hover,
.home-hero-section .button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.home-sections,
.home-panels,
.home-stack {
  display: grid;
  gap: 1.25rem;
}

.home-sections {
  gap: 3rem;
}

.home-panels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  column-gap: 4rem;
  row-gap: 2rem;
}

.home-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  background: color-mix(in srgb, var(--surface) 90%, white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.home-panel h2 {
  font-size: 1.3rem;
  margin: 0 0 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--primary);
}

.home-panel p {
  line-height: 1.8;
}

.home-panel-link {
  margin-top: auto;
  padding-top: 1.25rem;
}

.home-panel-link a {
  font-weight: 600;
  text-decoration: none;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list li {
  display: flex;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 82%, white);
  align-items: baseline;
}

.news-list li:last-child {
  border-bottom: none;
}

.news-list time {
  color: var(--muted);
  font-size: 0.9rem;
  flex-shrink: 0;
  min-width: 5.8em;
}

.news-list a {
  font-weight: 600;
}

.empty-message {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 1rem 0;
}

.grid-3,
.grid-2,
.card-grid {
  display: grid;
  gap: 1.25rem;
}

.grid-3,
.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: 1.4rem;
  transition: box-shadow 220ms ease, border-color 220ms ease;
}

.form-embed {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.form-embed iframe {
  display: block;
  border: 0;
  min-height: 600px;
}

.card:hover,
.card:focus-within {
  box-shadow: var(--shadow-hover);
  border-color: var(--border);
}

.card h3,
.card h2 {
  margin-top: 0;
}

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-clean li + li {
  margin-top: 1rem;
}

.article-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.75rem;
}

.article-list li + li {
  margin-top: 0;
}

.article-card {
  padding: 1.55rem 1.6rem;
}

.article-card .meta {
  margin: 0 0 0.45rem;
}

.article-card h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.4;
}

.article-card > p:last-child {
  margin: 0;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.notice-box {
  padding: 1.2rem 1.4rem;
}

.page-hero {
  padding: 3.5rem 0 2.5rem;
  background: var(--surface-alt);
}

.page-body {
  padding: 0 0 4rem;
}

.prose {
  max-width: 820px;
}

.prose h2,
.prose h3 {
  margin-top: 2.2rem;
}


.prose ul,
.prose ol {
  padding-left: 1.4rem;
}

.callout {
  padding: 1.2rem 1.4rem;
  border-left: 5px solid var(--accent);
  background: color-mix(in srgb, var(--surface-alt) 65%, white);
  border-radius: 12px;
}

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 2.5rem 0;
}

.site-footer a {
  color: var(--footer-link);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}

.footer-title {
  font-weight: 700;
  margin-top: 0;
}

.section-header,
.page-hero .container,
.page-body .prose,
.notice-box,
.callout,
.footer-grid {
  animation: fade-up 620ms ease both;
}

.section:nth-of-type(1) .section-header,
.page-hero .container {
  animation-delay: 180ms;
}

.section:nth-of-type(2) .section-header,
.page-body .prose {
  animation-delay: 240ms;
}

.section:nth-of-type(3) .section-header {
  animation-delay: 300ms;
}

.section:nth-of-type(4) .section-header,
.footer-grid {
  animation-delay: 360ms;
}

.grid-3 > .card,
.grid-2 > .card,
.card-grid > .card,
.grid-2 > .notice-box {
  animation: fade-up 620ms ease both;
}

.grid-3 > .card:nth-child(1),
.grid-2 > .card:nth-child(1),
.card-grid > .card:nth-child(1) {
  animation-delay: 260ms;
}

.grid-3 > .card:nth-child(2),
.grid-2 > .card:nth-child(2),
.card-grid > .card:nth-child(2) {
  animation-delay: 340ms;
}

.grid-3 > .card:nth-child(3),
.card-grid > .card:nth-child(3) {
  animation-delay: 420ms;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
  }

  .site-nav {
    width: 100%;
  }

}

@media (max-width: 640px) {
  .home-panels {
    grid-template-columns: 1fr;
  }

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

  body {
    font-size: 15px;
  }

  .site-header {
    position: static;
  }

  .header-inner {
    gap: 0.65rem;
  }

  .site-name {
    font-size: 1rem;
  }

  .site-tagline {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .site-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, #000 90%, transparent);
  }

  .site-nav ul {
    flex-wrap: nowrap;
    gap: 0.9rem;
    justify-content: flex-start;
    min-width: max-content;
    padding-bottom: 0.15rem;
  }

  .site-nav a {
    display: block;
    padding: 0.2rem 0;
    white-space: nowrap;
    font-size: 0.95rem;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav {
    scrollbar-width: none;
  }

  .hero-title-break {
    display: block;
  }

  .hero {
    padding: 2rem 0 1.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .page-hero {
    padding: 2.5rem 0 1.5rem;
  }

  .page-body {
    padding-bottom: 3rem;
  }

  .lead,
  .prose {
    font-size: 0.98rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .card,
  .notice-box,
  .callout {
    padding: 1.1rem;
  }

  .button-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    text-align: center;
    width: 100%;
  }

  .hero-actions {
    gap: 1rem;
  }

  .text-link-button {
    padding-left: 0.1rem;
  }
}
