/* Happy Pension 九十九里 共通スタイル（スマホ対応） */
:root {
  --green: #27b182;
  --green-dark: #1a7f5f;
  --yellow: #ffdf71;
  --bg: #ffffcc;
  --text: #1a7f5f;
  --red: #d93025;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "メイリオ", Meiryo, "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: #0b6e99; }
a:visited { color: #6a4c93; }

.site-header {
  background: var(--green);
  color: var(--yellow);
  border-bottom: 8px double var(--yellow);
  text-align: right;
  padding: 4px 12px 0;
  font-size: 13px;
  font-style: italic;
}
.container { max-width: 720px; margin: 0 auto; padding: 16px; }
.logo { display: block; margin: 8px auto 0; width: 160px; max-width: 50%; }
h1.page-title {
  text-align: center;
  font-size: 1.6rem;
  margin: 12px 0 20px;
  line-height: 1.4;
}
h2 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
  border-left: 6px solid var(--green);
  padding-left: 10px;
}
p { margin: 0 0 1em; }
.center { text-align: center; }
.small { font-size: 0.85rem; }
.notice { color: #c0392b; font-weight: bold; text-align: center; }
.red { color: var(--red); font-weight: bold; }

.card {
  background: var(--yellow);
  border-radius: 10px;
  padding: 16px;
  margin: 0 0 20px;
  text-align: center;
}
.card.left { text-align: left; }
.card img { border-radius: 6px; margin-bottom: 10px; }
.card .caption { font-weight: bold; font-size: 1.1rem; margin: 6px 0; }
.card.pet { text-align: left; }
.card.pet img { display: block; margin: 0 auto 12px; }

.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 0 20px; }
.photo-grid.three { grid-template-columns: repeat(3, 1fr); }
.photo-grid img { width: 100%; border-radius: 6px; }
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 0 20px; font-size: 0.85rem; text-align: center; }
.steps img { width: 100%; border-radius: 6px; }

/* スライドショー（JS不要・横スワイプ） */
.slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 8px;
  margin: 16px 0;
  border-radius: 10px;
}
.slider img { flex: 0 0 100%; width: 100%; aspect-ratio: 14 / 9; object-fit: cover; scroll-snap-align: center; border-radius: 10px; }

/* ナビゲーション */
.menu { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 20px 0; }
.menu a {
  display: block;
  text-decoration: none;
  background: var(--green);
  color: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  line-height: 1.5;
}
.menu a:nth-child(even) { background: var(--yellow); color: var(--green-dark); }
.menu a strong { display: block; font-size: 1.1rem; }
.menu a span { font-size: 0.85rem; }

.nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 24px 0 12px;
}
.nav a {
  display: block;
  text-align: center;
  background: #fff;
  border: 2px solid var(--green);
  border-radius: 8px;
  padding: 10px 4px;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--green-dark);
}

.btn {
  display: block;
  text-align: center;
  background: var(--green);
  color: #fff !important;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 16px;
  font-weight: bold;
  margin: 10px 0;
  font-size: 1.1rem;
}
.btn.sub { background: var(--yellow); color: var(--green-dark) !important; }

.price-table { width: 100%; border-collapse: collapse; background: var(--yellow); margin-bottom: 16px; }
.price-table th, .price-table td { border: 1px solid #fff; padding: 10px; text-align: left; }
.price-table th { background: var(--green); color: #fff; }
.price-table .tax { display: block; font-size: 0.85rem; }

.info-box { background: var(--green); color: #fff; border-radius: 10px; padding: 14px 16px; margin-bottom: 20px; text-align: center; }

.map { position: relative; width: 100%; padding-top: 80%; margin: 12px 0; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.route { background: #fff; border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.route h2 { margin-top: 0; }
.route ol { margin: 0; padding-left: 1.4em; }

address.footer {
  font-style: normal;
  text-align: center;
  font-weight: bold;
  border-top: 1px solid var(--green);
  border-bottom: 1px solid var(--green);
  padding: 14px 0;
  margin: 20px 0;
}
.to-top { text-align: center; margin: 16px 0 32px; }

@media (min-width: 600px) {
  .menu { grid-template-columns: 1fr 1fr; }
  .nav { grid-template-columns: repeat(3, 1fr); }
  .card.pet { display: grid; grid-template-columns: 40% 1fr; gap: 16px; align-items: center; }
  .card.pet img { margin: 0; }
}
