/* sitigosan.html ページ固有スタイル（HTML内<style>から移設） */

/* --- モダンなカードレイアウト（プラン用） --- */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 40px auto;
  padding: 0 20px;
  max-width: 1100px;
}
.plan-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}
.plan-card:hover {
  transform: translateY(-5px);
}
.plan-card .photo {
  height: 220px;
  background-size: cover;
  background-position: center;
}
.plan-card .text {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.plan-card h2 { font-size: 1.3rem; color: #333; margin-bottom: 10px; border-bottom: 2px solid #f2e4d8; padding-bottom: 8px; }
/* プランの金額などにアクセントのオレンジを使用 */
.plan-card h3 { font-size: 1.1rem; color: #e67e22; margin-bottom: 15px; font-weight: bold; }
.plan-card ul { margin-bottom: 15px; padding-left: 20px; font-size: 0.95rem; line-height: 1.6; }
.plan-card p { font-size: 0.9rem; color: #555; margin-bottom: 15px; flex-grow: 1; }
a.plan-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.plan-card:hover {
  color: inherit;
}
.plan-detail-btn {
  display: none;
  margin-top: auto;
  padding: 10px 18px;
  background-color: #f5ac3c;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

/* --- ご案内セクション（背景交互・ボタンレイアウト） --- */
.feature-block {
  padding: 70px 20px;
}
/* 背景色を白とベージュで交互に設定して区切りを明確に */
.feature-block:nth-child(even) {
  background-color: #faf9f7;
}
.feature-block:nth-child(odd) {
  background-color: #ffffff;
}
.feature-row {
  display: flex;
  align-items: center;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
}
/* 偶数行は画像を右側に */
.feature-block:nth-child(even) .feature-row {
  flex-direction: row-reverse;
}

.feature-image {
  flex: 1;
  width: 100%;
  min-width: 300px;
}
.feature-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.feature-text {
  flex: 1;
}
.feature-text h2 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.4;
  position: relative;
  padding-bottom: 15px;
}
/* 見出しの下線にアクセントのオレンジ */
.feature-text h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: #e67e22;
}
.feature-text p {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 15px;
}

/* ボタン：基本はメインカラーの紺色、ホバーでオレンジ */
.feature-text .btn-link {
  display: inline-block;
  background-color: #C5A059;
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 30px;
  margin-right: 15px;
  margin-top: 10px;
  margin-bottom: 10px;
  box-shadow: 0 4px 10px rgba(27, 54, 92, 0.25);
  transition: all 0.3s ease;
}
.feature-text .btn-link:hover {
  background-color: #e67e22;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(230, 126, 34, 0.35);
}
.feature-text .btn-link span {
  margin-left: 5px;
  border-color: #fff;
}

.feature-text table {
  width: 100%;
  margin-top: 15px;
  margin-bottom: 20px;
  border-collapse: collapse;
}
.feature-text th, .feature-text td {
  padding: 12px 10px;
  border-bottom: 1px solid #ddd;
  text-align: left;
  font-size: 0.95rem;
}
.feature-text th {
  color: #333;
  font-weight: bold;
  width: 60%;
}

/* --- タイムラインレイアウト（流れ用） --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 40px auto;
  width: 90%;
}
.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #f2e4d8;
  top: 20px;
  bottom: 20px;
  left: 20px;
  margin-left: -2px;
  z-index: 0;
}
.timeline-item {
  padding: 0 0 30px 50px;
  position: relative;
  z-index: 1;
}
/* タイムラインの丸枠もメインカラーの紺色 */
.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: white;
  border: 4px solid #C5A059;
  border-radius: 50%;
  left: 6px;
  top: 25px;
  z-index: 2;
}
.timeline-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  display: flex;
  gap: 20px;
  align-items: center;
}
.timeline-content .photo { width: 90px; flex-shrink: 0; }
.timeline-content .photo img { width: 100%; border-radius: 50%; object-fit: cover; aspect-ratio: 1/1; }
.timeline-content .text { flex-grow: 1; }
/* タイムラインの見出しも紺色 */
.timeline-content h3 { color: #C5A059; margin-bottom: 10px; font-size: 1.2rem; }

/* --- アコーディオンレイアウト（Q&A用） --- */
.faq-accordion {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}
.faq-accordion details {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}
.faq-accordion summary {
  padding: 18px 20px;
  font-weight: bold;
  cursor: pointer;
  background: #fdfbf9;
  list-style: none;
  position: relative;
  font-size: 1.05rem;
  color: #333;
}
.faq-accordion summary::-webkit-details-marker { display: none; }
/* アコーディオンのプラスマイナスアイコンも紺色 */
.faq-accordion summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: #C5A059;
}
.faq-accordion details[open] summary::after { content: '-'; }
.faq-accordion p {
  padding: 20px;
  border-top: 1px dashed #e0e0e0;
  margin: 0;
  background: #fff;
  line-height: 1.6;
}

/* ==========================================================================
   Responsive（767px以下=スマホ / 600px以下=タイムライン調整）
   ========================================================================== */
@media (max-width: 767px) {
  .plan-detail-btn {
    display: block;
  }
  .feature-block {
    padding: 50px 20px;
  }
  .feature-row,
  .feature-block:nth-child(even) .feature-row {
    flex-direction: column;
    gap: 25px;
  }
  .feature-image img {
    height: 250px;
  }
  .feature-text h2 {
    font-size: 1.35rem;
  }
  .feature-text .btn-link {
    display: block;
    text-align: center;
    margin-right: 0;
  }
}

@media (max-width: 600px) {
  .timeline::after { left: 15px; }
  .timeline-item { padding: 0 0 30px 40px; }
  .timeline-item::after { left: 1px; }
  .timeline-content { flex-direction: column; text-align: center; padding: 15px; }
}
