/* ============================================================
   メディキャリ大学 LP — style.css
   構成: Reset → 共通 → SP版（デフォルト） → PC版（768px以上）
   ============================================================ */


/* ============================================================
   Reset / Base
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy:        #0A2474;
  --navy-deep:   #061555;
  --blue:        #1456CC;
  --orange:      #F06A00;
  --white:       #FFFFFF;
  --text-dark:   #1A2040;
  --card-border: #C8D8F0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}


/* ============================================================
   画像セクション共通（SP・PC 共通）
   ============================================================ */
.img-section {
  display: block;
  line-height: 0;
  position: relative; /* CTA絶対配置の基準 */
}

.img-section picture,
.img-section img {
  display: block;
  width: 100%;
  height: auto;
}


/* ============================================================
   SP版（デフォルト）
   ============================================================ */

/* ------------------------------------------------------------
   右上CTAボタン（FV画像に重ねる）
   ------------------------------------------------------------ */
#fv {
  position: relative;
}

/* ------------------------------------------------------------
   右上ボタン（SP）
   ------------------------------------------------------------ */
.header-fixed {
  position: absolute;
  top: 3vw;    /* 上からの距離（SP） */
  right: 3vw;  /* 右からの距離（SP） */
  z-index: 10;
  display: flex;
  gap: 2vw;
}

.header-fixed .cta-btn {
  padding: 1.8vw 3.5vw;  /* ボタン内余白（SP） */
  font-size: 3vw;         /* 文字サイズ（SP） */
  min-width: unset;
  border-radius: 2vw;
}

/* ------------------------------------------------------------
   インラインCTAブロック共通
   ------------------------------------------------------------ */
.cta-block {
  display: block;
  text-align: center;
  padding: 4px 4px px;
  line-height: 0;
}

.cta-block a {
  display: inline-block;
}

.cta-block img {
  max-width: 700px;
  width: 90%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ------------------------------------------------------------
   いつでも解約可能 CTA（SP）
   画像内の下からの位置: bottom の値で調整
   ------------------------------------------------------------ */
.cta-kaiyaku {
  position: absolute;
  bottom: 7vw;  /* 画像下端からの距離（SP）← 増やすと上に移動 */
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0 16px;
}

/* page5 のみ個別調整（SP） */
#page5 .cta-kaiyaku {
  bottom: 7vw;  /* page5専用の位置（SP）← 増やすと上に移動 */
}

/* ------------------------------------------------------------
   YouTube遷移 CTA（SP）
   ------------------------------------------------------------ */
.cta-youtube {
  position: absolute;
  bottom: 11vw;  /* 画像下端からの距離（SP）← 増やすと上に移動 */
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0 16px;
}

@keyframes yt-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}

.cta-youtube img {
  max-width: 360vw;  /* ボタンサイズ（SP） */
  width: 75%;
  animation: yt-pulse 1.8s ease-in-out infinite;
}

/* ------------------------------------------------------------
   8500本以上 CTA（SP）
   ------------------------------------------------------------ */
.cta-8500 {
  padding: 12px 16px 40px;
  margin-top: -30vw;
}

/* ------------------------------------------------------------
   ボタン区切りブロック（セクション間・白背景）
   ------------------------------------------------------------ */
.cta-divider {
  background: var(--white);
  padding: 15px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ------------------------------------------------------------
   新規登録・ログイン ボタンペア
   ------------------------------------------------------------ */
.cta-btn-pair {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.cta-btn {
  display: inline-block;
  padding: 12px 40px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  min-width: 160px;
  line-height: 1;
}

.cta-btn-register {
  background: var(--orange);
  color: var(--white);
}

.cta-btn-login {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
}

/* ------------------------------------------------------------
   浮遊アニメーション（SP・PC 共通）
   対象: いつでも解約可能CTA・8500本CTA
   ------------------------------------------------------------ */
.cta-kaiyaku img,
.cta-8500 img {
  animation: float 2.4s ease-in-out infinite;
}

@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* ------------------------------------------------------------
   Q&A セクション（SP）
   ------------------------------------------------------------ */
.qa-section {
  background-color: #013781;
  padding: 35px 25px 20px;  /* 上の数値を増やすと見出しが下に下がる（SP） */
}

.qa-header {
  line-height: 0;
  margin-top: 10px;    /* 見出しの上の余白（SP）← 増やすと下に下がる */
  margin-bottom: 25px; /* 見出し下の余白（SP） */
}

.qa-header picture,
.qa-header img {
  display: block;
  width: 100%;  /* 見出し画像の幅（SP） */
  height: auto;
  margin: 0 auto;
}

.qa-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qa-item {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
}

.qa-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.qa-btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}

.qa-q {
  font-size: 15px;
  font-weight: 900;
  color: var(--navy);
  min-width: 28px;
  flex-shrink: 0;
}

.qa-q-text {
  flex: 1;
  font-size: 14px;  /* Q文字サイズ（SP） */
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
}

.qa-chevron {
  font-size: 12px;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform .3s ease;
}

.qa-item.is-open .qa-chevron,
.qa-btn[aria-expanded="true"] .qa-chevron {
  transform: rotate(180deg);
}

.qa-answer-wrap {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease;
}

.qa-answer-inner {
  border-top: 1px solid var(--card-border);
  padding: 14px 16px 16px;
}

.qa-answer-inner p {
  font-size: 13px;  /* A文字サイズ（SP） */
  color: var(--text-dark);
  line-height: 1.9;
}


/* ------------------------------------------------------------
   フッター（SP）
   ------------------------------------------------------------ */
.site-footer {
  background: #fff;
  border-top: 1px solid #e0e0e0;
  padding: 28px 20px 24px;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-link {
  font-size: 12px;
  color: #444;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
  color: #013781;
}

.footer-sp-br {
  display: inline; /* SP: 改行あり */
}

.footer-copy {
  font-size: 11px;
  color: #999;
}

/* ============================================================
   PC版（768px 以上）
   ============================================================ */
@media (min-width: 768px) {



  /* ----------------------------------------------------------
     右上ボタン（PC）
     ---------------------------------------------------------- */
  .header-fixed {
    top: 0.4vw;      /* 上からの距離（PC） */
    right: 1.5vw;  /* 右からの距離（PC） */
    gap: 0.8vw;
  }

  .header-fixed .cta-btn {
    padding: 0.8vw 1.8vw;  /* ボタン内余白（PC） */
    font-size: 1.2vw;       /* 文字サイズ（PC） */
    border-radius: 0.6vw;
  }

  /* ----------------------------------------------------------
     インラインCTAブロック共通（PC）
     ---------------------------------------------------------- */
  .cta-block {
    padding: 12px 40px 10px;
  }

  .cta-block img {
    max-width: 50vw;  /* 共通ボタンサイズ（PC）画面幅に合わせて拡大縮小 */
  }

  /* ----------------------------------------------------------
     いつでも解約可能 CTA（PC）
     ---------------------------------------------------------- */
  .cta-kaiyaku {
    bottom: -3vw;   /* 画像下端からの距離（PC）← 増やすと上に移動 */
    padding: 40px 40px;
  }

  .cta-kaiyaku img {
    max-width: 45vw;  /* ボタンサイズ（PC）← 数値を変えて調整 */
  }

  /* page5 のみ個別調整（PC） */
  #page5 .cta-kaiyaku {
    padding: 30px 30px;
    bottom: -1vw;  /* page5専用の位置（PC）← 増やすと上に移動 */
  }

  /* ----------------------------------------------------------
     YouTube遷移 CTA（PC）
     ---------------------------------------------------------- */
  .cta-youtube {
    bottom: 3vw;   /* 画像下端からの距離（PC）← 増やすと上に移動 */
    padding: 0 40px;
  }

  .cta-youtube img {
    max-width: 25vw;  /* ボタンサイズ（PC） */
  }

  /* ----------------------------------------------------------
     8500本以上 CTA（PC）
     ---------------------------------------------------------- */
  .cta-8500 {
    margin-top: -13vw;
    padding: 40px 70px;
  }

  .cta-8500 img {
    max-width: 50vw;  /* ボタンサイズ（PC）← 数値を変えて調整 */
  }

  /* ----------------------------------------------------------
     Q&A セクション（PC）
     ---------------------------------------------------------- */
  .qa-section {
    padding: 40px 40px 40px;  /* 上の数値を増やすと見出しが下に下がる（PC） */
  }

  .qa-header {
    margin-top: 0;    /* 見出しの上の余白（PC）← 増やすと下に下がる */
    margin-bottom: 20px; /* 見出し下の余白（PC） */
  }

  .qa-header img {
    width: 100%;       /* 見出し画像の幅（PC） */
    max-width: 800px;  /* 見出し画像の最大幅（PC） */
  }

  .qa-q-text {
    font-size: 16px;  /* Q文字サイズ（PC） */
  }

  .qa-answer-inner p {
    font-size: 14px;  /* A文字サイズ（PC） */
  }

  /* ----------------------------------------------------------
     新規登録・ログイン ボタン（PC）
     ---------------------------------------------------------- */
  .cta-divider {
    padding: 10px 20px 20px 20px;  /* 上下の余白（PC）← 増やすと広くなる */
  }

  .cta-btn {
    padding: 1.5vw 1.5vw;  /* 上下・左右（PC）← vwで調整 */
    font-size: 1.5vw;       /* 文字サイズ（PC）← vwで調整 */
    min-width: 18vw;
         /* 最小幅（PC）← vwで調整 */
  }

  /* ----------------------------------------------------------
     フッター（PC）
     ---------------------------------------------------------- */
  .footer-sp-br {
    display: none; /* PC: 改行なし */
  }

  .footer-link {
    white-space: nowrap; /* PC: テキスト折り返しなし */
  }

  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
  }
}
