@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@500;700;800&family=Noto+Sans+JP:wght@400;500;700&family=Outfit:wght@400;600;800&display=swap');

:root {
  --color-pink: #ff6699;
  --color-pink-hover: #e0477d;
  --color-navy: #2c4a68; /* デザイン案のネイビー */
  --color-navy-hover: #1f354b;
  --color-blue: #4a9ed6;
  --color-blue-bg: #a9d6ec;
  --color-light-blue: #ffffcc;
  --color-gold: #f0b93c;
  --color-green: #79b442;
  --color-hero-pink: #ffcccc;
  --color-pale-yellow: #ffffcc;
  
  --font-size-base: 16px;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(44, 74, 104, 0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans JP', 'Outfit', sans-serif;
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: #3a3a3a; /* デザイン案のテキスト色 */
  background-color: var(--color-light-blue);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 共通ヘッダー */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-pale-yellow);
  border-bottom: 1px solid #f0e6bd;
  box-shadow: var(--shadow-sm);
}

.main-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 40px;
  max-width: 960px;
  margin: 0 auto;
}

.main-header .header-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 800px) {
  .main-header .header-inner {
    padding: 12px 16px;
  }
  .main-header .header-logo {
    height: 28px;
  }
}

/* メイン */
main {
  flex: 1;
  padding: 40px 0;
}

/* カード風レイアウト */
.card {
  background-color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  margin-bottom: 30px;
  border: 1px solid rgba(21, 45, 181, 0.05);
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background-color: var(--color-pink);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--color-pink-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(245, 77, 157, 0.3);
}

.btn-secondary {
  background-color: var(--color-navy);
  color: #fff;
}

.btn-secondary:hover {
  background-color: var(--color-navy-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(21, 45, 181, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-navy);
  color: var(--color-navy);
}

.btn-outline:hover {
  background-color: var(--color-navy);
  color: #fff;
}

/* 共通フッター */
.main-footer {
  background: var(--color-navy);
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 22px;
  font-family: 'Noto Sans JP', sans-serif;
  margin-top: auto;
}

.main-footer .footer-container {
  max-width: 960px;
  margin: 0 auto;
}

.main-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}

.main-footer .footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.main-footer .footer-links a:hover {
  text-decoration: underline;
  color: var(--color-pink);
}

.main-footer .copyright {
  color: #fff;
  margin: 0;
  font-size: 13px;
}

@media (max-width: 800px) {
  .main-footer {
    font-size: 11px;
    padding: 18px;
  }
  .main-footer .copyright {
    font-size: 11px;
  }
}

/* アラート・バッジなど共通UI */
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 4px;
  color: #fff;
}

.badge-success { background-color: #2ecc71; }
.badge-danger { background-color: #e74c3c; }
.badge-info { background-color: var(--color-navy); }

/* モーダル共通 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-start; /* コンテンツが長い場合に上部が切れるのを防止 */
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  overflow-y: auto; /* モーダル自体のスクロールを許可 */
  padding: 20px 0; /* スクロール時の上下マージン */
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #fff;
  padding: 35px;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  text-align: center;
  transform: scale(0.9);
  transition: var(--transition);
  margin: auto; /* Flexコンテナ内で上下左右中央配置（あふれた場合は上部が切れずにスクロール可能） */
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

/* スマホ対応 */
@media (max-width: 600px) {
  main {
    padding: 20px 0;
  }
  .card {
    padding: 24px;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
  .header-inner {
    height: auto;
    padding: 12px 0;
    flex-direction: column;
    gap: 12px;
  }
  .modal-overlay {
    align-items: flex-start;
    padding: 10px 0;
  }
  .modal-content {
    margin: 20px auto;
  }
}

/* 丸ゴシックフォント適用クラス */
.font-rounded {
  font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
}

/* トップページ専用デザイン */
.index-page-wrapper {
  overflow-x: hidden;
}

/* ヒーローセクション */
.hero-section {
  position: relative;
  background: var(--color-hero-pink);
  padding: 56px 0 0;
  overflow: hidden;
}

.hero-inner {
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 40px;
}

.hero-tagline {
  font-size: 17px;
  letter-spacing: 0.08em;
  color: #5a5a5a;
  margin: 0 0 18px;
}

.hero-title-img {
  width: 860px;
  max-width: 100%;
  height: auto;
  margin: 0 0 8px;
}

.hero-illust-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.hero-illust-img {
  width: 840px;
  max-width: 100%;
  height: auto;
  display: block;
}

.hero-badge-img {
  position: absolute;
  top: -36px;
  left: 48px;
  width: 124px;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.12));
}

.hero-overlay-card {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 112px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 20px;
  padding: 26px 34px;
  width: 520px;
  max-width: 90%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  text-align: left;
}

.hero-desc-title {
  font-weight: 700;
  font-size: 17px;
  color: var(--color-navy);
  margin: 0 0 10px;
}

.hero-desc-body {
  font-size: 14.5px;
  line-height: 1.9;
  color: #555;
  margin: 0 0 8px;
}

@media (max-width: 800px) {
  .hero-section {
    padding: 36px 0 0;
  }
  .hero-inner {
    padding: 0 20px;
  }
  .hero-tagline {
    font-size: 14px;
  }
  .hero-illust-wrap {
    margin-top: 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-badge-img {
    top: -52px;
    left: 10px;
    width: 76px;
  }
  .hero-overlay-card {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: 90%;
    margin: 20px auto 40px;
    padding: 20px 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  }
  .hero-desc-title {
    font-size: 15px;
  }
  .hero-desc-body {
    font-size: 13.5px;
  }
}

/* 受検概要セクション */
.overview-section-new {
  position: relative;
  background: var(--color-pale-yellow);
  padding: 64px 40px 88px;
  overflow: hidden;
}

.overview-inner-new {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

/* 装飾画像（PCのみ） */
.side-decor-left {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 160px;
  height: auto;
}

.side-decor-right {
  position: absolute;
  top: 40px;
  right: 0;
  width: 160px;
  height: auto;
}

@media (max-width: 800px) {
  .overview-section-new {
    padding: 40px 18px 56px;
  }
  .side-decor-left,
  .side-decor-right {
    display: none;
  }
}

.section-title-bar {
  font-weight: 700;
  color: var(--color-navy);
  background: var(--color-blue-bg);
  text-align: center;
  border-radius: 999px;
  padding: 16px;
  font-size: 26px;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}

@media (max-width: 800px) {
  .section-title-bar {
    padding: 12px;
    font-size: 20px;
    margin-bottom: 24px;
  }
}

/* 受検概要テーブル */
.overview-table-new {
  border: 1px solid var(--color-navy);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 36px;
  background: #fff;
  width: 100%;
  border-collapse: collapse;
}

.overview-table-new tr {
  display: flex;
  flex-direction: row;
  border-top: 1px solid #d9dfe4;
}

.overview-table-new tr:first-child {
  border-top: none;
}

.overview-table-new th {
  font-weight: 700;
  color: #fff;
  background: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 0 0 160px;
  padding: 14px 12px;
  font-size: 15px;
  border: none;
}

.overview-table-new td {
  flex: 1;
  padding: 14px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: #fff;
  border: none;
  text-align: left;
}

.overview-table-new .main-text {
  font-weight: 700;
  font-size: 16px;
  color: #2a2a2a;
}

.overview-table-new .sub-text {
  font-size: 13px;
  color: #777;
  line-height: 1.7;
}

@media (max-width: 800px) {
  .overview-table-new {
    margin-bottom: 28px;
  }
  .overview-table-new tr {
    flex-direction: column;
  }
  .overview-table-new th {
    flex: none;
    padding: 8px;
    font-size: 13px;
  }
  .overview-table-new td {
    padding: 12px 14px;
  }
  .overview-table-new .main-text {
    font-size: 14px;
  }
  .overview-table-new .sub-text {
    font-size: 12px;
  }
}

.agreement-container-new {
  background: #fff;
  border: 2px solid var(--color-navy);
  border-radius: 15px;
  padding: 18px;
  max-width: 520px;
  margin: 0 auto 20px;
  box-shadow: 0 4px 10px rgba(44, 74, 104, 0.1);
  text-align: center;
  transition: var(--transition);
}

.agreement-container-new p {
  font-size: 14.5px;
  color: #555;
  margin-bottom: 8px;
  line-height: 1.5;
}

.agreement-container-new a {
  color: var(--color-pink);
  font-weight: bold;
  text-decoration: underline;
}

.agreement-label-new {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  color: var(--color-navy);
}

.agreement-label-new input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* 同意エラー時のアニメーション */
.shake {
  animation: shakeEffect 0.5s ease;
}
@keyframes shakeEffect {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}

/* CTAボタン */
.cta-button-new {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-weight: 800;
  font-size: 28px;
  color: var(--color-navy);
  background: #fff;
  border: 2px solid var(--color-navy);
  border-radius: 999px;
  padding: 20px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(44,74,104,0.15);
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  letter-spacing: 0.12em;
  transition: var(--transition);
  cursor: pointer;
}

.cta-button-new:hover {
  background: var(--color-blue-bg);
  transform: translateY(-2px);
  color: var(--color-navy);
}

.cta-arrow-new {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

@media (max-width: 800px) {
  .cta-button-new {
    font-size: 22px;
    padding: 16px;
  }
  .cta-arrow-new {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
}

.pdf-link-new {
  display: block;
  text-align: center;
  font-size: 15px;
  color: var(--color-pink);
  margin: 18px 0 48px;
  text-decoration: underline;
  font-weight: bold;
}

@media (max-width: 800px) {
  .pdf-link-new {
    font-size: 14px;
    margin: 16px 0 36px;
  }
}

/* 特徴セクション */
.features-wrap-new {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.features-row-new {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
}

.feature-bubble-new {
  flex: 0 0 auto;
  width: 92px;
  height: auto;
}

.feature-body-new {
  flex: 1;
  padding-top: 8px;
}

.feature-title-new {
  font-weight: 700;
  font-size: 18px;
  color: #2a2a2a;
  margin: 0 0 6px;
}

.feature-desc-new {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
  margin: 0;
}

@media (max-width: 800px) {
  .features-wrap-new {
    gap: 28px;
  }
  .features-row-new {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .feature-bubble-new {
    width: 80px;
  }
  .feature-body-new {
    padding-top: 0;
    width: 100%;
  }
  .feature-title-new {
    font-size: 16px;
    margin-bottom: 8px;
  }
  .feature-desc-new {
    font-size: 13.5px;
    text-align: left;
  }
}

/* 別窓リンク用アイコン */
.icon-ext {
  display: inline-block;
  vertical-align: -0.15em;
  margin-left: 4px;
  width: 0.85em;
  height: 0.85em;
  fill: currentColor;
  flex-shrink: 0;
}
