:root {
  --blue-900: #0d2e5e;
  --blue-800: #14458a;
  --blue-700: #1f62bd;
  --blue-500: #3f8fff;
  --blue-200: #d8e9ff;
  --blue-100: #edf5ff;
  --white: #ffffff;
  --ink-900: #142033;
  --ink-700: #3f4d63;
  --ink-500: #5f6d80;
  --line: #c8d9f2;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(10, 44, 92, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Zen Kaku Gothic New", sans-serif;
  color: var(--ink-900);
  line-height: 1.7;
  background:
    radial-gradient(circle at 10% 10%, #f2f8ff 0, transparent 30%),
    radial-gradient(circle at 90% 20%, #e7f1ff 0, transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, #f6faff 45%, #fafdff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(12, 58, 120, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-family: "M PLUS 1p", sans-serif;
  line-height: 1.2;
}

.brand-mark {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  color: var(--blue-700);
}

.brand-text {
  font-size: 1.15rem;
  font-weight: 700;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 500;
}

.global-nav a {
  position: relative;
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--blue-700);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s;
}

.global-nav a:hover::after {
  transform: scaleX(1);
}

.nav-tel {
  color: var(--blue-800);
  border: 1px solid var(--blue-200);
  padding: 8px 14px;
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--blue-900);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 54px;
}

.hero-bg-shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
}

.hero-bg-shape-a {
  width: 500px;
  height: 500px;
  background: linear-gradient(210deg, rgba(63, 143, 255, 0.21), rgba(31, 98, 189, 0.03));
  top: -220px;
  right: -140px;
}

.hero-bg-shape-b {
  width: 420px;
  height: 420px;
  background: linear-gradient(220deg, rgba(77, 165, 255, 0.12), rgba(20, 69, 138, 0.03));
  bottom: -180px;
  left: -120px;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 1.18fr;
  gap: 42px;
  align-items: flex-start;
}

.hero-lead {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--blue-200);
  border-radius: 999px;
  color: var(--blue-800);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.hero h1 {
  font-family: "M PLUS 1p", sans-serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.25;
  margin: 16px 0 16px;
  letter-spacing: 0.02em;
}

.hero-copy p {
  max-width: 52ch;
  color: var(--ink-700);
}

.hero-visual {
  width: min(100%, 620px);
  margin-left: auto;
  background: var(--white);
  border: 1px solid #cfe1fb;
  border-radius: calc(var(--radius) + 10px);
  box-shadow: var(--shadow);
  padding: 14px;
}

.hero-gallery {
  display: grid;
  gap: 12px;
}

.hero-gallery-main {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center 60%;
  border-radius: 18px;
}

.hero-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-gallery-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 14px;
}

.hero-gallery-side-left {
  object-position: 40% center;
}

.hero-gallery-side-right {
  object-position: 48% center;
  transform: scale(1);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(120deg, var(--blue-800), var(--blue-700));
  box-shadow: 0 10px 24px rgba(31, 98, 189, 0.26);
}

.btn-ghost {
  border: 1px solid var(--blue-500);
  color: var(--blue-800);
  background: rgba(255, 255, 255, 0.78);
}

.strip {
  margin: 16px 0 0;
}

.strip-inner {
  display: grid;
  grid-template-columns: auto 120px 1fr;
  gap: 18px;
  align-items: center;
  background: linear-gradient(90deg, var(--blue-900), var(--blue-700));
  color: var(--white);
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow);
}

.strip-label {
  font-family: "M PLUS 1p", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  margin: 0;
  opacity: 0.8;
}

.notice-date {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.notice-body {
  margin: 0;
}

.section {
  padding: 80px 0;
}

.section h2 {
  font-family: "M PLUS 1p", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 8px 0 22px;
}

.section-en {
  margin: 0;
  color: var(--blue-700);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.split-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #d6e6fb;
  background: linear-gradient(135deg, #edf5ff 0%, #f9fbff 100%);
  box-shadow: var(--shadow);
}

.about-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #edf5ff 0%, #f9fbff 100%);
  filter: saturate(0.82) contrast(1.03) brightness(1.04) hue-rotate(-8deg);
}

.split-image iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

.check-list {
  padding-left: 0;
  margin: 20px 0 0;
  list-style: none;
}

.check-list li {
  margin: 10px 0;
  padding-left: 30px;
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--white) 30%, transparent 31%),
    linear-gradient(140deg, var(--blue-700), var(--blue-500));
  box-shadow: 0 2px 8px rgba(31, 98, 189, 0.28);
}

.services {
  background: linear-gradient(180deg, rgba(228, 240, 255, 0.62), rgba(244, 249, 255, 0.35));
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  background: var(--white);
  border: 1px solid #d8e7fa;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 8px 20px rgba(15, 58, 118, 0.08);
}

.service-card h3 {
  margin: 0 0 8px;
  color: var(--blue-900);
}

.service-card p {
  margin: 0;
  color: var(--ink-700);
}

.patient-info {
  background: #ffffff;
}

.patient-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.patient-info-card {
  background: linear-gradient(135deg, #f7fbff 0%, #ffffff 100%);
  border: 1px solid #d8e7fa;
  border-radius: var(--radius);
  padding: 24px;
}

.patient-info-card h3 {
  margin: 0 0 10px;
  color: var(--blue-900);
  font-size: 1.08rem;
  line-height: 1.6;
}

.patient-info-card p {
  margin: 0;
  color: var(--ink-700);
}

.partners {
  background: linear-gradient(180deg, rgba(239, 247, 255, 0.55), rgba(255, 255, 255, 0.3));
}

.partner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.partner-list {
  max-width: 680px;
}

.partner-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #dfeeff;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 6px 16px rgba(19, 60, 120, 0.05);
}

.partner-card h3 {
  margin: 0;
  color: var(--blue-900);
  font-size: 1.05rem;
  line-height: 1.7;
}

.partner-card p {
  margin: 0;
  color: var(--ink-700);
}

.hours-table-wrap {
  border: 1px solid #d6e4f9;
  border-radius: var(--radius);
  overflow-x: auto;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.hours-table th,
.hours-table td {
  border-bottom: 1px solid #e1ebfa;
  text-align: center;
  padding: 14px 10px;
}

.hours-table thead th {
  background: #f0f6ff;
  color: var(--blue-800);
}

.hours-table tbody th {
  background: #f8fbff;
  color: var(--ink-900);
}

.hours-note {
  color: var(--ink-500);
  margin-top: 14px;
}

.infection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.infection-item {
  background: var(--white);
  border: 1px solid #d5e6ff;
  border-radius: var(--radius);
  padding: 24px;
}

.infection-item h3 {
  margin-top: 0;
  color: var(--blue-900);
}

.news {
  background: linear-gradient(180deg, #f9fcff 0%, #edf5ff 100%);
}

.news-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.text-link {
  color: var(--blue-700);
  font-weight: 700;
}

.news-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  background: var(--white);
  border: 1px solid #dae8fc;
  border-radius: var(--radius);
  overflow: hidden;
}

.news-list li {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 20px;
  border-bottom: 1px solid #edf3fd;
  align-items: start;
}

.news-list li:last-child {
  border-bottom: 0;
}

.news-list .news-important {
  background: linear-gradient(90deg, #f2f8ff 0%, #ffffff 100%);
}

.news-content {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.news-important-label {
  display: inline-block;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: linear-gradient(120deg, var(--blue-800), var(--blue-700));
}

.news-list time {
  color: var(--blue-800);
  font-weight: 700;
  line-height: 1.8;
}

.news-title {
  color: var(--blue-700);
  font-weight: 700;
  line-height: 1.6;
}

.news-body {
  margin: 0;
  color: var(--ink-700);
  line-height: 1.8;
}

.site-footer {
  background: linear-gradient(180deg, #153f7e 0%, #0d2e5e 100%);
  color: #e9f2ff;
  padding: 42px 0;
}

.footer-inner {
  text-align: center;
}

.footer-clinic {
  margin-top: 0;
  font-family: "M PLUS 1p", sans-serif;
  font-size: 1.2rem;
}

.copy {
  opacity: 0.8;
  margin-bottom: 0;
}

.auth-page,
.admin-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(87, 160, 255, 0.2), transparent 30%),
    linear-gradient(180deg, #f4f9ff 0%, #edf4ff 100%);
}

.auth-shell,
.admin-shell {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.auth-card,
.admin-panel,
.preview-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #d9e8ff;
  border-radius: 22px;
  box-shadow: 0 22px 45px rgba(17, 62, 120, 0.12);
}

.auth-card {
  width: min(540px, 92vw);
  padding: 32px 28px;
}

.auth-kicker {
  margin-bottom: 8px;
}

.auth-copy {
  color: var(--ink-700);
  margin: 0 0 22px;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--ink-900);
  font-weight: 700;
}

.login-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #d5e4ff;
  border-radius: 14px;
  background: #fbfdff;
  color: var(--ink-900);
  font: inherit;
  padding: 12px 14px;
  box-sizing: border-box;
}

.auth-actions {
  display: grid;
  gap: 12px;
}

.auth-btn,
.btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.auth-btn {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-btn:hover,
.btn:hover {
  transform: translateY(-1px);
}

.auth-btn-primary {
  background: linear-gradient(120deg, var(--blue-800), var(--blue-700));
  color: var(--white);
  box-shadow: 0 12px 24px rgba(31, 98, 189, 0.2);
}

.auth-btn-secondary {
  background: #edf5ff;
  color: var(--blue-800);
  border: 1px solid #d8ebff;
}

.auth-btn-ghost {
  background: var(--white);
  color: var(--blue-900);
  border: 1px solid #dfeaff;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: var(--ink-500);
  font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  display: block;
  height: 1px;
  background: #dfeaff;
}

.auth-message {
  min-height: 24px;
  margin: 16px 0 0;
  font-size: 0.92rem;
  color: var(--blue-800);
}

.auth-message[data-type='warning'] {
  color: #aa5121;
}

.admin-header {
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(12, 58, 120, 0.08);
}

.admin-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 88px;
  gap: 16px;
}

.admin-header h1 {
  margin: 4px 0 0;
  font-family: "M PLUS 1p", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.admin-shell {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 26px;
  padding: 30px 0 60px;
}

.admin-panel,
.preview-panel {
  padding: 26px;
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.admin-panel-header h2,
.preview-panel h2 {
  margin: 0;
  font-size: 1.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--blue-800);
  font-size: 0.82rem;
  font-weight: 700;
}

.status-badge.authenticated {
  background: #e7f9ee;
  color: #117d4e;
}

.news-form {
  display: grid;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.news-form label {
  display: grid;
  gap: 8px;
  color: var(--ink-900);
  font-weight: 700;
}

.news-form input,
.news-form textarea {
  width: 100%;
  border: 1px solid #d5e4ff;
  border-radius: 12px;
  background: #fbfdff;
  color: var(--ink-900);
  font: inherit;
  padding: 12px 14px;
}

.news-form textarea {
  resize: vertical;
  min-height: 140px;
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.checkbox-row input {
  width: auto;
  margin: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.preview-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e3edf9;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.preview-item time {
  color: var(--blue-800);
  font-weight: 700;
}

.preview-content {
  display: grid;
  gap: 8px;
}

.preview-title {
  color: var(--blue-700);
  font-weight: 700;
  font-size: 1.05rem;
}

.preview-body {
  color: var(--ink-700);
}

.list-panel {
  margin-top: 24px;
  border-top: 1px solid #e5eefc;
  padding-top: 18px;
}

.list-panel h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.admin-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.admin-news-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e6f0ff;
  border-radius: 12px;
  background: #f9fbff;
}

.admin-news-item-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.admin-news-item-meta strong {
  color: var(--blue-800);
}

.admin-news-actions {
  display: flex;
  gap: 8px;
}

.edit-btn,
.delete-btn {
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 700;
}

.edit-btn {
  background: #edf5ff;
  color: var(--blue-800);
}

.delete-btn {
  background: #fff1f1;
  color: #af2c2c;
}

.hidden {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.24s;
}

@media (max-width: 980px) {
  .hero-inner,
  .split,
  .infection-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .patient-info-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-copy p {
    max-width: none;
  }

  .split-image {
    order: 2;
  }

  .split-copy {
    order: 1;
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
  }

  .global-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    background: #ffffff;
    border-bottom: 1px solid #dbe8fa;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .global-nav a {
    padding: 14px 4%;
    border-bottom: 1px solid #edf3fd;
  }

  .global-nav.nav-open {
    max-height: 320px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .strip-inner {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .notice-date {
    opacity: 0.92;
  }

  .news-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
