
:root {
  --main-color: #4C076C;
  --sub-color: #835292;
  --border-color: #e0e0e0;
  --text-color: #333333;
}

html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

body {
  font-family: "Noto Sans JP", "Hiragino Sans", "ヒラギノ角ゴシック", "Yu Gothic", "游ゴシック", "メイリオ", Meiryo, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #ffffff;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}



/******  header  ******/
header {
  padding: 12px 0;
  background-color: var(--main-color);
}

.logo {
  max-height: 40px;
  width: auto;
  margin: 0 auto;
}



/******  top-box  ******/
.top-box {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px;
}

.top-box h1 {
  font-size: 1.25rem;
  text-align: center;
}

.lead {
  width: fit-content;
  max-width: 100%;
  margin: 15px auto 30px;
  padding: 0 1rem;
  font-size: 0.95rem;
  text-align: left;
}

.toc-box {
  padding: 0 1rem;
}

.toc-box h2 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  text-align: center;
}

.toc-list {
  max-width: 600px;
  margin: 0 auto;
  border: 2px solid var(--sub-color);
  border-radius: 16px;
  overflow: hidden;
  counter-reset: toc-count;
}

.toc-list li {
  border-bottom: 1px solid var(--border-color);
}

.toc-list li:last-child {
  border-bottom: none;
}

.toc-list a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--text-color);
}

.toc-list a::before {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 50%;
  font-size: 0.75rem;
  background-color: var(--main-color);
  color: #ffffff;
  line-height: 1;
  counter-increment: toc-count;
  content: counter(toc-count);
}

.toc-list a::after {
  content: ">";
  margin-left: auto; 
  font-size: 1.1rem;
  color: var(--sub-color);
}

.uma-img {
  width: 100%;
  max-width: 800px;
  margin: 20px auto 40px;
}



/******  main-box  ******/
.main-box {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
}

section {
  margin-bottom: 70px;
}

.main-box h2 {
  margin: 20px 0 30px;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 1.15rem;
  background-color: var(--sub-color);
  color: #ffffff;
}

.sec-body,
.faq-list {
  padding: 0 12px;
}

h3 {
  margin: 40px 0 8px;
  font-size: 1.1rem;
}

.sec-body > h3:first-of-type {
  margin-top: 20px;
}
.sec-body > img + h3:first-of-type {
  margin-top: 40px;
}

p {
  margin-bottom: 13px;
  font-size: 1rem;
}

.text-label {
  padding-left: 1rem;
}

#sec3 p {
  margin: 0 auto 13px;
  width: fit-content;
  text-align: left;
}

.icon-img {
  width: 100%;
  max-width: 450px;
  margin: 15px auto;
}

.sec-img {
  width: 100%;
  margin: 0 auto 15px;
}

.info-box,
.faq-box { 
  margin-bottom: 25px;
  padding: 10px;
  border: 2px solid var(--sub-color);
  border-radius: 12px;
}

.info-list li {
  position: relative;
  margin-bottom: 15px;
  padding-left: 14px;
  font-size: 1rem;
}

.info-list li::before {
  content: "・";
  position: absolute;
  left: 0;
}

#sec1 .info-list > li:last-child {
  margin-bottom: 0;
}

.info-list li ul {
  margin-top: 6px;
}

.info-list li ul li {
  padding-left: 18px;
}

.info-list li ul li::before {
  content: "-";
  left: 5px;
}

.speech-box {
  position: relative;
  max-width: 450px;
  margin: 0 auto 40px;
  padding: 15px;
  background-color: #fdf8fe;
  border: 2px solid #cf7b86;
  border-radius: 25px;
}

.speech-box::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-bottom: 15px solid #cf7b86;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
}

.speech-box::after {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-bottom: 13px solid #fdf8fe;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
}

.speech-box h3 {
  margin: 0 0 8px;
}

.intro {
  margin-bottom: 20px;
}

.intro p {
  padding: 0 20px;
}


/*sec8の矢印*/ 
.arrow-box {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 25px 0;
  background: linear-gradient(to bottom, #ffffff, #f0eaf2);
}
.arrow {
  width: 100%;
  max-width: 580px;
  height: 65px; 
  background: linear-gradient(to bottom, #cbb4d4 0%, #ebdff0 100%);
  clip-path: polygon(
    25% 0%,
    75% 0%,
    75% 35%,
    100% 35%,
    50% 100%,
    0% 35%,
    25% 35%
  );
}

.flex-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 35px 0;
}

.flex-img {
  max-width: 250px;
  flex: 0 0 40%;
}

.flex-text {
  flex: 1; 
}

.flex-text h3 {
  margin: 10px 0 8px 0;
}

.note-text {
  margin-top: 6px;
  font-size: 0.9rem;
}

.info-box h3 {
  margin: 5px 0 10px;
}

.faq-list dt {
  margin: 5px 0 10px;
  font-size: 1rem;
  font-weight: bold;
}

.faq-list dd {
  margin-bottom: 5px;
  font-size: 0.95rem;
  line-height: 1.5;
}



/****** footer  ******/
footer {
  padding: 20px 40px; 
  background-color: var(--main-color);
  color: #ffffff;
  text-align: center;
}

.footer-inner {
  display: inline-block;
  text-align: left;
}

.footer-inner p {
  padding-left: 1.2em;
  text-indent: -1.2em;
  font-size: 0.9rem;
}



/******  トップへ戻るボタン  ******/
.pagetop {
  position: fixed;
  bottom: 20px;
  right: 10px;
  z-index: 999;
  width: 50px;
  height: 50px; 
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.pagetop.is-active {
  opacity: 1;
  pointer-events: auto;
}

.pagetop a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: rgba(127, 94, 144, 0.8); 
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.pagetop-img{
  width: 43px;
  height: auto;
}



@media (min-width: 460px) {
  .sec-body,
  .faq-list {
    padding: 0 20px;
  }
  .sec-img {
    max-width: 85%;
  }
  .flex-block {
    gap: 25px;
  }
}

@media (min-width: 640px) {
  .top-box {
    padding: 20px;
  }

  .top-box h1 {
    font-size: 1.5rem;
  }

  .lead {
    margin: 15px auto 40px;
    font-size: 1.05rem;
  }

  .toc-box h2 {
    font-size: 1.3rem;
  }

  .toc-list a {
    font-size: 1.05rem;
  }

  .uma-img {
    margin: 40px auto;
  }

  .sec-img {
    max-width: 80%;
  }

   section {
    margin-bottom: 100px;
  }

  .main-box h2 {
    margin: 20px 10px 40px;
    font-size: 1.3rem;
  }

  h3 {
    margin: 40px 0 15px;
    font-size: 1.2rem;
  }

  .sec-body > h3:first-of-type {
    margin-top: 40px;
  }

  p {
    font-size: 1.1rem;
  }

  .text-label {
    padding-left: 3rem;
  }

  .info-box,
  .faq-box { 
    padding: 14px;
  }

  .info-list li {
    font-size: 1.1rem;
  }

  .speech-box {
    padding: 20px;
  }

  .flex-block {
    gap: 35px;
  }
  
  .note-text {
    margin-top: 8px;
    font-size: 0.95rem;
  }

  .faq-list dt {
    font-size: 1.1rem;
  }

  .faq-list dd {
    font-size: 1.05rem;
  }

  .footer-inner p {
    font-size: 0.95rem;
  }

  .pagetop {
    right: 20px;
  }
}
