/* =========================================================
   Petsalon&Hotel HamHam 共通スタイル
   ・スマホ表示を基準に作り、画面が広い時だけ @media で上書きします
   ・色や文字サイズは下の「:root」でまとめて変更できます
   ========================================================= */

:root {
  /* --- 色 --- */
  --blue: #5eb2d6;        /* メインの水色（背景・線・飾り用。文字には使わない） */
  --blue-dark: #23739a;   /* 文字・ボタン用の濃い水色 */
  --blue-light: #eaf6fb;  /* 背景用の薄い水色 */
  --wood: #8a5a2e;        /* アクセント文字（店内の木目のイメージ） */
  --beige: #f8f3ec;       /* 背景用のベージュ */
  --text: #3a3a3a;        /* 本文の文字色 */
  --text-sub: #666;       /* 補足の文字色 */
  --line: #06803f;        /* LINEボタン */
  --tel: #a0632f;         /* 電話ボタン */
  --insta: #c13584;       /* Instagramボタン（下部バー） */
  --white: #fff;

  /* --- 文字・レイアウト --- */
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN", "Hiragino Sans", "Meiryo", sans-serif;
  --radius: 16px;
  --max: 1080px;          /* PC表示時の最大幅 */
  --shadow: 0 4px 16px rgba(42, 126, 166, .10);
  --bar-h: 68px;          /* スマホ下部の予約バーの高さ */
  --header-h: 64px;       /* ヘッダーの高さ（768px以上は76px） */
}

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
  background: var(--white);
  font-weight: 500;
  padding-bottom: var(--bar-h); /* 下部の予約バーで文字が隠れないように */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
h1, h2, h3 { line-height: 1.5; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.3em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section--blue { background: var(--blue-light); }
.section--beige { background: var(--beige); }
.center { text-align: center; }
.note { font-size: 15px; color: var(--text-sub); }
.sp-only { display: inline; }

/* 見出し（英字の小見出し＋日本語） */
.heading { text-align: center; margin-bottom: 32px; }
.heading__en {
  display: block; font-size: 14px; letter-spacing: .15em;
  color: var(--blue-dark); text-transform: uppercase;
}
.heading__ja { font-size: 23px; margin: 0; }
.heading__ja::after {
  content: ""; display: block; width: 40px; height: 3px;
  background: var(--blue); border-radius: 2px; margin: 10px auto 0;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 56px; padding: 12px 28px;
  border-radius: 999px; border: 2px solid transparent;
  font-size: 18px; font-weight: 700; text-decoration: none;
  transition: opacity .2s, transform .2s;
}
.btn:hover { opacity: .85; transform: translateY(-1px); }
.btn--main { background: var(--blue-dark); color: var(--white); }
.btn--outline { background: var(--white); color: var(--blue-dark); border-color: var(--blue-dark); }
.btn--line { background: var(--line); color: var(--white); }
.btn--tel { background: var(--tel); color: var(--white); }
.btn--insta {
  background: var(--insta);
  color: var(--white);
}
.btn--block { display: flex; width: 100%; }
.btn svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ---------- 本文へ移動リンク（Tabキーで選んだ時だけ表示） ---------- */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--blue-dark); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 8px; }

/* ---------- ヘッダー ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #e6f1f6;
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); max-width: var(--max); margin: 0 auto; padding: 0 16px;
}
.header__logo img { height: 40px; width: auto; }
.header__reserve { display: none; } /* PCのみ表示 */

/* ハンバーガーボタン */
.menu-btn {
  width: 60px; height: 52px; border: none; white-space: nowrap; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--blue-dark); font-family: inherit; font-size: 11px; font-weight: 700;
}
.menu-btn span { display: block; width: 26px; height: 2px; background: currentColor; border-radius: 2px; transition: .3s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ナビゲーション（スマホ：開閉式） */
.nav {
  display: none;
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: var(--white); box-shadow: var(--shadow);
  max-height: calc(100vh - var(--header-h) - var(--bar-h)); overflow-y: auto;
}
.nav.is-open { display: block; }
.nav ul { list-style: none; margin: 0; padding: 8px 0; }
.nav a {
  display: block; padding: 14px 24px; font-size: 18px;
  color: var(--text); text-decoration: none; border-bottom: 1px solid #eef5f8;
}
.nav a[aria-current="page"] { color: var(--blue-dark); font-weight: 700; background: var(--blue-light); }

/* ---------- スマホ下部の固定予約バー ---------- */
.reserve-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(3, 1fr);
  height: var(--bar-h);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .08);
}
.reserve-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--white); text-decoration: none; font-size: 15px; font-weight: 700; line-height: 1.3;
}
.reserve-bar svg { width: 24px; height: 24px; }
.reserve-bar .is-line { background: var(--line); }
.reserve-bar .is-tel { background: var(--tel); }
.reserve-bar .is-insta { background: var(--insta); }

/* ---------- トップ：メインビジュアル ---------- */
.hero { position: relative; background: var(--blue-light); }
.hero__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; }
.hero__body { padding: 28px 20px 36px; text-align: center; }
.hero__catch { font-size: 25px; line-height: 1.6; margin-bottom: 12px; }
.hero__catch small { display: block; font-size: 17px; color: var(--blue-dark); margin-bottom: 6px; }
.hero__lead { color: var(--text-sub); }
.hero__btns { display: grid; gap: 12px; margin-top: 20px; }

/* 基本情報の帯 */
.info-strip { background: var(--blue-dark); color: var(--white); }
.info-strip ul {
  list-style: none; margin: 0 auto; padding: 14px 20px; max-width: var(--max);
  display: grid; gap: 4px; font-size: 16px;
}
.info-strip a { color: var(--white); }

/* ---------- カード ---------- */
.cards { display: grid; gap: 24px; }
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.card__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card__body { padding: 20px 22px 24px; }
.card__num {
  display: inline-block; font-size: 14px; color: var(--white); background: var(--blue-dark);
  border-radius: 999px; padding: 0 12px; margin-bottom: 8px;
}
.card__title { font-size: 20px; color: var(--blue-dark); }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; color: inherit; text-decoration: none; transition: transform .2s; }
a.card:hover { transform: translateY(-3px); }
.card__more { color: var(--blue-dark); font-weight: 700; }

/* 料金の目安 */
.price-from { font-size: 18px; font-weight: 700; color: var(--wood); }

/* ---------- Instagram 誘導 ---------- */
.insta {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px 22px; text-align: center;
}
.insta__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 20px 0 24px; }
.insta__grid img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; width: 100%; }
.insta__id { font-size: 20px; font-weight: 700; margin-bottom: 4px; }

/* ---------- 初めての方へ（帯） ---------- */
.first-band {
  display: grid; gap: 20px; align-items: center;
  background: var(--white); border: 2px dashed var(--blue); border-radius: var(--radius);
  padding: 28px 22px;
}
.first-band h2 { font-size: 22px; color: var(--blue-dark); }

/* ---------- 予約エリア（各ページ共通） ---------- */
.reserve { display: grid; gap: 18px; }
.reserve__item {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; text-align: center;
}
.reserve__item h3 { font-size: 20px; margin-bottom: 4px; }
.reserve__item p { font-size: 16px; color: var(--text-sub); margin-bottom: 14px; }
.reserve__item .reserve__tel { font-size: 26px; color: var(--text); margin-bottom: 10px; font-weight: 700; letter-spacing: .03em; }
.reserve-note { margin-top: 20px; font-size: 15px; color: var(--text-sub); text-align: center; }

/* ---------- フッター ---------- */
.footer { background: #3b6f88; color: var(--white); padding: 48px 0 24px; font-size: 16px; }
.footer a { color: var(--white); }
.footer__logo img { width: 220px; margin-bottom: 16px; }
.footer__info { list-style: none; padding: 0; margin: 0 0 24px; line-height: 1.9; }
.footer__nav { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: 1fr; gap: 0 16px; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer__sns a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__sns { margin-bottom: 24px; }
.nowrap { white-space: nowrap; }
.footer__license { font-size: 15px; line-height: 1.8; opacity: .9; border-top: 1px solid rgba(255,255,255,.3); padding-top: 16px; }
.footer__copy { text-align: center; font-size: 13px; margin-top: 16px; opacity: .8; }


/* =========================================================
   下層ページ用のパーツ
   ========================================================= */

/* ページタイトルの帯 */
.page-title { background: var(--blue-light); padding: 36px 20px 32px; text-align: center; }
.page-title__en { display: block; font-size: 14px; letter-spacing: .15em; color: var(--blue-dark); text-transform: uppercase; }
.page-title h1 { font-size: 26px; margin: 0; }
.page-title p { margin: 10px 0 0; color: var(--text-sub); font-size: 16px; }

/* 小見出し */
.sub-title {
  font-size: 21px; color: var(--blue-dark);
  border-left: 5px solid var(--blue); padding-left: 12px; margin: 40px 0 16px;
}
.sub-title:first-child { margin-top: 0; }
.lead { max-width: 760px; margin: 0 auto 24px; }

/* 料金表 */
.table-wrap { overflow-x: auto; }
.price-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); font-size: 16px;
}
.price-table th, .price-table td { padding: 12px 10px; border-bottom: 1px solid #e3eff5; vertical-align: middle; }
.price-table thead th { background: var(--blue-dark); color: var(--white); font-weight: 700; text-align: center; white-space: nowrap; }
.price-table tbody th { text-align: left; font-weight: 500; line-height: 1.6; background: #fbfdfe; }
.price-table td { text-align: right; font-weight: 700; white-space: nowrap; }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: none; }
.price-table .yen { font-size: 13px; font-weight: 500; margin-left: 1px; }
.price-table .none { color: var(--text-sub); font-weight: 500; font-size: 14px; }
.price-table .breed { display: inline-block; margin-right: .9em; }
/* スマホ：1行を「犬種名」＋「シャンプー／カット」のカード型で表示 */
@media (max-width: 767px) {
  .price-table thead { display: none; }
  .price-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #d5e7ef; }
  .price-table tbody th { grid-column: 1 / -1; border-bottom: none; padding: 14px 16px 4px; background: none; font-weight: 700; }
  .price-table td { border-bottom: none; text-align: left; padding: 4px 16px 14px; font-size: 18px; }
  .price-table td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 500; color: var(--text-sub); }
  .price-table tbody tr:nth-child(even) { background: #f6fbfd; }
}
.tax { text-align: right; font-size: 14px; color: var(--text-sub); margin: 6px 0 0; }

/* 注意書きの箱 */
.notice {
  background: var(--beige); border-radius: var(--radius); padding: 20px 22px; margin-top: 20px; font-size: 16px;
}
.notice ul { margin: 0; padding-left: 1.2em; }
.notice li + li { margin-top: 4px; }
.notice--blue { background: var(--blue-light); }

/* 所要時間などの数字ボックス */
.time-box { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.time-box div { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 10px; text-align: center; }
.time-box span { display: block; font-size: 15px; color: var(--text-sub); }
.time-box strong { font-size: 22px; color: var(--blue-dark); }

/* オプションのラベル */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { background: var(--blue-dark); color: var(--white); border-radius: 999px; padding: 6px 18px; font-weight: 700; font-size: 16px; }

/* 写真グリッド（キャプション付き） */
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; }
.photo-grid figcaption { font-size: 15px; text-align: center; margin-top: 6px; }
.photo-grid--wide img { aspect-ratio: 4 / 3; }

/* 料金カード（ホテル・一時預かり） */
.price-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.price-card h3 { background: var(--blue-dark); color: var(--white); text-align: center; padding: 12px; margin: 0; font-size: 20px; }
.price-card dl { margin: 0; padding: 8px 22px 16px; }
.price-card dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px dashed #cfe3ec; }
.price-card dl div:last-child { border-bottom: none; }
.price-card dt { font-weight: 500; }
.price-card dd { margin: 0; font-size: 22px; font-weight: 700; color: var(--text); white-space: nowrap; }
.price-card dd small { font-size: 14px; color: var(--text-sub); font-weight: 500; display: block; text-align: right; }

/* 情報の表（アクセス・ホテルなど） */
.info-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 16px; }
.info-table th, .info-table td { padding: 14px 12px; border-bottom: 1px solid #e3eff5; text-align: left; vertical-align: top; }
.info-table th { width: 1%; white-space: nowrap; color: var(--blue-dark); font-weight: 700; background: #fbfdfe; }

/* スマホ：見出しと内容を縦に並べる */
@media (max-width: 767px) {
  .info-table th, .info-table td { display: block; width: auto; }
  .info-table th { padding: 12px 14px 2px; border-bottom: none; background: none; }
  .info-table td { padding: 2px 14px 14px; }
}

/* スタッフ紹介 */
.staff { display: grid; gap: 24px; }
.staff__photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.staff__role { color: var(--blue-dark); font-size: 15px; margin: 0; }
.staff__name { font-size: 26px; margin: 0 0 12px; }
.staff__profile { list-style: none; padding: 18px 20px; margin: 0 0 20px; background: var(--blue-light); border-radius: var(--radius); }
.staff__profile li + li { margin-top: 6px; }
.staff__profile b { color: var(--blue-dark); }
.message { background: var(--beige); border-radius: var(--radius); padding: 24px 22px; }
.message h3 { font-size: 19px; color: var(--wood); }

/* ご来店の流れ */
.flow { list-style: none; padding: 0; margin: 0; counter-reset: flow; }
.flow > li {
  position: relative; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 20px 20px 72px; counter-increment: flow;
}
.flow > li + li { margin-top: 28px; }
.flow > li + li::after {
  content: ""; position: absolute; left: 50%; top: -22px; transform: translateX(-50%);
  border: 10px solid transparent; border-top: 12px solid var(--blue); border-bottom: 0;
}
.flow > li::before {
  content: counter(flow); position: absolute; left: 18px; top: 20px;
  width: 40px; height: 40px; border-radius: 50%; background: var(--blue-dark); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px;
}
.flow h3 { font-size: 19px; color: var(--blue-dark); margin-bottom: 4px; }
.flow p { margin: 0; font-size: 16px; }

/* よくある質問（タップで開閉。JS不要） */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--white); border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 12px; }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 48px 18px 52px; font-weight: 700; line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 18px; top: 16px; color: var(--blue-dark); font-size: 22px; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 14px; font-size: 26px; color: var(--blue-dark); }
.faq details[open] summary::after { content: "−"; }
.faq .answer { position: relative; padding: 0 20px 18px 52px; font-size: 16px; }
.faq .answer::before { content: "A"; position: absolute; left: 18px; top: -4px; color: var(--wood); font-size: 22px; font-weight: 700; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Googleマップ */
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map iframe { display: block; width: 100%; height: 340px; border: 0; }
.btn-row { display: grid; gap: 12px; margin-top: 16px; }

/* 予約方法の比較表 */
.compare th { width: 1%; }

@media (min-width: 768px) {
  .page-title { padding: 56px 20px 48px; }
  .page-title h1 { font-size: 34px; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .photo-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
  .time-box { max-width: 560px; margin: 0 auto; }
  .staff { grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
  .map iframe { height: 440px; }
  .btn-row { grid-template-columns: 1fr 1fr; }
  .cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
  .price-table { font-size: 17px; }
  .price-table td { width: 8.5em; text-align: center; }
  .price-table tbody th { padding-left: 20px; }
}

/* =========================================================
   タブレット以上（768px〜）
   ========================================================= */
@media (min-width: 768px) {
  body { font-size: 18px; padding-bottom: 0; }
  .sp-only { display: none; }
  .reserve-bar { display: none; } /* PCでは下部バーを消し、ヘッダーのボタンを使う */
  .section { padding: 80px 0; }
  .heading__ja { font-size: 30px; }

  :root { --header-h: 76px; }
  .nav { max-height: calc(100vh - var(--header-h)); } /* 768px以上は下部バーがない */
  .header__logo img { height: 46px; }
  .header__right { display: flex; align-items: center; }
  .header__reserve { display: inline-flex; min-height: 46px; padding: 8px 20px; font-size: 16px; margin-left: 8px; }

  .hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; }
  .hero__img { aspect-ratio: auto; height: 100%; min-height: 480px; order: 2; }
  .hero__body { padding: 48px 40px; text-align: left; }
  .hero__catch { font-size: 32px; }
  .hero__btns { grid-template-columns: 1fr 1fr; }

  .info-strip ul { grid-template-columns: repeat(3, auto); justify-content: center; gap: 32px; }

  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--2 { grid-template-columns: repeat(2, 1fr); }
  .reserve { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
  .insta__grid { grid-template-columns: repeat(6, 1fr); }
  .first-band { grid-template-columns: 1fr auto; padding: 32px 40px; }

  .footer__nav { grid-template-columns: repeat(3, auto); justify-content: start; }
}

/* =========================================================
   PC（1200px〜）：ナビゲーションを横並びで常に表示
   ========================================================= */
@media (min-width: 1200px) {
  .menu-btn { display: none; }
  .header__inner { max-width: 1240px; }
  .nav { margin-left: auto; }
  .nav .nav__home { display: none; } /* PCではロゴがトップへのリンクを兼ねる */
  .nav {
    display: block; position: static; box-shadow: none; background: none;
    max-height: none; overflow: visible;
  }
  .nav ul { display: flex; padding: 0; }
  .nav a { border: none; padding: 8px 9px; font-size: 15px; border-radius: 8px; white-space: nowrap; }
  .nav a:hover { color: var(--blue-dark); }
}

/* 画面には表示せず読み上げソフト用に残す */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
