html {
  scroll-behavior: smooth;
}

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

:root {
  --color-primary: #007FBF;
  --color-secondary: #99DEF3;
  --color-accent: #1B1464;
  --color-dark: #151515;
  --color-blue: #0051ED;
  --color-white: #ffffff;
  --color-bg: #EAEAEA;
  --color-border: #cccccc;
  --radius: 16px;
  --max-width: 680px;
  --header-h: 40px;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  /* background: linear-gradient(180deg, #2BD2F3 0%, #E9C6FF 750px) no-repeat; */
  background: linear-gradient(180deg, #56DBF5 0%, #EDD1FF 650px) no-repeat;
  background-color: #E9C6FF;
  color: var(--color-dark);
  font-size: 16px;
  line-height: 1.7;
}

/* ========== WRAPPER ========== */
.page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  background: transparent;
  min-height: 100vh;
}

/* ========== STICKY WRAPPER ========== */
.sticky-area {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  transition: transform 0.3s ease;
}

/* ========== HEADER ========== */
header {
  background: var(--color-white);
  width: 100%;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 20px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon {
  height: 24px;
  width: auto;
  display: block;
}

.logo-mark svg {
  width: 22px;
  height: 22px;
  fill: white;
}

.logo-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: 0.02em;
}

.header-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: 0.04em;
  text-align: right;
  line-height: 1.2;
}

header a {
  color: inherit;
  text-decoration: none;
}

/* ========== NAVIGATION ========== */
nav {
  background: transparent;
  width: 100%;
  transition: background 0.3s ease;
}

nav.scrolled {
  background: rgba(234, 234, 234, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.nav-btn {
  flex: 1;
  padding: 4px;
  background: var(--color-white);
  border: 2px solid var(--color-blue);
  border-radius: 8px;
  color: var(--color-blue);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  letter-spacing: 0.01em;
  line-height: 1.3;
}



.nav-btn a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.nav-btn:hover,
.nav-btn.active {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}

/* ========== MAIN VISUAL ========== */
.main-visual {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.main-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

/* ========== TOC ========== */
.toc {
  margin: 0 16px;
  padding: 16px;
  background: var(--color-white);
  border-radius: var(--radius);
}

.toc-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-dark);
}

.toc-list {
  list-style: none;
  counter-reset: toc;
}

.toc-list li {
  counter-increment: toc;
  padding: 0 0 4px;
  font-size: 16px;
  line-height: 1.6;
}

.toc-list li:last-child {
  padding-bottom: 0;
}

.toc-list li::before {
  content: counter(toc) ".\00a0";
  font-weight: 700;
}

.toc-list li a {
  color: var(--color-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: underline;
}

.toc-list li a::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ========== CONTENT AREA ========== */
.content-area {
  padding: 20px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ========== CARD ========== */
.card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: 66px;
}

.card-header {
  background: linear-gradient(90deg, #05F 0%, #1398F8 100%);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 10px 20px;
}

.card-header h2 {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-align: center;
}

.card-body {
  padding: 20px;
}

.card-divider {
  height: 2px;
  background: #E1E1E1;
  margin: 0 -20px 20px;
}

.card-body h3 {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--color-accent);
  line-height: 1.4;
}

.card-body p {
  font-size: 16px;
  text-align: left;
  color: var(--color-dark);
  line-height: 1.75;
  margin-bottom: 16px;
}

.card-body p:last-of-type {
  margin-bottom: 0;
}

.card-body .card-image {
  width: 100%;
  height: auto;
  margin-top: 12px;
}

.card-body .card-image-top0 {
  margin-top: 0;
}

.card-body .card-head-image {
  width: 40%;
  display: block;
  margin: 0 auto 10px;
}

.ec-banner {
  width: 120px;
  height: auto;
  display: block;
  margin: 10px auto;
}

.ec-banner-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.ec-banner-wrap .ec-banner {
  margin: 0;
}

.ec-banner-note {
  text-align: center;
  margin-top: 10px;
}

.card-body .ec-banner-note {
  text-align: center;
}

/* ========== BUTTON ========== */
.btn {
  display: inline-block;
  background: #FFD918;
  color: var(--color-dark, #151515);
  border: 2px solid var(--color-dark, #151515);
  border-radius: 9999px;
  padding: 12px 18px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  letter-spacing: 0.04em;
  width: 100%;
}

@media (hover: hover) {
  .btn:hover {
    background: var(--color-white, #ffffff);
    color: var(--color-dark, #151515);
  }
}

.btn:focus {
  outline: none;
  background: var(--color-yellow, #FFD918);
  color: var(--color-dark, #151515);
}

.btn-wrap {
  margin-top: 20px;
  text-align: center;
}

.btn-wrap-row {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

.btn-wrap-row .btn {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
}

/* ========== CONTENTS ========== */
a {
  text-decoration: none;
}

.card-body a:not(.btn),
.topic-panel a:not(.btn) {
  color: var(--color-blue);
  text-decoration: underline;
}

.card-body a:not(.btn):hover,
.topic-panel a:not(.btn):hover {
  text-decoration: none;
}

h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.mt-10 {
  margin-top: 10px !important;
}


.mt-20 {
  margin-top: 20px !important;
}

.mt-30 {
  margin-top: 30px !important;
}

.mb-10 {
  margin-bottom: 10px !important;
}

.mb-20 {
  margin-bottom: 20px !important;
}

.mb-30 {
  margin-bottom: 30px !important;
}

.mb-40 {
  margin-bottom: 40px !important;
}

.topic {
  border: 2px solid #ccc;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
}

.topic h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.topic h4::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-color: #FFDD00;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 352 512'%3E%3Cpath d='M96.06 454.35c.01 6.29 1.87 12.45 5.36 17.69l17.09 25.69a31.99 31.99 0 0 0 26.64 14.28h61.71a31.99 31.99 0 0 0 26.64-14.28l17.09-25.69a31.989 31.989 0 0 0 5.36-17.69l.04-38.35H96.01l.05 38.35zM0 176c0 44.37 16.45 84.85 43.56 115.78 16.52 18.85 42.36 58.23 52.21 91.45.04.26.07.52.11.78h160.24c.04-.26.07-.51.11-.78 9.85-33.22 35.69-72.6 52.21-91.45C335.55 260.85 352 220.37 352 176 352 78.61 272.91-.3 175.45 0 73.44.31 0 82.97 0 176zm176-80c-44.11 0-80 35.89-80 80 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-61.76 50.24-112 112-112 8.84 0 16 7.16 16 16s-7.16 16-16 16z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 352 512'%3E%3Cpath d='M96.06 454.35c.01 6.29 1.87 12.45 5.36 17.69l17.09 25.69a31.99 31.99 0 0 0 26.64 14.28h61.71a31.99 31.99 0 0 0 26.64-14.28l17.09-25.69a31.989 31.989 0 0 0 5.36-17.69l.04-38.35H96.01l.05 38.35zM0 176c0 44.37 16.45 84.85 43.56 115.78 16.52 18.85 42.36 58.23 52.21 91.45.04.26.07.52.11.78h160.24c.04-.26.07-.51.11-.78 9.85-33.22 35.69-72.6 52.21-91.45C335.55 260.85 352 220.37 352 176 352 78.61 272.91-.3 175.45 0 73.44.31 0 82.97 0 176zm176-80c-44.11 0-80 35.89-80 80 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-61.76 50.24-112 112-112 8.84 0 16 7.16 16 16s-7.16 16-16 16z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.spbr {
  display: inline;
}

.sp-mini-br {
  display: none;
}

.border {
  border: 2px solid #ccc;
}

/* ========== アコーディオン ========== */
.category-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

details.category-item {
  border-radius: var(--radius);
  background: #AEECFF;
  overflow: hidden;
}

summary.category-toggle {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
  font-size: 16px;
  line-height: 1;
  font-weight: bold;
  border: 0;
  outline: 0;
  height: 32px;
}

summary.category-toggle::-webkit-details-marker {
  display: none;
}

.accordion-panel {
  padding: 10px;
  line-height: 1.7;
  color: var(--color-dark);
  background-color: var(--color-white);
  border: 2px solid var(--color-bg);
  border-radius: 0 0 var(--radius) var(--radius);
  box-sizing: border-box;
}

.accordion-panel+.accordion-panel {
  border-radius: 0 0 var(--radius) var(--radius);
}

.accordion-panel:has(+ .accordion-panel) {
  border-bottom: none;
  border-radius: 0;
}

.category-icon svg {
  width: 22px;
  height: 22px;
  color: #333;
  transition: transform .18s ease, color .18s ease;
  transform-origin: 50% 50%;
  transform: rotate(0deg);
  margin: 0;
  vertical-align: middle;
}

details[open] .category-icon svg {
  transform: rotate(180deg);
  color: #333;
}

/* ========== TOPIC アコーディオン ========== */
.topic-accordion {
  border-radius: var(--radius);
  background: #AEECFF;
  overflow: hidden;
  margin-top: 8px;
}

.topic-toggle {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
  font-size: 16px;
  line-height: 1;
  font-weight: bold;
  border: 0;
  outline: 0;
  height: 32px;
}

.topic-toggle--tall {
  height: auto;
  min-height: 32px;
  line-height: 1.4;
}

.topic-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topic-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.topic-toggle::-webkit-details-marker {
  display: none;
}

.topic-arrow svg {
  width: 22px;
  height: 22px;
  color: #333;
  transition: transform .18s ease;
  transform: rotate(0deg);
  vertical-align: middle;
}

details[open]>.topic-toggle .topic-arrow svg {
  transform: rotate(180deg);
}

.topic-panel {
  padding: 10px;
  line-height: 1.7;
  color: var(--color-dark);
  background-color: var(--color-white);
  border: 2px solid var(--color-bg);
  border-radius: 0 0 var(--radius) var(--radius);
  box-sizing: border-box;
}

.topic-panel ul {
  list-style: none;
  padding: 10px 0 0;
  margin: 0;
}

.topic-panel li {
  padding-left: 1em;
  text-indent: -1em;
  line-height: 1.3;
  padding-bottom: 10px;
}

.check-list li::before {
  content: "\2714";
  margin-right: 0.3em;
}

.topic-panel li:last-child {
  padding-bottom: 0;
}

/* ========== 注意事項リスト ========== */
.note-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.note-list li {
  padding-left: 1em;
  text-indent: -1em;
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-dark);
}

.note-list li::before {
  content: "・";
}

.note-list li+li {
  margin-top: 4px;
}

/* ========== footer ========== */
footer {
  border-top: 1px solid #CCCCCC;
  margin: 40px auto 0;
  padding: 32px 16px;
  background: #fff;
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
}

footer .corporate-logo {
  width: 160px;
  height: 35px;
  margin: 0 24px 16px 0;
  padding: 0 12px;
}

footer ul li {
  list-style: none;
}

footer a {
  color: #004ADE;
}

.footer_navi {
  flex: 3;
  max-width: 15%;
}

.utility_navi li {
  padding: 0 4px 2px 12px;
}

.footer-right {
  margin-left: 24px;
}

.row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(var(--bs-gutter-y)* -1);
  margin-right: calc(var(--bs-gutter-x)* -0.5);
  margin-left: calc(var(--bs-gutter-x)* -0.5);
}

@media screen and (max-width: 1024px) {
  .footer_navi {
    max-width: 25%;
  }
}

@media screen and (max-width: 768px) {
  footer .corporate-logo {
    padding: 0;
    max-width: 120px;
  }

  .footer-right {
    margin-left: 0;
  }
}

/* ========== 768px以上：大きめ表示 ========== */
@media (min-width: 768px) {
  :root {
    --header-h: 76px;
  }

  .header-inner {
    padding: 20px 32px;
  }

  .logo-icon {
    height: 36px;
  }

  .logo-text {
    font-size: 16px;
  }

  .header-title {
    font-size: 18px;
  }

  .nav-inner {
    padding: 16px 32px;
  }

  .nav-btn {
    padding: 10px;
    font-size: 12px;
  }

  .main-visual {
    width: 80%;
    display: flex;
    margin: auto;
  }

    .main-visual  img{
      width: 500px;
  }

  .card {
    scroll-margin-top: 88px;
  }

  .card-header {
    padding: 22px 28px 20px;
  }

  .card-body {
    padding: 24px 28px;
  }

  .card-divider {
    margin: 0 -28px 24px;
  }

  .card-body .card-image {
    width: 80%;
    margin: auto;
    display: block;
  }

  .card-image .card-head-image {
    width: 100%!important;
  }

  .card-body .card-head-image {
    width: 30%;
    margin: 0 auto 12px;
  }

  .content-area {
    padding: 28px 32px 60px;
  }

  .toc {
    margin: 0 32px;
    padding: 24px;
  }

  .spbr {
    display: none!important;
  }

  .btn{
    width: 50%;
  }
    .btn2{
      width: 60%!important;
}
}


/* ========== 330px以下：小さめ表示 ========== */
@media (max-width: 330px) {
  .header-inner {
    padding: 8px 10px;
  }

  .logo-icon {
    height: 18px;
  }

  .header-title {
    font-size: 11px;
  }

  .nav-btn {
    font-size: 9px;
  }

  .sp-mini-br {
    display: inline;
  }
}