/* ========== やまざき薬局 共通スタイル ========== */

:root {
  --green: #7BA89F;
  --green-deep: #5C8A80;
  --green-soft: #A8C4BC;
  --green-bg: #E8EFEC;
  --orange: #D88860;
  --orange-deep: #B86A44;
  --orange-soft: #EBB08F;
  --ivory: #FAF7F0;
  --ivory-deep: #F2EDE0;
  --paper: #FDFBF6;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --ink-mute: #6b7280;
  --line: #D9D2C2;

  --serif: "Zen Old Mincho", "Noto Serif JP", serif;
  --sans: "Noto Sans JP", system-ui, sans-serif;

  --max: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  /* かすかな紙テクスチャ */
  background-image:
    radial-gradient(circle at 20% 10%, rgba(216, 136, 96, 0.025) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(123, 168, 159, 0.03) 0%, transparent 40%);
}

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

a { color: inherit; text-decoration: none; }

/* ========== ヘッダー ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__mark { width: 44px; height: 44px; flex-shrink: 0; }
.brand__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.brand__sub {
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: all .2s;
  white-space: nowrap;
}
.nav a:hover { color: var(--green-deep); background: var(--green-bg); }
.nav a.is-active { color: var(--green-deep); font-weight: 600; }
.header-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: white;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: background .2s;
}
.header-tel:hover { background: var(--green-deep); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); padding: 8px; border-radius: 8px; cursor: pointer; }
.menu-btn svg { display: block; }

@media (max-width: 960px) {
  .nav, .header-tel { display: none; }
  .menu-btn { display: inline-flex; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    gap: 0;
    align-items: stretch;
  }
  .nav.is-open a { padding: 14px 4px; border-bottom: 1px dashed var(--line); border-radius: 0; }
}

/* ========== フッター ========== */
.site-footer {
  background: var(--ink);
  color: #cbd5d2;
  padding: 56px 24px 28px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background: repeating-linear-gradient(90deg,
    var(--green) 0 24px,
    var(--orange) 24px 36px,
    var(--green) 36px 60px,
    var(--ivory) 60px 64px);
  opacity: .9;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}
.footer__brand .brand__name { color: white; }
.footer__brand .brand__sub { color: #9ca3a8; }
.footer__brand p { font-size: 13px; line-height: 1.9; margin-top: 16px; color: #b5bcb9; }
.footer__col h4 {
  font-family: var(--serif);
  font-size: 15px;
  color: white;
  margin-bottom: 14px;
  font-weight: 500;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer__col a { font-size: 13px; color: #b5bcb9; transition: color .2s; }
.footer__col a:hover { color: var(--green-soft); }
.footer__copy {
  max-width: var(--max);
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid #374151;
  font-size: 12px;
  color: #9ca3a8;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ========== 共通要素 ========== */
.section { padding: 88px 24px; }
.container { max-width: var(--max); margin: 0 auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--green-deep);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--green-deep);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.4;
  font-weight: 500;
  margin-top: 12px;
  letter-spacing: 0.02em;
}
.section-title .ja-mark {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.section-title .ja-mark::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px;
  bottom: -2px;
  height: 8px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'><path d='M2 4 Q 50 1, 100 4 T 198 4' stroke='%23D88860' stroke-width='2.5' fill='none' stroke-linecap='round' opacity='0.6'/></svg>") no-repeat center / 100% 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: all .25s ease;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary { background: var(--green); color: white; }
.btn--primary:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(92, 138, 128, 0.5); }
.btn--accent { background: var(--orange); color: white; }
.btn--accent:hover { background: var(--orange-deep); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(184, 106, 68, 0.5); }
.btn--ghost { background: white; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-deep); }

/* hand-drawn divider */
.hand-divider {
  display: block;
  width: 80px;
  height: 12px;
  margin: 24px 0;
}
