/* ============================================
   株式会社KALCK / かわかみ薬局 共通スタイル
   ブランドカラー: ロゴのオレンジゴールド × ブラウン
   ============================================ */
:root {
  --brand: #e3941f;        /* メイン: ロゴのオレンジゴールド */
  --brand-dark: #c5781a;
  --brand-light: #fdf1da;
  --accent: #6f4e2e;       /* アクセント: ロゴ文字のブラウン */
  --accent-dark: #54391f;
  --accent-light: #f4ece2;
  --gold: #f0a824;
  --gold-light: #fdf3df;
  --ink: #3d3026;          /* 本文テキスト（茶系インク） */
  --gray: #7a6e62;
  --bg: #fffdf8;           /* 温かみのある白背景 */
  --green: #5aa84a;        /* 補助（在宅・健康系アイコン） */
  --radius: 18px;
  --shadow: 0 6px 24px rgba(111, 78, 46, 0.12);
  --shadow-sm: 0 3px 12px rgba(111, 78, 46, 0.09);
  --font-round: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); }
h1, h2, h3, h4 { font-family: var(--font-round); line-height: 1.4; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; }
section.alt { background: var(--accent-light); }

.section-title {
  font-size: 1.7rem; color: var(--accent-dark); text-align: center;
  margin-bottom: 8px; position: relative; padding-bottom: 14px;
}
.section-title::after {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  margin: 12px auto 0;
}
.section-lead { text-align: center; color: var(--gray); margin-bottom: 32px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #efe3d2;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; max-width: 1200px; margin: 0 auto;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 44px; width: auto; }

.global-nav ul { display: flex; gap: 2px; list-style: none; }
.global-nav a {
  display: block; padding: 9px 13px; text-decoration: none;
  color: var(--ink); font-size: 0.9rem; font-weight: 600;
  font-family: var(--font-round);
  border-radius: 999px; transition: background 0.2s, color 0.2s;
}
.global-nav a:hover, .global-nav a[aria-current="page"] { background: var(--brand-light); color: var(--brand-dark); }

.header-cta {
  display: inline-block; margin-left: 10px; padding: 10px 18px;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  color: #fff !important; text-decoration: none;
  border-radius: 999px; font-size: 0.88rem; font-weight: 700;
  font-family: var(--font-round); white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

/* ハンバーガー */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; height: 3px; background: var(--accent); border-radius: 3px; transition: 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- ヒーロー ---------- */
.hero { position: relative; background: linear-gradient(160deg, var(--brand-light), #fff7ea); padding-top: 40px; overflow: hidden; }
.hero-inner { padding-bottom: 50px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; }
.catch { font-size: 2.3rem; color: var(--accent-dark); font-weight: 800; }
.catch .accent { color: var(--brand-dark); }
.hero .sub { margin-top: 18px; color: var(--ink); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.badge {
  background: #fff; border: 1px solid #f0dcbe; color: var(--brand-dark);
  font-size: 0.8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  font-family: var(--font-round);
}
.hero-photo img.shop { border-radius: var(--radius); box-shadow: var(--shadow); }
.wave { display: block; width: 100%; height: 48px; margin-top: -1px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 22px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-family: var(--font-round); font-size: 0.95rem;
  box-shadow: var(--shadow-sm); transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-tel { background: linear-gradient(135deg, var(--brand), var(--gold)); color: #fff; }
.btn-online { background: linear-gradient(135deg, var(--green), #4a9a3c); color: #fff; }
.btn-ghost { background: #fff; color: var(--brand-dark); border: 2px solid var(--brand); box-shadow: none; }

/* ---------- お知らせ ---------- */
.news-list { list-style: none; max-width: 760px; margin: 0 auto; }
.news-list li { display: flex; gap: 16px; padding: 14px 4px; border-bottom: 1px dashed #ead9c0; flex-wrap: wrap; }
.news-list time { color: var(--brand-dark); font-weight: 700; font-family: var(--font-round); white-space: nowrap; }

/* ---------- カードグリッド ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid #f1e4d2; border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm); text-align: center;
}
.card .icon { font-size: 2.2rem; margin-bottom: 10px; }
.card h3 { color: var(--accent-dark); font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--gray); font-size: 0.92rem; text-align: left; }
.card .more { display: inline-block; margin-top: 14px; color: var(--brand-dark); font-weight: 700; text-decoration: none; font-size: 0.9rem; }

/* ---------- 店舗カード（複数店舗トップ用） ---------- */
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.store-card {
  background: #fff; border: 1px solid #f1e4d2; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.store-card img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.store-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.store-card h3 { color: var(--accent-dark); font-size: 1.2rem; }
.store-card .addr { color: var(--gray); font-size: 0.88rem; margin: 8px 0 4px; }
.store-card .tel { font-weight: 700; color: var(--brand-dark); font-family: var(--font-round); }
.store-card .more { margin-top: auto; padding-top: 14px; }

/* ---------- ステップ ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { background: #fff; border: 1px solid #f1e4d2; border-radius: var(--radius); padding: 22px 18px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; margin-bottom: 10px;
  background: linear-gradient(135deg, var(--brand), var(--gold)); color: #fff; font-weight: 800; font-family: var(--font-round);
}
.step h4 { color: var(--accent-dark); margin-bottom: 6px; }
.step p { color: var(--gray); font-size: 0.88rem; }

/* ---------- 営業時間・アクセス ---------- */
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.hours-table, .info-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.hours-table th, .hours-table td { border: 1px solid #f0e2cf; padding: 9px 6px; text-align: center; font-size: 0.9rem; }
.hours-table thead th { background: var(--brand-light); color: var(--accent-dark); }
.hours-table td.closed { color: #c0392b; font-weight: 700; }
.info-table { margin-top: 18px; }
.info-table th, .info-table td { border-bottom: 1px solid #f0e2cf; padding: 11px 14px; text-align: left; font-size: 0.92rem; vertical-align: top; }
.info-table th { background: var(--accent-light); color: var(--accent-dark); width: 32%; white-space: nowrap; }
.hours-note { color: var(--gray); font-size: 0.84rem; margin-top: 10px; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- 汎用本文ブロック ---------- */
.breadcrumb { font-size: 0.82rem; color: var(--gray); margin-bottom: 10px; }
.breadcrumb a { color: var(--brand-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--gray); }
.page-head { background: linear-gradient(160deg, var(--brand-light), #fff7ea); padding: 40px 0; text-align: center; }
.page-head h1 { font-size: 1.9rem; color: var(--accent-dark); }
.page-head p { color: var(--gray); margin-top: 8px; }
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { color: var(--accent-dark); font-size: 1.4rem; margin: 34px 0 12px; }
.prose h3 { color: var(--brand-dark); font-size: 1.1rem; margin: 22px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { margin: 8px 0 8px 1.3em; }
.notice-box { background: var(--gold-light); border: 1px solid #f0dcae; border-radius: 12px; padding: 14px 18px; color: var(--accent-dark); font-size: 0.9rem; margin-top: 20px; }
.todo { background: #fff4f4; border: 1px dashed #e0a0a0; color: #a33; padding: 2px 6px; border-radius: 5px; font-size: 0.85em; }

.lead-photo { border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 auto 8px; }
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 8px; }
.photo-grid figure { margin: 0; }
.photo-grid img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.photo-grid figcaption { text-align: center; color: var(--gray); font-size: 0.85rem; margin-top: 6px; }

/* ---------- 代表挨拶 ---------- */
.greeting { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.greeting img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.greeting .sign { text-align: right; font-family: var(--font-round); color: var(--accent-dark); font-weight: 700; margin-top: 12px; }

/* ---------- CTAバナー ---------- */
.cta-banner { background: linear-gradient(135deg, var(--brand), var(--gold)); color: #fff; text-align: center; padding: 46px 20px; }
.cta-banner h2 { font-size: 1.5rem; }
.cta-banner p { margin: 8px 0 4px; opacity: 0.95; }
.cta-banner .btn-tel { background: #fff; color: var(--brand-dark); }
.cta-banner .btn-online { background: rgba(255,255,255,0.18); color: #fff; border: 2px solid #fff; box-shadow: none; }
.cta-banner .cta-row { justify-content: center; }
.cta-banner { position: relative; }
.cta-mascot { height: 130px; width: auto; margin: 0 auto 10px; animation: float 3.4s ease-in-out infinite; filter: drop-shadow(0 8px 12px rgba(0,0,0,0.12)); }

/* ---------- フッター ---------- */
.site-footer { background: var(--accent-dark); color: #f3e8da; padding: 44px 0 80px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 12px; }
.site-footer p { font-size: 0.9rem; opacity: 0.9; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #f3e8da; text-decoration: none; font-size: 0.9rem; opacity: 0.9; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.copyright { text-align: center; margin-top: 30px; font-size: 0.82rem; opacity: 0.7; }

/* ---------- モバイル固定CTA ---------- */
.mobile-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; }
.mobile-cta a { flex: 1; text-align: center; padding: 14px 0; color: #fff; text-decoration: none; font-weight: 700; font-family: var(--font-round); font-size: 0.95rem; }
.mobile-cta .m-tel { background: var(--brand-dark); }
.mobile-cta .m-online { background: var(--green); }

/* ---------- スクロール表示アニメ ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.shown { opacity: 1; transform: none; }

/* ============================================
   ポップ＆動的演出（マスコット かわっち / アニメ）
   ============================================ */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floatSlow { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-22px) rotate(6deg); } }
@keyframes wiggle { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes popIn { 0% { opacity: 0; transform: scale(0.6) translateY(20px); } 70% { transform: scale(1.06) translateY(-4px); } 100% { opacity: 1; transform: none; } }
@keyframes blobMorph { 0%,100% { border-radius: 42% 58% 60% 40% / 50% 45% 55% 50%; } 50% { border-radius: 60% 40% 45% 55% / 55% 60% 40% 45%; } }
@keyframes bobPop { 0% { opacity: 0; transform: translateY(14px) scale(0.9); } 100% { opacity: 1; transform: none; } }

.mascot-float { animation: float 3.6s ease-in-out infinite; transform-origin: center bottom; }
.mascot-wiggle { animation: wiggle 2.4s ease-in-out infinite; transform-origin: 50% 90%; }

/* ヒーローをポップに */
.hero { background: radial-gradient(120% 90% at 80% 0%, #fff3da 0%, var(--brand-light) 45%, #fff7ea 100%); }
.hero-stage { position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 400px; }
.hero-mascot { height: 400px; width: auto; max-width: 100%; filter: drop-shadow(0 14px 22px rgba(111,78,46,0.18)); position: relative; z-index: 2; }

/* ふきだし */
.speech {
  position: absolute; top: 4%; right: 0; z-index: 3;
  background: #fff; border: 3px solid var(--brand); color: var(--accent-dark);
  font-family: var(--font-round); font-weight: 700; font-size: 0.92rem;
  padding: 12px 16px; border-radius: 18px; box-shadow: var(--shadow);
  animation: bobPop 0.6s ease both, float 3.2s ease-in-out 0.6s infinite;
}
.speech::after { content: ""; position: absolute; left: 26px; bottom: -14px; border: 8px solid transparent; border-top-color: var(--brand); }
.speech::before { content: ""; position: absolute; left: 28px; bottom: -9px; border: 6px solid transparent; border-top-color: #fff; z-index: 1; }

/* ふわふわ浮かぶ装飾ブロブ＆アイコン */
.blob { position: absolute; z-index: 1; background: var(--gold-light); animation: blobMorph 8s ease-in-out infinite, floatSlow 6s ease-in-out infinite; }
.blob.b1 { width: 120px; height: 120px; left: -10px; top: 30px; background: #ffe6bd; }
.blob.b2 { width: 80px; height: 80px; right: 8%; bottom: 18%; background: #ffd9e0; animation-delay: -2s; }
.float-emoji { position: absolute; font-size: 1.8rem; z-index: 2; animation: floatSlow 5s ease-in-out infinite; }
.float-emoji.e1 { left: 6%; top: 22%; animation-delay: -1s; }
.float-emoji.e2 { right: 4%; top: 12%; animation-delay: -2.5s; }
.float-emoji.e3 { left: 12%; bottom: 14%; animation-delay: -3.5s; }

/* バッジをポップに（弾む） */
.badge { transition: transform 0.2s; }
.badge:hover { transform: translateY(-3px) scale(1.05); }

/* カード・店舗カードをぷにっと */
.card, .store-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.card:hover, .store-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .icon { display: inline-block; animation: float 3s ease-in-out infinite; }

/* セクションの仕切りにかわっち */
.mascot-divider { text-align: center; margin: -10px 0 6px; }
.mascot-divider img { height: 110px; width: auto; display: inline-block; animation: float 3.4s ease-in-out infinite; filter: drop-shadow(0 8px 12px rgba(111,78,46,0.15)); }

/* pop-in（JSのrevealをポップに上書き） */
.reveal { opacity: 0; transform: translateY(24px) scale(0.96); transition: opacity 0.55s ease, transform 0.55s cubic-bezier(.34,1.56,.64,1); }
.reveal.shown { opacity: 1; transform: none; }

/* モバイル：かわっちのフローティングヘルパー */
.mascot-fab { position: fixed; right: 10px; bottom: 64px; z-index: 95; display: none; animation: float 3s ease-in-out infinite; }
.mascot-fab img { height: 92px; width: auto; filter: drop-shadow(0 6px 8px rgba(111,78,46,0.22)); }

@media (prefers-reduced-motion: reduce) {
  .mascot-float, .mascot-wiggle, .speech, .blob, .float-emoji, .card .icon, .mascot-divider img, .mascot-fab { animation: none !important; }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .catch { font-size: 1.8rem; }
  .card-grid, .store-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .access-grid { grid-template-columns: 1fr; }
  .greeting { grid-template-columns: 1fr; }
  .greeting img { max-width: 220px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .photo-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .global-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid #efe3d2;
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .global-nav.open { max-height: 420px; box-shadow: var(--shadow); }
  .global-nav ul { flex-direction: column; padding: 8px; }
  .global-nav a { padding: 12px 14px; }
  .mobile-cta { display: flex; }

  .hero-stage { min-height: 280px; margin-top: 10px; }
  .speech { font-size: 0.82rem; padding: 9px 12px; right: 4%; }
  .blob.b1 { width: 90px; height: 90px; }
  .mascot-fab { display: flex; }
}
