:root{--olive:#8da650;--dark:#344f31;--darker:#243728;--light:#f4f7ed;--light2:#fafbf6;--ink:#25362c;--muted:#687365;--line:#e0e8d8;--warm:#fff6e9;--rose:#af4b4b;--shadow:0 14px 45px rgba(42,62,34,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--ink);font-family:system-ui,-apple-system,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;line-height:1.85}a{color:inherit;text-decoration:none}button,input,textarea{font:inherit}button{cursor:pointer}img{max-width:100%;display:block}.shell{max-width:1140px;margin:0 auto;padding:0 28px}.skip-link{position:absolute;z-index:999;background:white;left:0;top:-90px;padding:10px}.skip-link:focus{top:0}:focus-visible{outline:3px solid #5e842e;outline-offset:3px}
.site-header{position:relative;background:white;z-index:15;box-shadow:0 1px 20px rgba(20,40,18,.05)}.header-row{display:flex;align-items:center;gap:24px;justify-content:space-between;min-height:96px}.brand{display:block;flex:0 0 auto}.site-nav{display:flex;align-items:center;gap:23px;font-size:14px;font-weight:700;white-space:nowrap}.site-nav a{border-bottom:2px solid transparent;padding:13px 0}.site-nav a:hover,.site-nav a[aria-current]{color:var(--dark);border-color:var(--olive)}.header-phone{border:1px solid #cbd8b2;border-radius:999px;padding:9px 14px;font-size:14px;color:var(--dark);font-weight:800;white-space:nowrap}.menu-toggle{display:none;background:var(--light);border:1px solid var(--line);border-radius:8px;padding:8px 12px;color:var(--dark);font-weight:700}
.hero{background:var(--light);display:grid;grid-template-columns:minmax(0,57%) minmax(0,43%);min-height:515px}.hero-picture{position:relative;min-height:515px;overflow:hidden}.hero-picture img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:center}.hero-content{background:var(--dark);color:white;display:flex;align-items:center;padding:64px max(28px,calc((100vw - 1140px)/2)) 64px 7%;position:relative}.hero-content:before{content:"";position:absolute;inset:0;background:linear-gradient(150deg,transparent,#243b2a66);pointer-events:none}.hero-content-inner{position:relative;max-width:520px}.eyebrow{color:var(--olive);font-size:13px;letter-spacing:.19em;font-weight:800}.hero-content .eyebrow{color:#d8e7bb}.hero h1{font-size:clamp(30px,3.2vw,45px);line-height:1.5;letter-spacing:.05em;margin:23px 0}.hero p{color:#e3ecde;font-size:15px}.hero-cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}.btn{display:inline-flex;justify-content:center;align-items:center;gap:10px;border:0;border-radius:10px;padding:13px 22px;background:var(--dark);color:white;font-weight:750;font-size:14px;line-height:1.5;transition:transform .18s,background .18s}.btn:hover{transform:translateY(-2px);background:#496d40}.btn-white{background:white;color:var(--dark)}.btn-white:hover{background:#f4f7ed}.btn-ghost{background:transparent;border:1px solid #ffffffaa;color:white}.btn-ghost:hover{background:#ffffff18}.quick{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:30px}.quick-link{display:flex;align-items:center;gap:14px;box-shadow:var(--shadow);border:1px solid var(--line);background:white;border-radius:16px;padding:22px 20px}.quick-link:hover{border-color:var(--olive)}.quick-icon{flex:none;background:var(--light);color:var(--dark);font-size:24px;border-radius:50%;display:grid;place-items:center;width:48px;height:48px}.quick-link b,.quick-link small{display:block}.quick-link b{font-size:15px}.quick-link small{color:var(--muted);font-size:12px}.quick-arrow{margin-left:auto;color:var(--olive)}
.section{padding:92px 0}.section-cream{background:var(--light)}.section-title{font-size:clamp(26px,2.8vw,36px);margin:5px 0 12px;letter-spacing:.03em;line-height:1.5}.section-lead{color:var(--muted);margin:0 0 32px}.notice-list{border-top:1px solid var(--line)}.notice-row{display:grid;grid-template-columns:125px 1fr;gap:24px;border-bottom:1px solid var(--line);padding:23px 12px}.notice-row time{font-weight:800;color:var(--dark);font-size:14px}.notice-row h3{font-size:16px;margin:0 0 5px}.notice-row p{font-size:14px;margin:0;white-space:pre-line;color:#536050}.notice-row a{text-decoration:underline;text-decoration-color:#b0bd99}.empty-note{background:var(--light2);border-radius:12px;padding:28px;color:var(--muted)}.feature{background:var(--light);padding:44px 0}.feature-grid{display:grid;grid-template-columns:1fr auto;align-items:center;gap:22px}.feature h2{font-size:26px;margin:5px 0}.feature p{font-size:14px;max-width:830px;margin:0}.hours-grid{display:grid;grid-template-columns:1.55fr 1fr;gap:36px;margin-top:28px}.table-scroll{overflow-x:auto}.hours-table{border-collapse:collapse;width:100%;text-align:center;min-width:500px;font-size:14px}.hours-table th,.hours-table td{border:1px solid var(--line);padding:13px 8px}.hours-table thead th{background:var(--dark);color:white}.hours-table tbody th{background:var(--light2);white-space:nowrap}.hours-table td{color:var(--dark);font-weight:800}.note{color:var(--muted);font-size:13px}.soft-card{border:1px solid var(--line);background:var(--light2);border-radius:16px;padding:30px}.soft-card h3{margin:6px 0 17px;font-size:22px}.chips{display:flex;flex-wrap:wrap;gap:9px}.chips span{padding:7px 13px;border-radius:22px;background:white;border:1px solid var(--line);font-size:13px;font-weight:700}.soft-card p{font-size:14px;color:#536050}.text-link{color:var(--dark);font-weight:800;text-decoration:underline;text-underline-offset:5px}
.cal-box{background:white;border:1px solid var(--line);border-radius:20px;padding:34px;box-shadow:var(--shadow)}.cal{max-width:900px;margin:auto}.cal-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:23px}.cal-month{text-align:center;display:grid;gap:1px}.cal-month small{color:var(--olive);letter-spacing:.17em;font-weight:800}.cal-month strong{font-size:31px;color:var(--dark)}.cal-arrow{background:var(--light2);border:1px solid var(--line);color:var(--dark);font-weight:800;border-radius:30px;padding:9px 18px}.cal-arrow:hover{background:var(--light)}.cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.cal-weekday{text-align:center;font-weight:800;background:var(--olive);color:white;border-radius:8px;padding:8px 0}.cal-weekday:first-child{background:#bb797c}.cal-weekday:nth-child(7){background:#7794b8}.cal-cell{min-height:88px;border:1px solid #e6ecdf;background:#fff;border-radius:10px;display:flex;flex-direction:column;justify-content:space-between;padding:10px}.cal-cell b{font-size:20px}.cal-cell small{font-size:11px;color:var(--dark);background:#edf4e2;border-radius:12px;align-self:start;padding:0 8px;font-weight:750}.cal-blank{background:transparent;border:0}.cal-cell.is-closed{background:#fff2f2;border-color:#f2d5d5}.cal-cell.is-closed small{background:#f6dddd;color:#a14949}.cal-cell.is-morning{background:#fff8e7;border-color:#f3e9c5}.cal-cell.is-morning small{background:#faedcb;color:#82631f}.cal-cell.is-unknown{background:#f6f6f4}.cal-cell.is-unknown small{color:#696969;background:#ededed}.cal-cell.is-today{outline:3px solid var(--olive);outline-offset:-2px}.cal-warning{background:#fff6e7;color:#80561a;padding:13px 16px;border:1px solid #ecd9b3;border-radius:10px;margin-bottom:16px;font-size:14px}.cal-legend{display:flex;gap:18px;flex-wrap:wrap;margin:20px 0 5px;color:var(--muted);font-size:13px}.cal-legend span{display:flex;gap:7px;align-items:center}.dot{width:11px;height:11px;border-radius:50%;display:inline-block}.dot-open{background:#b5c995}.dot-morning{background:#edd18b}.dot-closed{background:#edb3b3}.cal-note{font-size:12px;color:var(--muted)}
.access-feature{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:48px}.access-feature img{width:100%;aspect-ratio:1.55;object-fit:cover;border-radius:16px}.access-feature h3{font-size:25px;margin:0 0 7px}.access-feature p{font-size:15px}.site-footer{background:var(--darker);color:#fff}.footer-flex{display:flex;justify-content:space-between;gap:35px;padding-top:50px;padding-bottom:36px}.footer-brand strong{font-size:28px}.footer-brand p{font-size:13px;color:#dce7d7}.footer-nav{display:flex;gap:18px;align-content:center;flex-wrap:wrap;font-size:13px;max-width:480px}.footer-nav a:hover{text-decoration:underline}.footer-bottom{padding:16px;text-align:center;border-top:1px solid #ffffff25;color:#d7e6d4;font-size:12px}
.page-hero{background:var(--light);padding:65px 0;border-bottom:1px solid var(--line)}.page-hero h1{font-size:clamp(30px,4vw,45px);line-height:1.45;margin:7px 0}.page-hero p{max-width:800px;margin:0;color:var(--muted)}.content-stack{display:grid;gap:34px}.content-card{background:white;border:1px solid var(--line);border-radius:18px;padding:36px;box-shadow:var(--shadow)}.content-card h2{font-size:24px;line-height:1.4;margin:0 0 16px}.content-card h3{font-size:18px;color:var(--dark);margin:20px 0 8px}.content-card p{margin:0 0 15px}.content-card p:last-child{margin-bottom:0}.bullet-list{padding-left:21px}.bullet-list li{margin-bottom:7px}.info-table{width:100%;border-collapse:collapse}.info-table th,.info-table td{padding:14px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.info-table th{width:26%;background:var(--light2);color:var(--dark)}.gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.gallery img{width:100%;height:195px;object-fit:cover;border-radius:12px}.doctor-card{display:grid;grid-template-columns:250px 1fr;gap:33px}.doctor-card img{width:100%;max-width:250px;aspect-ratio:4/4.6;object-fit:cover;border-radius:14px}.doctor-name{font-size:23px;font-weight:800;margin-bottom:8px}.doctor-name small{font-size:14px;color:var(--muted);font-weight:500;margin-left:12px}.bio-list{margin:0;padding:0;list-style:none}.bio-list li{padding:9px 0;border-bottom:1px solid var(--line)}.bio-list b{color:var(--dark);display:inline-block;min-width:80px}.parking-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.parking-card{background:white;border:1px solid var(--line);border-radius:16px;overflow:hidden}.parking-card img{width:100%;height:220px;object-fit:cover}.parking-card div{padding:20px}.parking-card h3{margin:0 0 8px;font-size:20px}.parking-card p{margin:0;font-size:14px;color:var(--muted)}.map-frame{width:100%;height:390px;border:0;border-radius:16px}.receipt-panel{background:var(--dark);color:white;border-radius:22px;padding:50px 25px;text-align:center;max-width:800px;margin:0 auto}.receipt-label{font-weight:700;letter-spacing:.08em}.receipt-value{font-size:clamp(75px,12vw,150px);font-weight:900;line-height:1.35}.receipt-value small{font-size:32px;margin-left:8px}.receipt-status{font-size:16px}.receipt-updated{font-size:14px;color:#d7e5d1}.receipt-warning{margin:18px auto 0;max-width:520px;background:#fff8e6;color:#664b1e;padding:10px;border-radius:10px}.receipt-instructions{text-align:center;max-width:730px;margin:28px auto 0}.receipt-kiosk .site-header,.receipt-kiosk .site-footer{display:none}.receipt-kiosk .receipt-panel{max-width:100%;min-height:65vh;display:flex;flex-direction:column;align-items:center;justify-content:center}.receipt-kiosk .receipt-value{font-size:clamp(110px,20vw,270px)}.receipt-kiosk .receipt-value small{font-size:50px}.kiosk-caption{margin-bottom:20px;font-size:23px}.kiosk-back{display:block;text-align:center;margin:18px}.small-kiosk .receipt-value{font-size:clamp(75px,15vw,135px)}
@media(max-width:1120px){.header-row{gap:12px}.brand img{width:220px}.site-nav{gap:13px;font-size:12px}.header-phone{font-size:12px;padding:7px 9px}}@media(max-width:850px){.hero{grid-template-columns:1fr}.hero-picture{min-height:320px}.hero-content{padding:42px 28px}.hero h1{font-size:35px}.site-nav{display:none;position:absolute;left:0;right:0;top:100%;background:white;flex-direction:column;align-items:stretch;gap:0;padding:12px 24px 20px;box-shadow:0 12px 15px #182c1820}.site-nav.is-open{display:flex}.site-nav a{padding:10px}.menu-toggle{display:block}.header-phone{margin-left:auto}.quick{grid-template-columns:1fr}.hours-grid,.access-feature{grid-template-columns:1fr}.header-row{min-height:77px}.footer-flex{display:block}.footer-nav{margin-top:28px}}@media(max-width:600px){.shell{padding:0 19px}.brand img{width:178px}.header-phone{display:none}.hero-picture{min-height:255px}.hero-content{padding:34px 20px 43px}.hero h1{font-size:31px}.section{padding:65px 0}.feature-grid{grid-template-columns:1fr}.section-title{font-size:28px}.notice-row{grid-template-columns:1fr;gap:5px}.page-hero{padding:43px 0}.content-card{padding:23px}.doctor-card{grid-template-columns:1fr}.doctor-card img{max-width:230px}.parking-grid,.gallery{grid-template-columns:1fr 1fr}.gallery img{height:130px}.parking-card img{height:140px}.info-table th{width:38%}.cal-box{padding:13px}.cal-head{gap:6px}.cal-arrow{font-size:12px;padding:8px 10px}.cal-month strong{font-size:24px}.cal-grid{gap:4px}.cal-weekday{font-size:12px;padding:7px}.cal-cell{padding:6px 4px;min-height:67px;border-radius:7px}.cal-cell b{font-size:16px}.cal-cell small{font-size:9px;padding:1px 3px}.receipt-panel{padding:38px 14px}.map-frame{height:285px}}

body:has(.receipt-kiosk) .site-header,body:has(.receipt-kiosk) .site-footer{display:none}


/* =============================================================
   Header logo — 2026 refresh
   Keep the existing logo's olive-green two-line appearance,
   while replacing its too-thin raster rendering with crisp text.
   Only affects the shared site header; all other pages stay as-is.
   ============================================================= */
.site-header .header-row {
  column-gap: 18px;
}

.site-header .brand {
  /* Leave a consistent amount of room for the clinic name. */
  width: 250px;
  min-width: 250px;
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 2px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

/* The original long bitmap is unreadable when scaled down.
   The parent link retains its existing aria-label for accessibility. */
.site-header .brand-name {
  content: "内野医院";
  display: block;
  color: #8da650;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: .08em;
  white-space: nowrap;
}

.site-header .brand-specialties {
  content: "内科・小児科・循環器内科・脳神経内科";
  display: block;
  padding: 5px 4px 4px;
  border-radius: 2px;
  background-color: #8da650;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -.015em;
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .site-header .brand {
    width: 235px;
    min-width: 235px;
    flex-basis: 235px;
  }
  .site-header .brand-name { font-size: 30px; }
  .site-header .brand-specialties { font-size: 9.5px; }
}

@media (max-width: 600px) {
  .site-header .brand {
    width: 205px;
    min-width: 205px;
    flex-basis: 205px;
  }
  .site-header .brand-name { font-size: 28px; }
  .site-header .brand-specialties { font-size: 8.5px; padding: 4px 2px; }
}

@media (max-width: 360px) {
  .site-header .brand {
    width: 180px;
    min-width: 180px;
    flex-basis: 180px;
  }
  .site-header .brand-name { font-size: 25px; }
  .site-header .brand-specialties { font-size: 7.4px; }
}

/* お知らせ：最新3件分だけ表示し、それ以降は内部スクロール */
.notice-list.notice-scroll-enabled {
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #91a85a #f1f5e9;
  border-bottom: 1px solid var(--line);
}
.notice-list.notice-scroll-enabled:focus-visible {
  outline: 2px solid #91a85a;
  outline-offset: 4px;
}
.notice-list.notice-scroll-enabled::-webkit-scrollbar { width: 9px; }
.notice-list.notice-scroll-enabled::-webkit-scrollbar-track { background: #f1f5e9; }
.notice-list.notice-scroll-enabled::-webkit-scrollbar-thumb { background: #a2b576; border-radius: 99px; }

/* 診療時間のレスポンシブ表示：デスクトップは表、スマホは曜日カード */
.hours-mobile { display: none; }
@media (max-width: 700px) {
  #hours .table-scroll { display: none; }
  #hours .hours-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  #hours .hours-mobile { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  #hours .hours-day { display: grid; grid-template-columns: 46px minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 8px; padding: 12px 10px; border: 1px solid var(--line); border-radius: 10px; background: white; }
  #hours .hours-day:nth-child(odd) { background: var(--light2); }
  #hours .hours-day-name { font-size: 15px; text-align: center; color: var(--dark); }
  #hours .hours-period { display: flex; flex-direction: column; gap: 4px; text-align: center; min-width: 0; }
  #hours .hours-period small { font-size: clamp(9px, 2.55vw, 12px); white-space: nowrap; color: var(--muted); }
  #hours .hours-period b { font-size: 13px; font-weight: 750; }
  #hours .hours-on { color: var(--dark); }
  #hours .hours-off { color: #9a6464; }
  #hours .hours-closed { border-color: #eadcda; }
  #hours .hours-closed .hours-day-name { color: #9a6464; }
  #hours .soft-card { min-width: 0; }
}

/* 2026-10: メイン画像を全面表示し、メッセージ欄をなくす */
.hero.hero-photo-only {
  display: block;
  min-height: 0;
  width: 100%;
  background: #f2f4ed;
}
.hero.hero-photo-only .hero-picture {
  display: block;
  position: relative;
  width: 100%;
  height: clamp(340px, 42vw, 590px);
  min-height: 0;
  overflow: hidden;
}
.hero.hero-photo-only .hero-picture img {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center 51%;
}
@media (max-width: 850px) {
  .hero.hero-photo-only .hero-picture {
    height: clamp(265px, 56vw, 410px);
    min-height: 0;
  }
}
@media (max-width: 600px) {
  .hero.hero-photo-only .hero-picture {
    height: clamp(230px, 69vw, 325px);
    min-height: 0;
  }
  .hero.hero-photo-only .hero-picture img {object-position: center center;}
}

/* Notice detail */
.notice-detail-link{display:inline-block;margin-top:10px;font-weight:800;color:var(--dark);text-decoration:underline;text-underline-offset:4px}.notice-detail-card{max-width:900px;margin:0 auto;background:#fff;padding:clamp(24px,5vw,56px);border:1px solid var(--line);border-radius:18px;overflow-wrap:anywhere}.notice-detail-card time{color:var(--dark);font-weight:700}.notice-detail-card h2{font-size:clamp(23px,3vw,34px);margin:10px 0 20px;line-height:1.5}.notice-detail-lead{padding:20px;background:var(--light);border-radius:12px;white-space:normal}.notice-detail-body{padding:20px 0;line-height:2;overflow-wrap:anywhere}.notice-detail-body a{color:var(--dark);text-decoration:underline}.notice-back{display:inline-block;margin-top:24px;color:var(--dark);font-weight:800}
/* Homepage notice archive navigation */
.notice-archive-nav{display:flex;justify-content:flex-end;margin-top:22px}
.notice-archive-pages{display:flex;justify-content:center;align-items:center;gap:18px;flex-wrap:wrap;margin-top:32px}
@media(max-width:600px){.notice-archive-nav .btn{width:100%;text-align:center}}
