:root {
  --cream: #fdf6ec;
  --brown: #6b4f3a;
  --brown-light: #a08268;
  --orange: #e8a05d;
  --orange-dark: #d18742;
  --pink: #f5d5c8;
  --pink-light: #fbeae2;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ページ内リンクでなめらかにスクロール */
html {
  scroll-behavior: smooth;
}

/* 「動きを減らす」設定の人には即時移動にする */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  background: var(--cream);
  color: var(--brown);
  line-height: 1.8;
}

img {
  max-width: 100%;
  display: block;
}

/* ヘッダー */
header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(107, 79, 58, 0.1);
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--brown);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

nav a {
  color: var(--brown);
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}

nav a:hover {
  color: var(--orange-dark);
}

/* ホバーで下線が左からすーっと伸びる */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--orange-dark);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

nav a:hover::after {
  transform: scaleX(1);
}

/* ハンバーガーメニューのボタン（パソコンでは非表示） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--brown);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}

/* 開いたら三本線が「×」になる */
header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ヒーロー */
.hero {
  background:
    linear-gradient(rgba(45, 30, 20, 0.55), rgba(45, 30, 20, 0.45)),
    url("images/hero-bg.jpg") center / cover no-repeat;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 15px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 30px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 14px 40px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

/* セクション共通 */
section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
  /* ヘッダー分だけ下げて止まる（見出しが隠れないように） */
  scroll-margin-top: 85px;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

/* 見出しの下の短い飾り線 */
.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: var(--orange);
  border-radius: 999px;
  margin: 12px auto 0;
}

.section-sub {
  text-align: center;
  color: var(--brown-light);
  margin-bottom: 40px;
  font-size: 0.95rem;
}

/* ねこ紹介カード */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.cat-card {
  background: var(--white);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(107, 79, 58, 0.08);
  transition: transform 0.2s;
}

.cat-card:hover {
  transform: translateY(-5px) rotate(-1deg);
}

.cat-card .photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
  border: 5px solid var(--pink);
}

.cat-card h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.cat-card .breed {
  color: var(--orange-dark);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.cat-card p {
  font-size: 0.9rem;
  color: var(--brown-light);
}

/* 店内のようす */
.gallery-section {
  background: var(--pink-light);
  max-width: none;
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 180px;
  gap: 20px;
}

/* 1枚目だけ大きく（2列 × 2段） */
.gallery-grid img:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  border: 5px solid var(--white);
  box-shadow: 0 6px 20px rgba(107, 79, 58, 0.12);
}

.gallery-caption {
  text-align: center;
  margin-top: 18px;
  color: var(--brown-light);
  font-size: 0.95rem;
}

/* 料金表 */
.price-section {
  background: var(--white);
  max-width: none;
}

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

.price-table {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--pink);
  text-align: left;
}

.price-table th {
  color: var(--brown);
  font-size: 1rem;
  font-weight: normal;
}

.price-table td {
  text-align: right;
  font-weight: bold;
  color: var(--orange-dark);
}

.price-note {
  max-width: 600px;
  margin: 20px auto 0;
  font-size: 0.85rem;
  color: var(--brown-light);
}

/* メニュー */
.menu-section {
  background: var(--pink-light);
  max-width: none;
}

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

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.menu-item {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 15px rgba(107, 79, 58, 0.08);
  transition: transform 0.2s;
}

.menu-item:hover {
  transform: translateY(-4px);
}

.menu-item .photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.menu-item .menu-body {
  padding: 18px 15px 22px;
}

.menu-item h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.menu-item p {
  font-size: 0.9rem;
  color: var(--orange-dark);
  font-weight: bold;
}

/* 写真クリックで詳細ページへ */
.photo-link {
  display: block;
  overflow: hidden;
  cursor: pointer;
}

.cat-card .photo-link {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 15px;
  border: 5px solid var(--pink);
}

.cat-card .photo-link .photo {
  width: 100%;
  height: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
  transition: transform 0.3s;
}

.cat-card .photo-link:hover .photo,
.menu-item .photo-link:hover .photo {
  transform: scale(1.08);
}

.menu-item .photo-link .photo {
  transition: transform 0.3s;
}

.detail-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--orange-dark);
  font-size: 0.85rem;
  font-weight: bold;
  text-decoration: none;
}

.detail-link:hover {
  text-decoration: underline;
}

/* ご利用の流れ・注意事項 */
.rules {
  background:
    linear-gradient(rgba(245, 213, 200, 0.88), rgba(245, 213, 200, 0.9)),
    url("images/rules-bg.jpg") center 65% / cover no-repeat;
  border-radius: 20px;
  padding: 35px 30px;
}

.rules h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.rules ul {
  list-style: none;
}

.rules li {
  padding-left: 1.8em;
  position: relative;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.rules li::before {
  content: "🐾";
  position: absolute;
  left: 0;
}

/* 店舗情報 */
.info-section {
  background: var(--white);
  max-width: none;
}

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

.info-table {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: 14px 15px;
  border-bottom: 1px solid var(--pink);
  text-align: left;
  font-size: 0.95rem;
  vertical-align: top;
}

.info-table th {
  width: 30%;
  color: var(--brown-light);
  white-space: nowrap;
}

/* メニュー一覧（文字のメニュー表） */
.menu-list {
  max-width: 680px;
  margin: 0 auto;
}

.menu-cat {
  font-size: 1.25rem;
  color: var(--brown);
  margin: 35px 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--pink);
}

.menu-cat:first-child {
  margin-top: 0;
}

.menu-row {
  display: flex;
  align-items: baseline;
  gap: 15px;
  padding: 16px 6px;
  border-bottom: 1px dashed var(--pink);
}

.menu-row-main {
  flex: 1;
}

.menu-row-name {
  display: block;
  font-size: 1.05rem;
  color: var(--brown);
}

.menu-row-desc {
  display: block;
  font-size: 0.85rem;
  color: var(--brown-light);
  margin-top: 3px;
}

.menu-row-price {
  flex-shrink: 0;
  font-weight: bold;
  color: var(--orange-dark);
  font-size: 1.05rem;
}

.menu-list-note {
  max-width: 680px;
  margin: 25px auto 0;
  font-size: 0.85rem;
  color: var(--brown-light);
}

/* トップページ「メニューをすべて見る」ボタン */
.menu-more {
  text-align: center;
  margin-top: 35px;
}

/* 地図 */
.map-wrap {
  max-width: 600px;
  margin: 35px auto 0;
  border-radius: 20px;
  overflow: hidden;
  border: 5px solid var(--pink);
  box-shadow: 0 6px 20px rgba(107, 79, 58, 0.12);
  line-height: 0;
}

.map-wrap iframe {
  width: 100%;
  height: 340px;
  border: 0;
  display: block;
}

.map-note {
  max-width: 600px;
  margin: 12px auto 0;
  font-size: 0.8rem;
  color: var(--brown-light);
}

.map-note a {
  color: var(--orange-dark);
  font-weight: bold;
  text-decoration: none;
}

.map-note a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .map-wrap iframe {
    height: 260px;
  }
}

/* フッター */
footer {
  background: var(--brown);
  color: var(--cream);
  text-align: center;
  padding: 30px 20px;
  font-size: 0.85rem;
}

footer .footer-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 14px;
  border: 3px solid var(--pink);
  background: var(--white);
}

footer .footer-name {
  font-weight: bold;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

footer .footer-info {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 16px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin-bottom: 18px;
}

.footer-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.85rem;
  opacity: 0.85;
}

.footer-nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

footer .credit {
  margin-top: 8px;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* 右下の「TOPへ」ボタン */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(107, 79, 58, 0.3);
  /* ふだんは隠しておく */
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.2s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--orange-dark);
}

.to-top-arrow {
  font-size: 1.1rem;
  line-height: 1;
}

.to-top-text {
  font-size: 0.62rem;
  font-weight: bold;
  line-height: 1.2;
}

@media (max-width: 600px) {
  .to-top {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}

/* =========================
   詳細ページ（menu.html / cat-*.html）
   ========================= */

/* 戻るリンク */
.back-link {
  display: inline-block;
  color: var(--brown-light);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--orange-dark);
}

.page-head {
  background: var(--pink-light);
  max-width: none;
  padding: 40px 20px;
}

.page-head-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.page-head h1 {
  font-size: 1.9rem;
  margin-bottom: 8px;
}

.page-head p {
  color: var(--brown-light);
  font-size: 0.95rem;
}

/* メニュー詳細 */
.menu-detail {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 35px;
  align-items: center;
  background: var(--white);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 35px;
  box-shadow: 0 4px 15px rgba(107, 79, 58, 0.08);
  scroll-margin-top: 90px;
}

.menu-detail img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 15px;
}

.menu-detail h2 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.menu-detail .price {
  color: var(--orange-dark);
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.menu-detail .desc {
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.menu-detail h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.menu-detail ul {
  list-style: none;
}

.menu-detail li {
  padding-left: 1.6em;
  position: relative;
  font-size: 0.9rem;
  color: var(--brown-light);
  margin-bottom: 6px;
}

.menu-detail li::before {
  content: "🐾";
  position: absolute;
  left: 0;
}

/* ねこ詳細 */
.cat-detail {
  text-align: center;
}

.cat-detail .main-photo {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 8px solid var(--pink);
  box-shadow: 0 8px 25px rgba(107, 79, 58, 0.15);
}

.cat-detail h1 {
  font-size: 2rem;
  margin-bottom: 5px;
}

.cat-detail .breed {
  color: var(--orange-dark);
  font-size: 0.95rem;
  margin-bottom: 35px;
}

.profile-table {
  width: 100%;
  max-width: 520px;
  margin: 0 auto 40px;
  border-collapse: collapse;
  text-align: left;
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(107, 79, 58, 0.08);
}

.profile-table th,
.profile-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--pink);
  font-size: 0.95rem;
}

.profile-table tr:last-child th,
.profile-table tr:last-child td {
  border-bottom: none;
}

.profile-table th {
  width: 35%;
  color: var(--brown-light);
  font-weight: normal;
  white-space: nowrap;
}

.cat-story {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: left;
}

.cat-story h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--pink);
}

.cat-story p {
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.cat-story .staff-note {
  background: var(--pink-light);
  border-radius: 15px;
  padding: 20px 25px;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ほかの子を見る */
.other-cats {
  background: var(--white);
  max-width: none;
}

.other-cats-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.other-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  max-width: 620px;
  margin: 0 auto;
}

.other-cat {
  text-decoration: none;
  color: var(--brown);
  transition: transform 0.2s;
}

.other-cat:hover {
  transform: translateY(-4px);
}

.other-cat img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  border: 4px solid var(--pink);
}

.other-cat span {
  display: block;
  font-size: 0.95rem;
  font-weight: bold;
}

.page-bottom {
  text-align: center;
  padding-bottom: 60px;
}

/* スマホ対応 */
@media (max-width: 600px) {
  /* ロゴは左、ハンバーガーボタンは右 */
  .header-inner {
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: flex;
  }

  /* メニューはふだん隠しておき、ボタンで開く */
  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 10px 0 6px;
    border-top: 1px solid var(--pink);
    margin-top: 12px;
  }

  header.nav-open .header-inner {
    flex-wrap: wrap;
  }

  header.nav-open nav {
    display: flex;
  }

  nav a {
    margin: 0;
    padding: 12px 8px;
    font-size: 1rem;
    border-bottom: 1px solid var(--pink-light);
  }

  /* スマホでは下線アニメを使わない（タップ後に残るため） */
  nav a::after {
    display: none;
  }

  nav a:last-child {
    border-bottom: none;
  }

  .logo {
    font-size: 1.2rem;
    gap: 9px;
  }

  .logo img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .hero {
    min-height: 400px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  section {
    padding: 45px 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery-grid img:first-child {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-grid img {
    height: 220px;
  }

  .menu-detail {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .menu-detail img {
    height: 220px;
  }

  .cat-detail .main-photo {
    width: 180px;
    height: 180px;
  }

  .cat-detail h1 {
    font-size: 1.6rem;
  }
}
