/* ============================================
   吉川ホーム薬局 サイト共通スタイル
   白背景クリーン系 / フラット / 角丸
   ============================================ */
:root {
  --green: #1a7f5c;
  --green-dark: #14654a;
  --green-pale: #e8f5f0;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --line: #e5e7eb;
  --bg-soft: #f7faf9;
  --radius: 14px;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.8;
  font-size: 16px;
}

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

a { color: var(--green); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 20px;
  max-width: var(--maxw); margin: 0 auto;
  flex-wrap: wrap;
}
.brand { display: flex; flex-direction: column; text-decoration: none; }
.brand-name { font-size: 1.25rem; font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.brand-sub { font-size: .72rem; color: var(--ink-soft); }
.gnav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.gnav a {
  text-decoration: none; color: var(--ink-soft);
  font-size: .9rem; font-weight: 600;
  padding: 8px 12px; border-radius: 8px;
}
.gnav a:hover { background: var(--green-pale); color: var(--green-dark); }
.gnav .nav-tel {
  background: var(--green); color: #fff; border-radius: 999px;
  padding: 8px 18px; font-weight: 700;
}
.gnav .nav-tel:hover { background: var(--green-dark); color: #fff; }

/* ---------- ヒーロー ---------- */
.hero {
  background: linear-gradient(180deg, var(--green-pale) 0%, #fff 100%);
  padding: 72px 0 56px;
}
.hero-badge {
  display: inline-block; background: #fff; border: 1px solid var(--green);
  color: var(--green-dark); font-size: .82rem; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  line-height: 1.45; font-weight: 800; letter-spacing: .02em;
}
.hero h1 .accent { color: var(--green); }
.hero p.lead {
  margin-top: 18px; font-size: 1.05rem; color: var(--ink-soft); max-width: 620px;
}
.hero-cta { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-weight: 700; border-radius: 999px;
  padding: 14px 30px; font-size: 1rem; transition: .15s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { border: 2px solid var(--green); color: var(--green-dark); background: #fff; }
.btn-outline:hover { background: var(--green-pale); }
.btn .small { font-size: .75rem; font-weight: 600; opacity: .85; }
.btn-line {
  background: #06C755; color: #fff;
  padding: 10px 22px; font-size: .92rem; margin-top: 14px;
}
.btn-line:hover { background: #05a648; }

/* ---------- セクション共通 ---------- */
section { padding: 64px 0; }
section.alt { background: var(--bg-soft); }
.sec-label {
  color: var(--green); font-size: .82rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
}
h2.sec-title {
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  font-weight: 800; margin: 6px 0 14px; letter-spacing: .02em;
}
.sec-desc { color: var(--ink-soft); max-width: 720px; margin-bottom: 36px; }

/* ---------- カード ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px;
}
.card .icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--green-pale); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { font-size: .92rem; color: var(--ink-soft); }

/* ---------- ヒーロー写真・お知らせ・カード写真 ---------- */
.hero-grid { display: flex; align-items: center; gap: 40px; }
.hero-text { flex: 1.2; min-width: 0; }
.hero-photo { flex: 1; min-width: 0; }
.hero-photo img { border-radius: var(--radius); box-shadow: 0 8px 28px rgba(20, 101, 74, .18); }
@media (max-width: 820px) {
  .hero-grid { flex-direction: column; }
  .hero-photo { width: 100%; }
}

.news-sec { padding: 40px 0 24px; }
.news-list { list-style: none; }
.news-list li {
  display: flex; gap: 18px; flex-wrap: wrap;
  padding: 12px 4px; border-bottom: 1px solid var(--line);
  font-size: .93rem;
}
.news-list time { color: var(--green-dark); font-weight: 700; flex-shrink: 0; }

.card-photo {
  margin-top: 14px; border-radius: 10px; width: 100%;
  aspect-ratio: 4 / 3; object-fit: cover;
}
.card-photo.contain { object-fit: contain; background: #fff; }
.card-photo.square { aspect-ratio: 1 / 1; }

.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.access-photo { margin: 0; }
.access-photo img { border-radius: var(--radius); }
.access-photo figcaption { font-size: .84rem; color: var(--ink-soft); margin-top: 10px; }
@media (max-width: 820px) { .access-grid { grid-template-columns: 1fr; } }

/* ---------- 薬剤師紹介 ---------- */
.staff-card { text-align: center; }
.staff-card .avatar {
  width: 104px; height: 104px; border-radius: 50%;
  border: 3px solid var(--green-pale);
  background: var(--green-pale); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  overflow: hidden;
}
.staff-card .avatar svg { width: 48px; height: 48px; }
.staff-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.staff-card .staff-role {
  font-size: .78rem; font-weight: 700; color: var(--green-dark);
  letter-spacing: .08em; margin-bottom: 2px;
}
.staff-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.staff-card p { text-align: left; }
.staff-card .staff-role, .staff-card h3 { text-align: center; }
.cred-badges { display: flex; flex-direction: column; gap: 6px; align-items: center; margin-bottom: 12px; }
.cred {
  display: inline-block; background: var(--green-pale); color: var(--green-dark);
  font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px;
}

/* ---------- 在宅バナー ---------- */
.zaitaku-banner {
  background: var(--green); color: #fff; border-radius: var(--radius);
  padding: 40px 32px; display: flex; align-items: center; gap: 28px;
  flex-wrap: wrap; justify-content: space-between;
}
.zaitaku-banner h3 { font-size: 1.4rem; margin-bottom: 6px; }
.zaitaku-banner p { opacity: .92; font-size: .95rem; max-width: 560px; }
.zaitaku-banner .btn { background: #fff; color: var(--green-dark); flex-shrink: 0; }
.zaitaku-banner .btn:hover { background: var(--green-pale); }

/* ---------- ステップ ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 800; font-size: 1.1rem;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { font-size: .9rem; color: var(--ink-soft); }

/* ---------- テーブル ---------- */
.info-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.info-table th, .info-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
.info-table th { width: 32%; background: var(--bg-soft); font-weight: 700; color: var(--ink); vertical-align: top; }

.hours-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hours-table th, .hours-table td { padding: 12px 10px; text-align: center; border: 1px solid var(--line); font-size: .92rem; }
.hours-table thead th { background: var(--green); color: #fff; font-weight: 700; }
.hours-table .closed { color: #b91c1c; }
.note { font-size: .84rem; color: var(--ink-soft); margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: .98rem;
  list-style: none; display: flex; gap: 12px; align-items: baseline;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q"; color: var(--green); font-weight: 800; flex-shrink: 0; }
.faq-item .faq-a { padding: 0 22px 18px 46px; color: var(--ink-soft); font-size: .93rem; }

/* ---------- CTA ---------- */
.cta-block {
  background: var(--green-pale); border-radius: var(--radius);
  padding: 48px 32px; text-align: center;
}
.cta-block h2 { font-size: 1.5rem; margin-bottom: 10px; }
.cta-block p { color: var(--ink-soft); margin-bottom: 24px; }
.cta-tel {
  font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 800;
  color: var(--green-dark); text-decoration: none; letter-spacing: .04em;
  display: inline-block;
}
.cta-hours { font-size: .88rem; color: var(--ink-soft); margin-top: 6px; }

/* ---------- ページヘッダー(下層) ---------- */
.page-head { background: linear-gradient(180deg, var(--green-pale) 0%, #fff 100%); padding: 56px 0 40px; }
.page-head h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; }
.page-head p { color: var(--ink-soft); margin-top: 10px; max-width: 680px; }
.breadcrumb { font-size: .8rem; color: var(--ink-soft); margin-bottom: 14px; }
.breadcrumb a { color: var(--ink-soft); }
.page-head-grid { display: flex; align-items: center; gap: 36px; }
.page-head-grid > div { flex: 1.3; min-width: 0; }
.page-head-img { flex: 1; min-width: 0; border-radius: var(--radius); box-shadow: 0 8px 28px rgba(20, 101, 74, .15); }
@media (max-width: 820px) {
  .page-head-grid { flex-direction: column; align-items: stretch; }
}

/* ---------- チェックリスト ---------- */
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 18px 14px 46px; position: relative; font-size: .95rem;
}
.check-list li::before {
  content: ""; position: absolute; left: 16px; top: 19px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--green);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3"><circle cx="12" cy="12" r="11" fill="black"/><path d="M7 12.5l3.5 3.5L17 9" stroke="white"/></svg>') center/contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3"><circle cx="12" cy="12" r="11" fill="black"/><path d="M7 12.5l3.5 3.5L17 9" stroke="white"/></svg>') center/contain no-repeat;
}

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: #d1d5db; padding: 48px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 10px; }
.site-footer p, .site-footer li { font-size: .88rem; }
.site-footer ul { list-style: none; }
.site-footer a { color: #d1d5db; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-copy { text-align: center; font-size: .78rem; color: #9ca3af; margin-top: 36px; border-top: 1px solid #374151; padding-top: 20px; }

/* ---------- モバイル ---------- */
@media (max-width: 640px) {
  .hero { padding: 48px 0 40px; }
  section { padding: 48px 0; }
  .gnav a { font-size: .82rem; padding: 6px 8px; }
  .zaitaku-banner { padding: 30px 22px; }
  .info-table th { width: 38%; }
}
