/* ===================================
   坂口内科・外科・往診クリニック
   Modern Design v2.1
   =================================== */

:root {
  --color-primary: #3d4f5f;
  --color-primary-dark: #2d3a45;
  --color-accent: #5a9e6f;
  --color-accent-light: #e8f5ec;
  --color-accent-dark: #4a8a5f;
  --color-white: #ffffff;
  --color-off-white: #fafbfc;
  --color-bg: #f5f6f8;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-muted: #999999;
  --color-border: #e5e7eb;
  --font-family: 'M PLUS 1p', sans-serif;
  --font-family-small: 'Noto Sans JP', sans-serif;
  --content-width: 1000px;
  --header-height: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { font-family: var(--font-family); font-size: 16px; line-height: 1.8; color: var(--color-text); background-color: var(--color-white); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; vertical-align: bottom; }
a { color: inherit; text-decoration: none; transition: all 0.3s ease; }
ul, ol { list-style: none; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
  z-index: 1000;
}
.header__inner {
  max-width: var(--content-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo a { display: block; }
.header__logo-main {
  font-family: var(--font-family-small);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}
.header__logo-sub {
  font-family: var(--font-family-small);
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
}
.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header__nav-list {
  display: flex;
  gap: 28px;
}
.header__nav-link {
  font-family: var(--font-family-small);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  padding: 8px 0;
  position: relative;
}
.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}
.header__nav-link:hover { color: var(--color-accent); }
.header__nav-link:hover::after { width: 100%; }
.header__tel {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 10px 20px;
  border-radius: 50px;
  font-family: var(--font-family-small);
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s ease;
}
.header__tel:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(90,158,111,0.3);
}
.header__tel svg { flex-shrink: 0; }
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
}
.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: all 0.3s ease;
}
.header__hamburger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.header__hamburger.is-active span:nth-child(2) { opacity: 0; }
.header__hamburger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__nav { padding: 30px 20px; }
.mobile-menu__list { border-top: 1px solid var(--color-border); }
.mobile-menu__list li { border-bottom: 1px solid var(--color-border); }
.mobile-menu__list a { display: block; padding: 18px 0; font-family: var(--font-family-small); font-size: 15px; }
.mobile-menu__tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  padding: 18px;
  background: var(--color-accent);
  color: var(--color-white);
  text-align: center;
  font-family: var(--font-family-small);
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .header__nav { display: none; }
  .header__tel { display: none; }
  .header__hamburger { display: flex; }
  .header__inner {
    padding: 0 15px;
  }

  .header__logo-main {
    font-size: 14px;
  }
  .header__logo-main {
    font-size: 16px;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  margin-top: var(--header-height);
  height: calc(100vh - var(--header-height));
  min-height: 600px;
  max-height: 900px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/008.jpg') center/cover no-repeat;
}
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(45,58,69,0.8) 0%, rgba(45,58,69,0.5) 40%, rgba(45,58,69,0.15) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 30px;
  width: 100%;
}
.hero__content {
  max-width: 650px;
  color: var(--color-white);
  margin-top: -24px;
}
.hero__label {
  display: inline-block;
  background: rgba(90,158,111,0.9);
  padding: 8px 20px;
  border-radius: 50px;
  font-family: var(--font-family-small);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}
.hero__title {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero__subtitle {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
  opacity: 0.95;
  margin-bottom: 40px;
}
.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.btn--white {
  background: var(--color-white);
  color: var(--color-primary);
}
.btn--white:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-white);
}
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  font-size: 12px;
  text-align: center;
  opacity: 0.7;
  animation: bounce 2s infinite;
}
.hero__scroll span {
  display: block;
  margin-top: 8px;
  width: 24px;
  height: 40px;
  border: 2px solid currentColor;
  border-radius: 12px;
  position: relative;
  margin-left: auto;
  margin-right: auto;
}
.hero__scroll span::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: currentColor;
  border-radius: 2px;
  animation: scrollDot 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}
@keyframes scrollDot {
  0%, 100% { opacity: 1; top: 8px; }
  50% { opacity: 0.3; top: 16px; }
}

@media (max-width: 768px) {
  .hero { min-height: 550px; }
  .hero__title { font-size: 28px; }
  .hero__subtitle { font-size: 15px; }
  .hero__buttons { flex-direction: column; }
  .hero__buttons .btn { width: 100%; }
  .hero__scroll { display: none; }
  .hero__content { margin-top: -10px; }
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 100px 30px;
}
.section--gray { background: var(--color-bg); }
.section--accent { background: var(--color-accent-light); }
.section__inner {
  max-width: var(--content-width);
  margin: 0 auto;
}
.section__header {
  text-align: center;
  margin-bottom: 60px;
}
.section__label {
  display: inline-block;
  font-family: var(--font-family-small);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
}
.section__title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--color-accent);
  margin: 20px auto 0;
}

@media (max-width: 768px) {
  .section { padding: 70px 20px; }
  .section__title { font-size: 26px; }
}

/* ===== NEWS ===== */
.news {
  padding: 70px 30px;
  background: var(--color-off-white);
}
.news__inner {
  max-width: 800px;
  margin: 0 auto;
}
.news__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.news__header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.news__label {
  font-family: var(--font-family-small);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.news__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
}
.news__more {
  font-family: var(--font-family-small);
  font-size: 13px;
  color: var(--color-accent);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.news__more:hover { text-decoration: underline; }
.news__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.news__item {
  display: block;
  background: white;
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  cursor: pointer;
}
.news__item:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.news__date {
  display: inline-block;
  font-family: var(--font-family-small);
  font-size: 13px;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.news__item-title {
  font-family: var(--font-family-small);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
  line-height: 1.5;
}
.news__excerpt {
  font-family: var(--font-family-small);
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.6;
}
.news__read-more {
  font-family: var(--font-family-small);
  color: var(--color-accent);
  font-weight: 500;
}
.news__read-more:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .news { padding: 50px 20px; }
  .news__header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .news__item { padding: 24px; }
}

/* ===== SCHEDULE ===== */
.schedule__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.schedule__block {
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}
.schedule__block-header {
  padding: 20px 28px;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-accent);
  text-align: center;
}
.schedule__block-header--visit { background: var(--color-primary); }
.schedule__table-wrap {
  padding: 28px;
}
.schedule__table {
  width: 100%;
  border-collapse: collapse;
}
.schedule__table th,
.schedule__table td {
  padding: 14px 10px;
  text-align: center;
  font-size: 15px;
  border-right: 1px solid var(--color-border);
}
.schedule__table th:last-child,
.schedule__table td:last-child {
  border-right: none;
}
.schedule__table thead th {
  font-family: var(--font-family-small);
  color: var(--color-text-muted);
  font-weight: 500;
  border-bottom: 2px solid var(--color-border);
}
.schedule__table tbody th {
  text-align: center;
  font-family: var(--font-family-small);
  font-weight: 600;
  color: var(--color-text);
  font-size: 16px;
}
.schedule__table tbody th small {
  display: block;
  font-family: var(--font-family-small);
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 400;
  margin-top: 2px;
}
.schedule__table td { font-size: 22px; font-weight: 700; }
.schedule__table .is-open { color: var(--color-accent); font-weight: 700; }
.schedule__table .is-closed { color: var(--color-text-muted); }
.schedule__table--visit .is-open { color: var(--color-primary); font-weight: 700; }
.schedule__legend {
  font-family: var(--font-family-small);
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  margin: 0 28px;
  padding: 16px 0 12px;
  border-top: 1px solid #e0e0e0;
}



.schedule__notes {
  font-family: var(--font-family-small);
  font-size: 13px;
  color: var(--color-text-light);
  margin: 0 28px;
  padding: 16px 0 20px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  align-items: center;
}
.schedule__notes li { line-height: 1.6; }
.schedule__notes .is-highlight {
  font-weight: 700;
  color: var(--color-text);
  background: var(--color-accent-light);
  padding: 4px 10px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .schedule__notes {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    border-top: none;
  }
  .schedule__table th,
  .schedule__table td {
    padding: 10px 3px;
  }
  .schedule__table tbody th {
    font-size: 14px;
  }
  .schedule__table tr {
    border-bottom: 1px solid #e0e0e0;
  }
  .schedule__table-wrap {
    padding: 0 5px;
  }
}


/* ===== FEATURES ===== */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.features__item {
  position: relative;
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.4s ease;
}
.features__item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.features__item-content { padding: 32px; }
.features__item-icon {
  width: 52px;
  height: 52px;
  background: var(--color-accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.features__item-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 2;
}
.features__item-title {
  font-family: var(--font-family-small);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.features__item-text {
  font-family: var(--font-family-small);
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.9;
}

@media (max-width: 768px) {
  .features__grid { grid-template-columns: 1fr; }
}

/* ===== VISIT ===== */
.visit {
  position: relative;
  background: url('../img/012.jpg') center/cover no-repeat;
}
.visit::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(232, 245, 236, 0.88);
}
.visit .section__inner {
  position: relative;
  z-index: 1;
}
.visit__image {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.visit__image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.visit__lead {
  font-size: 18px;
  line-height: 1.8;
  text-align: left;
  max-width: 760px;
  margin: 0 auto 40px;
  font-family: var(--font-family-small);
  color: var(--color-text);
}
.visit__lead p { margin-bottom: 14px; }
.visit__lead p:last-child { margin-bottom: 0; }
.visit__boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.visit__box {
  background: var(--color-white);
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.visit__box-title {
  font-family: var(--font-family-small);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent-light);
  display: flex;
  align-items: center;
  gap: 10px;
}
.visit__box-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--color-accent);
  border-radius: 2px;
}
.visit__box ul { padding-left: 20px; }
.visit__box li {
  list-style: disc;
  font-family: var(--font-family-small);
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--color-text);
  line-height: 1.7;
}
.visit__box p {
  font-family: var(--font-family-small);
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 10px;
}
.visit__box p:last-child { margin-bottom: 0; }


.visit__subsection { margin-top: 18px; }
.visit__subsection:first-of-type { margin-top: 0; }
.visit__subtitle {
  font-family: var(--font-family-small);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.visit__subtitle::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}
.visit__area-list {
  margin: 10px 0 10px;
  padding-left: 18px;
  list-style: disc;
  display: grid;
  gap: 6px;
  font-family: var(--font-family-small);
  font-size: 14px;
  color: var(--color-text);
}
.visit__area-note {
  font-family: var(--font-family-small);
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .visit__boxes { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .visit__boxes { grid-template-columns: 1fr; }
  .visit__lead { font-size: 16px; }
}

/* ===== GREETING ===== */
.greeting__box {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 56px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.greeting__text p {
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 2;
}
.greeting__sign {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
  text-align: right;
}
.greeting__position {
  font-family: var(--font-family-small);
  font-size: 13px;
  color: var(--color-text-light);
}
.greeting__name {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .greeting__box { padding: 36px 28px; }
}

/* ===== GALLERY ===== */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery__item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery__item:hover img { transform: scale(1.1); }
.gallery__item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--color-white);
  font-family: var(--font-family-small);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 768px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ===== VACCINE ===== */
.vaccine__list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vaccine__item {
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.vaccine__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  font-family: var(--font-family-small);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: background 0.3s ease;
}
.vaccine__summary::-webkit-details-marker { display: none; }
.vaccine__summary::after {
  content: '+';
  font-size: 24px;
  color: var(--color-accent);
  font-weight: 300;
}
.vaccine__item[open] .vaccine__summary::after { content: '−'; }
.vaccine__summary:hover { background: var(--color-off-white); }
.vaccine__detail {
  padding: 0 28px 28px;
  border-top: 1px solid var(--color-border);
  margin-top: -1px;
  padding-top: 24px;
}
.vaccine__detail dl > div {
  display: flex;
  gap: 20px;
  margin-bottom: 14px;
}
.vaccine__detail dt {
  flex-shrink: 0;
  width: 80px;
  font-family: var(--font-family-small);
  font-weight: 700;
  color: var(--color-accent);
  font-size: 13px;
}
.vaccine__detail dd {
  font-family: var(--font-family-small);
  font-size: 14px;
  color: var(--color-text);
}

/* ===== ACCESS ===== */
.access__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.access__info-list { margin-bottom: 32px; }
.access__info-list > div {
  display: flex;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
}
.access__info-list dt {
  flex-shrink: 0;
  width: 100px;
  font-family: var(--font-family-small);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 14px;
}
.access__info-list dd { flex: 1; font-family: var(--font-family-small); font-size: 14px; }
.access__info-list dd a {
  font-family: var(--font-family-small);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-accent);
}
.access__directions {
  background: var(--color-accent-light);
  padding: 28px;
  border-radius: 16px;
}
.access__directions h3 {
  font-family: var(--font-family-small);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.access__directions p {
  font-family: var(--font-family-small);
  font-size: 16px;
  margin-bottom: 12px;
  line-height: 1.8;
}
.access__map {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.access__map iframe { display: block; }

@media (max-width: 768px) {
  .access__content { grid-template-columns: 1fr; }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: 60px 30px 30px;
}
.footer__inner {
  max-width: var(--content-width);
  margin: 0 auto;
}
.footer__main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 30px;
}
.footer__info {}
.footer__info h3 {
  font-family: var(--font-family-small);
  font-size: 20px;
  margin-bottom: 20px;
}
.footer__info h3 a {
  color: var(--color-white);
  transition: opacity 0.3s ease;
}
.footer__info h3 a:hover {
  opacity: 0.8;
}
.footer__info-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__info-item {
  font-family: var(--font-family-small);
  font-size: 13px;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__info-item svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  opacity: 0.7;
  flex-shrink: 0;
}
.footer__info-item a {
  color: var(--color-white);
  transition: opacity 0.3s ease;
}
.footer__info-item a:hover {
  opacity: 0.8;
}
.footer__nav {
  display: flex;
  gap: 24px;
}
.footer__nav a {
  font-family: var(--font-family-small);
  font-size: 13px;
  opacity: 0.85;
  transition: opacity 0.3s ease;
  position: relative;
  padding-bottom: 4px;
}
.footer__nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-white);
  transition: width 0.3s ease;
}
.footer__nav a:hover { opacity: 1; }
.footer__nav a:hover::after { width: 100%; }
.footer__bottom {
  text-align: center;
}
.footer__tagline {
  font-family: var(--font-family-small);
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 8px;
}
.footer__tagline a {
  color: var(--color-white);
  transition: opacity 0.3s ease;
}
.footer__tagline a:hover {
  opacity: 0.9;
}
.footer__copyright {
  text-align: center;
  font-family: var(--font-family-small);
  font-size: 11px;
  opacity: 0.5;
}

/* ===== FIXED BUTTONS ===== */
.fixed-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}
.fixed-tel {
  display: none;
}
.back-to-top {
  width: 50px;
  height: 50px;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(90,158,111,0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--color-accent-dark);
  transform: translateY(-3px);
}
.back-to-top svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

@media (max-width: 768px) {
  .footer__main { flex-direction: column; gap: 30px; }
  .footer__nav { flex-direction: column; text-align:center; margin: 0 auto; gap: 10px; }
  .fixed-buttons { bottom: 20px; right: 20px; }
  .fixed-tel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(90,158,111,0.4);
  }
  .fixed-tel svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
  }
  .back-to-top { width: 44px; height: 44px; }
}

/* ===== UTILITIES ===== */
@media (max-width: 768px) {
  .pc-only { display: none !important; }
}
@media (min-width: 769px) {
  .sp-only { display: none !important; }
}

/* ===== MEDICAL DETAIL ===== */
.medical-detail {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.medical-detail__item {
  background: var(--color-white);
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.medical-detail__title {
  font-family: var(--font-family-small);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 12px;
  padding-left: 14px;
  border-left: 4px solid var(--color-accent);
}
.medical-detail__text {
  font-family: var(--font-family-small);
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.9;
}
.medical-exam {
  margin-top: 40px;
  background: #fffefc;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid #f8f6f0;
}
.medical-exam__title {
  font-family: var(--font-family-small);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 20px;
  text-align: center;
}
.medical-exam__title span {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--color-accent);
}
.medical-exam__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.medical-exam__item {
  font-family: var(--font-family-small);
  font-size: 14px;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 500;
}
@media (max-width: 768px) {
  .medical-detail { grid-template-columns: 1fr; }
  .medical-exam { padding: 24px; }
}

/* ===== DOCTOR ===== */
.doctor__box {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}
.doctor__image {
  background: url('../img/001.jpg') center bottom/cover no-repeat;
  min-height: 400px;
}
.doctor__content {
  padding: 48px 40px;
}
.doctor__header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}
.doctor__name {
  font-family: var(--font-family-small);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.doctor__name-ruby {
  font-family: var(--font-family-small);
  font-size: 13px;
  color: var(--color-text-muted);
}
.doctor__message {
  margin-bottom: 20px;
}
.doctor__message p {
  font-family: var(--font-family-small);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 10px;
}
.doctor__message p:last-child {
  margin-bottom: 0;
}
.doctor__qualifications-title {
  font-family: var(--font-family-small);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.doctor__qualifications {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.doctor__qualification {
  font-family: var(--font-family-small);
  font-size: 12px;
  background: var(--color-accent-light);
  color: var(--color-text);
  padding: 6px 12px;
  border-radius: 6px;
}
.doctor__memberships {
  font-family: var(--font-family-small);
  font-size: 12px;
  color: var(--color-text-light);
}
.doctor__message-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  font-style: italic;
  color: var(--color-text-light);
}
.doctor__qualifications-wrap {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}
.doctor__qualifications-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.doctor__qualifications-section {
  
}
.doctor__qualifications-heading {
  font-family: var(--font-family-small);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2px;
}
.doctor__qualifications-list {
  font-family: var(--font-family-small);
  font-size: 12px;
  color: var(--color-text);
  line-height: 1.4;
  padding-left: 1.5em;
  list-style: none;
}
.doctor__qualifications-list li {
  margin-bottom: 1px;
  text-indent: -0.5em;
  padding-left: 0.5em;
}
.doctor__qualifications-list li::before {
  content: "－";
  margin-right: 0.3em;
  color: var(--color-text-muted);
}
.doctor__qualifications-list li:last-child {
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .doctor__box { grid-template-columns: 1fr; }
  .doctor__image { display: none; }
  .doctor__content { padding: 32px 24px; }
  .doctor__name { font-size: 22px; }
  .doctor__message p { font-size: 13px; }
  .doctor__qualifications-heading { font-size: 12px; }
  .doctor__qualifications-list { font-size: 11px; }
  .doctor__qualifications-list li {
    text-indent: -1.25em;
    padding-left: 1.25em;
  }
}

/* ===== NOTIFICATION ===== */
.notification {
  max-width: 800px;
  margin: 0 auto;
}
.notification__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.notification__item {
  font-family: var(--font-family-small);
  font-size: 13px;
  background: var(--color-white);
  padding: 16px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  gap: 12px;
}
.notification__item::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .notification__list { grid-template-columns: 1fr; }
}

/* ===== ACCESS PHOTOS ===== */
.access-photos {
  margin-top: 40px;
}
.access-photos__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 24px;
}
.access-photos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.access-photos__item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.access-photos__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.access-photos__item:hover img {
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .access-photos__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ===== NOTICE ===== */
.notice {
  max-width: 600px;
  margin: 0 auto 40px;
  padding: 16px 24px;
  background: var(--color-off-white);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-family-small);
  font-size: 15px;
  color: var(--color-text);
}
.notice__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 2;
}
.notice__text {
  font-weight: 500;
}
@media (max-width: 768px) {
  .notice {
    padding: 14px 18px;
    font-size: 14px;
  }
}

/* ===== MEDICAL CHECKUP ===== */
.medical-checkup {
  margin-top: 40px;
  background: #fffefc;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid #f8f6f0;
}
.medical-checkup__title {
  font-family: var(--font-family-small);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 20px;
  text-align: center;
}
.medical-checkup__title span {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--color-accent);
}
.medical-checkup__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}
.medical-checkup__item {
  font-family: var(--font-family-small);
  font-size: 14px;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 500;
}
.medical-checkup__note {
  text-align: center;
}
.medical-checkup__badge {
  display: inline-block;
  font-family: var(--font-family-small);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  background: var(--color-accent-light);
  padding: 4px 10px;
  border-radius: 4px;
}
@media (max-width: 768px) {
  .medical-checkup { padding: 24px; }
  .medical-checkup__list { gap: 10px; }
  .medical-checkup__item { font-size: 13px; padding: 8px 16px; }
}

/* ===== MEDICAL COOPERATION ===== */
.medical-cooperation {
  margin-top: 40px;
  background: #fffefc;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid #f8f6f0;
}
.medical-cooperation__title {
  font-family: var(--font-family-small);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 20px;
  text-align: center;
}
.medical-cooperation__title span {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--color-accent);
}
.medical-cooperation__text {
  font-family: var(--font-family-small);
  font-size: 15px;
  color: var(--color-text);
  line-height: 2;
  text-align: left;
}
@media (max-width: 768px) {
  .medical-cooperation { padding: 24px; }
  .medical-cooperation__text { 
    font-size: 14px; 
    text-align: left;
  }
}

/* ===================================
   下層ページ共通
   =================================== */

/* ===== LOWER PAGE COMMON ===== */
.lower-wrap {
  margin-top: var(--header-height);
  padding: 60px 30px 100px;
}
.lower-wrap .inner {
  max-width: var(--content-width);
  margin: 0 auto;
}
.lower-wrap h2 {
  font-family: var(--font-family-small);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--color-accent);
}
.lower-box {
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  overflow: hidden;
}
.lower-inner {
  padding: 40px;
}

@media (max-width: 768px) {
  .lower-wrap {
    padding: 40px 20px 80px;
  }
  .lower-wrap h2 {
    font-size: 22px;
    margin-bottom: 30px;
  }
  .lower-inner {
    padding: 24px;
  }
}

/* ===== NEWS LIST ===== */
.news-wrap {
  background: var(--color-bg);
}
.top-news-wrap section {
  border-bottom: 1px solid var(--color-border);
}
.top-news-wrap section:last-child {
  border-bottom: none;
}
.top-news-wrap section a {
  display: block;
  padding: 28px 16px;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 0 -16px;
}
.top-news-wrap section a:hover {
  background: var(--color-accent-light);
}
.top-news-wrap section a > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.top-news-wrap .date {
  font-family: var(--font-family-small);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
}
.top-news-wrap h3 {
  font-family: var(--font-family-small);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.5;
}
.top-news-wrap p {
  font-family: var(--font-family-small);
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* Pagination */
.page-wrap {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: 1.2rem;
}
.pagination a {
  color: var(--color-accent);
}
.page-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  height: 3rem;
  padding: 0 12px;
  font-family: var(--font-family-small);
  font-size: 14px;
  background: var(--color-white);
  border: 2px solid var(--color-accent);
  border-radius: 8px;
  color: var(--color-accent);
  transition: all 0.3s ease;
}
.page-item a:hover {
  background: var(--color-accent-light);
}
.page-item-current a {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}
.page-item-current a:hover {
  opacity: 1;
}
.disappear {
  display: none;
}

.news-wrap .lower-inner {
  padding: 40px;
}

@media (max-width: 768px) {
  .top-news-wrap section a {
    padding: 20px 0;
    margin: 0;
    border-radius: 0;
  }
  .top-news-wrap h3 {
    font-size: 15px;
  }
  .pagination {
    gap: 0.5rem;
    font-size: 1rem;
  }
  .page-item a {
    min-width: 2.5rem;
    height: 2.5rem;
  }
  .news-wrap .lower-inner {
    padding: 30px 20px;
  }
}

/* ===== NEWS DETAIL ===== */
.lower-contents {
  max-width: 750px;
  margin: 0 auto;
}
.detail-wrap {
  padding: 20px 0 30px;
}
.l-image {
  margin-bottom: 24px;
}
.l-image img {
  width: 100%;
  border-radius: 8px;
}
.detail-date {
  font-family: var(--font-family-small);
  font-size: 1.1em;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.detail-title {
  font-family: var(--font-family-small);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.5;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}
.detail-contents {
  font-family: var(--font-family-small);
  font-size: 15px;
  color: var(--color-text);
  line-height: 2;
}
.detail-contents p {
  margin-bottom: 30px;
}
.detail-contents p:last-child {
  margin-bottom: 0;
}

/* Detail Pagination */
.detail-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2%;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--color-border);
}
.detail-page-item {
  flex: 1;
  max-width: 200px;
}
.detail-page-item a {
  display: block;
  text-align: center;
  font-family: var(--font-family-small);
  font-size: 14px;
  color: var(--color-white);
  background: var(--color-accent);
  padding: 12px 0;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}
.detail-page-item a:hover {
  opacity: 0.8;
}
.page-item-prev i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 15%;
}
.page-item-next i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 15%;
}
.detail-page-item.disabled a {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .detail-contents {
    font-size: 14px;
  }
  .detail-pagination {
    flex-wrap: wrap;
    gap: 12px;
  }
  .detail-page-item {
    max-width: 150px;
  }
  .detail-page-item a {
    padding: 10px 0;
    font-size: 13px;
  }
}

.vaccine__notice {
  max-width: 800px;
  margin: 0 auto 30px;
  font-family: var(--font-family-small);
  font-size: 15px;
  line-height: 2;
  color: var(--color-text);
  text-align: center;
}
