:root {
  --green-dark: #1c4a55;
  --green: #2f8ba0;
  --green-pale: #e6f2f5;
  --gold: #3fa9c9;
  --ink: #2b3330;
  --sub: #67736c;
  --line: #e3e7e2;
  --bg: #faf9f6;
  --white: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  letter-spacing: 0.02em;
  font-size: 15.5px;
}

img { max-width: 100%; height: auto; }
a { color: var(--green); }

/* ヘッダー */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
}
.header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.header-logo { height: 38px; width: auto; }
.header-title {
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  color: var(--green-dark);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}
.header-branch { font-size: 0.9em; color: var(--gold); }
.header-nav { display: flex; align-items: center; gap: 20px; }
.header-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.header-nav a:hover { color: var(--green); border-bottom-color: var(--gold); }
.header-nav .nav-portal { color: var(--green); font-size: 0.84rem; }
.nav-toggle { display: none; }

/* ヒーロー — 水辺の清涼感 */
.hero {
  background:
    radial-gradient(circle at 18% 22%, rgba(63, 169, 201, 0.20) 0%, transparent 44%),
    radial-gradient(circle at 84% 16%, rgba(47, 139, 160, 0.14) 0%, transparent 40%),
    radial-gradient(circle at 65% 88%, rgba(63, 169, 201, 0.12) 0%, transparent 46%),
    linear-gradient(180deg, #e6f4f7 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 88px 24px 96px;
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero-logo {
  width: 112px;
  height: 112px;
  object-fit: contain;
  background: var(--white);
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(44, 80, 60, 0.1);
  margin-bottom: 22px;
}
.hero-eyebrow {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.28em;
}
.hero-title {
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  color: var(--green-dark);
  font-size: clamp(1.7rem, 5.5vw, 2.6rem);
  letter-spacing: 0.12em;
  margin-top: 14px;
}
.hero-stars {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 26px 0;
}
.hero-stars span {
  width: 8px;
  height: 8px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.55;
  transition: opacity 0.3s ease;
}
/* 松縄店は開局2番目 — 左から2番目の星を光らせる */
.hero-stars span:nth-child(2) {
  width: 15px;
  height: 15px;
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(63, 169, 201, 0.9)) drop-shadow(0 0 12px rgba(63, 169, 201, 0.55));
  animation: heroStarGlow 2.6s ease-in-out infinite;
}

@keyframes heroStarGlow {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px rgba(63, 169, 201, 0.8)) drop-shadow(0 0 10px rgba(63, 169, 201, 0.5));
  }
  50% {
    transform: scale(1.28);
    filter: drop-shadow(0 0 10px rgba(63, 169, 201, 1)) drop-shadow(0 0 20px rgba(63, 169, 201, 0.7));
  }
}
.hero-copy {
  color: var(--sub);
  font-size: clamp(0.95rem, 2.6vw, 1.05rem);
}
.hero-buttons {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-cta {
  display: inline-block;
  background: var(--green-dark);
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  padding: 14px 40px;
  border-radius: 4px;
  transition: background 0.2s ease;
}
.hero-cta:hover { background: var(--green); }
.hero-tel {
  display: inline-block;
  border: 1px solid var(--green);
  color: var(--green);
  background: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  padding: 13px 32px;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}
.hero-tel:hover { background: var(--green); color: var(--white); }

/* セクション共通 */
main { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.section-head { text-align: center; margin-top: 88px; }
.section-en {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3em;
}
.section-title {
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  color: var(--green-dark);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  letter-spacing: 0.1em;
  margin-top: 6px;
}
.section-lead {
  text-align: center;
  color: var(--sub);
  font-size: 0.92rem;
  margin: 16px auto 44px;
  max-width: 560px;
}

/* 当薬局について */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: start;
}
.about-photos {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-photo img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}
.about-photo figcaption {
  color: var(--sub);
  font-size: 0.82rem;
  text-align: center;
  margin-top: 8px;
}
.about-heading {
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  color: var(--green-dark);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.about-text p { margin-bottom: 14px; font-size: 0.95rem; }
.feature-list {
  list-style: none;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.feature-list li {
  padding: 10px 4px 10px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  position: relative;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* サービス */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.service-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px 36px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  transition: box-shadow 0.25s ease;
}
.service-item:hover { box-shadow: 0 6px 24px rgba(44, 80, 60, 0.1); }
.service-num {
  font-family: "Noto Serif JP", serif;
  color: var(--gold);
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  line-height: 1.4;
  flex: 0 0 auto;
}
.service-name {
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  color: var(--green-dark);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.service-body p { font-size: 0.93rem; }
.yup-poster-wrap { margin-top: 20px; text-align: center; }
.yup-poster-img {
  max-width: 420px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
}

/* 店舗情報 */
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 36px;
  max-width: 820px;
  margin: 0 auto;
}
.info-table { width: 100%; border-collapse: collapse; }
.info-table th,
.info-table td {
  padding: 16px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
}
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }
.info-table th {
  width: 7.5em;
  color: var(--sub);
  font-weight: 500;
  font-size: 0.88rem;
  padding-top: 18px;
}
.tel-link { font-weight: 700; text-decoration: none; letter-spacing: 0.04em; }

.hours-wrap { overflow-x: auto; }
.hours {
  border-collapse: collapse;
  width: 100%;
  min-width: 420px;
}
.hours th,
.hours td {
  border: 1px solid var(--line);
  padding: 8px 6px;
  text-align: center;
  font-size: 0.85rem;
}
.hours thead th {
  background: var(--green-pale);
  color: var(--green-dark);
  font-weight: 500;
}
.hours .hours-head-label,
.hours .time-label { white-space: nowrap; }
.hours .time-label { text-align: left; padding-left: 10px; }
.dot { color: var(--green); }
.slash { color: var(--sub); opacity: 0.6; }
.hours-note {
  color: var(--sub);
  font-size: 0.82rem;
  margin-top: 10px;
}

/* よくある質問 */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 14px;
}
.faq-q {
  cursor: pointer;
  list-style: none;
  padding: 18px 48px 18px 22px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--green-dark);
  position: relative;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::before { content: "Q. "; color: var(--gold); font-family: "Noto Serif JP", serif; }
.faq-q::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-q::after { transform: translateY(-30%) rotate(225deg); }
.faq-a {
  margin: 0 22px 18px;
  padding-top: 14px;
  border-top: 1px dotted var(--line);
  font-size: 0.92rem;
}

/* アクセス */
.access-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}
.map-wrapper {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}
.map-wrapper iframe { display: block; }
.access-info {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 0.93rem;
}
.access-info > div {
  padding: 14px 0;
  border-bottom: 1px dotted var(--line);
}
.access-info > div:last-child { border-bottom: none; }
.access-info dt {
  color: var(--sub);
  font-size: 0.84rem;
  margin-bottom: 4px;
}

/* お問い合わせ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px 28px;
  text-align: center;
}
.contact-heading {
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  color: var(--green-dark);
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.contact-tel {
  display: block;
  font-family: "Noto Serif JP", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: none;
  letter-spacing: 0.05em;
}
a.contact-tel:hover { color: var(--green); }
.contact-note {
  color: var(--sub);
  font-size: 0.84rem;
  margin-top: 10px;
}
.contact-section { margin-bottom: 96px; }

/* フッター */
.site-footer {
  background: var(--green-dark);
  color: var(--white);
  text-align: center;
  padding: 44px 24px 36px;
}
.footer-logo {
  height: 52px;
  width: auto;
  background: var(--white);
  border-radius: 50%;
  padding: 6px;
}
.footer-name {
  font-family: "Noto Serif JP", serif;
  letter-spacing: 0.12em;
  margin-top: 12px;
  font-size: 0.98rem;
}
.footer-address { font-size: 0.82rem; opacity: 0.85; margin-top: 6px; }
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 20px;
}
.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.84rem;
  opacity: 0.9;
}
.footer-links a:hover { text-decoration: underline; }
.footer-sub {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 16px;
}
.footer-sub a {
  color: var(--white);
  font-size: 0.8rem;
  opacity: 0.75;
}
.footer-copy { font-size: 0.8rem; opacity: 0.75; margin-top: 16px; }

/* 法定掲載事項ページ */
.legal-main { padding-bottom: 72px; }
.legal-main .section-head { margin-top: 64px; }
.legal-table-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 32px;
  margin-top: 32px;
}
.legal-table { width: 100%; border-collapse: collapse; }
.legal-table th,
.legal-table td {
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
}
.legal-table tr:last-child th,
.legal-table tr:last-child td { border-bottom: none; }
.legal-table th {
  width: 11em;
  color: var(--sub);
  font-weight: 500;
  font-size: 0.86rem;
}
.legal-note { color: var(--sub); font-size: 0.84rem; margin-top: 18px; }
.back-link { display: inline-block; margin-top: 28px; font-size: 0.9rem; }

/* タブレット以下 */
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photos { flex-direction: row; }
  .about-photo { flex: 1; }
  .access-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* モバイル */
@media (max-width: 640px) {
  .hero { padding: 64px 20px 72px; }
  .section-head { margin-top: 64px; }
  .contact-section { margin-bottom: 72px; }
  .about-photos { flex-direction: column; }
  .service-item { padding: 24px 20px; gap: 16px; flex-direction: column; }
  .service-num { font-size: 1.3rem; line-height: 1; }
  .info-card { padding: 4px 18px; }
  .legal-table-wrap { padding: 4px 16px; }
  .legal-table th { width: 8em; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 10px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 4px;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--green-dark);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(44, 80, 60, 0.08);
    padding: 6px 0;
  }
  .header-nav.is-open { display: flex; }
  .header-nav a {
    padding: 13px 24px;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
  }
  .header-nav a:last-child { border-bottom: none; }
  .header-nav a:hover { border-bottom-color: var(--line); }
}
