@charset "UTF-8";

html { overflow: auto; }
body { overflow: hidden; }

html {
  overflow-y: scroll;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  max-width: 750px;
  margin: 0 auto;
  font-family: sans-serif;
  line-height: 1.618;
  color: #151a2a;
  box-shadow: 0 0 2rem rgba(0, 0, 0, 0.1);
}


p {
  font-size: 18px;
}



@media(max-width: 599px) {
  p {
  font-size: 17px;
}


}

img {
  max-width: 100%;              /* 1 */
  height: auto;                 /* 1 */
  vertical-align: middle;       /* 2 */
  font-style: italic;           /* 3 */
  background-repeat: no-repeat; /* 4 */
  background-size: cover;       /* 4 */
  shape-margin: 0.75rem;        /* 5 */
}

figure {
  margin: 0;
  /* または */
  margin-block-start: 0;
  margin-block-end: 0;
  margin-inline-start: 0;
  margin-inline-end: 0;
}

/* リンク
======================================================================= */

a,
a:hover {
  color: #1a0dab;
  text-decoration: underline;
}

a:hover, 
a:focus {
  text-decoration: none;
}

a:active {
  color: #1a0dab;
  text-decoration: none;
}

a:hover > img {
  opacity: .9;
}

/* =======================================================================
  メディアクエリによる表示／非表示
======================================================================= */

.pc { display: block; }
.sp { display: none; }

@media(max-width: 599px) {
  .pc { display: none; }
  .sp { display: block; }
}



/* Safariで文字が太らないようにする */

_::-webkit-full-page-media, _:future, :root body {
  -webkit-font-smoothing: antialiased;
}
@media screen and (-webkit-min-device-pixel-ratio:0) {
  ::i-block-chrome, body {
    -webkit-font-smoothing: antialiased;
  }
}

/* =======================================================================
  CTA
======================================================================= */


.cta {
  background-color: #bc2828;
  padding: 40px;
}

.cta__inner {
  margin-top: 50px;
  padding-bottom: 50px;
  background-color: #fff;
  text-align: center;
}

.cta__txt img{
  margin-top: -40px;
  margin-bottom: 20px;
}

@media (max-width: 599px) {
  .cta {
    padding: 20px;
    padding-bottom: 40px;
  }

  .cta__inner {
    margin-top: 30px;
    padding: 0 20px 30px 20px;
  }

  .cta__txt img{
    margin-top: -20px;
    margin-bottom: 10px;
  }

}

/* =======================================================================
  voc
======================================================================= */
.voc {
  background-color: #eaf2fa;
  padding: 40px;
}

.voice-box {
  background: #fff;
  padding: 40px;
  margin-bottom: 30px;
  position: relative; /* ← 折りたたみ時にボタンをabsoluteで置くため */
  overflow: hidden;
  max-height: 400px; /* 初期表示の高さ */
  transition: max-height 0.4s ease;
}

.voice-box.expanded {
  max-height: 2000px; /* 展開時は高さ拡張 */
}

.voice-text {
  white-space: pre-line;
  line-height: 1.6;
}

.voice-image {
  margin-top: 15px;
  text-align: center;
  display: none; /* 初期は非表示 */
}
.voice-box.expanded .voice-image {
  display: block;
}
.voice-image img {
  max-width: 100%;
  border-radius: 4px;
}

/* --- ボタンのスタイル --- */
.read-more-btn {
  background: #b22222;
  color: #fff;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  z-index: 2;
  transition: all 0.3s ease;
}

/* 閉じているとき（テキストに被る） */
.voice-box:not(.expanded) .read-more-btn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

/* 展開したとき（テキスト＋直筆画像の下に自然に表示） */
.voice-box.expanded .read-more-btn {
  position: static;
  display: block;         /* ← blockに変更 */
  width: fit-content;     /* ← ボタン幅をテキストに合わせる */
  margin: 15px auto 0;    /* ← autoで中央寄せ */
  transform: none;
  text-align: center;
}

@media (max-width: 599px) {
  .voc {
    padding: 20px;
  }

  .voice-box {
    padding: 20px;
    margin-bottom: 30px;
  }

}

/* =======================================================================
  footer
======================================================================= */

.footer {
  background-color: #0b2e58;
  padding: 20px;
  padding-bottom: 200px;
}

.footer__inner {
  padding: 20px auto;
  text-align: center;
  color: #fff;
}

.footer__inner p {
  font-size: 10px;
}

.footer a {
  color: #fff;
}

@media (max-width: 599px) {
  .footer {
    padding-bottom: 100px;
  }

  .footer__inner {
    text-align: center;
    font-size: 10px;
    color: #fff;
  }
}


/* =======================================================================
  固定CTAボタン
======================================================================= */
.fixed-cta {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 750px;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 15px 30px;
  display: flex;
  justify-content: center;
  gap: 15px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.fixed-cta a {
  flex: 1;
  max-width: 280px;
  text-decoration: none;
}

.fixed-cta img {
  width: 100%;
  height: auto;
  transition: transform 0.2s ease;
}

.fixed-cta a:hover img {
  transform: scale(0.95);
  opacity: 0.9;
}

@media (max-width: 599px) {
  .fixed-cta {
    padding: 8px 15px;
    gap: 8px;
  }

  .fixed-cta a {
    max-width: 180px;
  }
}

