/*
Theme Name: Sanyoudo Pharmacy
Theme URI: https://sanyoudo.com/
Author: Lindberg
Description: サンヨー堂薬局専用の見やすく更新しやすいテーマ
Version: 1.0.0
Text Domain: sanyoudo
*/

:root {
  --green: #176b55;
  --green-dark: #0d4f3d;
  --sign-blue: #187fbd;
  --green-soft: #eaf5f0;
  --lime: #b9d98b;
  --cream: #f8fbfd;
  --ink: #24332e;
  --muted: #5d6d67;
  --line: #dce7e2;
  --white: #fff;
  --shadow: 0 12px 32px rgba(22, 72, 56, .11);
  --radius: 18px;
  --wide: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 17px;
  line-height: 1.8;
}
a { color: var(--green); }
img { max-width: 100%; height: auto; }
.container { width: min(calc(100% - 40px), var(--wide)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 999; background: #fff; padding: 10px; }

.site-header { background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-main { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { text-decoration: none; color: var(--green-dark); display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 25px; }
.brand-name { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: .03em; line-height: 1.25; }
.brand-sub { display: block; font-size: .74rem; color: var(--muted); }
.header-contact { display: flex; align-items: center; gap: 16px; }
.tel-link { text-decoration: none; font-size: 1.35rem; font-weight: 800; color: var(--green-dark); }
.tel-label { display: block; font-size: .7rem; font-weight: 600; color: var(--muted); line-height: 1; }
.header-hours { font-size: .75rem; color: var(--muted); line-height: 1.4; }
.menu-toggle { display: none; border: 0; background: var(--green); color: #fff; border-radius: 10px; padding: 10px 13px; font-weight: 700; }
.site-nav { background: var(--sign-blue); }
.site-nav ul { list-style: none; display: flex; justify-content: center; gap: 0; padding: 0; margin: 0; }
.site-nav a { display: block; padding: 13px 16px; color: #fff; text-decoration: none; font-weight: 700; font-size: .88rem; }
.site-nav a:hover, .site-nav .current-menu-item > a { background: #11699f; }

.hero { min-height: 510px; display: grid; align-items: center; background: linear-gradient(100deg, rgba(12,105,150,.72) 0%, rgba(24,127,189,.44) 55%, rgba(255,255,255,.08) 100%), url('assets/hero.jpg') center/cover no-repeat; color: #fff; }
.hero-inner { max-width: 720px; padding-block: 80px; }
.eyebrow { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: .88rem; font-weight: 700; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.3; margin: 22px 0 18px; letter-spacing: .03em; }
.hero p { font-size: 1.15rem; max-width: 650px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 10px 22px; border-radius: 999px; text-decoration: none; font-weight: 800; border: 2px solid transparent; }
.button-primary { background: #fff; color: var(--green-dark); }
.button-secondary { border-color: #fff; color: #fff; }
.button-green { background: var(--green); color: #fff; }

.quick-info { margin-top: -48px; position: relative; z-index: 2; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.quick-card { padding: 26px; border-right: 1px solid var(--line); }
.quick-card:last-child { border: 0; }
.quick-label { color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .08em; }
.quick-card strong { display: block; font-size: 1.08rem; margin-top: 5px; }

.section { padding: 82px 0; }
.section-white { background: #fff; }
.section-soft { background: var(--green-soft); }
.section-title { margin: 0 0 38px; text-align: center; }
.section-title small { color: var(--green); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section-title h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.4; margin: 7px 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: 0 7px 20px rgba(18,72,55,.06); }
.card-icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: var(--green-soft); font-size: 25px; }
.card h3 { margin: 17px 0 8px; font-size: 1.2rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.card a.more { display: inline-block; margin-top: 15px; font-weight: 800; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.panel { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { border-bottom: 1px solid var(--line); padding: 11px 7px; text-align: left; }
.hours-table th { color: var(--green-dark); }
.notice { border-left: 5px solid var(--lime); background: #f9fbf4; padding: 16px 18px; border-radius: 0 12px 12px 0; }

.page-hero { background: var(--sign-blue); color: #fff; padding: 30px 0 27px; }
.page-hero h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.45rem); }
.breadcrumbs { font-size: .8rem; opacity: .85; margin-bottom: 7px; }
.page-main { padding: 65px 0 95px; }
.entry-content { max-width: 900px; margin-inline: auto; }
.entry-content h2 { border-left: 6px solid var(--green); padding-left: 14px; margin-top: 2.3em; color: var(--green-dark); }
.entry-content h3 { color: var(--green-dark); margin-top: 1.8em; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 22px 0; background: #fff; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 12px; vertical-align: top; }
.entry-content th { width: 30%; background: var(--green-soft); text-align: left; }
.check-badge { display: inline-block; background: #fff4d7; color: #7a5700; padding: 3px 8px; border-radius: 6px; font-size: .78rem; font-weight: 800; }
.post-list { display: grid; gap: 15px; }
.post-item { display: block; background: #fff; padding: 22px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.post-item time { color: var(--green); font-weight: 700; font-size: .85rem; }
.post-item h2 { font-size: 1.1rem; margin: 5px 0 0; }

.site-footer { background: #102f27; color: #dce8e4; padding: 58px 0 95px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer a { color: #fff; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin: 8px 0; }
.copyright { border-top: 1px solid rgba(255,255,255,.15); margin-top: 35px; padding-top: 22px; font-size: .78rem; }
.mobile-bar { display: none; }

@media (max-width: 900px) {
  body { font-size: 16px; padding-bottom: 68px; }
  .header-hours { display: none; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: block; }
  .site-nav a { border-top: 1px solid rgba(255,255,255,.12); padding: 14px 20px; }
  .tel-link { display: none; }
  .hero { min-height: 470px; background-position: 58% center; }
  .hero-inner { padding-block: 62px 68px; }
  .quick-info { margin-top: 20px; }
  .quick-grid { grid-template-columns: 1fr; gap: 12px; background: transparent; border-radius: 0; box-shadow: none; overflow: visible; }
  .quick-card { background: #fff; border: 1px solid #d9eaf2; border-radius: 16px; box-shadow: 0 8px 22px rgba(27,104,143,.10); padding: 18px 22px; }
  .quick-card:last-child { border: 1px solid #d9eaf2; }
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; z-index: 100; bottom: 0; left: 0; right: 0; background: #fff; box-shadow: 0 -5px 18px rgba(0,0,0,.13); }
  .mobile-bar a { min-height: 66px; display: grid; place-items: center; align-content: center; text-decoration: none; font-size: .73rem; font-weight: 800; border-right: 1px solid var(--line); }
  .mobile-bar span { font-size: 1.25rem; line-height: 1.1; }
}

@media (max-width: 520px) {
  .container { width: min(calc(100% - 28px), var(--wide)); }
  .brand-name { font-size: 1.08rem; }
  .brand-sub { display: none; }
  .hero { min-height: auto; }
  .hero-inner { padding-block: 38px 40px; }
  .hero h1 { font-size: 1.9rem; margin: 16px 0 12px; }
  .hero p { font-size: 1rem; line-height: 1.7; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 20px; }
  .hero-actions .button { width: 100%; min-height: 46px; }
  .quick-info { margin-top: 14px; }
  .quick-card { padding: 14px 18px; }
  .section { padding: 62px 0; }
  .panel, .card { padding: 24px; }
  .entry-content th, .entry-content td { display: block; width: 100%; }
}
