@import url(common.css);

.h1_text_only h1 {
  background-image: url(../parts/common/icon_japan.png);
  background-repeat: no-repeat;
  background-position: 10%, 50%;
}
.h1_text_only p {
  padding: 2em 0;
  text-align: center;
}

/* 市区町村リンクのグリッド */
.city_item {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 980px) {
  .city_item {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* 見た目 */
.city_item a {
  display: block;
  padding: 10px 12px;
  text-align: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  line-height: 1.4;
}
.city_item a:hover {
  background: #0c7abf;
  color: #fff;
  border-color: #0c7abf;
  box-shadow: 0 2px 10px rgba(12, 122, 191, 0.12);
  opacity: unset;
}
.city_item a:focus-visible {
  outline: 2px solid #0c7abf;
  outline-offset: 2px;
}

.prefecture-badge {
  max-width: 120px;
  background-color: #ebebeb;
  color: #7e7e7e;
  padding: 0.5em;
  text-align: center;
}
.prefecture-badge:nth-child(n + 2) {
  margin-top: 5em;
}

.area-container {
  width: calc(100% - 40px);
  max-width: 820px;
  margin: 0 auto;
  box-sizing: border-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
  -webkit-align-items: stretch;
  align-items: stretch;
  gap: 1em;
  padding-bottom: 5em;
}

/* カード（白枠） */
.prefecture-card {
  padding: 2em;
  background-color: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.prefecture-card h3 {
  margin: 0 0 1em;
  font-size: 18px;
}
.prefecture-card a {
  display: block;
  line-height: 1.5;
  color: #6b6b6b;
  word-break: keep-all;
}

@media screen and (max-width: 1024px) {
  #content #main #main_right {
    width: 100%;
    padding: unset;
    margin: 0 auto;
    box-shadow: unset;
  }
}
