/* A案：沿革でつたえる（記録帳） */
:root {
  --paper: #f6f1e7;
  --paper-2: #eee6d6;
  --card: #fbf8f2;
  --ink: #211d18;
  --ink-2: #4a4339;
  --ai: #1f3a5a;
  --ai-2: #2c5179;
  --shu: #a3412a;
  --rule: #cbbda2;
  --rule-2: #e1d6c2;
  --ph-bg: #e8dfcd;
  --ph-ink: #574e40;
  --ph-line: rgba(87, 78, 64, .07);
  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--gothic);
  font-size: 18px;
  line-height: 1.95;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "palt" 0;
}
img { max-width: 100%; height: auto; }
a { color: var(--ai); text-underline-offset: .2em; }
h1, h2, h3 { font-family: var(--mincho); font-weight: 700; line-height: 1.5; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sp { display: none; }
.note { font-size: 15px; color: var(--ink-2); line-height: 1.8; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: .55em 1.4em;
  font-weight: 700; font-size: 17px; line-height: 1.4;
  text-decoration: none; border-radius: 2px;
  border: 2px solid var(--ai);
}
.btn-ai { background: var(--ai); color: #fff; }
.btn-ai:hover { background: var(--ai-2); border-color: var(--ai-2); }
.btn-line { background: transparent; color: var(--ai); }
.btn-line:hover { background: #fff; }
.btn-lg { min-height: 64px; font-size: 18px; padding: .6em 1.6em; }
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn .num { font-family: var(--mincho); font-size: 1.15em; letter-spacing: .03em; margin-left: .2em; }

/* ヘッダー */
.hd {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 231, .96);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(6px);
}
.hd-in {
  width: min(1240px, 100% - 32px); margin-inline: auto;
  display: flex; align-items: center; gap: 28px; min-height: 84px;
}
.logo { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.25; flex: none; }
.logo-sub { font-size: 12.5px; color: var(--ink-2); letter-spacing: .06em; }
.logo-main { font-family: var(--mincho); font-weight: 700; font-size: 28px; letter-spacing: .12em; }
.gnav { display: flex; gap: 4px; margin-left: auto; }
.gnav a {
  padding: .4em .8em; font-size: 16.5px; font-weight: 700;
  color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent;
}
.gnav a:hover { border-bottom-color: var(--shu); }
.hd-cta { display: flex; align-items: center; gap: 14px; flex: none; }
.hd-tel { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.2; text-align: right; }
.hd-tel small { font-size: 12px; color: var(--ink-2); }
.hd-tel span { font-family: var(--mincho); font-weight: 700; font-size: 24px; letter-spacing: .04em; }
.nav-toggle { display: none; }

/* ファーストビュー */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero-in {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr);
  gap: 64px; align-items: center; padding: 72px 0 84px;
}
.kicker { font-size: 15.5px; letter-spacing: .06em; color: var(--ink-2); margin-bottom: 1.2em; padding-left: 14px; border-left: 3px solid var(--shu); line-height: 1.5; }
.hero h1 { font-size: clamp(30px, 4.1vw, 50px); line-height: 1.55; letter-spacing: .04em; margin-bottom: .8em; }
.lead { font-size: 18.5px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6em; }
.hero-free { margin-top: 1em; font-size: 16px; color: var(--ink-2); }
.hero-free a { font-weight: 700; }

.hero-visual { position: relative; justify-self: end; width: 100%; max-width: 432px; }
.hero-tate {
  position: absolute; top: -18px; left: -86px;
  writing-mode: vertical-rl; font-family: var(--mincho); font-weight: 700;
  font-size: 68px; letter-spacing: .14em; color: var(--rule-2); margin: 0; line-height: 1;
  user-select: none;
}
.hero-photo { position: relative; margin: 0; background: #fff; padding: 10px 10px 0; box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(33, 29, 24, .45); }
.hero-photo img { display: block; width: 100%; }
.hero-photo figcaption, .photo figcaption, .album figcaption { font-size: 13.5px; color: var(--ink-2); padding: .45em 0 .55em; line-height: 1.5; }
.ledger {
  position: relative; margin: -36px 0 0 -40px; width: calc(100% - 20px);
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--card); border: 1px solid var(--rule);
  box-shadow: 0 16px 30px -24px rgba(33, 29, 24, .5);
}
.ledger div { padding: 12px 16px 10px; border-right: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); }
.ledger div:nth-child(2n) { border-right: 0; }
.ledger div:nth-child(n+3) { border-bottom: 0; }
.ledger dt { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.ledger dd { margin: 0; font-family: var(--mincho); font-weight: 700; font-size: 34px; line-height: 1.3; color: var(--ai); }
.ledger dd small { font-size: 15px; margin-left: 2px; color: var(--ink); }

/* セクション共通 */
.sec { padding: 96px 0; border-bottom: 1px solid var(--rule); }
.sec-head { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 24px; margin-bottom: 52px; align-items: start; }
.sec-no {
  font-family: var(--mincho); font-weight: 700; font-size: 44px; line-height: 1;
  color: var(--shu); text-align: center; padding: 10px 0 18px;
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule);
}
.sec-en { font-size: 14px; letter-spacing: .14em; color: var(--shu); font-weight: 700; margin-bottom: .2em; }
.sec-head h2 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: .04em; }
.sec-lead { margin: .7em 0 0; max-width: 40em; color: var(--ink-2); }

/* 沿革 */
.sec-history { background: linear-gradient(var(--paper), var(--paper-2)); position: relative; }
.chron { list-style: none; margin: 0 0 0 100px; padding: 0; position: relative; max-width: 880px; }
.chron li { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; padding: 0 0 34px; }
.chron li::before {
  content: ""; position: absolute; left: 160px; top: 12px; bottom: -12px; width: 2px; background: var(--rule);
}
.chron li.is-span::before { background: var(--shu); }
.chron li:last-child::before { bottom: auto; height: 20px; }
.chron li::after {
  content: ""; position: absolute; left: 154px; top: 14px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink-2);
}
.chron li.is-key::after { background: var(--shu); border-color: var(--shu); }
.chron time {
  font-family: var(--mincho); font-weight: 700; font-size: 40px; line-height: 1.05;
  color: var(--ink); text-align: right; padding-right: 22px; letter-spacing: .02em;
}
.chron li.is-key time { color: var(--shu); }
.chron li.is-now time { font-size: 32px; }
.chron-body { padding-left: 22px; }
.chron-body h3 { font-size: 22px; margin-bottom: .2em; }
.chron-body p { margin: 0; color: var(--ink-2); }
.chron-span-label {
  position: absolute; right: max(16px, calc(50% - 560px)); top: 50%;
  writing-mode: vertical-rl; margin: 0;
  font-family: var(--mincho); font-weight: 700; font-size: 22px; letter-spacing: .3em; color: var(--shu);
}
.chron-span-label span { border-left: 2px solid var(--shu); padding-left: 8px; }

/* 帯の生成画像 */
.band { --ratio: 21 / 7; max-height: 420px; width: 100%; }

/* 薬剤師 */
.greeting {
  display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px;
  padding: 26px 30px; margin-bottom: 44px;
  background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--ai);
}
.greeting-label { font-family: var(--mincho); font-weight: 700; font-size: 22px; margin: 0; }
.greeting-ph { margin: 0; color: var(--ink-2); }
.roster { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.person {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 36px;
  padding: 34px 0; border-bottom: 1px solid var(--rule);
}
.person .portrait { --ph-bg: #e3d9c6; max-width: 200px; }
.p-role { font-size: 15px; color: var(--shu); font-weight: 700; margin: 0 0 .2em; letter-spacing: .06em; }
.p-name { font-size: 32px; letter-spacing: .12em; margin-bottom: .5em; }
.p-meta { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px 18px; margin: 0; }
.p-meta dt { font-size: 15px; font-weight: 700; color: var(--ink-2); padding-top: .25em; border-top: 1px solid var(--rule-2); }
.p-meta dd { margin: 0; border-top: 1px solid var(--rule-2); padding-top: .2em; }
.quals { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.quals li {
  padding: 2px 12px; font-size: 16px; font-weight: 700; line-height: 1.8;
  color: var(--ai); background: #fff; border: 1px solid #b9c6d6; border-radius: 2px;
}
.career { list-style: none; margin: 0; padding: 0; }
.career li { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); }
.career span { font-family: var(--mincho); font-weight: 700; color: var(--ink-2); }
.sec-people .note { margin-top: 1.2em; }

/* できること */
.menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.menu-title {
  font-size: 24px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--ink);
  display: flex; align-items: center; gap: 12px;
}
.menu-title::before { content: ""; width: 10px; height: 10px; background: var(--shu); transform: rotate(45deg); }
.menu { margin: 0; }
.menu > div { padding: 18px 0 16px; border-bottom: 1px dashed var(--rule); }
.menu dt { font-weight: 700; font-size: 19px; margin-bottom: .25em; display: flex; align-items: center; gap: .5em; }
.menu dt em {
  font-style: normal; font-size: 13.5px; color: #fff; background: var(--shu);
  padding: 0 .55em; border-radius: 2px; line-height: 1.7;
}
.menu dd { margin: 0; color: var(--ink-2); }

/* 漢方相談 */
.sec-kampo { background: var(--paper-2); }
.kampo-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.step-no {
  display: grid; place-items: center; width: 56px; height: 56px;
  font-family: var(--mincho); font-weight: 700; font-size: 28px; color: #fff; background: var(--ai);
}
.steps h3 { font-size: 22px; margin-bottom: .25em; }
.steps p { margin: 0; color: var(--ink-2); }
.kampo-side .photo { margin: 0; background: #fff; padding: 10px 10px 0; border: 1px solid var(--rule); max-width: 460px; }
.kampo-side .photo img { display: block; width: 100%; }
.fee { margin-top: 22px; padding: 20px 24px; background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--shu); }
.fee-title { font-family: var(--mincho); font-weight: 700; font-size: 20px; margin-bottom: .3em; }
.fee p:last-child { margin: 0; }
.fee-title:not(:first-child) { margin-top: .6em; }
.to-notice { margin: 14px 0 0; font-size: 16px; }
.to-notice a::after { content: " →"; }
.kampo-gen { margin-top: 28px; }

/* 写真 */
.album { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; align-items: start; }
.album figure { margin: 0; background: #fff; padding: 8px 8px 0; border: 1px solid var(--rule); }
.album img { display: block; width: 100%; }
.al-1 { grid-column: 1 / span 6; max-width: 533px; }
.al-2 { grid-column: 7 / span 3; }
.al-3 { grid-column: 10 / span 3; }
.al-4 { grid-column: 9 / span 4; }
.al-5 { grid-column: 1 / span 8; }
.al-5 img { aspect-ratio: 21 / 8; object-fit: cover; }

/* 採用 */
.spec { width: 100%; max-width: 880px; border-collapse: collapse; border-top: 2px solid var(--ink); }
.spec th, .spec td { padding: 18px 16px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.spec th { width: 11em; font-weight: 700; background: var(--paper-2); }
.recruit-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* 店舗案内 */
.shop-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 52px; }
.hours { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); font-size: 20px; }
.hours th, .hours td { padding: 14px 12px; border-bottom: 1px solid var(--rule); text-align: left; }
.hours th { width: 9em; }
.hours td { font-family: var(--mincho); font-weight: 700; font-size: 24px; }
.sec-shop .note { margin-top: .8em; }
.shop-info { margin: 24px 0 0; }
.shop-info > div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); padding: 10px 0; border-bottom: 1px dashed var(--rule); }
.shop-info dt { font-weight: 700; color: var(--ink-2); }
.shop-info dd { margin: 0; }
.map iframe { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--rule); display: block; background: var(--paper-2); }
.sns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.sns-link { display: inline-flex; align-items: center; gap: .3em; padding: .5em 1em; border: 1px solid var(--rule); background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; }

/* お問い合わせ */
.sec-contact { background: var(--paper-2); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.tel-card { padding: 28px; background: var(--ai); color: #fff; }
.tel-card a { color: #fff; }
.tel-label { font-size: 15px; letter-spacing: .1em; margin-bottom: .2em; opacity: .9; }
.tel-big { display: block; font-family: var(--mincho); font-weight: 700; font-size: clamp(30px, 3.4vw, 42px); letter-spacing: .03em; text-decoration: none; line-height: 1.3; margin-bottom: .4em; }
.tel-sub { font-size: 16px; margin: 0 0 .3em; }
.form { background: var(--card); border: 1px solid var(--rule); padding: 30px; }
.f-row { margin-bottom: 20px; }
.f-row label { display: flex; align-items: center; gap: .6em; font-weight: 700; margin-bottom: 6px; }
.req, .opt { font-size: 12.5px; padding: 0 .5em; line-height: 1.7; border-radius: 2px; }
.req { background: var(--shu); color: #fff; }
.opt { background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--rule); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea {
  width: 100%; font: inherit; font-size: 18px; padding: 12px 14px; color: var(--ink);
  background: #fff; border: 1.5px solid #a99c84; border-radius: 2px;
}
.form input:focus, .form select:focus, .form textarea:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid #e2a23b; outline-offset: 2px; }
.f-agree { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; margin: 6px 0 20px; font-size: 16px; }
.f-agree input { width: 22px; height: 22px; }
.f-submit { width: 100%; }
.form-note-live { margin: 14px 0 0; font-weight: 700; color: var(--shu); }

/* 保険薬局としてのご案内 */
.notice { padding: 56px 0 64px; background: #fff; border-top: 2px solid var(--ink); }
.notice h2 { font-size: 24px; margin-bottom: .6em; }
.notice-list { margin: 0 0 1em; padding: 0; list-style: none; columns: 2; column-gap: 40px; }
.notice-list li { break-inside: avoid; padding: 10px 0; border-bottom: 1px dashed var(--rule); }
.notice-more { margin: 0; }

/* フッター */
.ft { background: var(--ink); color: #f2ece0; padding: 48px 0 110px; font-size: 16px; }
.ft a { color: #fff; }
.ft-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; }
.ft p { margin: 0 0 .35em; }
.ft-name { font-family: var(--mincho); font-weight: 700; font-size: 26px; letter-spacing: .1em; }
.ft-name small { font-family: var(--gothic); font-size: 13px; font-weight: 400; letter-spacing: .04em; margin-left: 1em; opacity: .8; }
.ft-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; align-content: start; }
.ft-copy { text-align: center; margin: 32px 0 0; font-size: 13px; opacity: .7; }

/* SP 下部の追従 CTA */
.sp-cta { display: none; }

/* ---------- タブレット ---------- */
@media (max-width: 1080px) {
  .hd-tel small { display: none; }
  .gnav a { padding: .4em .55em; font-size: 15.5px; }
  .hero-tate { display: none; }
}

/* ---------- SP ---------- */
@media (max-width: 900px) {
  body { font-size: 17.5px; }
  .sp { display: inline; }
  .hd-in { min-height: 64px; gap: 12px; }
  .logo-main { font-size: 23px; }
  .logo-sub { font-size: 11px; }
  .hd-cta { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; align-items: center; gap: 2px; margin-left: auto;
    min-width: 60px; min-height: 52px; padding: 6px; font: 700 12px/1 var(--gothic); color: var(--ink);
    background: transparent; border: 1px solid var(--rule); border-radius: 2px;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; }
  .nav-toggle span { margin: 9px 0 10px; }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { top: -7px; }
  .nav-toggle span::after { top: 7px; }
  .gnav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; gap: 0; margin: 0;
    background: var(--paper); border-bottom: 2px solid var(--ink);
  }
  .gnav.is-open { display: flex; }
  .gnav a { padding: 16px 20px; font-size: 18px; border-bottom: 1px solid var(--rule); }

  .hero-in { grid-template-columns: 1fr; gap: 40px; padding: 44px 0 56px; }
  .hero-visual { justify-self: start; max-width: min(380px, calc(100% - 20px)); margin-left: 20px; }
  .btn-lg { font-size: 16.5px; padding: .6em 1em; }
  .btn .num { white-space: nowrap; }
  .ledger { margin-left: -20px; }
  .hero-cta .btn { width: 100%; }

  .sec { padding: 64px 0; }
  .sec-head { grid-template-columns: 52px minmax(0, 1fr); gap: 16px; margin-bottom: 36px; }
  .sec-no { font-size: 32px; padding: 8px 0 12px; }

  .chron { margin-left: 0; }
  .chron li { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
  .chron li::before { left: 92px; }
  .chron li::after { left: 86px; }
  .chron time { font-size: 28px; padding-right: 14px; }
  .chron li.is-now time { font-size: 23px; }
  .chron-body { padding-left: 14px; }
  .chron-body h3 { font-size: 19px; }
  .chron-span-label { display: none; }

  .greeting { grid-template-columns: 1fr; gap: 6px; padding: 20px; }
  .person { grid-template-columns: 110px minmax(0, 1fr); gap: 18px; }
  .p-name { font-size: 25px; }
  .p-meta { grid-template-columns: 1fr; gap: 4px; }
  .p-meta dt { border-top: 0; padding-top: .4em; }
  .p-meta dd { border-top: 0; }
  .quals li { font-size: 15px; }

  .menu-cols, .kampo-grid, .shop-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .album { grid-template-columns: 1fr 1fr; gap: 12px; }
  .al-1 { grid-column: 1 / -1; }
  .al-2, .al-3, .al-4 { grid-column: auto; }
  .al-4, .al-5 { grid-column: 1 / -1; }
  .al-4 { max-width: 442px; }

  .spec th { width: 7em; }
  .spec th, .spec td { padding: 14px 10px; }
  .recruit-cta .btn { width: 100%; }

  .notice-list { columns: 1; }
  .form { padding: 20px; }
  .ft-in { grid-template-columns: 1fr; }

  .sp-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    display: grid; grid-template-columns: 1fr 1fr;
    box-shadow: 0 -6px 20px -10px rgba(0, 0, 0, .4);
  }
  .sp-cta a {
    display: flex; align-items: center; justify-content: center; min-height: 62px;
    font-size: 18px; font-weight: 700; text-decoration: none; padding-bottom: env(safe-area-inset-bottom);
  }
  .sp-tel { background: var(--ai); color: #fff; }
  .sp-form { background: var(--card); color: var(--ai); border-top: 2px solid var(--ai); }
}
