* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
  background: #f4f6f8;
  color: #333;
  line-height: 1.6;
}

.section {
  padding: 50px 20px;
}

.inner {
  max-width: 1000px;
  margin: 0 auto;
}

.lead {
  text-align: center;
  margin: 0 0 40px;
  font-size: 18px;
  font-weight: 700;
}

/* 見出し */
h2 {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 700;
  color: #1f5fa8;
}

h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
}

p {
  margin: 0;
}

/* ======================
   上段カード
====================== */
.card-wrapper {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.card-radio {
  display: none;
}

.card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 420px;
  min-height: 180px;
  padding: 28px 26px;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.25s ease;
  border: 3px solid transparent;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.card:hover {
  transform: translateY(-2px);
}

.card-a {
  background: #ffd9d9;
}

.card-b {
  background: #d9ecff;
}

.card-radio:checked + .card {
  border-color: #1f5fa8;
  box-shadow: 0 10px 24px rgba(31, 95, 168, 0.18);
}

.checkbox {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border: 2px solid #333;
  background: #fff;
  border-radius: 50%;
  position: relative;
  margin-top: 2px;
}

.card-radio:checked + .card .checkbox {
  border-color: #1f5fa8;
}

.card-radio:checked + .card .checkbox::after {
  content: "";
  width: 14px;
  height: 14px;
  background: #1f5fa8;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ======================
   エリア
====================== */
.area-section {
  background: #fff;
}

.area-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 30px 0 0;
}

.area-radio {
  display: none;
}

.area-label {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  border: 2px solid #1f5fa8;
  background: #fff;
  color: #1f5fa8;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s ease;
  text-align: center;
  box-shadow: 0 2px 8px rgba(31, 95, 168, 0.08);
}

.area-label:hover {
  background: #eef5fc;
}

.area-radio:checked + .area-label {
  background: #1f5fa8;
  color: #fff;
  box-shadow: 0 6px 14px rgba(31, 95, 168, 0.22);
}

/* ======================
   検索
====================== */
.search-box {
  display: flex;
  gap: 12px;
}

.search-box input {
  flex: 1;
  min-width: 0;
  padding: 15px 18px;
  border: 2px solid #1f5fa8;
  border-radius: 12px;
  font-size: 18px;
  background: #fff;
  outline: none;
}

.search-box input:focus {
  box-shadow: 0 0 0 4px rgba(31, 95, 168, 0.12);
}

.search-box button {
  padding: 15px 30px;
  background: #1f5fa8;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;
}

.search-box button:hover {
  background: #174a82;
}

/* ======================
   結果
====================== */
.result-section {
  padding-top: 20px;
}

#map {
  height: 400px;
  margin-bottom: 30px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

th,
td {
  border-bottom: 1px solid #dcdcdc;
  padding: 14px 16px;
  text-align: left;
  font-size: 16px;
}

th {
  background: #1f5fa8;
  color: #fff;
  font-weight: 700;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:nth-child(even) {
  background: #f9fbfd;
}

/* ======================
   スマホ
====================== */
@media (max-width: 768px) {
  .section {
    padding: 40px 16px;
  }

  h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  h3 {
    font-size: 20px;
  }

  .lead {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .card-wrapper {
    gap: 20px;
  }

  .card {
    width: 100%;
    min-height: auto;
    padding: 22px 18px;
    border-radius: 16px;
  }

  .area-grid {
    gap: 10px;
  }

  .area-label {
    width: calc(50% - 5px);
    padding: 12px 10px;
    font-size: 16px;
  }

  .search-box {
    flex-direction: column;
  }

  .search-box input,
  .search-box button {
    width: 100%;
    font-size: 16px;
  }

  #map {
    height: 300px;
    border-radius: 12px;
  }

  .listbox {
    overflow-x: auto; 
  }

  table {
    width: 1200px;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    font-size: 14px;
  }

  th,
  td {
    padding: 12px 10px;
    display: table-cell !important;
  }
}
