/*
Theme Name: Blanc Dental Clinic
Theme URI: https://example.com
Author: Blanc Dental
Description: A clean and modern dental clinic WordPress theme
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: blanc-dental
*/

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

:root {
  --color-primary: #7a9aaa;
  --color-primary-dark: #5a7d8f;
  --color-primary-light: #b8ced8;
  --color-accent: #8faab5;
  --color-bg: #f4f7f9;
  --color-bg-section: #e8f0f4;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-white: #ffffff;
  --color-border: #d0dde4;
  --font-base: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-en: 'Cormorant Garamond', 'Georgia', serif;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-white);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition);
}

a:hover {
  opacity: 0.7;
}

ul, ol {
  list-style: none;
}

/* ==================== TYPOGRAPHY ==================== */
.section-label {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.4;
  color: var(--color-text);
}

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

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

/* ==================== LAYOUT ==================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
}

section {
  padding: 80px 0;
}

/* ==================== HEADER ==================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

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

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

.site-logo {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-text);
  text-decoration: none;
}

/* ==================== NAVIGATION ==================== */
.global-nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
	row-gap: 5px;
}

.global-nav a {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--color-text);
  position: relative;
  padding-bottom: 4px;
}

.global-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width var(--transition);
  gap: 13px;
}

.global-nav a:hover::after,
.global-nav a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--color-primary-dark);
  color: var(--color-white) !important;
  padding: 10px 20px !important;
  border-radius: 2px;
  font-size: 13px;
  letter-spacing: 0.1em;
}

.nav-cta:hover {
  opacity: 0.85;
}

.nav-cta::after {
  display: none !important;
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  margin: 0;
  padding: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 6px 20px;
  font-size: 13px;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
  text-align: center;
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition);
}

/* ==================== HERO ==================== */
.hero {
  padding-top: 70px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 70px);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 80px 80px;
}

.hero-en {
  font-family: var(--font-en);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--color-text);
  margin-bottom: 16px;
}

.hero-ja {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--color-text-light);
  margin-bottom: 40px;
}

.hero-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-link {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--color-primary-dark);
  border-bottom: 1px solid var(--color-primary-dark);
  padding-bottom: 2px;
}

.hero-image {
  overflow: hidden;
}

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

/* ==================== CONCEPT ==================== */
.concept {
  background: var(--color-bg-section);
}

.concept-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.concept-image {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.concept-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.concept-content .section-label {
  margin-bottom: 8px;
}

.concept-content .section-title {
  margin-bottom: 24px;
  font-size: 32px;
}

.concept-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 2;
  margin-bottom: 32px;
}



.text-link {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--color-primary-dark);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* ==================== CONSULTATION ==================== */
.consultation {
  background: var(--color-white);
}

.treatment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.treatment-card {
  background: var(--color-bg);
  border-radius: 4px;
  padding: 32px 20px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.treatment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.treatment-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
}

.treatment-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 1.5;
}

.treatment-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.treatment-name-ja {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.treatment-name-en {
  font-size: 11px;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
}

.btn-center {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 14px 40px;
  font-size: 14px;
  letter-spacing: 0.1em;
  border: 1px solid var(--color-primary-dark);
  color: var(--color-primary-dark);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  opacity: 1;
}

.btn--filled {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.btn--filled:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* ==================== NEWS ==================== */
.news {
  background: var(--color-bg-section);
}

.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.news-card {
  background: var(--color-white);
  overflow: hidden;
}

.news-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-bg);
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.05);
}

.news-card-body {
  padding: 16px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

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

.news-cat {
  font-size: 11px;
  padding: 2px 8px;
  background: var(--color-bg);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-primary-light);
}

.news-title {
  font-size: 14px;
  line-height: 1.6;
}

/* ==================== PHOTO GALLERY ==================== */
.gallery-strip {
  padding: 0;
  overflow: hidden;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ==================== SLIDESHOW STRIP ==================== */
.clinic-slideshow-strip {
  width: 100%;
  overflow: hidden;
  background: var(--color-white);
  padding: 0;
}

.strip-track {
  display: flex;
  width: max-content;
  animation: strip-scroll 40s linear infinite;
}

/* ホバーで一時停止 */
.clinic-slideshow-strip:hover .strip-track {
  animation-play-state: paused;
}

@keyframes strip-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* 複製した1セット分だけ移動 */
}

.strip-item {
  width: 25vw;
  aspect-ratio: 3/2;
  overflow: hidden;
  flex-shrink: 0;
}

.strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.strip-item:hover img {
  transform: scale(1.04);
}

@media (max-width: 768px) {
  .strip-item {
    width: 70vw;
  }
}

/* ==================== ACCESS ==================== */
.access {
  background: var(--color-bg-section);
}

.access-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.map-placeholder {
  background: var(--color-bg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.access-info-name {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin: 8px 0 24px;
}

.access-address {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* Hours table */
.hours-card {
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: 20px;
}

.hours-card-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.hours-card-sub {
  font-size: 11px;
  opacity: 0.7;
  margin-bottom: 16px;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.hours-table th,
.hours-table td {
  padding: 6px 8px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.hours-table th {
  font-weight: 400;
  opacity: 0.7;
  font-size: 12px;
}

.hours-table td:first-child {
  text-align: left;
  font-size: 12px;
}

/* ==================== FOOTER ==================== */
#site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 24px 40px;
  font-size: 12px;
  letter-spacing: 0.05em;
}

/* ==================== FIXED CTA ==================== */
.fixed-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  z-index: 900;
}

.fixed-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-size: 14px;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.fixed-cta-web {
  background: var(--color-primary-dark);
  color: var(--color-white) !important;
}

.fixed-cta-tel {
  background: rgba(255,255,255,0.95);
  color: var(--color-text) !important;
  border-top: 1px solid var(--color-border);
}

/* ==================== PAGE HERO ==================== */
.page-hero {
  padding-top: 70px;
  position: relative;
  height: 320px;
  overflow: hidden;
}

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

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

.page-hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 48px 80px;
  color: var(--color-white);
  text-align: right;
}

.page-hero-label {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  opacity: 0.8;
  margin-bottom: 8px;
}

.page-hero-title {
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

/* ==================== CONSULTATION PAGE ==================== */
.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 14px 28px;
  font-size: 14px;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--color-text-light);
  transition: all var(--transition);
  position: relative;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary-dark);
  transition: width var(--transition);
}

.tab-btn.active {
  color: var(--color-primary-dark);
  background: var(--color-bg-section);
}

.tab-btn.active::after,
.tab-btn:hover::after {
  width: 100%;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Treatment Detail */
.treatment-section {
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--color-border);
}

.treatment-section:last-child {
  border-bottom: none;
}

.treatment-heading {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 32px;
}

.treatment-detail-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 48px;
  align-items: start;
}

.treatment-detail-icon {
  width: 100px;
  height: 100px;
  background: var(--color-bg-section);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.treatment-detail-icon svg {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 1.5;
}

.treatment-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.treatment-tag {
  font-size: 13px;
  padding: 6px 16px;
  border: 1px solid var(--color-primary-light);
  color: var(--color-primary-dark);
  background: var(--color-bg-section);
}

.treatment-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 2;
  margin-bottom: 16px;
}

.price-link {
  font-size: 13px;
  color: var(--color-primary-dark);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* ==================== DOCTOR PAGE ==================== */
.doctor-profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 80px;
}

.doctor-image {
  aspect-ratio: 3/4;
  overflow: hidden;
}

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

.profile-clinic {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.profile-role {
  font-size: 14px;
  margin-bottom: 4px;
}

.profile-name {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.profile-title {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.profile-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  color: var(--color-primary-dark);
}

.career-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-bg-section);
}

.career-year {
  color: var(--color-text-light);
}

/* Doctor Message */
.doctor-message {
  padding: 80px 0;
  background: var(--color-bg-section);
}

.message-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.message-content {
  border-left: 3px solid var(--color-primary);
  padding-left: 24px;
}

.message-heading {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 8px;
}

.message-sub {
  font-size: 16px;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.message-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 2;
}

.message-image {
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

/* ==================== NEWS PAGE ==================== */
.news-page {
  padding: 80px 0;
}

.news-page-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  align-items: start;
}

.news-article-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-article-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}

.news-article-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-bg);
}

.news-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.news-article-title {
  font-size: 15px;
  font-weight: 400;
}

/* Sidebar */
.sidebar-widget {
  margin-bottom: 40px;
}

.sidebar-title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
}

.cat-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.cat-list a {
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  color: var(--color-text-light);
}

.cat-list a:hover {
  color: var(--color-primary-dark);
  opacity: 1;
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: calc(100vh - 70px);
  background: var(--color-white);
  z-index: 999;
  overflow-y: auto;
  padding: 32px 40px;
  transform: translateX(-100%);
  transition: transform var(--transition);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-list li a {
  display: block;
  padding: 16px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--color-border);
  letter-spacing: 0.05em;
}

/* ==================== ANIMATIONS ==================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .hero-en {
    font-size: 32px;
  }

  .treatment-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .container, .container--narrow {
    padding: 0 24px;
  }

  section {
    padding: 60px 0;
  }

  .header-inner {
    padding: 0 24px;
  }

  .global-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-content {
    padding: 60px 24px;
    order: 2;
  }

  .hero-image {
    order: 1;
    height: 50vw;
  }

  .hero-en {
    font-size: 28px;
  }

  .concept-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .treatment-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-list {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .access-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .doctor-profile {
    grid-template-columns: 1fr;
  }

  .message-inner {
    grid-template-columns: 1fr;
  }

  .news-page-inner {
    grid-template-columns: 1fr;
  }

  .news-article-item {
    grid-template-columns: 1fr;
  }

  .page-hero-content {
    padding: 32px 24px;
  }

  .page-hero-title {
    font-size: 28px;
  }
}