/* =================================================
   アニメーション（全ページ共通）
================================================= */
.fade-in-up,
.fade-in-left,
.fade-in-right,
.fade-in {
  opacity: 0;
  transition: opacity 2s ease, transform 2s ease;
}

.fade-in-up {
  transform: translateY(30px);
}

.fade-in-left {
  transform: translateX(-30px);
}

.fade-in-right {
  transform: translateX(30px);
}

.fade-in {
  transform: translateY(0);
}

.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.move {
  position: relative;
  padding-bottom: 9px;
}

.move::after {
  background: linear-gradient(to right, #d61853 0, #9C27B0 100%);
  content: "";
  display: block;
  height: 2px;
  width: 0;
  transition: width 3s ease-in-out;
  position: absolute;
  left: 0;
  bottom: 0;
}

.animate::after {
  width: 100%;
}

/* =================================================
   基本レイアウト・スタイル（全ページ共通）
================================================= */
section,
p,
h1,
footer,
.btn_apply {
  position: relative;
}

section p {
  font-size: 18px;
  line-height: 30px;
  margin: 0 auto 40px;
  width: 90%;
}

.contents_wrap {
  overflow: hidden;
  position: relative;
  max-width: 920px;
  width: 100%;
  margin: 5pc auto;
}

h2 {
  font-size: 2.5em;
  text-align: center;
  line-height: 1.5em;
  margin: 2pc auto 40px;
  padding: 20px;
}

h2::after {
  background: linear-gradient(to right, #d61853 0, #9C27B0 100%);
  content: "";
  display: block;
  height: 6px;
  margin: 20px auto 16px;
  width: 40px;
}

b {
  background: #fff;
  padding: 0 6px;
}

/* パンくずリスト */
#breadcrumb {
  border-bottom: none;
}

#breadcrumb ol {
  margin: 4px auto 0;
  width: 920px;
}

#breadcrumb li {
  display: inline;
}

#breadcrumb i {
  margin: 0 8px;

  color: #424242;
}

.box li {
  display: flex;
  font-size: 18px;
  margin: 12.5px 0;
}

h3 i,
h4 i {
  overflow: hidden;
  margin-right: 6px;
}

.fa-check-circle {
  color: #4CAF50;
}

.fa-times-circle {
  color: red;
}

.fa-caret-right {
  color: #ff5722;
}

.fa-comment-alt {
  color: #0096aa;
  margin: 3px 6px 0 0;
}

/* 2列ボックス */
.box_2rows_wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  overflow: hidden;
  align-items: stretch;
  padding-bottom: 20px;
}

.box_2rows {
  width: 45%;
  padding: 30px;
  box-sizing: border-box;
}

.box_2rows p {
  margin-bottom: 0
}

.title_box {
  margin-bottom: 15px;
  overflow: hidden;
  width: 100%;
}

.title_box h3 {
  font-size: 1rem;
  line-height: 160%;
  margin: 20px 0;
  text-align: left;
}

.title_box p {
  color: #d61853;
  font-size: 2rem;
  font-style: italic;
  font-weight: 700;
  float: left;
  line-height: 160%;
  margin: 0 12px 0 0;
  width: auto;
}


/* =================================================
   seikei_diet 以外で共通のスタイル
================================================= */
.toc_wrap {
  padding: 1em 2em;
  min-width: 60%;
  margin: 0 auto 60px;
  width: auto;
  display: table;
}

.toc_title {
  font-size: 1.5em;
  margin-bottom: .5em;
  text-align: center;
  font-weight: 700;
  padding: 0;
}

.toc_list {
  line-height: 2rem;
}

#toc .number {
  display: inline-block;
  min-width: 1.5em;
  margin-right: .3em;
}

#toc li {
  border-top: 1px solid #ccc;
  font-size: initial;
  display: block;
}

#toc li a {
  color: #d61154;
  font-weight: 700;
  padding: .6em 0;
  display: flex;
  align-items: baseline;
}

#toc li li a {
  font-size: .9em;
  padding-left: .7em;
  font-weight: 400;
}

.video {
  max-width: 560px;
  width: 90%;
  margin: 30px auto;
}

lite-youtube {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border: 2px solid #fff;
}

/* =================================================
   FLOWエリア
================================================= */
.box_flow_l,
.box_flow_r {
  height: 220px;
  position: relative;
  margin: 30px 15px;
  padding: 5px 20px 30px;
  width: 70%;
}

.box_flow_l {
  float: left;
}

.box_flow_r {
  float: right;
}

#flow h3 i {
  width: auto;
}

.flow_p {
  font-size: 16px;
  line-height: 160%;
  margin: 0;
  width: initial;
}

/* =================================================
   FAQエリア（共通部分）
================================================= */
#faq .box_2rows {
  padding: 5px 20px 30px
}

.answer {
  font-size: 16px;
  line-height: 160%;
  padding-bottom: 10px;
  width: initial;
}

.faq_link {
  font-size: 16px;
  position: absolute;
  bottom: 10px;
  right: 20px;
  width: auto;
}

/* =================================================
   フッターエリア（全ページ共通）
================================================= */
#summary {
  background: #000000a6;
  border: 0;
  color: #fff;
  padding-bottom: 80px;
}

#summary h2 {
  margin: 5pc 0 40px;
}

#summary h2::after {
  background: #fff;
}

#summary h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  text-align: center;
}

#summary .btn_apply,
.credit {
  background: rgb(43 37 21 / 30%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  contain: paint;
  border: 1px solid rgb(255 255 255 / 66%);
}

#summary .btn_apply a {
  color: #fff;
}

.credit {
  border-radius: 6px;
  padding: 12px;
  max-width: 600px;
  width: 85%;
  margin-bottom: 120px;
}

.credit a {
  color: #fff;
  text-decoration: underline;
}

#link {
  border: none;
}

#link article {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 20px auto;
  width: 95%;
}

#link div {
  aspect-ratio: 8/5;
  border-radius: 8px;
  overflow: hidden;
}

#link div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#link p {
  position: absolute;
  bottom: 0;
  margin: 0;
  padding: 20px 0;
  width: 100%;
  color: #fff;
  font-size: clamp(1rem, 1.2vw, 1.5em);
  font-weight: 600;
  text-align: center;
  background: linear-gradient(to top, rgba(0, 0, 0, .9) 0%, transparent 100%);
}

/* =================================================
   レスポンシブ（共通部分）
================================================= */
@media screen and (max-width: 978px) {
  #breadcrumb ol {
    width: 95%;
  }

  .box_flow_l,
  .box_flow_r {
    width: 80%;
    float: none;
    height: auto;
    margin: 0 auto 15px;
  }

  .faq_link {
    position: relative;
    bottom: -20px;
    text-align: right;
    right: 0;
  }

  #link article {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .box_2rows_wrap {
    flex-direction: column;
    align-items: center;
  }

  .box_2rows {
    width: 90%
  }
}

@media screen and (max-width: 600px) {
  h2 {
    font-size: 1.4rem;
  }

  .toc_wrap {
    width: 80%;
  }

  #link article {
    grid-template-columns: 1fr;
    width: 90%;
    margin: 30px auto;
    gap: 30px;
  }
}

@media screen and (max-width: 320px) {
  h2 {
    font-size: 1.2rem;
  }
}