/* ========================================
   医療法人社団鉄結会 コーポレートサイト
   ======================================== */

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

:root {
  --navy: #1a2744;
  --navy-light: #243352;
  --blue: #2563a0;
  --blue-light: #3b82c4;
  --gold: #b8956a;
  --white: #ffffff;
  --gray-50: #f8f9fb;
  --gray-100: #f0f2f5;
  --gray-200: #e2e5ea;
  --gray-400: #9ca3af;
  --gray-600: #6b7280;
  --gray-800: #333333;
  --gray-900: #1a1a1a;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --header-h: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  background: var(--white);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.sp-only { display: none; }
.pc-only { display: inline; }

@media (max-width: 768px) {
  .sp-only { display: inline; }
  .pc-only { display: none; }
}


/* --- Header --- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}

.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  border-radius: 6px;
}

.logo-mark--small {
  width: 32px;
  height: 32px;
  font-size: 16px;
}

.logo-text {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--gray-800);
  font-weight: 400;
}

.logo-text strong {
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width var(--transition);
}

.nav-link:hover { color: var(--navy); }
.nav-link:hover::after { width: 100%; }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-800);
  transition: var(--transition);
  border-radius: 1px;
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.25s ease;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-link {
    padding: 14px 24px;
    font-size: 15px;
    display: block;
  }

  .nav-link::after { display: none; }
}


/* --- Hero --- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  padding: calc(var(--header-h) + 60px) 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--blue) 100%);
  z-index: 0;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(37,99,160,0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(184,149,106,0.1) 0%, transparent 50%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30h60M30 0v60' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.5;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(14px, 2.5vw, 17px);
  color: rgba(255,255,255,0.8);
  line-height: 1.9;
  font-weight: 300;
  margin-bottom: 36px;
}

.hero-cta {
  display: inline-block;
  padding: 14px 36px;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: var(--transition);
}

.hero-cta:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}


/* --- Sections --- */
.section {
  padding: 80px 0;
}

.section--white { background: var(--white); }
.section--gray { background: var(--gray-50); }

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  color: var(--gray-900);
}

.section-title--light { color: var(--white); }

.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 16px auto 0;
}

.section-title--light::after { background: rgba(255,255,255,0.3); }

.section-lead {
  text-align: center;
  color: var(--gray-600);
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}


/* --- Values / Philosophy --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 32px 28px;
  transition: var(--transition);
}

.value-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transform: translateY(-2px);
}

.value-icon {
  width: 44px;
  height: 44px;
  color: var(--blue);
  margin-bottom: 16px;
}

.value-icon svg { width: 100%; height: 100%; }

.value-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gray-900);
}

.value-text {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.8;
}

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


/* --- Clinic Cards --- */
.clinic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.clinic-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 28px 24px;
  transition: var(--transition);
  position: relative;
}

.clinic-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}

.clinic-card--acnelab {
  border-color: var(--gold);
  border-width: 1.5px;
}

.clinic-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.clinic-badge--acnelab {
  background: var(--gold);
}

.clinic-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.clinic-address {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.clinic-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--gray-50);
  border-radius: 6px;
  font-size: 13px;
  color: var(--blue);
  font-weight: 500;
  transition: var(--transition);
}

.clinic-link:hover {
  background: var(--blue);
  color: var(--white);
}

.clinic-url { letter-spacing: 0.02em; }

.clinic-arrow {
  font-size: 16px;
  transition: transform var(--transition);
}

.clinic-link:hover .clinic-arrow { transform: translateX(3px); }

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

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


/* --- About Table --- */
.about-table-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.about-table {
  width: 100%;
  border-collapse: collapse;
}

.about-table th,
.about-table td {
  padding: 18px 20px;
  font-size: 15px;
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
  vertical-align: top;
}

.about-table th {
  width: 160px;
  font-weight: 600;
  color: var(--gray-900);
  background: var(--gray-50);
  white-space: nowrap;
}

.about-table td { color: var(--gray-800); }

.about-table td a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-table td a:hover { color: var(--blue-light); }

.about-table .placeholder {
  color: var(--gray-400);
  font-style: italic;
}

@media (max-width: 600px) {
  .about-table th {
    width: 100px;
    font-size: 13px;
    padding: 14px 12px;
  }
  .about-table td {
    font-size: 14px;
    padding: 14px 12px;
  }
}


/* --- Contact --- */
.contact-text {
  text-align: center;
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  line-height: 1.9;
  margin-bottom: 36px;
}

.contact-inline-link {
  color: rgba(255,255,255,0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  padding: 18px 40px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  color: var(--white);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: var(--transition);
}

.contact-email:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.4);
}

.contact-email-icon {
  width: 24px;
  height: 24px;
}

#contact .container { text-align: center; }


/* --- Footer --- */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 40px 0 32px;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo .logo-mark--small {
  background: var(--gray-600);
}

.footer-corp {
  font-size: 13px;
  color: var(--gray-400);
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  color: var(--gray-400);
  font-size: 13px;
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--white); }

.copyright {
  text-align: center;
  color: var(--gray-600);
  font-size: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: 20px;
  }
  .footer-nav { gap: 16px; flex-wrap: wrap; justify-content: center; }
}
