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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Meiryo", sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #123456;
  background: #fafffa;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: #36a872;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: #247248;
  text-decoration: underline;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 60px 0;
}

/* skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 2000;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* header */
.site-header {
  background: #123660;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
  color: #f6faff;
}

.site-logo,
.site-logo:hover,
.site-logo:focus-visible {
  color: #f6faff;
  text-decoration: none;
}

.site-logo img {
  width: 60px;
  height: 60px;
}

.site-logo svg {
  width: 60px;
  height: 60px;
  display: block;
}

.site-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: #f6faff;
  white-space: nowrap;
}

/* nav */
.global-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.global-nav a {
  color: #f6faff;
  font-weight: 600;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s ease;
  text-decoration: none;
}

.global-nav a[aria-current="page"] {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.global-nav a:hover,
.global-nav a:focus-visible {
  color: #eeffee;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* menu toggle */
.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 1101;
}

.menu-toggle span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: #f6faff;
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.25s ease, top 0.3s ease;
}

.menu-toggle span:nth-child(1) {
  top: 14px;
}

.menu-toggle span:nth-child(2) {
  top: 21px;
}

.menu-toggle span:nth-child(3) {
  top: 28px;
}

.menu-toggle.is-open span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.menu-toggle:focus-visible {
  outline: 3px solid rgba(54, 168, 114, 0.6);
  outline-offset: 3px;
  border-radius: 8px;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 900;
}

.menu-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* hero */
.hero {
  background: linear-gradient(
    180deg,
    #eaffea 0%,
    #fafffa 100%
  );
  padding: 36px 0 60px;
}

.hero-content {
  max-width: 900px;
  margin: 0;
  padding: 0 12px;
  text-align: left;
}

.hero-eyebrow-wrap {
  margin-left: 60px;
}

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #eef5ff;
  color: #0b4ea2;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.hero-title-wrap {
  margin-left: 72px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.35;
  color: #123456;
}

.hero-note {
  margin: 0 0 24px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #123456;
}

.hero-lead-group {
  margin-left: 60px;
  max-width: 760px;
}

.lead {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.8;
  color: #123456;
}

.lead-sub {
  margin-bottom: 4px;
}

.lead-message {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.7;
  color: #123456;
}

.lead-keyphrase {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0b4ea2;
}

.hero-info-box {
  margin: 0 0 30px;
  padding: 18px 24px;
  background: #ffffff;
  border: 1px solid #d9e3ef;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(10, 42, 84, 0.04);
}

.hero-info-box p {
  margin: 0;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.button-group-center {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-sub-links {
  margin: 0;
  font-weight: 600;
  color: #123456;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  min-width: 240px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: #bbeebb;
  color: #123456;
  box-shadow: 0 8px 20px rgba(54, 168, 114, 0.25);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #247248;
  color: #fafffa;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(54, 168, 114, 0.30);
  text-decoration: none;
}

.btn-secondary {
  background: #ffffff;
  color: #36a872;
  border: 1px solid #36a872;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #f2fbf7;
  transform: translateY(-1px);
  text-decoration: none;
}

.btn:focus-visible {
  outline: 3px solid rgba(54, 168, 114, 0.6);
  outline-offset: 3px;
}

/* section title */
.kyosai-cards h2,
.section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2rem);
  color: #123456;
}

.section-lead {
  margin: 0 0 30px;
  color: #234567;
  font-size: 1rem;
}

/* cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.kyosai-card {
  display: block;
  background: #fffaf0;
  border: 1px solid #e0e6ee;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(15, 35, 60, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
  text-decoration: none;
}

.kyosai-card:hover {
  transform: translateY(-3px);
  border-color: #ffeedd;
  background: #fffaf0;
  box-shadow: 0 8px 18px rgba(15, 35, 60, 0.08);
  text-decoration: none;
}

.kyosai-card:focus-visible {
  outline: 3px solid rgba(54, 168, 114, 0.6);
  outline-offset: 3px;
}

.kyosai-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.kyosai-card-header img {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  object-fit: contain;
}

.kyosai-card h3 {
  margin: 0;
  font-size: 1.34rem;
  line-height: 1.35;
  color: #123456;
  font-weight: 720;
  letter-spacing: 0.01em;
}

.kyosai-card p {
  margin: 0;
  color: #234567;
  font-size: 0.96rem;
  line-height: 1.5;
}

/* breadcrumb */
.breadcrumb {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 0;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  color: #123456;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
}

.breadcrumb-list li + li::before {
  content: ">";
  margin-right: 8px;
  color: #8a98a8;
}

.breadcrumb-list a {
  color: #123456;
}

.breadcrumb-list a:hover,
.breadcrumb-list a:focus-visible {
  color: #247248;
  text-decoration: underline;
}

/* kyosai page */
.kyosai-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px 36px;
}

.detail-section {
  max-width: 810px;
  margin: 0 auto 24px;
  background: #fffaf0;
  padding: 24px;
  border-radius: 12px;
}

.detail-section-last {
  margin-bottom: 6px;
}

.detail-section h1 {
  margin: 0 0 18px;
  font-size: 2rem;
  line-height: 1.4;
  color: #123456;
}

.detail-section h2 {
  font-size: 1.4rem;
  line-height: 1.4;
  margin: 0 0 18px;
  padding-left: 12px;
  border-left: 6px solid #36a872;
  color: #123456;
}

.detail-lead {
  margin: 12px 0 24px;
  line-height: 1.9;
  font-size: 1rem;
  font-weight: 600;
  color: #123456;
}

.detail-lead p {
  margin: 0 0 1em;
}

.detail-lead p:last-child {
  margin-bottom: 0;
}

.image-card {
  background: #fffaf0;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  padding: 6px;
  box-shadow: none;
}

.image-card-spaced {
  margin-top: 24px;
}

.image-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.image-card h3 {
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 1.08rem;
  line-height: 1.5;
  color: #123456;
}

.image-card h3:first-of-type {
  margin-top: 18px;
}

.pdf-download {
  text-align: center;
  margin-top: 24px;
}

.pdf-download .btn {
  min-width: 240px;
}

.notice-section {
  margin-top: 6px;
}

.notice-list {
  margin: 0;
  padding-left: 1.4em;
}

.notice-list li {
  line-height: 1.8;
}

.text-link {
  color: #234567;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover,
.text-link:focus-visible {
  color: #1d3f5f;
  text-decoration: underline;
}

/* download page */
.download-list {
  margin: 12px 0 24px;
  padding-left: 1.2em;
}

.download-list li + li {
  margin-top: 12px;
}

.download-list a {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 500;
}

.download-note {
  margin-top: 0;
  margin-bottom: 12px;
}

.download-guide {
  margin-top: 18px;
  margin-bottom: 30px;
  padding: 18px;
  background: #f8fff8;
  border: 1px solid #d6ead6;
  border-radius: 10px;
}

.download-guide-text {
  margin: 0 0 12px;
  line-height: 1.7;
  color: #123456;
}

/* contact */
.contact-card {
  padding: 12px;
  border: 1.2px solid #aabbcc;
}

.contact-table {
  width: 100%;
  border-collapse: collapse;
}

.contact-table th,
.contact-table td {
  padding: 9px 0;
  vertical-align: top;
  font-weight: 720;
  line-height: 1.45;
}

.contact-table th {
  width: auto;
  white-space: nowrap;
  text-align: left;
  padding-right: 1.2em;
  letter-spacing: 0.05em;
}

.contact-table td {
  text-align: left;
}

.contact-table td a {
  font-weight: 720;
}

.contact-mail-btn {
  min-width: 280px;
  font-size: 1.1rem;
}

/* footer */
.site-footer {
  margin-top: 24px;
  background: #123660;
  color: #f6faff;
}

.footer-simple {
  text-align: center;
  padding: 12px 16px;
}

.copyright {
  margin: 0;
  font-size: 0.88rem;
  color: #f6faff;
}

/* responsive */
@media (max-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    min-height: 72px;
  }

  .site-logo img {
    width: 48px;
    height: 48px;
  }

  .site-logo svg {
    width: 48px;
    height: 48px;
    display: block;
  }

  .site-logo-text {
    font-size: 1.2rem;
    font-weight: 720;
    color: #f6faff;
  }

  .menu-toggle {
    display: block;
  }

  .global-nav {
    position: fixed;
    top: 72px;
    right: 0;
    width: min(320px, 85%);
    height: calc(100dvh - 72px);
    background: #123660;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: -8px 0 24px rgba(15, 35, 60, 0.10);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .global-nav.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .global-nav ul {
    display: block;
    padding: 20px;
  }

  .global-nav li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .global-nav a {
    display: block;
    padding: 14px 4px;
  }

  .hero {
    padding: 36px 0 48px;
  }

  .hero-content {
    max-width: none;
    padding: 0 4px;
  }

  .hero-eyebrow-wrap,
  .hero-title-wrap,
  .hero-lead-group {
    margin-left: 0;
  }

  .hero-eyebrow {
    font-size: 1.25rem;
    padding: 11px 20px;
    margin-bottom: 10px;
  }

  .hero h1 {
    margin-bottom: 16px;
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    line-height: 1.3;
  }

  .lead {
    font-size: 1rem;
    line-height: 1.75;
  }

  .lead-message {
    font-size: 1.02rem;
  }

  .lead-keyphrase {
    font-size: 1.12rem;
  }

  .section {
    padding: 48px 0;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .kyosai-card {
    padding: 24px;
    margin-bottom: 24px;
    background: #fffaf0;
  }

  .kyosai-card-header {
    gap: 12px;
    margin-bottom: 12px;
  }

  .kyosai-card-header img {
    width: 48px;
    height: 48px;
  }

  .kyosai-card h3 {
    font-size: 1.2rem;
    color: #123456;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .pdf-download .btn {
    min-width: 100%;
  }

  .kyosai-page {
    padding: 18px 12px 30px;
  }

  .detail-section {
    max-width: none;
    margin-bottom: 24px;
    padding: 24px;
    border-radius: 12px;
  }

  .detail-section h1 {
    font-size: 1.6rem;
    color: #123456;
  }

  .detail-section h2 {
    font-size: 1.2rem;
    color: #123456;
  }

  .detail-lead {
    font-size: 0.98rem;
    margin-bottom: 24px;
  }

  .image-card {
    background: #fffaf0;
    padding: 6px;
    margin-bottom: 24px;
  }

  .download-list {
    margin-bottom: 24px;
  }

  .download-list a {
    font-size: 18px;
  }

  .download-guide {
    padding: 12px;
    margin-bottom: 24px;
  }

  .breadcrumb {
    padding-top: 12px;
  }

  .breadcrumb-list {
    font-size: 0.9rem;
  }

  .footer-simple {
    padding: 12px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .container,
  .header-inner,
  .breadcrumb {
    width: min(1120px, calc(100% - 48px));
  }

  .kyosai-page {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 769px) {
  body {
    font-size: 18px;
    line-height: 1.6;
    font-weight: 500;
  }

  .global-nav {
    display: block !important;
    position: static;
    width: auto;
    height: auto;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    border-left: none;
    box-shadow: none;
    overflow: visible;
    background: transparent;
  }
}

@media (min-width: 1025px) {
  body {
    background:
      radial-gradient(
        circle at center,
        rgba(216, 240, 216, 0.90) 0%,
        rgba(216, 240, 216, 0.72) 25%,
        rgba(216, 240, 216, 0.54) 50%,
        rgba(216, 240, 216, 0.36) 75%,
        rgba(216, 240, 216, 0.18) 100%
      ),
      linear-gradient(
        90deg,
        rgba(216, 240, 216, 0.12) 0%,
        rgba(216, 240, 216, 0.24) 25%,
        rgba(216, 240, 216, 0.36) 50%,
        rgba(216, 240, 216, 0.24) 75%,
        rgba(240, 216, 240, 0.12) 100%
      ),
      url('/images/bg-main.jpg') center top / cover no-repeat fixed,
      #fafffa;
  }

  .hero {
    background: transparent;
  }

  .container,
  .header-inner,
  .breadcrumb {
    width: min(1120px, calc(100% - 72px));
  }

  .kyosai-page {
    padding-left: 36px;
    padding-right: 36px;
  }
}
