/* ベース（PCタブレット） */
  html {
    -webkit-text-size-adjust: 100%; /* iPhoneの自動拡大対策 */
  }

  body {
    font-size: 1.15rem;        /* ベース文字サイズ少しUP */
    line-height: 2.0;          /* 行間も少し広めに */
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
                 Arial, "游ゴシック体", "YuGothic", "メイリオ", sans-serif;
    margin: 0;
    color: #222;
    background-color: #fafafa;
  }

  header {
    position: relative;
    background-image: url('medical_deduction.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 20px;
    border-radius: 0 0 12px 12px;
    text-align: center;
  }

  header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
    border-radius: inherit;
  }

  header .inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
  }

  header h1 {
    font-size: 2.4rem;
    margin-bottom: 14px;
    text-shadow: 0 1px 3px rgba(0,0,0,.8);
  }

  header p {
    font-size: 1.35rem;
    text-shadow: 0 1px 3px rgba(0,0,0,.8);
  }

  .content {
    padding: 30px 28px 40px;
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
  }

  p {
    margin: 0 0 1.2em;
  }

  a {
    color: #007bff;
  }

  h2 {
    margin-top: 40px;
    margin-bottom: 12px;
    color: #007bff;
    font-size: 1.8rem;
  }

  h2.green {
    color: #28a745;
  }

  .button {
    display: inline-block;
    padding: 20px 40px;    /* タップしやすい高さと幅 */
    background-color: #ff5722;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;  /* 角丸を大きめにしてボタン感UP */
    font-size: 1.25rem;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    letter-spacing: 0.03em;
  }

  .button:hover {
    background-color: #e64a19;
  }

  .button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }

  .button-wrap {
    text-align: center;
    margin: 40px 0;
  }

  /* --- スマホ向け調整（iPhoneを含む） --- */
  @media (max-width: 768px) {
    body {
      font-size: 1.35rem;   /* 全体の文字をさらに大きく */
      line-height: 2.2;     /* 行間もゆったり */
    }

    header {
      padding: 90px 16px 70px;
      border-radius: 0 0 16px 16px;
    }

    header h1 {
      font-size: 2.1rem;
      line-height: 1.3;
    }

    header p {
      font-size: 1.35rem;
    }

    .content {
      padding: 28px 18px 40px;
    }

    h2 {
      font-size: 1.7rem;
    }

    p {
      font-size: 1.35rem;
    }

    .button-wrap {
      margin: 45px 0 35px;
    }

    .button {
      display: block;            /* 横幅いっぱい */
      width: 100%;
      max-width: 340px;          /* やや余白を残す */
      margin: 0 auto;
      padding: 22px 10px;        /* タップ領域さらにUP */
      font-size: 1.35rem;
    }
  }

  /* さらに小さい端末（幅480px以下）向け微調整 */
  @media (max-width: 480px) {
    header h1 {
      font-size: 1.9rem;
    }
    header p {
      font-size: 1.3rem;
    }
    .content {
      padding: 24px 14px 34px;
    }
    .button {
      max-width: 320px;
      padding: 22px 8px;
      font-size: 1.3rem;
    }
  }

  /* フッター（文字色：青） */
  footer p,
  footer a {
    color: blue;
  }

/* ===== 共通固定フッター ===== */
:root {
  --sakurayama-footer-height: 56px;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(var(--sakurayama-footer-height) + 14px) !important;
  box-sizing: border-box;
}

.site-footer {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 2147483000 !important;
  width: 100% !important;
  min-height: var(--sakurayama-footer-height) !important;
  margin: 0 !important;
  padding: 6px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  text-align: center !important;
  background: rgba(248, 251, 255, 0.97) !important;
  border-top: 1px solid rgba(21, 101, 192, 0.28) !important;
  box-shadow: 0 -4px 14px rgba(15, 23, 42, 0.10) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-footer .sakurayama-copyright {
  margin: 0 !important;
  color: #1565c0 !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.site-footer .sakurayama-copyright a {
  color: #1565c0 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
}

.site-footer .sakurayama-copyright a:hover,
.site-footer .sakurayama-copyright a:focus-visible {
  color: #0d47a1 !important;
  text-decoration: underline !important;
}

@media (max-width: 480px) {
  :root {
    --sakurayama-footer-height: 52px;
  }
  .site-footer .sakurayama-copyright {
    font-size: 0.94rem !important;
  }
}

@media print {
  body {
    padding-bottom: 0 !important;
  }
  .site-footer {
    display: none !important;
  }
}
