/* ============================================================
   subpage.css  ―  サブページ共通スタイル
   対象: fudosan-plan.html / aihp-plan.html など各プランページ
   ※ style.css を読み込んだあとに読み込むこと
   ============================================================ */

/* ----------------------------------------------------------
   共通ヒーローエリア（.subpage-hero）
   fudosan / aihp 両ページで共有するベース構造
   ---------------------------------------------------------- */
.subpage-hero {
  background: linear-gradient(160deg, #ddeeff 0%, #eaf4fb 55%, #f0f8ff 100%);
  color: #2c4a6e;
  text-align: center;
  /* 上：hero-labelの上まで / 下：hero-subの下まで ともに56pxで均等 */
  padding: 56px 20px 56px;
  border-bottom: 1px solid #c8dff0;
}
.subpage-hero .hero-label {
  display: inline-block;
  background: rgba(46, 109, 164, 0.1);
  border: 1px solid rgba(46, 109, 164, 0.35);
  border-radius: 20px;
  padding: 5px 18px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  color: #2e6da4;
}
.subpage-hero h1 {
  font-size: 2rem;
  margin: 0 0 18px;
  line-height: 1.5;
  color: #1a3a5c;
}
.subpage-hero .hero-sub {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 640px;
  /* margin-bottomは0に：下余白はpaddingで管理 */
  margin: 0 auto 0;
  color: #3a5a7a;
}
/* 帯：ヒーロー本体の外・下端に独立して配置 */
.subpage-hero-belt {
  background: rgba(46, 109, 164, 0.12);
  border-top: 1px solid rgba(46, 109, 164, 0.25);
  padding: 14px 20px;
  font-size: 0.88rem;
  color: #2e6da4;
  font-weight: bold;
  letter-spacing: 0.03em;
  /* ヒーローのpaddingをリセットして帯だけ下端に張り付かせる */
  margin: 56px -20px -56px;
}
@media (max-width: 768px) {
  .subpage-hero h1       { font-size: 1.45rem; }
  .subpage-hero .hero-sub { font-size: 0.93rem; }
  .subpage-hero-belt      { font-size: 0.82rem; }
}


/* ----------------------------------------------------------
   不動産プランページ専用スタイル（fudosan-plan.html）
   ---------------------------------------------------------- */

/* --- 2. メリット4つ --- */
.fudosan-merit-section {
  background: #fffaf2;
  border-radius: 14px;
  padding: 44px 30px;
  margin: 50px 0;
  border: 1px solid #f0e6d0;
}
.fudosan-merit-section .section-title {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 34px;
  color: #1a3a5c;
}
.fudosan-merit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .fudosan-merit-grid       { grid-template-columns: 1fr; }
  .fudosan-merit-section    { padding: 30px 16px; }
}
.fudosan-merit-item {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.merit-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2e6da4, #1a4f80);
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.merit-content h3 {
  font-size: 1rem;
  color: #1a4f80;
  margin: 0 0 8px;
  line-height: 1.4;
}
.merit-content p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.75;
  margin: 0;
}

/* --- 3. プランカード --- */
.fudosan-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}
@media (max-width: 900px) {
  .fudosan-plan-grid { grid-template-columns: 1fr; gap: 30px; }
}
.fudosan-plan-card {
  background: #fff;
  border-radius: 14px;
  border: 2px solid #e0e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}
.fudosan-plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}
.fudosan-plan-card.is-featured { border-color: #2e6da4; }
.fudosan-card-head {
  padding: 24px 20px 18px;
  text-align: center;
  color: #fff;
}
.fudosan-plan-card:nth-child(1) .fudosan-card-head { background: linear-gradient(135deg, #4a7fa5, #2e6da4); }
.fudosan-plan-card:nth-child(2) .fudosan-card-head { background: linear-gradient(135deg, #2e6da4, #1a4f80); }
.fudosan-plan-card:nth-child(3) .fudosan-card-head { background: linear-gradient(135deg, #1a4f80, #0f3460); }
.fudosan-card-head .plan-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-bottom: 6px;
}
.fudosan-card-head h3  { font-size: 1.4rem; margin: 0 0 6px; }
.fudosan-card-head .plan-subtitle { font-size: 0.85rem; opacity: 0.85; }
.fudosan-card-price {
  text-align: center;
  padding: 18px 20px 10px;
  border-bottom: 1px solid #eef2f7;
}
.fudosan-card-price .price-num {
  font-size: 2rem;
  font-weight: bold;
  color: #1a4f80;
  font-family: sans-serif;
}
.fudosan-card-price .price-note { font-size: 0.8rem; color: #888; margin-top: 2px; }
.fudosan-card-body   { padding: 20px; flex: 1; }
.fudosan-card-body .card-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 16px;
}
.fudosan-feature-list { list-style: none; padding: 0; margin: 0 0 20px; }
.fudosan-feature-list li {
  font-size: 0.88rem;
  color: #444;
  padding: 7px 0 7px 22px;
  border-bottom: 1px dashed #eee;
  position: relative;
  line-height: 1.5;
}
.fudosan-feature-list li:last-child { border-bottom: none; }
.fudosan-feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2e6da4;
  font-weight: bold;
}
.fudosan-card-footer { padding: 0 20px 24px; }
.btn-fudosan {
  display: block;
  text-align: center;
  background: linear-gradient(90deg, #2e6da4, #1a4f80);
  color: #fff;
  padding: 13px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: 0.3s;
}
.btn-fudosan:hover { opacity: 0.85; transform: translateY(-1px); }
.fudosan-badge {
  position: absolute;
  top: -1px;
  right: 16px;
  background: #ff9800;
  color: #fff;
  font-size: 0.78rem;
  font-weight: bold;
  padding: 5px 14px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* --- 4. サンプルサイト紹介 --- */
.fudosan-sample-section { margin: 50px 0; }
.fudosan-sample-section .section-title {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 10px;
  color: #1a3a5c;
}
.fudosan-sample-section .section-lead {
  text-align: center;
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 32px;
  line-height: 1.7;
}
.fudosan-sample-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .fudosan-sample-grid { grid-template-columns: 1fr; }
}
.fudosan-sample-card {
  background: #fff;
  border: 1px solid #dde6f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.fudosan-sample-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}
.fudosan-sample-thumb-placeholder {
  width: 100%;
  height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #2e6da4;
  font-size: 2.4rem;
}
.fudosan-sample-card:nth-child(1) .fudosan-sample-thumb-placeholder { background: linear-gradient(135deg, #ddeeff, #c8dff0); }
.fudosan-sample-card:nth-child(2) .fudosan-sample-thumb-placeholder { background: linear-gradient(135deg, #e0eeff, #b8d0e8); }
.fudosan-sample-card:nth-child(3) .fudosan-sample-thumb-placeholder { background: linear-gradient(135deg, #d8eaff, #afc8e0); }
.fudosan-sample-thumb-placeholder span {
  font-size: 0.78rem;
  margin-top: 8px;
  font-weight: bold;
  letter-spacing: 0.08em;
  color: #2e6da4;
}
.fudosan-sample-body { padding: 18px 20px 22px; flex: 1; }
.fudosan-sample-tag {
  display: inline-block;
  background: #e8f0fa;
  color: #2e6da4;
  font-size: 0.78rem;
  font-weight: bold;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.fudosan-sample-body h3 {
  font-size: 1rem;
  color: #1a3a5c;
  margin: 0 0 10px;
  line-height: 1.4;
}
.fudosan-sample-body p {
  font-size: 0.86rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

/* --- 5. 運用システム --- */
.fudosan-system-section {
  background: #f0f6ff;
  border-radius: 14px;
  padding: 44px 30px;
  margin: 50px 0;
}
.fudosan-system-section .section-title {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 30px;
  color: #1a3a5c;
}
.fudosan-system-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 768px) {
  .fudosan-system-grid    { grid-template-columns: 1fr; }
  .fudosan-system-section { padding: 30px 16px; }
}
.fudosan-system-card {
  background: #fff;
  border-radius: 10px;
  padding: 26px;
  border-left: 5px solid #2e6da4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.fudosan-system-card h3 { font-size: 1.05rem; color: #1a4f80; margin: 0 0 14px; }
.fudosan-system-card ul { list-style: none; padding: 0; margin: 0; }
.fudosan-system-card ul li {
  font-size: 0.88rem;
  color: #555;
  padding: 8px 0 8px 20px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  line-height: 1.55;
}
.fudosan-system-card ul li:last-child { border-bottom: none; }
.fudosan-system-card ul li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: #2e6da4;
  font-size: 0.65rem;
  top: 10px;
}
.fudosan-system-card ul li strong {
  display: block;
  color: #333;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

/* --- 6. オプション --- */
.fudosan-option-section { margin: 50px 0; }
.fudosan-option-section .section-title {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 10px;
  color: #1a3a5c;
}
.fudosan-option-section .section-lead {
  text-align: center;
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 30px;
}
.fudosan-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.fudosan-option-card {
  background: #fff;
  border: 1px solid #dde6f0;
  border-radius: 10px;
  padding: 22px 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.fudosan-option-card:hover { transform: translateY(-4px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); }
.fudosan-option-card .option-icon { font-size: 2rem; margin-bottom: 10px; }
.fudosan-option-card h3 { font-size: 1rem; color: #1a4f80; margin: 0 0 8px; }
.fudosan-option-card .option-price {
  font-size: 1.1rem;
  font-weight: bold;
  color: #e74c3c;
  margin-bottom: 8px;
  font-family: sans-serif;
}
.fudosan-option-card p { font-size: 0.85rem; color: #666; line-height: 1.6; margin: 0; }

/* --- 7. 共通スペック --- */
.fudosan-spec-section {
  background: linear-gradient(135deg, #1a3a5c, #2e6da4);
  color: #fff;
  border-radius: 14px;
  padding: 44px 30px;
  margin: 50px 0;
}
.fudosan-spec-section .section-title {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 30px;
  color: #fff;
}
.fudosan-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.fudosan-spec-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.spec-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.spec-text { font-size: 0.88rem; line-height: 1.5; }
.spec-text strong { display: block; font-size: 0.95rem; margin-bottom: 3px; }
@media (max-width: 768px) { .fudosan-spec-section { padding: 30px 16px; } }

/* --- 8. 比較表 --- */
.fudosan-compare-section { margin: 50px 0; }
.fudosan-compare-section .section-title {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 10px;
  color: #1a3a5c;
}
.fudosan-compare-section .section-lead {
  text-align: center;
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 30px;
  line-height: 1.7;
}
.fudosan-compare-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}
.fudosan-compare-table thead th {
  padding: 16px 14px;
  text-align: center;
  font-size: 1rem;
}
.fudosan-compare-table thead th:first-child  { background: #f5f5f5; color: #333; text-align: left; }
.fudosan-compare-table thead th:nth-child(2) { background: #e8eef5; color: #555; }
.fudosan-compare-table thead th:nth-child(3) { background: #1a4f80; color: #fff; }
.fudosan-compare-table tbody tr:nth-child(even) { background: #f9fafb; }
.fudosan-compare-table tbody tr:nth-child(odd)  { background: #fff; }
.fudosan-compare-table tbody td {
  padding: 14px;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
  vertical-align: middle;
  line-height: 1.55;
}
.fudosan-compare-table tbody td:first-child  { font-weight: bold; color: #444; background: #f5f7fa; }
.fudosan-compare-table tbody td:nth-child(2) { color: #888; text-align: center; }
.fudosan-compare-table tbody td:nth-child(3) { color: #1a4f80; font-weight: bold; text-align: center; }
.fudosan-compare-table tbody tr:last-child td { border-bottom: none; }

/* --- 9. CTAセクション --- */
.fudosan-cta-section {
  background: linear-gradient(135deg, #eaf4fb, #ddeeff);
  border: 1px solid #b8d4ec;
  border-radius: 14px;
  padding: 50px 30px;
  margin: 60px 0;
  text-align: center;
}
.fudosan-cta-section h2 {
  font-size: 1.6rem;
  color: #1a3a5c;
  margin: 0 0 20px;
}
.fudosan-cta-section p {
  font-size: 0.97rem;
  color: #3a5a7a;
  line-height: 1.9;
  max-width: 640px;
  margin: 0 auto 30px;
}
.btn-cta-fudosan {
  display: inline-block;
  background: linear-gradient(90deg, #2e6da4, #1a4f80);
  color: #fff;
  padding: 16px 48px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(30, 79, 128, 0.3);
  transition: 0.3s;
}
.btn-cta-fudosan:hover { opacity: 0.88; transform: translateY(-2px); }
@media (max-width: 768px) {
  .fudosan-cta-section    { padding: 36px 16px; }
  .fudosan-cta-section h2 { font-size: 1.3rem; }
  .btn-cta-fudosan        { padding: 14px 28px; font-size: 1rem; display: block; }
}


/* ----------------------------------------------------------
   AIホームページプランページ専用スタイル（aihp-plan.html）
   ---------------------------------------------------------- */

/* aihp ヒーロー：subpage-hero のカラーオーバーライド */
.aihp-hero {
  background: linear-gradient(160deg, #fff0f5 0%, #fde8ef 55%, #fff5f8 100%);
  border-bottom-color: #f0c0d0;
}
.aihp-hero .hero-label {
  background: rgba(180, 60, 100, 0.1);
  border-color: rgba(180, 60, 100, 0.35);
  color: #b43c64;
}
.aihp-hero h1  { color: #5c1a2e; }
.aihp-hero .hero-sub { color: #7a3a50; }
.aihp-hero-belt {
  background: rgba(180, 60, 100, 0.1);
  border-top-color: rgba(180, 60, 100, 0.2);
  color: #b43c64;
}

/* ----------------------------------------------------------
   関連ページリンクセクション（内部リンク対策）
   ---------------------------------------------------------- */
.related-links-section {
  margin: 50px 0;
  padding: 32px 30px;
  background: #f7f9fc;
  border: 1px solid #dde6f0;
  border-radius: 12px;
}
.related-links-section .main_h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.related-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px 24px;
}
.related-links-list li a {
  color: #2e6da4;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.6;
  display: block;
  padding: 6px 0;
  border-bottom: 1px dashed #d0dcea;
  transition: color 0.2s, padding-left 0.2s;
}
.related-links-list li a:hover {
  color: #1a4f80;
  padding-left: 4px;
}
@media (max-width: 768px) {
  .related-links-section { padding: 24px 16px; }
  .related-links-list { grid-template-columns: 1fr; }
}