/* ============================================
   テラスターファーマシー 共通スタイル
   ブランドカラー: ロゴの紺青×グリーン×ゴールド
   ============================================ */
:root {
  --blue: #1c4da0;
  --blue-dark: #143a7f;
  --blue-light: #e9f1fb;
  --green: #45a51d;
  --green-dark: #357f16;
  --green-light: #edf7e6;
  --gold: #f0a824;
  --gold-light: #fdf3df;
  --ink: #243352;
  --gray: #5f6c84;
  --bg: #fbfdff;
  --line-green: #06c755;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(28, 77, 160, 0.10);
  --shadow-sm: 0 3px 12px rgba(28, 77, 160, 0.08);
  --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(--blue); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5ecf6;
}
.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: 46px; width: auto; }

.global-nav ul { display: flex; gap: 2px; list-style: none; }
.global-nav a {
  display: block; padding: 9px 14px; text-decoration: none;
  color: var(--ink); font-size: 0.92rem; 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(--blue-light); color: var(--blue); }

.header-cta {
  display: inline-block; margin-left: 10px; padding: 10px 20px;
  background: linear-gradient(135deg, var(--blue), #2a63c4);
  color: #fff !important; text-decoration: none;
  border-radius: 999px; font-size: 0.9rem; font-weight: 700;
  font-family: var(--font-round);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}
.header-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 26px; height: 3px; background: var(--blue);
  margin: 5px 0; border-radius: 2px; transition: transform 0.25s, opacity 0.25s;
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 88% 10%, rgba(240, 168, 36, 0.14), transparent 42%),
    radial-gradient(circle at 8% 88%, rgba(69, 165, 29, 0.12), transparent 45%),
    linear-gradient(150deg, #eaf2fc 0%, #f4f9fe 55%, #eef8e8 100%);
  padding: 76px 0 90px;
}
.hero::before {
  content: ""; position: absolute; right: -140px; top: -140px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(28, 77, 160, 0.08), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 44px; align-items: center; }
.hero .catch {
  font-family: var(--font-round);
  font-size: clamp(1.65rem, 4vw, 2.6rem); font-weight: 800;
  color: var(--blue-dark); line-height: 1.45; letter-spacing: 0.04em;
}
.hero .catch .accent { color: var(--green); }
.hero .sub { margin-top: 18px; font-size: 1.04rem; color: var(--ink); max-width: 620px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.badge {
  background: #fff; border: 1.5px solid var(--blue);
  color: var(--blue); font-size: 0.84rem; font-weight: 700;
  font-family: var(--font-round);
  padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow-sm);
}

.hero-photo { position: relative; }
.hero-photo img.shop {
  border-radius: 28px 28px 28px 90px;
  box-shadow: 0 14px 40px rgba(28, 77, 160, 0.22);
  border: 5px solid #fff;
}
.hero-mascot {
  position: absolute; right: -18px; bottom: -34px;
  width: clamp(110px, 14vw, 160px); height: auto;
  filter: drop-shadow(0 8px 14px rgba(28, 77, 160, 0.25));
  animation: float 3.6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ヒーロー下の波 */
.hero .wave {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1;
  display: block; width: 100%; height: 48px;
}

/* ---------- CTAボタン群 ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 28px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 1rem; font-family: var(--font-round);
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(28, 77, 160, 0.2); }
.btn-tel { background: linear-gradient(135deg, var(--blue), #2a63c4); color: #fff; }
.btn-line { background: var(--line-green); color: #fff; }
.btn-online { background: #fff; color: var(--blue); border: 2px solid var(--blue); }

/* ---------- セクション共通 ---------- */
section { padding: 72px 0; }
section.alt { background: linear-gradient(180deg, var(--blue-light), #f3f8fd); }
section.alt-green { background: linear-gradient(180deg, var(--green-light), #f5fbf0); }
.section-title {
  font-family: var(--font-round);
  font-size: clamp(1.45rem, 3vw, 1.85rem); font-weight: 800;
  color: var(--blue-dark); text-align: center; letter-spacing: 0.06em;
  position: relative;
}
.section-title::before {
  content: "✦"; display: block; color: var(--gold);
  font-size: 1.2rem; margin-bottom: 4px;
}
.section-title::after {
  content: ""; display: block; width: 52px; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--green));
  margin: 14px auto 0; border-radius: 2px;
}
.section-lead { text-align: center; margin: 18px auto 0; max-width: 640px; color: var(--gray); }

/* ---------- カード ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow-sm); border: 1px solid #eaf0f9;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-light), var(--green-light));
}
.card h3 {
  font-family: var(--font-round);
  font-size: 1.1rem; color: var(--blue-dark); margin: 14px 0 8px;
}
.card p { font-size: 0.93rem; color: var(--ink); }
.card .more { display: inline-block; margin-top: 12px; font-size: 0.88rem; font-weight: 700; color: var(--green-dark); }

/* ---------- 流れ(ステップ) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; counter-reset: step; }
.step {
  background: #fff; border-radius: var(--radius); padding: 26px 18px;
  text-align: center; box-shadow: var(--shadow-sm); position: relative;
  border: 1px solid #eaf0f9;
}
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #f7c05a);
  color: #fff; font-weight: 800; font-size: 1.15rem;
  font-family: var(--font-round);
  margin-bottom: 10px; box-shadow: 0 4px 10px rgba(240, 168, 36, 0.35);
}
.step h4 { font-family: var(--font-round); font-size: 0.99rem; color: var(--blue-dark); margin-bottom: 6px; }
.step p { font-size: 0.85rem; color: var(--gray); }

/* ---------- テーブル ---------- */
.info-table { width: 100%; border-collapse: collapse; margin-top: 28px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.info-table th, .info-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid #eef3fa; font-size: 0.95rem; vertical-align: top; }
.info-table th { background: var(--blue-light); color: var(--blue-dark); width: 32%; font-weight: 700; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }

/* ---------- 営業時間テーブル ---------- */
.hours-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); text-align: center; }
.hours-table th, .hours-table td { padding: 12px 8px; border-bottom: 1px solid #eef3fa; font-size: 0.92rem; }
.hours-table thead th { background: linear-gradient(135deg, var(--blue), #2a63c4); color: #fff; font-family: var(--font-round); }
.hours-table .closed { color: #c0392b; }
.hours-note { font-size: 0.85rem; color: var(--gray); margin-top: 10px; }

/* ---------- アクセス ---------- */
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; align-items: start; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 4px solid #fff; }
.map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- お知らせ ---------- */
.news-list { list-style: none; margin-top: 32px; }
.news-list li { display: flex; gap: 18px; padding: 15px 8px; border-bottom: 1px dashed #d8e3f2; font-size: 0.95rem; }
.news-list time { color: var(--gold); white-space: nowrap; font-size: 0.88rem; font-weight: 700; font-family: var(--font-round); }

/* ---------- ページタイトル(下層) ---------- */
.page-header {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 85% 30%, rgba(240, 168, 36, 0.12), transparent 45%),
    linear-gradient(140deg, #eaf2fc, #eef8e8);
  padding: 52px 0; text-align: center;
}
.page-header::after {
  content: ""; position: absolute; right: 4%; bottom: -26px;
  width: 150px; height: 150px;
  background: url("../images/logo-mark.png") no-repeat center / contain;
  opacity: 0.16;
}
.page-header h1 {
  font-family: var(--font-round);
  font-size: clamp(1.5rem, 3.5vw, 2rem); color: var(--blue-dark); letter-spacing: 0.08em;
}
.page-header .en {
  font-size: 0.8rem; color: var(--gold); font-weight: 800;
  letter-spacing: 0.25em; text-transform: uppercase; font-family: var(--font-round);
}

/* ---------- 強調ボックス ---------- */
.notice-box {
  background: var(--gold-light); border-left: 5px solid var(--gold);
  border-radius: 10px; padding: 18px 22px; margin-top: 26px; font-size: 0.93rem;
}
.point-list { list-style: none; margin-top: 22px; }
.point-list li { padding: 12px 0 12px 36px; position: relative; border-bottom: 1px dashed #d8e3f2; }
.point-list li::before {
  content: "✓"; position: absolute; left: 4px; top: 12px;
  width: 23px; height: 23px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), #5cbb35);
  color: #fff; font-size: 0.8rem; display: flex; align-items: center; justify-content: center;
}

/* ---------- 写真ギャラリー ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 44px; }
.photo-grid figure {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid #eaf0f9;
  transition: transform 0.2s, box-shadow 0.2s;
}
.photo-grid figure:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.photo-grid img { width: 100%; height: 260px; object-fit: cover; }
.photo-grid figcaption { padding: 13px 16px; font-size: 0.9rem; color: var(--gray); text-align: center; }

/* ---------- LINEセクション ---------- */
.line-panel {
  display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center;
  background: #fff; border-radius: var(--radius); padding: 30px 34px;
  box-shadow: var(--shadow-sm); border: 1px solid #eaf0f9;
  max-width: 720px; margin: 36px auto 0;
}
.line-panel .mascot { width: 130px; height: auto; }
.line-qr-box { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.line-qr-box img.qr {
  width: 110px; height: 110px; border-radius: 10px;
  border: 1px solid #e5ecf6; padding: 4px; background: #fff;
}

/* ---------- CTAバナー ---------- */
.cta-banner {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.10), transparent 40%),
    linear-gradient(120deg, var(--blue-dark), var(--blue) 55%, #2f6e1f);
  color: #fff; text-align: center; padding: 60px 20px;
}
.cta-banner h2 {
  font-family: var(--font-round);
  font-size: clamp(1.2rem, 2.8vw, 1.6rem); letter-spacing: 0.05em;
}
.cta-banner p { margin-top: 10px; opacity: 0.92; font-size: 0.95rem; }
.cta-banner .cta-row { justify-content: center; }
.cta-banner .btn-tel { background: #fff; color: var(--blue-dark); }

/* ---------- フッター ---------- */
.site-footer {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #112f63, var(--blue-dark));
  color: #d9e4f5; padding: 52px 0 0; font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-bottom: 40px; position: relative; z-index: 1; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 10px; font-family: var(--font-round); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #d9e4f5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-mascot {
  position: absolute; right: 18px; bottom: 44px;
  width: 110px; height: auto; opacity: 0.95;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}
.copyright { text-align: center; padding: 16px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.8rem; position: relative; z-index: 1; }

/* ---------- モバイル固定CTA ---------- */
.mobile-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 99;
  grid-template-columns: 1fr 1fr; box-shadow: 0 -2px 14px rgba(17, 47, 99, 0.18);
}
.mobile-cta a {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 6px; color: #fff; text-decoration: none; font-weight: 700;
  font-size: 0.92rem; font-family: var(--font-round);
}
.mobile-cta .m-tel { background: linear-gradient(135deg, var(--blue), #2a63c4); }
.mobile-cta .m-line { background: var(--line-green); }

/* ---------- スクロール表示アニメーション ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-mascot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
  .brand-logo { height: 38px; }
  .global-nav {
    position: fixed; inset: 0; top: 58px; background: #fff;
    transform: translateX(100%); transition: transform 0.25s; padding: 24px;
  }
  .global-nav.open { transform: translateX(0); }
  .global-nav ul { flex-direction: column; gap: 0; }
  .global-nav a { padding: 14px 10px; font-size: 1.05rem; border-bottom: 1px solid #eef3fa; border-radius: 0; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .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 { padding: 52px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-mascot { right: 2px; bottom: -26px; }
  .card-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .access-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-mascot { width: 84px; bottom: auto; top: 18px; }
  .line-panel { grid-template-columns: 1fr; text-align: center; padding: 26px 20px; }
  .line-panel .mascot { margin: 0 auto; }
  .line-qr-box { justify-content: center; }
  .mobile-cta { display: grid; }
  body { padding-bottom: 52px; }
  section { padding: 52px 0; }
  .info-table th { width: 38%; }
}
