/* ========================================
   対応エリアページ専用スタイル
   ======================================== */

/* --- メインセクション（ドット背景） --- */
.area-section {
  background: #f9f9f9;
  background-image: radial-gradient(circle, #ddd 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 60px 20px 80px;
  position: relative;
}

.area-container {
  max-width: 960px;
  margin: 0 auto;
}

/* --- セクション見出し --- */
.area-heading {
  text-align: center;
  margin-bottom: 50px;
}

.area-heading h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #333;
  margin: 0;
  display: inline-block;
  position: relative;
  padding-bottom: 16px;
}

.area-heading h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: #32c417;
  border-radius: 2px;
}

/* --- イントロボックス（画像＋テキスト） --- */
.area-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 60px;
}

.area-intro-photo {
  width: 44%;
  flex-shrink: 0;
  position: relative;
}

.area-intro-photo::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  width: 100%;
  height: 100%;
  background: #32c417;
  border-radius: 16px;
  z-index: 0;
  opacity: 0.25;
}

.area-intro-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.area-intro-text {
  flex: 1;
}

.area-intro-text h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #333;
  margin: 0 0 20px;
  line-height: 1.6;
}

.area-intro-text h3 .highlight-yellow {
  background: linear-gradient(transparent 60%, #FFD700 60%);
  padding: 0 2px;
}

.area-intro-text p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.9;
  margin: 0;
}

/* --- エリアリストボックス --- */
.area-list-box {
  background: #fff;
  border: 3px solid #32c417;
  border-radius: 20px;
  box-shadow: 4px 6px 0 rgba(50,196,23,0.3);
  padding: 0 40px 40px;
  position: relative;
}

/* --- エリアボックスタイトル（ボーダー上に配置） --- */
.area-list-title {
  text-align: center;
  margin: -22px auto 0;
  position: relative;
  z-index: 1;
}

.area-list-title span {
  display: inline-block;
  background: #32c417;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  padding: 12px 48px;
  border-radius: 50px;
  letter-spacing: 0.05em;
}

/* --- サブメッセージ --- */
.area-list-message {
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #32c417;
  margin: 24px 0 28px;
  position: relative;
}

.area-list-message::before,
.area-list-message::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: #32c417;
  vertical-align: middle;
  margin: 0 12px;
}

/* --- エリアリストグリッド --- */
.area-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.area-list li {
  margin: 0;
}

.area-list li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  background: #f0fae8;
  border: 1px solid #d4edc4;
  border-radius: 10px;
  color: #333;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.25s;
  min-height: 48px;
}

.area-list li a:hover {
  background: #32c417;
  border-color: #32c417;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(50,196,23,0.3);
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
  .area-section {
    padding: 40px 16px 60px;
  }

  .area-heading {
    margin-bottom: 36px;
  }

  .area-heading h2 {
    font-size: 1.4rem;
  }

  .area-intro {
    flex-direction: column;
    gap: 24px;
    margin-bottom: 44px;
  }

  .area-intro-photo {
    width: 70%;
    margin: 0 auto;
  }

  .area-intro-text h3 {
    font-size: 1.3rem;
    text-align: center;
  }

  .area-intro-text p {
    font-size: 0.92rem;
  }

  .area-list-box {
    padding: 0 24px 32px;
  }

  .area-list-title span {
    font-size: 1.15rem;
    padding: 10px 36px;
  }

  .area-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .area-list li a {
    font-size: 0.88rem;
    padding: 12px 6px;
  }
}

@media (max-width: 640px) {
  .area-section {
    padding: 32px 14px 50px;
  }

  .area-heading h2 {
    font-size: 1.25rem;
  }

  .area-intro-photo {
    width: 80%;
  }

  .area-intro-photo::after {
    top: 10px;
    left: 10px;
  }

  .area-intro-text h3 {
    font-size: 1.15rem;
  }

  .area-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .area-list li a {
    font-size: 0.85rem;
    padding: 11px 4px;
  }

  .area-list-message {
    font-size: 0.9rem;
  }

  .area-list-message::before,
  .area-list-message::after {
    width: 28px;
    margin: 0 8px;
  }
}

@media (max-width: 480px) {
  .area-section {
    padding: 28px 12px 40px;
    background-size: 16px 16px;
  }

  .area-heading {
    margin-bottom: 28px;
  }

  .area-heading h2 {
    font-size: 1.15rem;
  }

  .area-intro-photo {
    width: 90%;
  }

  .area-intro-text h3 {
    font-size: 1.05rem;
  }

  .area-intro-text p {
    font-size: 0.88rem;
    line-height: 1.8;
  }

  .area-list-box {
    padding: 0 16px 24px;
    border-radius: 14px;
  }

  .area-list-title span {
    font-size: 1rem;
    padding: 9px 28px;
  }

  .area-list-message {
    font-size: 0.85rem;
    margin: 20px 0 22px;
  }

  .area-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .area-list li a {
    font-size: 0.82rem;
    padding: 10px 4px;
    border-radius: 8px;
    min-height: 44px;
  }
}

@media (max-width: 375px) {
  .area-section {
    padding: 24px 10px 36px;
  }

  .area-heading h2 {
    font-size: 1.05rem;
  }

  .area-intro-photo::after {
    top: 8px;
    left: 8px;
    border-radius: 12px;
  }

  .area-intro-photo img {
    border-radius: 12px;
  }

  .area-intro-text h3 {
    font-size: 0.98rem;
  }

  .area-intro-text p {
    font-size: 0.82rem;
  }

  .area-list-box {
    padding: 0 12px 20px;
    border-radius: 12px;
    border-width: 2px;
    box-shadow: 3px 4px 0 rgba(50,196,23,0.25);
  }

  .area-list-title {
    margin-top: -18px;
  }

  .area-list-title span {
    font-size: 0.9rem;
    padding: 8px 22px;
  }

  .area-list-message {
    font-size: 0.78rem;
    margin: 16px 0 18px;
  }

  .area-list-message::before,
  .area-list-message::after {
    width: 20px;
    margin: 0 6px;
  }

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

  .area-list li a {
    font-size: 0.78rem;
    padding: 9px 4px;
  }
}
