/* 免許取得の流れページ専用スタイル */

/* ===== トップバー ===== */
.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.85), rgba(196, 30, 58, 0.85)), 
              url('../images/ttl_menkyo1.jpg') 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);
}

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

/* ===== ページ内リンクヘッダー ===== */
.page-links-header {
  text-align: center;
  margin-bottom: 20px;
}

.page-links-header p {
  font-size: 16px;
  font-weight: 700;
  color: #dc3545;
  margin: 0;
}

/* ===== ページ内リンク ===== */
.page-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

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

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

.page-link-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.6;
  text-align: center;
}

/* ===== コンテンツボックス ===== */
.content-box {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 40px;
}

.content-box__title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.content-box__text {
  font-size: 16px;
  line-height: 2;
  color: #444;
}

/* ===== サブタイトル ===== */
.sub-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 40px 0 25px;
  padding-left: 15px;
  border-left: 4px solid #dc3545;
}

/* ===== 免許カード ===== */
.license-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.license-card {
  background: white;
  border-radius: 15px;
  padding: 35px;
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid #f0f0f0;
  transition: all 0.3s;
}

.license-card--active {
  border-color: #dc3545;
}

.license-card--disabled {
  opacity: 0.7;
}

.license-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.license-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.license-card__header h4 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
}

.license-card__badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.license-card__badge--available {
  background: #d4edda;
  color: #155724;
}

.license-card__badge--unavailable {
  background: #fff3cd;
  color: #856404;
}

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

/* ===== 入学資格テーブル ===== */
.requirements-table {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.requirement-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid #eee;
}

.requirement-item:last-child {
  border-bottom: none;
}

.requirement-item__label {
  background: #f8f9fa;
  padding: 25px 20px;
  font-weight: 700;
  font-size: 16px;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  border-right: 1px solid #eee;
}

.requirement-item__content {
  padding: 25px 30px;
}

.requirement-item__content p {
  margin-bottom: 10px;
  font-size: 15px;
  color: #444;
  line-height: 1.8;
}

.requirement-item__content p:last-child {
  margin-bottom: 0;
}

.requirement-item__note {
  font-size: 14px !important;
  color: #666 !important;
  margin-top: 10px !important;
}

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

.notice-box--info {
  background: #d1ecf1;
  border-left-color: #0c5460;
}

.notice-box--warning {
  background: #fff3cd;
  border-left-color: #ffc107;
}

.notice-box--success {
  background: #d4edda;
  border-left-color: #28a745;
}

.notice-box p {
  font-size: 15px;
  line-height: 1.9;
  color: #856404;
  margin: 0;
}

.notice-box--info p {
  color: #0c5460;
}

.notice-box--success p {
  color: #155724;
}

/* ===== インフォボックス ===== */
.info-box {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  padding: 40px;
  margin-top: 40px;
}

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

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

/* ===== ハイライトテキスト ===== */
.highlight-text {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #dc3545;
  margin-bottom: 40px;
  padding: 20px;
  background: #fff3cd;
  border-radius: 10px;
}

/* ===== フローカード ===== */
.flow-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.flow-card {
  background: white;
  border-radius: 15px;
  padding: 40px 35px;
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  border: 2px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  min-height: 600px;
}

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

.flow-card__image {
  margin-bottom: 25px;
  text-align: center;
}

.flow-card__image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.flow-card__title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  text-align: center;
}

.flow-card__text {
  font-size: 15px;
  line-height: 2;
  color: #444;
  margin-bottom: 20px;
  flex-grow: 1;
}

.flow-card__note {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
  margin-top: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.flow-card .btn-container {
  margin-top: auto;
}

/* ===== 手続き情報 ===== */
.procedure-info {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 40px;
}

/* ===== 入校フロー ===== */
.admission-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.flow-step-item {
  background: white;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid #f0f0f0;
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  transition: all 0.3s;
}

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

.flow-step-item--highlight {
  border-color: #28a745;
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.flow-step-item__number {
  background: linear-gradient(135deg, #dc3545 0%, #c41e3a 100%);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 15px;
}

.flow-step-item--highlight .flow-step-item__number {
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

.flow-step-item__content h4 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.flow-step-item__content p {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
  margin: 0;
}

.flow-arrow {
  font-size: 24px;
  color: #dc3545;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== 書類グリッド ===== */
.documents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.document-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  border: 2px solid #f0f0f0;
}

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

.document-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
  text-align: center;
}

.document-card__text {
  font-size: 15px;
  line-height: 1.9;
  color: #444;
  text-align: center;
}

.document-card__example {
  display: block;
  font-size: 14px;
  color: #666;
  margin-top: 8px;
}

.document-card__note {
  display: block;
  font-size: 13px;
  color: #999;
  margin-top: 8px;
}

/* ===== 証明写真不要の強調表示(緑背景) ===== */
.photo-notice {
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
  color: white;
  border-radius: 15px;
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 30px;
  box-shadow: 0 5px 30px rgba(40, 167, 69, 0.3);
  margin-top: 40px;
}

.photo-notice__content {
  flex: 1;
}

.photo-notice__title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.photo-notice__text {
  font-size: 16px;
  line-height: 2;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ===== 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: 1000px;
  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(3, 1fr);
  gap: 25px;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: 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--reservation {
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
  color: white;
}

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

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

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

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

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

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

/* ===== セカンダリーボタン ===== */
.btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  background: white;
  color: #dc3545;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s;
  border: 2px solid #dc3545;
}

.btn-secondary:hover {
  background: #dc3545;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(220, 53, 69, 0.3);
}

/* ===== 固定サイドボタン ===== */
.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;
  }

  .page-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .license-types {
    grid-template-columns: 1fr;
  }

  .requirement-item {
    grid-template-columns: 1fr;
  }

  .requirement-item__label {
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .flow-methods {
    grid-template-columns: 1fr;
  }

  .admission-flow {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .documents-grid {
    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: flex !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;
    align-items: center !important;
    justify-content: center !important;
  }

  .page-links-header p {
    font-size: 14px;
  }

  .page-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .page-link-card {
    padding: 12px 8px;
  }

  .page-link-card__title {
    font-size: 13px;
  }

  .content-box {
    padding: 25px 20px;
  }

  .content-box__title {
    font-size: 20px;
  }

  .sub-title {
    font-size: 20px;
    margin: 30px 0 20px;
  }

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

  .license-card {
    padding: 25px 20px;
  }

  .license-card__header h4 {
    font-size: 18px;
  }

  .requirements-table {
    border-radius: 10px;
  }

  .requirement-item {
    grid-template-columns: 1fr;
  }

  .requirement-item__label {
    border-right: none;
    border-bottom: 1px solid #eee;
    padding: 20px 15px;
  }

  .requirement-item__content {
    padding: 20px 15px;
  }

  .info-box {
    padding: 30px 20px;
  }

  .info-box__title {
    font-size: 18px;
  }

  .highlight-text {
    font-size: 16px;
    padding: 15px;
  }

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

  .flow-card {
    padding: 30px 25px;
  }

  .flow-card__title {
    font-size: 20px;
  }

  .procedure-info {
    padding: 25px 20px;
  }

  .admission-flow {
    flex-direction: column;
    gap: 15px;
  }

  .flow-step-item {
    max-width: 100%;
    padding: 25px 20px;
  }

  .flow-arrow {
    transform: rotate(90deg);
    font-size: 20px;
  }

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

  .document-card {
    padding: 25px 20px;
  }

  .document-card__title {
    font-size: 17px;
  }

  .photo-notice {
    flex-direction: column;
    text-align: center;
    padding: 30px 25px;
  }

  .photo-notice__title {
    font-size: 24px;
  }

  .photo-notice__text {
    font-size: 15px;
  }

  .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__label {
    font-size: 15px;
  }

  .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__text {
    font-size: 11px;
  }
  
  #totop {
    width: 45px;
    height: 45px;
    line-height: 45px;
    bottom: 70px;
    right: 20px;
  }
}