/*
Theme Name: Nashinoki Pharmacy
Description: なしのき薬局 ランディングページ用オリジナルテーマ
Version: 1.0
Author: なしのき薬局
*/

:root {
  --blue: #aecbd6;
  --blue-soft: #eaf3f6;
  --blue-deep: #7fa6b5;
  --green: #c5cf6a;
  --green-mid: #a6b44c;
  --green-deep: #6f7d2c;
  --ink: #4f5559;
  --ink-soft: #6f7579;
  --paper: #fdfdfb;
  --white: #ffffff;
  --radius: 22px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

/* 日本語フレーズ単位で改行（語中の泣き別れ防止） */
.nb { white-space: nowrap; }
body { word-break: normal; overflow-wrap: anywhere; line-break: strict; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eef0ea;
}
.site-header .wrap {
  display: flex; align-items: center; gap: 18px;
  padding-top: 10px; padding-bottom: 10px;
}
.header-logo img { width: 170px; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.header-tel { text-align: right; line-height: 1.3; }
.header-tel .tel-number { font-size: 20px; font-weight: 700; color: var(--ink); text-decoration: none; }
.header-tel .tel-note { font-size: 11px; color: var(--ink-soft); }
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  background: var(--green-deep); color: #fff;
  padding: 12px 22px; border-radius: 999px; font-weight: 700;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn-large { font-size: 18px; padding: 16px 38px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--blue-soft) 0%, #f3f8f5 100%);
  overflow: hidden;
  padding: 74px 0 86px;
}
.hero::before {
  content: ""; position: absolute; top: -160px; right: -120px;
  width: 480px; height: 420px; background: var(--green);
  border-radius: 47% 53% 58% 42% / 55% 46% 54% 45%;
  opacity: .55;
}
.hero::after {
  content: ""; position: absolute; bottom: -200px; left: -140px;
  width: 460px; height: 400px; background: var(--blue);
  border-radius: 52% 48% 43% 57% / 46% 57% 43% 54%;
  opacity: .5;
}
.hero .wrap { position: relative; z-index: 1; text-align: center; }
.hero-open {
  display: inline-block; letter-spacing: .28em; font-weight: 700;
  color: var(--green-deep); background: #fff; border: 1.5px solid var(--green-mid);
  border-radius: 999px; padding: 6px 22px 6px 26px; font-size: 14px; margin-bottom: 26px;
}
.hero-logo img { width: min(520px, 78vw); margin: 0 auto 26px; }
.hero-copy { font-size: clamp(17px, 2.6vw, 22px); font-weight: 700; letter-spacing: .12em; margin-bottom: 8px; }
.hero-sub { color: var(--ink-soft); font-size: 14.5px; letter-spacing: .06em; margin-bottom: 34px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 38px; }
.hero-badges span {
  background: #fff; border-radius: 999px; padding: 9px 20px;
  font-weight: 700; font-size: 14px; color: var(--ink);
  box-shadow: 0 2px 10px rgba(90,110,120,.12);
}
.hero-badges > span::before { content: "✿ "; color: var(--green-mid); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn-ghost {
  background: #fff; color: var(--green-deep); border: 1.5px solid var(--green-deep);
}
.hero-photo {
  margin: 46px auto 0; max-width: 940px;
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 18px 46px rgba(90,110,120,.22);
  background: #fff; border: 6px solid #fff;
}
.hero-photo img { width: 100%; }

/* ---------- sections ---------- */
section { padding: 74px 0; }
.sec-title { text-align: center; margin-bottom: 44px; }
.sec-title .en { display: block; font-size: 12px; letter-spacing: .3em; color: var(--green-mid); font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.sec-title h2 { font-size: clamp(22px, 3.2vw, 28px); letter-spacing: .14em; font-weight: 700; }
.sec-title h2::after {
  content: ""; display: block; width: 54px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  margin: 14px auto 0;
}

/* hours */
.sec-hours { background: #fff; }
.hours-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 34px; align-items: start; }
.hours-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 18px rgba(90,110,120,.08); }
.hours-table th, .hours-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid #eef0ea; font-size: 15.5px; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: none; }
.hours-table th { width: 42%; font-weight: 700; color: var(--ink); background: var(--blue-soft); }
.hours-note { font-size: 13.5px; color: var(--ink-soft); margin-top: 14px; }
.tel-card {
  background: linear-gradient(135deg, var(--blue-soft), #f4f7ee);
  border-radius: var(--radius); padding: 30px 28px; text-align: center;
}
.tel-card .label { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.tel-card a.big-tel { font-size: clamp(28px, 4vw, 34px); font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: .04em; }
.tel-card .note { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }

/* online prescription */
.sec-online { background: linear-gradient(180deg, #f4f8ee, #eef4f6); }
.online-grid { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: center; }
.online-lead { font-size: 17px; font-weight: 700; margin-bottom: 18px; }
.steps { list-style: none; display: grid; gap: 14px; margin-bottom: 26px; }
.steps li {
  background: #fff; border-radius: 16px; padding: 16px 18px 16px 58px; position: relative;
  box-shadow: 0 2px 10px rgba(90,110,120,.08); font-size: 15px;
}
.steps li strong { display: block; font-size: 15.5px; }
.steps li::before {
  content: attr(data-step);
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green-mid); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.online-merits { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.online-merits span { background: #fff; border: 1.5px solid var(--green-mid); color: var(--green-deep); font-weight: 700; font-size: 13px; border-radius: 999px; padding: 6px 14px; }
.qr-card { background: #fff; border-radius: var(--radius); padding: 26px 24px; text-align: center; box-shadow: 0 6px 24px rgba(90,110,120,.12); }
.qr-card img { width: 200px; margin: 0 auto 12px; }
.qr-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { background: #fff; border-radius: var(--radius); padding: 30px 26px; box-shadow: 0 4px 18px rgba(90,110,120,.08); text-align: center; }
.feature-card .icon { font-size: 34px; line-height: 1; margin-bottom: 14px; }
.feature-card h3 { font-size: 17px; letter-spacing: .08em; margin-bottom: 10px; color: var(--ink); }
.feature-card p { font-size: 14px; color: var(--ink-soft); text-align: left; }

/* 店舗写真 */
.sec-photo { background: linear-gradient(180deg, #f4f8ee, #eef4f6); }
.photo-lead { text-align: center; font-size: 15.5px; color: var(--ink); margin: -18px 0 30px; line-height: 2; }
.photo-card {
  border-radius: var(--radius); overflow: hidden; background: #fff;
  box-shadow: 0 10px 30px rgba(90,110,120,.14);
}
.photo-card img { width: 100%; }
.photo-card figcaption {
  font-size: 13.5px; color: var(--ink-soft); text-align: center;
  padding: 16px 20px; line-height: 1.9;
}

/* access */
.sec-access { background: #fff; }
.access-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 34px; align-items: start; }
.access-info dt { font-weight: 700; color: var(--green-deep); font-size: 14px; letter-spacing: .1em; margin-top: 18px; }
.access-info dt:first-child { margin-top: 0; }
.access-info dd { font-size: 15.5px; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 18px rgba(90,110,120,.12); }
.map-frame iframe { width: 100%; height: 360px; border: 0; display: block; }

/* 医療DX */
.sec-dx { background: #fff; padding-top: 0; }
.dx-card {
  background: linear-gradient(135deg, var(--blue-soft), #f4f7ee);
  border-radius: var(--radius); padding: 32px 30px; text-align: center;
  border: 1px solid #e6ece0;
}
.dx-badge {
  display: inline-block; background: var(--green-deep); color: #fff;
  font-weight: 700; font-size: 13px; letter-spacing: .08em;
  border-radius: 999px; padding: 6px 18px; margin-bottom: 16px;
}
.dx-text { font-size: 15px; color: var(--ink); max-width: 760px; margin: 0 auto; text-align: left; }
.dx-link { margin-top: 16px; }
.dx-link a { color: var(--green-deep); font-weight: 700; text-decoration: none; font-size: 14px; }
.dx-link a:hover { text-decoration: underline; }

/* footer */
.footer-links { text-align: center; margin-top: 30px; }
.footer-links a { color: #fff; font-size: 13px; opacity: .9; }
.site-footer { background: var(--green-deep); color: #fff; padding: 54px 0 30px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 34px; align-items: center; justify-content: space-between; }
.footer-logo img { width: 210px; }
.footer-info { font-size: 14px; line-height: 2; }
.footer-info a { color: #fff; text-decoration: none; font-weight: 700; }
.copyright { text-align: center; font-size: 12px; opacity: .75; margin-top: 36px; letter-spacing: .08em; }

/* fixed mobile cta */
.sp-cta { display: none; }

@media (max-width: 820px) {
  section { padding: 56px 0; }
  .hours-grid, .online-grid, .access-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .header-tel { display: none; }
  .header-logo img { width: 140px; }
  .qr-card { max-width: 320px; margin: 0 auto; }
  .footer-grid { flex-direction: column; text-align: center; }
  body { padding-bottom: 74px; }
  /* モバイルの改行・文字詰め調整 */
  .hero { padding: 56px 0 66px; }
  .hero-open { letter-spacing: .06em; font-size: 12.5px; line-height: 1.9; padding: 8px 18px; }
  .hero-copy { font-size: 18px; line-height: 1.75; letter-spacing: .02em; }
  .hero-sub .hero-sub-sep { display: none; }
  .hero-sub .nb { display: block; }
  .sec-title h2 { letter-spacing: .04em; }
  .hero-photo { margin-top: 32px; border-radius: 20px; border-width: 4px; }
  .photo-lead { font-size: 14.5px; margin-bottom: 24px; }
  .photo-card figcaption { font-size: 13px; padding: 14px 16px; }
  .dx-badge { white-space: normal; }
  .sp-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: rgba(255,255,255,.96); padding: 10px 12px;
    box-shadow: 0 -4px 16px rgba(90,110,120,.15);
  }
  .sp-cta a { font-size: 14px; padding: 12px 8px; }
}

/* ---------- 掲示事項ページ ---------- */
.doc-header { background: var(--blue-soft); border-bottom: 1px solid #e6ece0; }
.doc-header .wrap { display: flex; align-items: center; padding: 14px 22px; }
.doc-header img { width: 160px; }
.doc-header .home-link { margin-left: auto; font-size: 13px; color: var(--green-deep); text-decoration: none; font-weight: 700; }
.doc-main { padding: 54px 0 70px; }
.doc-main .wrap { max-width: 820px; }
.doc-title { text-align: center; margin-bottom: 10px; }
.doc-title h1 { font-size: clamp(22px, 3.2vw, 27px); letter-spacing: .08em; }
.doc-title h1::after { content: ""; display: block; width: 54px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--green)); margin: 14px auto 0; }
.doc-lead { text-align: center; color: var(--ink-soft); font-size: 14.5px; margin-bottom: 40px; }
.doc-item { background: #fff; border: 1px solid #eef0ea; border-radius: 16px; padding: 24px 26px; margin-bottom: 18px; box-shadow: 0 2px 10px rgba(90,110,120,.05); }
.doc-item h2 { font-size: 17px; letter-spacing: .04em; color: var(--green-deep); margin-bottom: 12px; padding-left: 14px; border-left: 5px solid var(--green); }
.doc-item p { font-size: 14.5px; margin-bottom: 8px; }
.doc-item ul { list-style: none; margin: 8px 0 0; }
.doc-item ul li { font-size: 14.5px; padding: 4px 0 4px 20px; position: relative; }
.doc-item ul li::before { content: "・"; position: absolute; left: 2px; color: var(--green-mid); font-weight: 700; }
.doc-item .price-table {
  width: 100%; border-collapse: collapse; margin: 14px 0 12px;
  background: var(--paper); border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(90,110,120,.06);
}
.doc-item .price-table caption {
  caption-side: top; text-align: left; font-size: 13.5px; font-weight: 700;
  color: var(--green-deep); padding-bottom: 8px;
}
.doc-item .price-table th, .doc-item .price-table td {
  padding: 10px 14px; border-bottom: 1px solid #eef0ea; font-size: 14.5px;
}
.doc-item .price-table th { text-align: left; font-weight: 500; color: var(--ink); }
.doc-item .price-table td { text-align: right; white-space: nowrap; font-weight: 700; width: 6.5em; }
.doc-item .price-table tr:last-child th, .doc-item .price-table tr:last-child td { border-bottom: none; }
.doc-item .price-table tr:nth-child(odd) th, .doc-item .price-table tr:nth-child(odd) td { background: var(--blue-soft); }
.doc-note { display: block; margin-top: 10px; font-size: 12.5px; color: #b06a2c; background: #fff7ee; border: 1px dashed #e3b579; border-radius: 8px; padding: 8px 12px; }
.doc-back { text-align: center; margin-top: 34px; }
.doc-back a { display: inline-block; background: var(--green-deep); color: #fff; text-decoration: none; font-weight: 700; border-radius: 999px; padding: 12px 30px; font-size: 15px; }
.doc-updated { text-align: center; font-size: 12px; color: var(--ink-soft); margin-top: 22px; }
