/* =====================================================================
   世界の日本人宿に泊まろう — 共通スタイル
   旧サイト（Bootstrap 3）の白地・黒いナビゲーション・カード状の宿の並びを引き継ぎ、
   スマホでも崩れないようにしたもの. ビルド不要のプレーンな CSS.
   ===================================================================== */

:root {
  --text: #333333;
  --text-muted: #777777;
  --link: #337ab7;
  --accent: #f26f10;
  --border: #dddddd;
  --box: #f5f5f5;
  --shell: 1140px;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
  z-index: 20;
  background: #fff;
  padding: 6px 10px;
}

.container {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px;
}

.empty {
  margin: 20px 0;
  color: var(--text-muted);
}

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

.count {
  font-size: 12px;
  color: var(--text-muted);
}

/* ------------------------------------------------------------- header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
}

.site-header__logo img {
  display: block;
  width: 220px;
}

.site-header__text {
  font-size: 12px;
}

.navbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  padding: 0 14px;
  border: 1px solid #080808;
  border-radius: 4px;
  background: linear-gradient(#3c3c3c, #222);
}

.navbar a {
  padding: 14px 12px;
  color: #9d9d9d;
}

.navbar a:hover,
.navbar a[aria-current="page"] {
  color: #fff;
  text-decoration: none;
}

.navbar a[aria-current="page"] {
  background: #080808;
}

@media (max-width: 640px) {
  .navbar a {
    padding: 10px 8px;
    font-size: 13px;
  }
}

.site-main {
  padding: 20px 0 10px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 8px 15px;
  border-radius: 4px;
  background: var(--box);
  list-style: none;
  font-size: 13px;
}

.breadcrumb li + li::before {
  content: "/";
  margin-inline: 8px;
  color: #ccc;
}

.page-title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: normal;
  line-height: 1.3;
}

.section {
  margin-bottom: 30px;
}

.section__title {
  margin: 20px 0 12px;
  font-size: 22px;
  font-weight: normal;
}

.sub-heading {
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  font-size: 18px;
}

.more {
  margin-top: 12px;
  text-align: right;
}

.button {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: linear-gradient(#fff, #e0e0e0);
  color: #333;
  font-size: 13px;
}

.button:hover {
  background: #e0e0e0;
  text-decoration: none;
}

/* --------------------------------------------------------------- hero */

.hero__item {
  position: relative;
  display: grid;
  place-content: end center;
  justify-items: center;
  gap: 8px;
  min-height: 320px;
  padding: 24px 16px 40px;
  border-radius: 4px;
  background: #555 center / cover no-repeat;
  text-align: center;
}

.hero__item:hover {
  text-decoration: none;
}

.hero__name {
  padding: 8px 20px;
  border-radius: 21px;
  background: #fff;
  color: var(--accent);
  font-size: 18px;
}

.hero__lead {
  padding: 10px 20px;
  border-radius: 21px;
  background: #fff;
  color: #6a6a6a;
  font-size: 15px;
}

@media (max-width: 640px) {
  .hero__item {
    min-height: 200px;
  }

  .hero__lead {
    display: none;
  }
}

/* -------------------------------------------------------------- cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card__image img {
  display: block;
  width: 100%;
  aspect-ratio: 23 / 14;
  object-fit: cover;
  border-radius: 6px;
}

.card__title {
  margin: 10px 0 4px;
  font-size: 22px;
  font-weight: normal;
  line-height: 1.3;
}

.card__title a {
  color: var(--text);
}

.card__place {
  font-size: 12px;
  color: var(--text-muted);
}

.card__text {
  margin: 6px 0 10px;
}

.city-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* -------------------------------------------------------------- table */

.table-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 8px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.table thead th {
  background: var(--box);
}

.table--info th {
  width: 30%;
  background: var(--box);
  font-weight: bold;
}

/* --------------------------------------------------------------- yado */

.yado__sub {
  margin: -4px 0 8px;
  color: var(--text-muted);
}

.stale-note {
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.yado__photo {
  margin-bottom: 16px;
  text-align: center;
}

.yado__photo img {
  border-radius: 6px;
}

.yado__text {
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.9;
}

.yado__section {
  margin-bottom: 28px;
}

.recommends {
  margin: 0;
  padding-left: 1.2em;
}

.recommends li + li {
  margin-top: 8px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 23 / 14;
  object-fit: cover;
  border-radius: 6px;
}

.gallery span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

.box {
  margin: 12px 0;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.box h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

.box h4 {
  margin: 10px 0 2px;
  font-size: 13px;
}

.faq dt {
  font-weight: bold;
}

.faq dd {
  margin: 2px 0 12px;
}

.note {
  font-size: 13px;
  color: var(--text-muted);
}

.error-page {
  min-height: 40vh;
}

/* ------------------------------------------------------- pagination */

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 24px 0;
}

.pagination__pages {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
}

.pagination span[aria-current="page"] {
  border-color: var(--link);
  background: var(--link);
  color: #fff;
}

/* ------------------------------------------------------------- prose */

.prose {
  line-height: 1.8;
}

.prose h2 {
  margin: 24px 0 8px;
  font-size: 18px;
}

.prose h3 {
  margin: 16px 0 6px;
  font-size: 15px;
}

.prose p {
  margin: 0 0 10px;
}

.prose ul,
.prose ol {
  margin: 0 0 10px;
  padding-left: 28px;
}

.notice-box {
  padding: 12px 14px;
  border-radius: 4px;
  background: #fcf8e3;
}

.error-page {
  min-height: 40vh;
}

/* ------------------------------------------------------------ footer */

.site-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  font-size: 13px;
}

.site-footer__notice {
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.site-footer__links {
  margin-bottom: 6px;
}

.site-footer__copy {
  font-size: 12px;
}

/* ---------------------------------------------------------- 手動の広告枠 */

.ad {
  margin: 20px auto;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
}

.ad__label {
  display: block;
  font-size: 10px;
  color: #999;
}

/* 広告が後から差し込まれてレイアウトがずれないよう、伸び縮みする枠も高さを先に確保する（固定サイズの枠は ins に幅と高さを指定済み） */
.ad ins.adsbygoogle[data-ad-format] {
  min-height: 100px;
}

@media (max-width: 767px) {
  .ad__unit--pc,
  .ad--pc-only {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .ad__unit--sp,
  .ad--sp-only {
    display: none !important;
  }
}


/* ------------------------------------------------------- 2 段組・サイドバー */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
}

.layout__main {
  min-width: 0;
}

@media (min-width: 992px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }

  .layout .cards {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

.sidebar {
  padding: 16px 10px;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  background: var(--box);
}

.sidebar .ad {
  margin: 0 0 16px;
}

.sidebar__block {
  margin-bottom: 16px;
}

.sidebar__block h2 {
  margin-bottom: 6px;
  font-size: 15px;
}

.sidebar__links {
  margin: 0;
  padding-left: 1.2em;
  font-size: 13px;
}

.sidebar__links li + li {
  margin-top: 2px;
}

.sidebar .more {
  margin-top: 4px;
  font-size: 13px;
}

/* -------------------------------------------------------- 写真のページ */

.photo-view {
  margin: 10px 0 0;
  padding: 8px;
  border-radius: 6px;
  background: #222;
}

.photo-view__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.photo-view__image {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.photo-view__nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 64px;
  transform: translateY(-50%);
  border-radius: 6px;
  background: rgb(0 0 0 / 45%);
  color: #fff;
  font-size: 32px;
  line-height: 1;
}

.photo-view__nav:hover {
  background: rgb(0 0 0 / 70%);
  text-decoration: none;
}

.photo-view__nav--prev {
  left: 4px;
}

.photo-view__nav--next {
  right: 4px;
}

.photo-view__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
  color: #fff;
  font-size: 13px;
}

.photo-pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  margin-top: 10px;
}

.photo-pager > :last-child {
  text-align: right;
}

.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.thumbs img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
}

.thumbs a[aria-current="page"] img {
  outline: 3px solid var(--accent);
}
