@charset "UTF-8";

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  /* Colors */
  --color-primary: #85d0e3; /* Soft light blue/cyan */
  --color-primary-dark: #6ebcd1;
  --color-accent: #6db6fc; /* Bright blue for buttons */
  --color-accent-hover: #58a5eb;
  --color-text: #4a4a4a;
  --color-text-light: #777;
  --color-bg: #ffffff;
  --color-bg-light: #f7fcfd;
  --color-bg-blue: #ebf8fc;
  --color-border: #e2e8f0;
  
  /* Shared values */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(109, 182, 252, 0.15);
  --shadow-lg: 0 12px 32px rgba(109, 182, 252, 0.2);
  
  --font-base: 'Noto Sans JP', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease, color 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Typography
   ========================================================================== */
.section-badge {
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  color: #333;
  line-height: 1.4;
}

.section-title.left-align {
  text-align: left;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent);
  color: #fff;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: #fff;
  opacity: 1;
}

.btn-large {
  font-size: 1.125rem;
  padding: 16px 48px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  font-weight: 700;
  padding: 12px 32px;
  border-radius: var(--radius-pill);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  color: var(--color-accent);
  font-weight: 700;
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.btn-white:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  padding: 0 40px;
}

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

.logo-icon {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
}

.nav-menu .nav-list {
  display: flex;
  gap: 32px;
}

.nav-list a {
  font-weight: 500;
  color: var(--color-text);
  font-size: 0.95rem;
}

.nav-list a:hover {
  color: var(--color-primary);
}

.header-action {
  display: flex;
  align-items: center;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 102;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #333;
  position: absolute;
  left: 0;
  transition: all 0.3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.is-active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

.sp-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.98);
  padding: 100px 24px 40px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 101;
}

.sp-nav.is-active {
  transform: translateX(0);
}

.sp-nav-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.sp-nav-list a {
  font-size: 1.25rem;
  font-weight: 700;
  display: block;
  text-align: center;
}

.sp-nav-action {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-top: 80px; /* Header height offset */
  background: linear-gradient(135deg, #ffffff 0%, var(--color-bg-light) 100%);
  position: relative;
  overflow: hidden;
}

/* Background blob element */
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: var(--color-primary);
  opacity: 0.15;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  z-index: 0;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  min-height: calc(100vh - 80px - 100px); /* Minus wave and header */
  padding: 60px 24px 0;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  min-width: 300px;
  padding-right: 40px;
  padding-bottom: 40px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.3;
  color: #333;
  margin-bottom: 24px;
}

.hero-subtext {
  font-size: 1.125rem;
  color: var(--color-text);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-image-wrapper {
  flex: 1.2;
  min-width: 300px;
  position: relative;
  border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wave-divider {
  width: 100%;
  line-height: 0;
}
.wave-divider svg {
  width: 100%;
  height: 60px;
  display: block;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section-bg-blue {
  background-color: var(--color-bg-blue);
  padding: 80px 0 0;
}

.section-bg-light {
  background-color: var(--color-bg-light);
  padding: 80px 0;
}

.mt-large {
  margin-top: 80px;
}

/* Services */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.service-card {
  background-color: #fff;
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background-color: var(--color-bg-blue);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  width: 40px;
  height: 40px;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #333;
}

.service-text {
  font-size: 0.95rem;
  color: var(--color-text-light);
  text-align: left;
}

/* Info Area (Schedule & News) */
.info-area {
  padding: 100px 0;
  background-color: #fff;
}

.dual-section {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.dual-section > div {
  flex: 1;
  min-width: 300px;
}

/* Schedule */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.schedule-table th,
.schedule-table td {
  border: 1px solid var(--color-border);
  padding: 12px 8px;
  text-align: center;
  font-size: 0.95rem;
}

.schedule-table th {
  background-color: var(--color-bg-blue);
  font-weight: 700;
  color: #333;
}

.schedule-table .time-cell {
  background-color: var(--color-bg-light);
  font-weight: 500;
  white-space: nowrap;
}

.schedule-table .closed {
  color: #ccc;
}

.schedule-note {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* News */
.news-list {
  border-top: 1px solid var(--color-border);
}

.news-list li {
  border-bottom: 1px solid var(--color-border);
}

.news-list a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 20px 8px;
  gap: 16px;
}

.news-list a:hover {
  background-color: var(--color-bg-light);
  opacity: 1;
}

.news-date {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.news-category {
  font-size: 0.8rem;
  background-color: var(--color-primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.news-text {
  flex: 1;
  font-weight: 500;
}

/* Access */
.access-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  background-color: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.access-info {
  flex: 1;
  min-width: 300px;
  padding: 40px;
}

.access-clinic-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 24px;
}

.access-address {
  margin-bottom: 24px;
}

.access-route {
  margin-bottom: 32px;
  padding-left: 20px;
  list-style: disc;
  color: var(--color-text-light);
}

.access-contact {
  background-color: var(--color-bg-blue);
  padding: 24px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.access-tel-label {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.access-tel-link {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
}

.access-map {
  flex: 1.5;
  min-width: 300px;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background-color: #e2e8f0;
}

/* CTA Bottom */
.cta-area {
  padding: 80px 24px;
  background: url('data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22100%25%22%20height%3D%22100%25%22%3E%3Crect%20fill%3D%22%23b6e8f4%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20%2F%3E%3C%2Fsvg%3E') center/cover;
}

.cta-box {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 60px 40px;
  border-radius: var(--radius-md);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #333;
}

.cta-text {
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.btn-cta {
  min-width: 260px;
  padding: 20px 40px;
  font-size: 1.125rem;
}

.tel-btn {
  flex-direction: column;
  padding: 12px 40px;
}

.tel-text {
  font-size: 0.8rem;
  font-weight: 500;
}

.tel-number {
  font-size: 1.25rem;
  line-height: 1.2;
}

/* Footer */
.footer {
  background-color: #333;
  color: #fff;
  padding: 60px 0 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-address {
  color: #aaa;
  font-size: 0.9rem;
}

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

.footer-nav a {
  color: #ddd;
}

.footer-bottom {
  border-top: 1px solid #555;
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: #aaa;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
.sp-only {
  display: none;
}

@media (max-width: 1023px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    padding-right: 0;
  }
  
  .hero-image-wrapper {
    width: 100%;
    margin-top: 40px;
  }
  
  .dual-section {
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .sp-only {
    display: inline;
  }
  
  .btn-sp-hide {
    display: none;
  }
  
  .hamburger {
    display: block;
  }
  
  .header-inner {
    padding: 0 20px;
    height: 70px;
  }
  
  .nav-menu {
    display: none;
  }
  
  .hero {
    padding-top: 70px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .access-content {
    flex-direction: column;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-cta {
    width: 100%;
  }
  
  .footer-top {
    flex-direction: column;
  }
  
  .footer-nav ul {
    flex-direction: column;
    gap: 16px;
  }
}
