/* ============================================================
   医療法人社団 住吉医院 — 共通スタイルシート
   Inner pages shared CSS (BEM / mobile-first / LF / UTF-8)
   ============================================================ */

/* ===== Variables ===== */
:root {
  --c-primary:       #1C7C6B;
  --c-primary-dark:  #145E50;
  --c-primary-light: #D8F3EC;
  --c-accent:        #E07B3A;
  --c-accent-dark:   #C0622A;
  --c-text:          #2D3748;
  --c-text-muted:    #718096;
  --c-border:        #E2E8F0;
  --c-bg:            #F7F9F9;
  --c-white:         #FFFFFF;
  --font:            'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Yu Gothic', YuGothic, Meiryo, sans-serif;
  --shadow-sm:       0 1px 3px rgba(0,0,0,.08);
  --shadow-md:       0 4px 12px rgba(0,0,0,.1);
  --shadow-lg:       0 10px 30px rgba(0,0,0,.1);
  --r:               8px;
  --r-lg:            16px;
  --max-w:           1100px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
address { font-style: normal; }

/* ===== Utilities ===== */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--alt { background: var(--c-bg); }
.sec-head { text-align: center; margin-bottom: 3rem; }
.sec-head__en {
  display: inline-block; font-size: .75rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-primary); margin-bottom: .6rem;
}
.sec-head__ja { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .75rem 1.75rem; border-radius: var(--r);
  font-weight: 700; font-size: .9rem; cursor: pointer;
  transition: all .2s; white-space: nowrap; border: 2px solid transparent;
}
.btn--primary   { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.btn--primary:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--outline   { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn--outline:hover { background: var(--c-primary); color: #fff; transform: translateY(-1px); }
.btn--white     { background: #fff; color: var(--c-primary-dark); border-color: #fff; }
.btn--white:hover { background: var(--c-primary-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost     { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn--ghost:hover { background: rgba(255,255,255,.15); border-color: #fff; transform: translateY(-2px); }
.btn--accent    { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.btn--accent:hover { background: var(--c-accent-dark); border-color: var(--c-accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; box-shadow: var(--shadow-sm);
  transition: background .35s, box-shadow .35s;
}
.site-header.header--glass {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 24px rgba(0,0,0,.09);
}
.header-in {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; height: 64px; gap: 1rem;
}
.header-logo { flex-shrink: 0; }
.header-logo__name { font-size: .95rem; font-weight: 700; color: var(--c-primary-dark); line-height: 1.3; }
.header-logo__sub  { font-size: .65rem; color: var(--c-text-muted); }

.header-nav { display: flex; align-items: center; gap: .15rem; margin: 0 auto; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: .2rem;
  padding: .5rem .75rem; font-size: .85rem; font-weight: 500;
  border-radius: var(--r); transition: background .15s; white-space: nowrap;
}
.nav-link:hover { background: var(--c-primary-light); color: var(--c-primary); }
.nav-link--dd::after {
  content: ''; display: inline-block; width: 0; height: 0;
  border: 4px solid transparent; border-top-color: currentColor; margin-top: 3px;
}
.nav-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; min-width: 190px;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: .4rem 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .2s; z-index: 200;
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a { display: block; padding: .55rem 1rem; font-size: .82rem; transition: background .15s; }
.nav-dropdown a:hover { background: var(--c-primary-light); color: var(--c-primary); }

.header-phone { flex-shrink: 0; text-align: right; }
.header-phone__lbl { font-size: .62rem; color: var(--c-text-muted); }
.header-phone__num {
  display: block; font-size: 1.05rem; font-weight: 700;
  color: var(--c-primary-dark); letter-spacing: .04em;
}

.hamburger {
  display: none; flex-direction: column; justify-content: center;
  align-items: center; gap: 5px; width: 40px; height: 40px;
  cursor: pointer; background: none; border: none; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--c-text); border-radius: 2px; transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Mobile Menu ===== */
.mobile-menu {
  display: none; position: fixed; inset: 64px 0 0 0;
  background: #fff; z-index: 99; overflow-y: auto;
  padding: 1.25rem 1.5rem 3rem;
}
.mobile-menu.open { display: block; }
.mm-phone {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem; background: var(--c-primary-light);
  border-radius: var(--r); margin-bottom: 1.5rem;
}
.mm-phone__num { font-size: 1.2rem; font-weight: 700; color: var(--c-primary-dark); }
.mm-section { margin-bottom: 1.5rem; }
.mm-title {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--c-text-muted);
  padding-bottom: .4rem; margin-bottom: .5rem; border-bottom: 1px solid var(--c-border);
}
.mm-link { display: block; padding: .7rem .5rem; font-size: .9rem; border-bottom: 1px solid var(--c-border); }

/* ===== Page Hero (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, #0D4A3E 100%);
  padding: 3rem 0 2.5rem;
  color: #fff;
}
.page-hero__ttl {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: .75rem;
  line-height: 1.3;
}
.breadcrumb__list {
  display: flex; align-items: center; gap: .4rem;
  font-size: .78rem; color: rgba(255,255,255,.6);
  flex-wrap: wrap;
}
.breadcrumb__list li + li::before {
  content: '/'; margin-right: .4rem; opacity: .5;
}
.breadcrumb__list a { color: rgba(255,255,255,.75); transition: color .15s; }
.breadcrumb__list a:hover { color: #fff; }
.breadcrumb__list li:last-child { color: rgba(255,255,255,.9); }

/* ===== Page Content Layout ===== */
.page-content { padding: 4rem 0 5rem; }
.page-content--alt { background: var(--c-bg); }
.page-wrap { max-width: 860px; }

.page-section { margin-bottom: 3.5rem; }
.page-section:last-child { margin-bottom: 0; }

.page-h2 {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: var(--c-primary-dark);
  padding-bottom: .7rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--c-primary-light);
}
.page-h3 {
  font-size: 1rem; font-weight: 700; margin-bottom: .8rem; color: var(--c-text);
}
.page-p {
  font-size: .92rem; line-height: 2; margin-bottom: 1rem; color: var(--c-text);
}
.page-p:last-child { margin-bottom: 0; }

/* ===== Info Rows ===== */
.info-rows { display: flex; flex-direction: column; gap: .75rem; }
.info-row {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .8rem .9rem; background: var(--c-bg); border-radius: var(--r);
}
.info-row__ico {
  width: 30px; height: 30px; flex-shrink: 0;
  background: var(--c-primary-light); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
}
.info-row__ico svg {
  width: 15px; height: 15px; stroke: var(--c-primary); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.info-row__lbl { font-size: .68rem; font-weight: 700; color: var(--c-primary); margin-bottom: .15rem; }
.info-row__val { font-size: .85rem; line-height: 1.7; }

/* ===== Timetable ===== */
.timetable { width: 100%; border-collapse: collapse; font-size: .82rem; }
.timetable th {
  background: var(--c-primary); color: #fff;
  padding: .55rem .4rem; text-align: center;
  border: 1px solid var(--c-primary-dark); font-weight: 500;
}
.timetable th:first-child { text-align: left; padding-left: .9rem; }
.timetable td {
  padding: .55rem .4rem; text-align: center; border: 1px solid var(--c-border);
}
.timetable td:first-child {
  text-align: left; padding-left: .9rem;
  font-size: .76rem; color: var(--c-text-muted); background: var(--c-bg);
}
.mark-yes { color: var(--c-primary); font-weight: 700; }
.mark-no  { color: var(--c-text-muted); }
.tbl-note { margin-top: .8rem; font-size: .75rem; color: var(--c-text-muted); }
.tbl-note li::before { content: '※ '; }
.tbl-note li + li { margin-top: .25rem; }

/* ===== General Table ===== */
.page-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.page-table th {
  background: var(--c-primary-light); color: var(--c-primary-dark);
  padding: .65rem 1rem; text-align: left; border: 1px solid var(--c-border);
  font-weight: 700; white-space: nowrap; vertical-align: top;
  width: 30%;
}
.page-table td {
  padding: .65rem 1rem; border: 1px solid var(--c-border);
  vertical-align: top; line-height: 1.75;
}
.page-table tr:nth-child(even) td { background: var(--c-bg); }

/* ===== Card Grid ===== */
.card-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.25rem; }
.card {
  background: var(--c-white); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: 1.5rem 1.25rem;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card__ttl { font-size: .95rem; font-weight: 700; margin-bottom: .6rem; color: var(--c-primary-dark); }
.card__body { font-size: .82rem; color: var(--c-text-muted); line-height: 1.75; }

/* ===== Scroll fade-in ===== */
.fi { opacity: 0; transform: translateY(22px); transition: opacity .55s ease var(--fi-delay,0s), transform .55s ease var(--fi-delay,0s); }
.fi.fi-visible { opacity: 1; transform: none; }

/* ===== Office block (複数事業所をまとめて表示) ===== */
.office-block {
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  background: var(--c-white);
}
.office-block__ttl {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-primary-dark);
  padding-bottom: .75rem;
  margin-bottom: 1.1rem;
  border-bottom: 2px solid var(--c-primary-light);
}
.office-block__cta { margin-top: 1.25rem; }

/* ===== Tel link ===== */
.tel-link { color: var(--c-primary); font-weight: 700; }
.tel-link:hover { color: var(--c-primary-dark); }

/* ===== Highlight box ===== */
.highlight-box {
  background: var(--c-primary-light);
  border-left: 4px solid var(--c-primary);
  border-radius: var(--r);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.highlight-box__ttl { font-size: .85rem; font-weight: 700; color: var(--c-primary-dark); margin-bottom: .4rem; }
.highlight-box__body { font-size: .85rem; line-height: 1.8; }

/* ===== Notice box ===== */
.notice-box {
  background: #FFF8F0;
  border: 1px solid #FCDCBA;
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  font-size: .82rem;
  line-height: 1.8;
}
.notice-box__ttl { font-weight: 700; color: var(--c-accent-dark); margin-bottom: .4rem; }

/* ===== Reserve Box ===== */
.reserve-box {
  margin-top: 1.5rem; padding: 1.1rem 1.2rem;
  background: var(--c-primary-light); border-radius: var(--r-lg);
  border-left: 4px solid var(--c-primary);
}
.reserve-box__ttl { font-size: .82rem; font-weight: 700; color: var(--c-primary-dark); margin-bottom: .75rem; }
.reserve-box__btns { display: flex; gap: .7rem; flex-wrap: wrap; }

/* ===== Sub-title ===== */
.sub-title {
  font-size: 1rem; font-weight: 700; padding-bottom: .7rem;
  margin-bottom: 1.1rem; border-bottom: 2px solid var(--c-primary-light);
}

/* ===== Access Map ===== */
.access-map { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 1.5rem; }
.access-map iframe { display: block; width: 100%; height: 340px; border: none; }

/* ===== Recruit Banner ===== */
.recruit-banner {
  background: linear-gradient(135deg, #2A5F6E 0%, #1B4756 100%);
  padding: 3rem 0; margin-top: 4rem;
}
.recruit-banner__in {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.recruit-banner__en   { font-size: .72rem; font-weight: 700; letter-spacing: .1em; color: rgba(255,255,255,.5); margin-bottom: .4rem; }
.recruit-banner__ttl  { font-size: clamp(1rem,2.5vw,1.4rem); font-weight: 700; color: #fff; margin-bottom: .5rem; }
.recruit-banner__body { font-size: .82rem; color: rgba(255,255,255,.7); max-width: 480px; line-height: 1.85; }
.btn--recruit {
  background: #fff; color: #2A5F6E; border-color: #fff;
  padding: 1rem 2.5rem; font-size: .95rem; border-radius: var(--r-lg);
}
.btn--recruit:hover { background: var(--c-primary-light); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ===== Footer ===== */
.site-footer { background: #0F201C; color: rgba(255,255,255,.65); padding: 3.5rem 0 2rem; }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem; margin-bottom: 2.5rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand__name { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: .65rem; }
.footer-brand__addr { font-size: .78rem; line-height: 1.9; color: rgba(255,255,255,.5); }
.footer-brand__tel {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: 1rem; font-weight: 700; color: #fff; margin-top: .65rem;
}
.footer-brand__tel svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fnav__title {
  font-size: .65rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: .85rem;
}
.fnav__list  { display: flex; flex-direction: column; gap: .55rem; }
.fnav__link  { font-size: .78rem; color: rgba(255,255,255,.6); transition: color .15s; }
.fnav__link:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.footer-copy   { font-size: .72rem; color: rgba(255,255,255,.3); }
.footer-sub-links { display: flex; gap: 1.5rem; }
.footer-sub-links a { font-size: .72rem; color: rgba(255,255,255,.45); transition: color .15s; }
.footer-sub-links a:hover { color: rgba(255,255,255,.85); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header-nav, .header-phone { display: none; }
  .hamburger { display: flex; }
  .section { padding: 3.5rem 0; }
  .page-content { padding: 2.5rem 0 3.5rem; }
  .card-grid { grid-template-columns: 1fr; }
  .recruit-banner__in { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-table th { width: auto; white-space: normal; }
}
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
