/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:          #ffffff;
  --bg-alt:      #f6f6f6;
  --bg-dark:     #111111;
  --text:        #1a1a1a;
  --text-muted:  #666666;
  --red:         #d80100;
  --red-dark:    #b00000;
  --border:      #e0e0e0;
  --border-mid:  #cccccc;
  --white:       #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Serif JP", "游明朝", YuMincho, "Hiragino Mincho ProN", serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.9;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo img {
  height: 44px;
  width: auto;
  filter: none;
}

.nav { display: flex; align-items: center; gap: 2px; }

.nav > a {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #444;
  transition: color 0.2s;
  font-family: "Noto Sans JP", sans-serif;
}

.nav > a:hover,
.nav > a.active {
  color: var(--red);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  margin-left: 24px;
  padding-left: 24px;
  border-left: 1px solid var(--border);
}

.lang-switcher a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #888;
  padding: 4px 8px;
  transition: color 0.2s;
  font-family: "Noto Sans JP", sans-serif;
}

.lang-switcher a:hover,
.lang-switcher a.active {
  color: var(--red);
}

.lang-switcher a + a::before {
  content: '/';
  color: var(--border-mid);
  pointer-events: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1px;
  background: #555;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.42) 100%);
  z-index: 1;
}

/* Vertical decorative text */
.hero-tate {
  position: absolute;
  z-index: 3;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  letter-spacing: 0.3em;
  font-size: 0.72rem;
  color: rgba(216,1,0,0.4);
  font-weight: 400;
  pointer-events: none;
  user-select: none;
  font-family: "Noto Serif JP", serif;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
  padding: 0 32px;
  animation: fadeUp 1.2s ease 0.3s both;
}

.hero-content h1 {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
  line-height: 1.2;
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}

.hero-content p {
  font-size: clamp(0.88rem, 1.6vw, 1.05rem);
  color: rgba(255,255,255,0.92);
  margin-bottom: 44px;
  line-height: 2;
  letter-spacing: 0.08em;
  font-weight: 300;
}

.hero-btn {
  display: inline-block;
  padding: 13px 52px;
  border: 1px solid rgba(255,255,255,0.85);
  color: var(--white);
  background: transparent;
  border-radius: 0;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  font-family: "Noto Sans JP", sans-serif;
}

.hero-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ===== Wa Divider ===== */
.wa-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 72px 0 0;
  color: #d0d0d0;
  font-size: 0.5rem;
  letter-spacing: 0.2em;
}
.wa-divider::before,
.wa-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ===== Section Common ===== */
.section {
  padding: 100px 40px;
  background: var(--bg);
}

.section-alt {
  background: var(--bg-alt);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Section Title */
.section-title {
  margin-bottom: 64px;
}

.section-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0.85;
  font-family: "Noto Sans JP", sans-serif;
}

.section-title h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.06em;
  padding-left: 20px;
  border-left: 4px solid var(--red);
  line-height: 1.35;
}

.section-title p {
  font-size: 0.78rem;
  color: #999;
  margin-top: 12px;
  padding-left: 24px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: "Noto Sans JP", sans-serif;
}

.section-title .line { display: none; }

/* ===== About Section ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-image {
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.about-image::before,
.about-image::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  z-index: 2;
  pointer-events: none;
}
.about-image::before {
  top: 8px; left: 8px;
  border-top: 1px solid var(--red);
  border-left: 1px solid var(--red);
}
.about-image::after {
  bottom: 8px; right: 8px;
  border-bottom: 1px solid var(--red);
  border-right: 1px solid var(--red);
}

.about-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.7s;
}

.about-image:hover img { transform: scale(1.03); }

.about-text p {
  margin-bottom: 24px;
  font-size: 0.92rem;
  line-height: 2.1;
  color: #555;
}

.about-text p:last-child { margin-bottom: 0; }

/* ===== Services Section ===== */
.services-category {
  margin-bottom: 64px;
}

.services-category h3 {
  /* noticeably larger than card titles (1.1rem → 1.3rem) */
  font-size: 1.3rem;
  color: var(--red);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 400;
  font-family: "Noto Sans JP", sans-serif;
}

.services-category > p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.88rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: var(--white);
  padding: 32px 28px;
  transition: background 0.25s, border-top-color 0.25s;
  border-top: 2px solid transparent;
}

.service-card:hover {
  background: #fafafa;
  border-top-color: var(--red);
}

.service-card h4 {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 2;
}

/* ===== Medical Section ===== */
.medical-intro {
  max-width: 800px;
  margin: 0 0 52px;
  color: #555;
  font-size: 0.92rem;
  line-height: 2.1;
  padding-left: 20px;
  border-left: 3px solid var(--red);
}

.medical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.medical-card {
  background: var(--white);
  overflow: hidden;
  transition: background 0.25s;
}

.medical-card:hover { background: #fafafa; }

.medical-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.medical-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, rgba(0,0,0,0.35));
}

.medical-card-body {
  padding: 28px;
  border-bottom: 1px solid var(--border);
}

.medical-card-body h4 {
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.medical-card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 2;
}

.medical-card-body ul { margin-top: 8px; }

.medical-card-body ul li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 8px 0 8px 18px;
  position: relative;
  border-bottom: 1px solid var(--border);
  line-height: 1.7;
}

.medical-card-body ul li:last-child { border-bottom: none; }

.medical-card-body ul li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 0.5rem;
  top: 13px;
}

/* ===== Contact Section ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-item:first-child { padding-top: 0; }

.contact-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

..contact-info-item .icon {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid #000;
  color: #000;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 0.65rem;
  color: #999;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-family: "Noto Sans JP", sans-serif;
}

.contact-info-item p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.8;
}

.contact-info-item a { color: var(--text); }
.contact-info-item a:hover { color: var(--text-muted); text-decoration: underline; }

.map-container {
  border: 1px solid var(--border);
  overflow: hidden;
  height: 100%;
  min-height: 350px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 350px;
  display: block;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.55);
  padding: 56px 40px 32px;
  border-top: 3px solid var(--red);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo img {
  height: 38px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer-links { display: flex; gap: 28px; }

.footer-links a {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  transition: color 0.2s;
  font-family: "Noto Sans JP", sans-serif;
}

.footer-links a:hover { color: var(--red); }

.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #333;
  font-size: 0.7rem;
  color: #555;
  letter-spacing: 0.1em;
  font-family: "Noto Sans JP", sans-serif;
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header-inner { height: 58px; padding: 0 20px; }

  .nav {
    display: none;
    position: absolute;
    top: 58px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px 24px;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }

  .nav.open { display: flex; }

  .nav > a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
  }

  .nav > a:last-of-type { border-bottom: none; }

  .lang-switcher {
    margin-left: 0;
    border-left: none;
    padding-left: 0;
    padding-top: 16px;
    justify-content: center;
  }

  .lang-switcher a + a::before { display: none; }

  .hamburger { display: flex; }

  .hero-tate { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }

  .section { padding: 72px 20px; }
  .section-title { margin-bottom: 48px; }

  .services-grid { gap: 0; }
  .medical-grid { gap: 0; }
}
