/* signature.css - 阿蘇まるごと体験専用（最小限） */
/* style.css, activity.css と併用。既存にないものだけ定義 */

/* ヒーロー背景画像 */
.hero-signature {
  background-image: url('../images/facilities/sougentore.jpg');
}

/* ===================================
   阿蘇の循環セクション
   =================================== */

/* 説明文と画像の横並び */
.cycle-intro {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* PC表示：左右2カラム */
@media (min-width: 768px) {
  .cycle-intro {
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
  }
  
  .cycle-intro-text {
    flex: 1 1 50%;
    min-width: 0;
  }
  
  .cycle-intro-image {
    flex: 0 0 40%;
    max-width: 450px;
  }
}

.cycle-intro-text p {
  line-height: 1.8;
  color: #333;
  margin-bottom: 1rem;
}

.cycle-intro-text p:last-child {
  margin-bottom: 0;
}

.cycle-intro-text h3 {
  font-size: 1.1rem;
  font-weight: bold;
  color: #2F5D3A;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  padding-left: 0.75rem;
  border-left: 4px solid #4A7C59;
}

.cycle-intro-text h3:first-of-type {
  margin-top: 1.25rem;
}

/* 循環図画像 */
.cycle-intro-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* スマホ表示時の調整 */
@media (max-width: 767px) {
  .cycle-intro-text h3 {
    font-size: 1rem;
    margin-top: 1.25rem;
  }
}

/* 循環の詳細説明セクション */
.cycle-explanation {
  margin-top: 4rem;
}

.cycle-explanation h3 {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 2rem;
  text-align: center;
}

/* ===================================
   旧スタイル（後方互換性のため残す）
   =================================== */

/* 循環図 */
.cycle-diagram {
  max-width: 700px;
  margin: 1rem auto 0;
}
.cycle-diagram svg {
  width: 100%;
  height: auto;
}

/* ===================================
   4つの体験活動
   =================================== */

/* 4色タグ（火山・草原・水・暮らし） */
.sig-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: bold;
  margin-bottom: 8px;
}
.tag-volcano { background: #FAECE7; color: #712B13; }
.tag-grassland { background: #EAF3DE; color: #27500A; }
.tag-water { background: #E6F1FB; color: #0C447C; }
.tag-living { background: #FAEEDA; color: #633806; }

/* 4つの活動カードの余白調整 */
.section .activity-grid {
  gap: 24px;
}
.section .activity-card {
  padding: 16px;
}
.section .activity-card img {
  margin: -16px -16px 16px -16px;
  width: calc(100% + 32px);
  max-width: none;
}

/* 循環アイコン（阿蘇の循環カード用） */
.cycle-icon {
  width: 100%;
  max-width: 200px;
  margin: 0 auto 1rem;
  display: block;
  aspect-ratio: 1 / 1;
}

.cycle-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* スマホ表示時の調整 */
@media (max-width: 639px) {
  .cycle-icon {
    max-width: 150px;
  }
}

/* 循環カード内のh5見出しを非表示 */
.cycle-explanation .activity-card .card-title {
  display: none;
}

/* ===================================
   モデルプログラム
   =================================== */

/* プログラム一覧タグ（PDFリンク付き） */
.sig-programs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.sig-programs a {
  display: inline-block;
  padding: 3px 10px;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #666;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.sig-programs a:hover {
  background: var(--main);
  color: #fff;
}
.sig-programs a::after {
  content: none !important; /* 外部リンクアイコンを非表示 */
}

/* モデルプログラムカード */
.sig-program-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.sig-program-card h4 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.sig-program-card > p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: #666;
}
.sig-badge {
  display: inline-block;
  padding: 2px 10px;
  background: #EAF3DE;
  color: #27500A;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: normal;
  margin-left: 8px;
}

/* スケジュール表 */
.sig-schedule {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.sig-schedule th,
.sig-schedule td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}
.sig-schedule th {
  background: #f9f9f9;
  font-weight: normal;
  color: #666;
  width: 120px;
}
.sig-schedule tr:last-child td,
.sig-schedule tr:last-child th {
  border-bottom: none;
}

/* スケジュール内の活動ラベル */
.sig-label {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-right: 4px;
}
.label-volcano { background: #FAECE7; color: #712B13; }
.label-grassland { background: #EAF3DE; color: #27500A; }
.label-water { background: #E6F1FB; color: #0C447C; }
.label-living { background: #FAEEDA; color: #633806; }

/* ===================================
   CTAセクション
   =================================== */

/* CTAセクション */
.sig-cta {
  background: var(--main);
  color: #fff;
}
.sig-cta .section-title {
  color: #fff;
}
.sig-cta p {
  color: #fff;
}
.sig-btn-cta {
  display: inline-block;
  padding: 14px 32px;
  background: #fff;
  color: var(--main);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: bold;
  margin-top: 1rem;
}
.sig-btn-cta:hover {
  background: #f0f0f0;
}
/* ====================================
   プログラムの流れセクション
   ==================================== */

.program-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.flow-step {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.flow-step:hover {
  border-color: #4a90e2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.flow-step-header {
  margin-bottom: 1rem;
}

.flow-number {
  display: inline-block;
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: #fff;
  font-weight: bold;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
}

.flow-step h4 {
  font-size: 1.1rem;
  color: #333;
  margin: 0.5rem 0 0 0;
  font-weight: 600;
}

.flow-step p {
  color: #666;
  line-height: 1.7;
  margin: 0.5rem 0 0 0;
}

.flow-note {
  margin-top: 2rem;
  padding: 1rem;
  background: #f8f9fa;
  border-left: 4px solid #4a90e2;
  color: #555;
  font-size: 0.95rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .program-flow {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ====================================
   事前学習・事後学習セクション
   ==================================== */

.learning-materials {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.learning-materials:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.learning-materials h3 {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #4a90e2;
}

.learning-materials h4 {
  font-size: 1.1rem;
  color: #444;
  margin: 1.5rem 0 0.8rem 0;
  font-weight: 600;
}

.learning-materials > p {
  color: #666;
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

/* 資料リスト */
.materials-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.materials-list li {
  padding: 0.8rem 0 0.8rem 2rem;
  position: relative;
  color: #555;
  border-bottom: 1px solid #f0f0f0;
}

.materials-list li:last-child {
  border-bottom: none;
}

.materials-list li::before {
  content: "📄";
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

.materials-note {
  margin-top: 1rem;
  color: #666;
  font-size: 0.9rem;
}

.preparation-label {
  display: inline-block;
  background: #ffeaa7;
  color: #d63031;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* プログラム内容リスト */
.program-content-list,
.program-summary-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.program-content-list li,
.program-summary-list li {
  padding: 0.6rem 0 0.6rem 1.8rem;
  position: relative;
  color: #555;
  line-height: 1.6;
}

.program-content-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4a90e2;
  font-weight: bold;
  font-size: 1.1rem;
}

.program-summary-list li {
  padding-left: 0;
}

.program-summary-list li strong {
  color: #333;
  display: inline-block;
  min-width: 100px;
}

.program-note {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f0f7ff;
  border-left: 4px solid #4a90e2;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* STEPカード アンカーリンク */
.flow-step-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.flow-step:has(.flow-step-link) {
  cursor: pointer;
}
.flow-step:has(.flow-step-link):hover {
  border-color: var(--main);
}
.flow-step-link::after {
  content: "▼ 詳細を見る";
  display: block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--main);
  font-weight: bold;
  text-align: right;
}

/* アンカージャンプ先の位置調整（画面上から約25%の位置に表示） */
#section-yoji,
#section-guidance,
#section-activities,
#section-jigo {
  scroll-margin-top: 30vh;
}

/* 申請ボタン */
.sig-btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 1.5rem;
  padding: 16px 32px;
  background: #f57c00;
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: bold;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(245, 124, 0, 0.35);
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.sig-btn-apply::before {
  content: "📝";
  font-size: 1.2rem;
}
.sig-btn-apply::after {
  content: " ›";
  font-size: 1.4rem;
  line-height: 1;
  margin-left: 4px;
}
.sig-btn-apply:hover {
  background: #e65100;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(245, 124, 0, 0.4);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .learning-materials h3 {
    font-size: 1.2rem;
  }

  .learning-materials h4 {
    font-size: 1rem;
  }

  .program-summary-list li strong {
    display: block;
    margin-bottom: 0.3rem;
  }
}
