/* 安心パックページ専用スタイル */

/* ===== トップバー ===== */
.top-bar {
  background: #dc3545;
  color: white;
  padding: 10px 0;
  font-size: 14px;
  text-align: center;
}

.top-bar__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== ヒーロー（安心パック専用背景） ===== */
.hero {
  position: relative;
  height: 500px;
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.8), rgba(196, 30, 58, 0.8)), 
              url('http://www.hyogoken.ac.jp/akashi/images/ttl_ansin.png') center center / cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero__content h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.hero__content p {
  font-size: 18px;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* タブナビ（4列レイアウト） */
.tab-nav__list {
  grid-template-columns: repeat(4, 1fr) !important;
}

/* ===== コース概要ボックス ===== */
.intro-box {
  margin-top: 40px;
}

.intro-box__content--full {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.intro-box__title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  line-height: 1.5;
}

.intro-box__text {
  font-size: 16px;
  line-height: 2;
  color: #444;
  margin-bottom: 20px;
}

.update-notice {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  margin-top: 20px;
}

.update-notice p {
  font-size: 16px;
  font-weight: 700;
  color: #666;
  margin: 0;
}

.important-notice {
  background: #fff3cd;
  border: 2px solid #ffc107;
  padding: 15px 20px;
  border-radius: 10px;
  margin-top: 20px;
}

.important-notice p {
  font-size: 16px;
  font-weight: 700;
  color: #856404;
  margin: 0;
  text-align: center;
}

/* ===== メリットグリッド ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.benefit-card {
  background: white;
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  position: relative;
  border: 2px solid transparent;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 40px rgba(220, 53, 69, 0.15);
  border-color: #dc3545;
}

.benefit-card__number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 48px;
  font-weight: 800;
  color: #f8f9fa;
}

.benefit-card__icon {
  font-size: 64px;
  margin-bottom: 25px;
}

.benefit-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.benefit-card__text {
  font-size: 15px;
  line-height: 1.9;
  color: #666;
}

/* ===== おすすめグリッド ===== */
.section--gray {
  background: #f8f9fa;
  padding: 60px 0;
  margin: 0;
  max-width: 100%;
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.recommend-item {
  background: white;
  border-radius: 15px;
  padding: 30px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
}

.recommend-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(220, 53, 69, 0.12);
}

.recommend-item__icon {
  font-size: 48px;
  flex-shrink: 0;
}

.recommend-item__title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.recommend-item__text {
  font-size: 15px;
  line-height: 1.8;
  color: #666;
}

/* ===== 料金表 ===== */
.price-table-wrapper {
  margin-top: 40px;
  overflow-x: auto;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
}

.price-table thead {
  background: linear-gradient(135deg, #dc3545 0%, #c41e3a 100%);
  color: white;
}

.price-table th {
  padding: 20px;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.price-table td {
  padding: 20px;
  border: 1px solid #ddd;
  text-align: center;
  font-size: 17px;
  color: #444;
}

.price-table tbody tr:last-child td {
  border-bottom: none;
}

.price-table tbody tr:hover {
  background: #f8f9fa;
}

.highlight-row {
  background: #fff3cd !important;
}

.highlight-row:hover {
  background: #ffecb3 !important;
}

.price-free {
  font-size: 36px !important;
  font-weight: 900 !important;
  color: #dc3545 !important;
  line-height: 1.2;
}

.price-free strong {
  font-size: 36px !important;
  font-weight: 900 !important;
  color: #dc3545 !important;
}

/* ===== 注意事項ボックス ===== */
.notice-box {
  background: #fff3cd;
  border-left: 5px solid #ffc107;
  border-radius: 10px;
  padding: 30px;
  margin-top: 40px;
}

.notice-box__title {
  font-size: 20px;
  font-weight: 700;
  color: #856404;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.notice-box__list {
  list-style: none;
  padding-left: 0;
}

.notice-box__list li {
  font-size: 15px;
  line-height: 2;
  color: #856404;
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
}

.notice-box__list li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: #ffc107;
  font-size: 16px;
  font-weight: 700;
}

/* ===== コースリンク ===== */
.course-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 30px;
}

/* 1つだけの場合は中央配置 */
.course-links:has(a:only-child) {
  grid-template-columns: 1fr;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.course-link-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  border: 2px solid #f0f0f0;
}

.course-link-card:hover {
  border-color: #dc3545;
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(220, 53, 69, 0.15);
}

.course-link-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 5px;
}

.course-link-card__desc {
  font-size: 14px;
  color: #666;
}

.course-link-card__arrow {
  font-size: 32px;
  color: #dc3545;
  font-weight: 700;
}

/* ===== FAQ ===== */
.faq-list {
  margin-top: 40px;
}

.faq-item {
  background: white;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
}

.faq-item:hover {
  box-shadow: 0 5px 25px rgba(220, 53, 69, 0.1);
}

.faq-item__question {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.faq-item__question .faq-item__icon {
  background: #dc3545;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.faq-item__question h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  padding-top: 5px;
}

.faq-item__answer {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding-left: 0;
}

.faq-item__answer .faq-item__icon {
  background: #f8f9fa;
  color: #dc3545;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.faq-item__answer p {
  font-size: 15px;
  line-height: 1.9;
  color: #666;
  margin: 0;
  padding-top: 5px;
}

.faq-more {
  text-align: center;
  margin-top: 40px;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 15px;
}

.faq-more p {
  font-size: 16px;
  color: #666;
  margin: 0;
}

.faq-more a {
  color: #dc3545;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid #dc3545;
}

.faq-more a:hover {
  color: #c41e3a;
  border-bottom-color: #c41e3a;
}

/* ===== CTAセクション ===== */
.cta-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 60px 0;
  margin: 0;
  max-width: 100%;
}

.cta-box {
  background: white;
  border-radius: 20px;
  padding: 60px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
}

.cta-box__title {
  font-size: 32px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.cta-box__text {
  font-size: 16px;
  line-height: 2;
  color: #666;
  margin-bottom: 40px;
}

.cta-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.cta-btn {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px;
  border-radius: 15px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cta-btn--phone {
  background: linear-gradient(135deg, #dc3545 0%, #c41e3a 100%);
  color: white;
}

.cta-btn--phone:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(220, 53, 69, 0.4);
}

.cta-btn--web {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  color: white;
}

.cta-btn--web:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(13, 110, 253, 0.4);
}

.cta-btn__icon {
  font-size: 48px;
  flex-shrink: 0;
}

.cta-btn__content {
  text-align: left;
  flex: 1;
}

.cta-btn__label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  opacity: 0.9;
}

.cta-btn__number {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* ===== 固定サイドボタン ===== */
.fixed-buttons {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fixed-btn {
  background: #5cb85c;
  color: #fff;
  padding: 15px 10px;
  width: 100px;
  text-align: center;
  text-decoration: none;
  border-radius: 8px 0 0 8px;
  box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.fixed-btn:hover {
  width: 110px;
  box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.3);
}

.fixed-btn--reservation {
  background: linear-gradient(135deg, #5cb85c 0%, #4cae4c 100%);
}

.fixed-btn--document {
  background: linear-gradient(135deg, #5bc0de 0%, #46b8da 100%);
}

.fixed-btn__icon {
  font-size: 28px;
  display: block;
}

.fixed-btn__text {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

/* ===== トップへ戻る ===== */
#totop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #dc3545;
  color: #fff;
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 100;
  text-decoration: none;
}

#totop.show {
  opacity: 1;
  visibility: visible;
}

#totop:hover {
  background: #c82333;
  transform: translateY(-3px);
}

/* ===== タブレット対応 (768px - 1024px) ===== */
@media (max-width: 1024px) {
  .tab-nav__list {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .recommend-grid {
    grid-template-columns: 1fr;
  }

  .course-links {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    grid-template-columns: 1fr;
  }
}

/* ===== スマホ対応 ===== */
@media (max-width: 767px) {
  .hero {
    height: 300px;
  }

  .hero__content h1 {
    font-size: 32px;
  }

  .hero__content p {
    font-size: 15px;
  }

  .tab-nav__list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .tab-nav__list li {
    display: block !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .tab-nav__item {
    font-size: 13px !important;
    padding: 12px 8px !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .intro-box__title {
    font-size: 24px;
  }

  .intro-box__text {
    font-size: 15px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .benefit-card {
    padding: 35px 25px;
  }

  .benefit-card__number {
    font-size: 36px;
    top: 15px;
    right: 15px;
  }

  .benefit-card__icon {
    font-size: 48px;
  }

  .benefit-card__title {
    font-size: 18px;
  }

  .recommend-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .recommend-item {
    padding: 25px;
  }

  .recommend-item__icon {
    font-size: 40px;
  }

  .price-table {
    font-size: 15px;
  }

  .price-table th,
  .price-table td {
    padding: 15px 10px;
    font-size: 15px;
  }

  .price-free {
    font-size: 15px !important;
    line-height: 1.5 !important;
    padding: 15px 10px !important;
  }
  
  .price-free strong {
    font-size: 15px !important;
  }

  .course-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .course-link-card {
    padding: 25px;
  }

  .faq-item {
    padding: 25px 20px;
  }

  .faq-item__question h3 {
    font-size: 16px;
  }

  .faq-item__answer p {
    font-size: 14px;
  }

  .cta-box {
    padding: 40px 25px;
  }

  .cta-box__title {
    font-size: 24px;
  }

  .cta-box__text {
    font-size: 15px;
  }

  .cta-buttons {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cta-btn {
    padding: 25px 20px;
  }

  .cta-btn__icon {
    font-size: 40px;
  }

  .cta-btn__number {
    font-size: 24px;
  }

  .fixed-buttons {
    position: fixed;
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    transform: none;
    flex-direction: row;
    gap: 0;
    z-index: 1000;
  }
  
  .fixed-btn {
    flex: 1;
    width: auto;
    padding: 12px 10px;
    border-radius: 0;
    gap: 3px;
  }
  
  .fixed-btn:hover {
    width: auto;
  }
  
  .fixed-btn__icon {
    font-size: 24px;
  }
  
  .fixed-btn__text {
    font-size: 11px;
  }
  
  #totop {
    width: 45px;
    height: 45px;
    line-height: 45px;
    bottom: 70px;
    right: 20px;
  }
}