/*
Theme Name: 姉歯石越病院
Theme URI: https://ourakai.jp/
Author: 医療法人財団 大浦会
Description: 姉歯石越病院のための軽量な独自WordPressテーマ。患者・家族・医療福祉関係者・求職者が必要な情報へ迷わず進める構成です。
Version: 0.3.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: ourakai-hospital
*/

:root {
  font-family: "BIZ UDPGothic", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: #17302f; background: #fff; font-synthesis: none; text-rendering: optimizeLegibility;
  --green-950: #175653; --green-800: #287b74; --green-600: #4a988f;
  --mint-100: #edf7f2; --mint-50: #f8fcfa; --orange: #db7040;
  --orange-soft: #fff7f2; --ink: #244341; --muted: #607674;
  --line: #e2ece7; --shadow: 0 10px 26px rgba(35, 100, 92, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: #fff; font-size: 16px; line-height: 1.8; letter-spacing: .015em; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
i.ph { line-height: 1; }
.shell { width: min(1420px, calc(100% - 64px)); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; padding: 12px 18px; border-radius: 8px; color: #fff; background: var(--green-950); }
.skip-link:focus { top: 16px; }

.site-header { position: relative; z-index: 30; background: rgba(255,255,255,.99); }
.header-top { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: flex; align-items: baseline; gap: 20px; color: var(--green-950); font-family: inherit; }
.wordmark span { font-size: 17px; font-weight: 700; letter-spacing: .04em; }
.wordmark strong { font-size: 27px; font-weight: 600; letter-spacing: .05em; white-space: nowrap; }
.wordmark .custom-logo-link { display: block; }
.wordmark .custom-logo { width: auto; max-height: 64px; }
.phone-pill { display: inline-flex; align-items: center; gap: 9px; padding: 9px 22px; border: 1px solid #cfe1d8; border-radius: 999px; color: var(--green-950); background: var(--mint-50); font-family: inherit; font-size: 23px; font-weight: 600; letter-spacing: .03em; }
.phone-pill i { font-size: 23px; }
.menu-button { display: none; border: 0; border-radius: 10px; width: 48px; height: 48px; align-items: center; justify-content: center; color: #fff; background: var(--green-950); font-size: 27px; cursor: pointer; }
.nav-wrap { min-height: 57px; display: grid; grid-template-columns: 70px 1fr; align-items: stretch; border: 1px solid #e4ede9; border-radius: 19px; overflow: hidden; transform: translateY(17px); background: rgba(255,255,255,.98); box-shadow: 0 7px 20px rgba(39,103,96,.07); }
.nav-wrap .menu { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); align-items: stretch; margin: 0; padding: 0; list-style: none; }
.nav-wrap a { min-width: 0; display: flex; align-items: center; justify-content: center; padding: 8px 14px; border-right: 1px solid #e0e8e4; font-size: 15px; font-weight: 700; text-align: center; line-height: 1.35; transition: background .2s, color .2s; }
.nav-wrap li { display: flex; }
.nav-wrap li a { width: 100%; }
.nav-wrap a:hover, .nav-wrap a:focus-visible { color: var(--green-800); background: var(--mint-100); outline: none; }
.nav-wrap .home-link { color: #fff; background: var(--green-800); font-size: 22px; }
.nav-wrap .home-link:hover, .nav-wrap .home-link:focus-visible { color: #fff; background: var(--green-950); }

.hero { position: relative; height: 500px; overflow: hidden; background: #eaf5f3; }
.hero > img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.hero-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding-bottom: 30px; pointer-events: none; }
.hero-copy p { width: max-content; margin: 0 0 14px; padding: 5px 14px; border-radius: 4px; color: var(--green-950); background: rgba(255,255,255,.88); font-weight: 700; letter-spacing: .08em; }
.hero h1 { margin: 0; color: var(--green-950); font-family: inherit; font-size: clamp(36px,3.5vw,56px); font-weight: 600; line-height: 1.45; letter-spacing: .045em; text-shadow: 0 1px 0 rgba(255,255,255,.95), 0 0 18px rgba(255,255,255,.88); }
.hero h1 span { font-size: .68em; }

.quick-section { position: relative; z-index: 5; margin-top: -58px; }
.quick-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.quick-card { min-height: 164px; display: grid; grid-template-columns: 64px 1fr 24px; align-items: center; gap: 12px; padding: 22px 16px; border: 1px solid #e7efeb; border-radius: 18px; background: rgba(255,255,255,.98); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.quick-card:hover, .quick-card:focus-visible { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(15,67,62,.17); outline: 3px solid rgba(36,133,123,.22); outline-offset: 2px; }
.icon-disc { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: var(--green-800); background: #f0f8f4; }
.icon-disc i { font-size: 36px; }
.quick-body { display: flex; flex-direction: column; gap: 8px; }
.quick-body strong { color: var(--green-950); font-family: inherit; font-size: 18px; font-weight: 600; line-height: 1.55; }
.quick-body > span { color: var(--muted); font-size: 14px; line-height: 1.7; }
.card-arrow { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--green-800); border-radius: 50%; color: var(--green-800); font-size: 16px; }

.front-panels { display: grid; grid-template-columns: 1fr 1.08fr; gap: 22px; padding-block: 46px 76px; }
.notice-panel, .contact-panel { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 8px 22px rgba(35,100,92,.045); }
.notice-panel { border-color: #f1c6aa; }
.panel-heading { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 26px; border-bottom: 1px solid #f4d8c5; background: #fffaf6; }
.panel-heading h2, .contact-panel h2 { margin: 0; color: var(--green-950); font-family: inherit; font-size: 20px; font-weight: 600; }
.panel-heading h2 { display: flex; align-items: center; gap: 12px; color: var(--orange); }
.panel-heading h2 i { font-size: 27px; }
.panel-heading > a { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; }
.notice-list { padding: 0 18px; }
.notice-list a { min-height: 64px; display: grid; grid-template-columns: 145px 1fr 24px; align-items: center; gap: 16px; padding: 12px 8px; border-bottom: 1px solid #ecefeb; }
.notice-list a:last-child { border-bottom: 0; }
.notice-list a:hover span, .notice-list a:focus-visible span { text-decoration: underline; text-underline-offset: 4px; }
.notice-list time { color: var(--muted); font-size: 14px; }
.empty-message { padding: 22px; color: var(--muted); }
.contact-panel h2 { padding: 18px 24px; text-align: center; border-bottom: 1px solid var(--line); background: var(--mint-50); }
.contact-grid { min-height: 135px; display: grid; grid-template-columns: repeat(3,1fr); }
.contact-grid a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 14px; border-right: 1px solid var(--line); text-align: center; }
.contact-grid a:last-child { border-right: 0; }
.contact-grid a:hover, .contact-grid a:focus-visible { background: var(--mint-50); outline: none; }
.contact-grid i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--green-800); background: var(--mint-100); font-size: 19px; }
.contact-grid span { color: var(--green-800); font-size: 13px; font-weight: 700; }
.contact-grid strong { color: var(--green-950); font-size: 16px; }
.contact-grid a:first-child strong { font-family: inherit; font-size: 20px; font-weight: 600; letter-spacing: .03em; }

.intro-section { padding: 96px 0; background: #f6fbf8; }
.intro-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 70px; }
.intro-grid > img { width: 100%; height: 430px; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 10px; color: var(--green-600); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.intro-copy h2, .section-heading h2, .recruit-inner h2 { margin: 0 0 22px; color: var(--green-950); font-family: inherit; font-size: clamp(30px,2.8vw,42px); font-weight: 600; line-height: 1.5; letter-spacing: .035em; }
.intro-copy > p:not(.eyebrow), .section-heading p:last-child { color: var(--muted); }
.outline-button, .solid-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; margin-top: 20px; padding: 11px 22px; border: 1px solid var(--green-800); border-radius: 7px; color: var(--green-800); font-weight: 700; }
.outline-button:hover, .outline-button:focus-visible { color: #fff; background: var(--green-800); outline: none; }
.services { padding-block: 96px; }
.section-heading { max-width: 700px; margin: 0 auto 42px; text-align: center; }
.service-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.service-grid a { min-height: 215px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 28px 20px; border: 1px solid var(--line); border-radius: 13px; background: #fff; text-align: center; box-shadow: 0 8px 22px rgba(15,67,62,.07); }
.service-grid a:hover, .service-grid a:focus-visible { border-color: var(--green-600); background: var(--mint-50); outline: none; }
.service-grid i { color: var(--green-600); font-size: 43px; }
.service-grid strong { color: var(--green-950); font-size: 20px; }
.service-grid span { color: var(--muted); font-size: 14px; }
.recruit-section { padding: 62px 0; color: #fff; background: var(--green-950); }
.recruit-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.recruit-inner .eyebrow { color: #a9d6cb; }
.recruit-inner h2 { margin-bottom: 10px; color: #fff; }
.recruit-inner p:last-child { margin: 0; color: #d6e6e2; }
.solid-button { flex: 0 0 auto; margin: 0; border-color: #fff; color: var(--green-950); background: #fff; }
.solid-button:hover, .solid-button:focus-visible { color: var(--orange); background: var(--orange-soft); outline: 3px solid rgba(255,255,255,.24); }

.content-shell { padding-block: 90px 110px; }
.page-header { margin-bottom: 48px; padding: 34px 40px; border-left: 6px solid var(--green-600); background: var(--mint-50); }
.page-header h1 { margin: 0; color: var(--green-950); font-family: inherit; font-size: clamp(30px,4vw,46px); font-weight: 600; line-height: 1.5; }
.post-date { margin: 0 0 8px; color: var(--muted); }
.entry-content-wrap { max-width: 1000px; margin-inline: auto; }
.entry-content { font-size: 17px; }
.entry-content h2 { margin-top: 2.2em; padding-bottom: .35em; border-bottom: 3px solid var(--mint-100); color: var(--green-950); font-family: inherit; font-weight: 600; }
.entry-content h3 { margin-top: 1.8em; color: var(--green-800); }
.entry-content a { color: var(--green-800); text-decoration: underline; text-underline-offset: 3px; }
.entry-content > p { max-width: 48em; }
.entry-content .page-lead { max-width: 44em; margin: 0 0 38px; color: var(--green-950); font-size: clamp(19px,2.1vw,24px); font-weight: 600; line-height: 1.9; }
.page-jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 42px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--mint-50); }
.entry-content .page-jump a { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 14px; border: 1px solid #cfe1d8; border-radius: 999px; color: var(--green-950); background: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.entry-content .page-jump a:hover, .entry-content .page-jump a:focus-visible { color: #fff; background: var(--green-800); outline: none; }
.page-jump > .wp-block-paragraph { margin: 0; }
.info-callout, .confirmation-note, .contact-cta { margin: 34px 0; padding: 24px 28px; border-radius: 16px; }
.info-callout { border: 1px solid #cfe1d8; background: var(--mint-50); }
.info-callout strong, .confirmation-note strong, .contact-cta strong { display: block; margin-bottom: 7px; color: var(--green-950); font-size: 19px; }
.info-callout p, .confirmation-note p, .contact-cta p { margin: 6px 0 0; }
.confirmation-note { border: 1px solid #efd1a8; background: #fff9ee; }
.confirmation-note::before { content: "院内確認用"; display: inline-block; margin-bottom: 10px; padding: 3px 9px; border-radius: 999px; color: #8b4a16; background: #ffe4be; font-size: 12px; font-weight: 800; }
.feature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 28px 0 42px; }
.feature-card { min-height: 150px; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 25px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 8px 22px rgba(35,100,92,.06); }
.entry-content a.feature-card { color: inherit; text-decoration: none; }
.feature-card strong { color: var(--green-950); font-size: 20px; }
.feature-card span { color: var(--muted); font-size: 15px; }
.feature-card .block-label, .feature-card .block-description, .fact-grid .block-label, .fact-grid .block-description { margin: 0; }
.feature-card .block-label { color: var(--green-950); font-size: 20px; }
.feature-card .block-description { color: var(--muted); font-size: 15px; }
.feature-card h3 { margin: 0 0 6px; font-size: 20px; }
.entry-content .feature-card h3 a { color: var(--green-950); text-decoration: none; }
.entry-content a.feature-card:hover, .entry-content a.feature-card:focus-visible { border-color: var(--green-600); background: var(--mint-50); outline: 3px solid rgba(74,152,143,.18); }
.fact-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 26px 0 35px; }
.fact-grid > div { min-height: 125px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px; border-radius: 15px; background: var(--mint-50); text-align: center; }
.fact-grid strong { color: var(--green-950); font-size: 29px; }
.fact-grid span { color: var(--muted); font-size: 14px; }
.step-list { counter-reset: ourakai-step; display: grid; gap: 14px; margin: 26px 0 40px; padding: 0; list-style: none; }
.step-list li { counter-increment: ourakai-step; position: relative; min-height: 78px; padding: 18px 20px 18px 78px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.step-list li::before { content: counter(ourakai-step); position: absolute; left: 20px; top: 17px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green-800); font-weight: 800; }
.step-list strong, .step-list span { display: block; }
.step-list strong { color: var(--green-950); font-size: 18px; }
.step-list span { margin-top: 3px; color: var(--muted); }
.check-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 22px; margin: 24px 0 38px; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 15px 16px 15px 45px; border-bottom: 1px solid var(--line); }
.check-list li::before { content: "✓"; position: absolute; left: 14px; top: 14px; color: var(--green-600); font-weight: 900; }
.contact-cta { border: 1px solid #cfe1d8; background: var(--mint-100); text-align: center; }
.entry-content .contact-cta a { display: inline-block; margin: 4px 0; color: var(--green-950); font-size: clamp(25px,3vw,34px); font-weight: 700; letter-spacing: .04em; text-decoration: none; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { background: var(--mint-50); }
.post-list { display: grid; gap: 18px; }
.post-card { padding: 24px 28px; border: 1px solid var(--line); border-radius: 12px; }
.post-card time { color: var(--muted); font-size: 14px; }
.post-card h2 { margin: 5px 0 8px; font-size: 22px; }
.post-card h2 a:hover { color: var(--green-800); text-decoration: underline; }
.error-page { min-height: 55vh; text-align: center; }

.site-footer { padding: 58px 0 20px; color: var(--green-950); background: #f2f6f3; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 50px; }
.footer-grid strong { display: flex; align-items: center; gap: 7px; font-size: 16px; }
.footer-grid > div:first-child strong { font-family: inherit; font-size: 20px; font-weight: 600; }
.footer-grid p { color: var(--muted); font-size: 14px; }
.footer-grid a { display: inline-flex; align-items: center; gap: 7px; font-family: inherit; font-size: 20px; font-weight: 600; letter-spacing: .03em; }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid #d5e1dc; color: var(--muted); font-size: 12px; }

@media (max-width: 1180px) {
  .shell { width: min(100% - 40px,1080px); }
  .wordmark span { display: none; }
  .nav-wrap { grid-template-columns: 56px 1fr; }
  .nav-wrap a { padding-inline: 8px; font-size: 13px; }
  .quick-grid { grid-template-columns: repeat(2,1fr); }
  .quick-card { min-height: 145px; }
  .front-panels { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .shell { width: min(100% - 30px,680px); }
  .header-top { height: 70px; }
  .wordmark { display: block; line-height: 1.25; }
  .wordmark span { display: block; font-size: 11px; }
  .wordmark strong { font-size: 20px; }
  .phone-pill { margin-left: auto; padding: 7px 12px; font-size: 17px; }
  .phone-pill i { font-size: 18px; }
  .menu-button { display: inline-flex; }
  .nav-wrap { display: none; position: absolute; top: 69px; left: 15px; right: 15px; width: auto; min-height: 0; transform: none; grid-template-columns: 1fr; border-radius: 12px; }
  .nav-wrap.is-open { display: block; }
  .nav-wrap .home-link { display: none; }
  .nav-wrap .menu { display: grid; grid-template-columns: 1fr; }
  .nav-wrap li { display: block; }
  .nav-wrap a { min-height: 50px; justify-content: flex-start; padding: 12px 18px; border-right: 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; }
  .hero { height: 430px; }
  .hero > img { object-position: 24% center; }
  .hero::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.35); }
  .hero-copy { z-index: 1; justify-content: flex-end; padding-bottom: 90px; }
  .hero-copy p { font-size: 13px; }
  .hero h1 { font-size: clamp(32px,9vw,48px); line-height: 1.35; }
  .hero h1 span { display: inline-block; margin-top: 8px; font-size: .58em; }
  .quick-section { margin-top: -52px; }
  .quick-grid { grid-template-columns: 1fr; gap: 10px; }
  .quick-card { min-height: 112px; grid-template-columns: 62px 1fr 25px; gap: 14px; padding: 18px; }
  .icon-disc { width: 62px; height: 62px; }
  .icon-disc i { font-size: 34px; }
  .quick-body strong { font-size: 18px; }
  .quick-body > span { display: none; }
  .front-panels { padding-block: 40px 60px; }
  .panel-heading { min-height: 62px; padding: 12px 16px; }
  .panel-heading h2 { font-size: 18px; }
  .panel-heading > a { font-size: 12px; }
  .notice-list a { grid-template-columns: 1fr 24px; gap: 6px 10px; padding: 14px 4px; }
  .notice-list time, .notice-list span { grid-column: 1; }
  .notice-list i { grid-column: 2; grid-row: 1 / span 2; }
  .contact-panel h2 { font-size: 17px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid a { min-height: 108px; border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-grid a:last-child { border-bottom: 0; }
  .intro-section, .services { padding-block: 70px; }
  .intro-grid { grid-template-columns: 1fr; gap: 35px; }
  .intro-grid > img { height: 270px; order: -1; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .recruit-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .page-header { padding: 24px; }
  .entry-content { font-size: 16px; }
  .entry-content table { display: block; overflow-x: auto; white-space: nowrap; }
  .feature-grid, .check-list { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: 1fr; }
  .fact-grid > div { min-height: 100px; }
  .info-callout, .confirmation-note, .contact-cta { padding: 20px; }
  .step-list li { padding-left: 70px; }
}
@media (max-width: 500px) {
  .phone-pill span { font-size: 0; }
  .phone-pill span::after { content: "電話する"; font-family: inherit; font-size: 14px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid a { min-height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
