/*
Theme Name: Medical Care Home Himawari
Description: メディカルケアホーム向日葵の施設案内
Version: 1.0.1
Text Domain: medical-munakata
*/
:root {
  color-scheme: light;
  --ink: #172c36;
  --muted: #485a60;
  --navy: #173540;
  --gold: #f1c65b;
  --cream: #fbf7ed;
  --line: #ded9ca;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: #fffcf7;
  font: 1rem/1.8 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}
h1, h2, h3, p, figure, dl { margin: 0; }
.nw { display: inline-block; }
h1, h2 { font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; }
h1 { font-size: clamp(2.1rem, 4.35vw, 4rem); line-height: 1.24; letter-spacing: .015em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.85rem); line-height: 1.38; }
h3 { font-size: 1.2rem; line-height: 1.45; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 3px solid #986000; outline-offset: 4px; }
.skip { position: absolute; top: -10rem; left: 1rem; padding: .6rem; background: white; z-index: 1; }
.skip:focus { top: 1rem; }
.wrap { width: min(calc(100% - 3rem), 74rem); margin-inline: auto; }
.header { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .35rem 1.25rem; padding-block: .9rem; }
.header > .brand { justify-self: start; }
.brand { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; font-weight: 750; text-decoration: none; }
.sun { font-size: 1.55rem; color: #8a5a13; line-height: 1; }
.header nav { display: flex; gap: 1.25rem; }
nav a, .header-contact { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .89rem; font-weight: 650; text-decoration: none; }
nav a:hover, .header-contact:hover { text-decoration: underline; }
.header-contact { padding-inline: .85rem; border: 1px solid #a0aaab; border-radius: .35rem; }
.hero { padding-block: clamp(2rem, 5.5vw, 5.4rem); background: var(--cream); }
.hero-grid { display: grid; grid-template-columns: .93fr 1.07fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero-kicker { margin-bottom: 1rem; }
.location, .opening-date { color: #5c451b; font-size: .93rem; font-weight: 700; }
.opening-date { margin-top: .2rem; }
.location::before { content: ""; width: 1.45rem; height: .18rem; margin-right: .55rem; vertical-align: middle; display: inline-block; background: #a57422; }
.hero-copy > p:last-of-type { max-width: 30rem; margin-top: 1.25rem; color: var(--muted); }
figure { position: relative; }
figure img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1.1rem; }
figcaption { position: absolute; bottom: .8rem; left: .8rem; padding: .2rem .65rem; border-radius: .25rem; background: #fffcf7; font-size: .82rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.1rem; margin-top: 1.55rem; }
.button, .text-link { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; }
.button { gap: .65rem; padding: .62rem 1rem; background: var(--gold); border: 1px solid #b78b31; border-radius: .4rem; text-decoration: none; }
.button:hover { background: #f6d482; }
.text-link { font-size: .92rem; }
.section { padding-block: clamp(2.8rem, 6vw, 5rem); }
.lead { max-width: 42rem; margin-top: .7rem; color: var(--muted); }
.care-grid, .fees-grid, .contact-grid, .nursing-grid, .steps { display: grid; gap: 1rem; }
.care-grid, .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.care-grid, .fees-grid { margin-top: 1.4rem; }
.care-grid article, .panel { padding: clamp(1rem, 2.6vw, 1.7rem); border: 1px solid var(--line); border-radius: .6rem; background: #fff; }
.care-grid article { border-top: .22rem solid #ce9b36; }
.care-grid p, .panel p { margin-top: .65rem; }
.care-grid a { margin-top: .25rem; }
.nursing { background: #f9efd4; }
.nursing-grid { grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(1.4rem, 4vw, 3.5rem); }
.nursing .text-link { margin-top: .5rem; }
details { border: 1px solid #beab83; border-radius: .6rem; background: #fffefb; }
summary { position: relative; list-style: none; min-height: 3.25rem; padding: .85rem 3rem .85rem 1.1rem; cursor: pointer; font-weight: 750; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+" / ""; position: absolute; right: 1.1rem; top: .62rem; font-size: 1.28rem; }
details[open] summary::after { content: "−" / ""; }
.medical-list { padding: 0 1.1rem .5rem; }
.medical-list div { padding-block: .7rem; border-top: 1px solid var(--line); }
dt { font-weight: 700; }
dd { margin: 0; }
.medical-list dd { color: var(--muted); }
.fees-grid, .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel .price { margin: .2rem 0 .6rem; font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.22; font-weight: 750; }
.price span { margin-left: .25em; font-size: .5em; }
.rows { margin-top: 1rem; }
.rows div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .7rem; border-top: 1px solid var(--line); padding-block: .43rem; }
.note { font-size: .92rem; }
.flow { background: var(--cream); }
.steps { margin: 1.35rem 0 0; padding: 0 0 0 1.6rem; font-weight: 700; }
.steps li { padding: .55rem .2rem; }
.steps li::marker { color: #80570f; }
.contact { background: var(--navy); color: #fffdf7; }
.contact p { margin-top: .65rem; }
.contact-grid { align-items: start; }
.contact-card { padding: 1.25rem 1.4rem; border: 1px solid #82969c; border-radius: .6rem; }
.footer { padding-block: 1rem; }
.footer-operator, .footer-details, .footer-copyright { font-size: max(14px, .875rem); }
.footer-details { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: 0; }
.footer-copyright { margin-top: .4rem; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2rem); }
  h1, h2, h3 { text-wrap: balance; }
  p, dd, li { text-wrap: pretty; line-break: strict; }
  .header { grid-template-columns: max-content 1fr; gap: 0 .75rem; padding-block: .38rem; }
  .header > .brand { grid-column: 1 / -1; }
  .header nav { gap: .75rem; }
  nav a { font-size: .83rem; }
  .header-contact { justify-self: start; padding-inline: .45rem; font-size: .78rem; }
  .hero-grid, .nursing-grid, .fees-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .header { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand contact" "nav nav"; gap: .5rem; }
  .header > .brand { grid-area: brand; }
  .header-contact { grid-area: contact; white-space: nowrap; }
  .header nav { grid-area: nav; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .header nav a { justify-content: center; white-space: nowrap; }
  .brand { font-size: .9rem; }
  .brand .sun { font-size: 1.3rem; }
  .care-grid, .steps { grid-template-columns: 1fr; }
  .steps { gap: .1rem; }
}
address { margin-top: .65rem; font-style: normal; }
.phone-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: .4rem;
  color: var(--gold);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 750;
}
.contact a:focus-visible { outline-color: var(--gold); }
