/*
Theme Name: Suzuki Dental
Theme URI: https://suzuki-fam.com
Description: 鈴木ファミリー歯科 カスタムテーマ
Version: 1.4
Author: Kei Suzuki
Text Domain: suzuki-dental
*/

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #333333;
  background: #ffffff;
}

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

a { color: #3156A3; text-decoration: none; transition: color 0.2s; }
a:hover { color: #42B3E5; }

ul { list-style: none; }

/* ============================================
   TYPOGRAPHY
============================================ */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.4; color: #222222; margin-bottom: 0.75em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #42B3E5;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: #3156A3;
  text-align: center;
  margin-bottom: 0.4em;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: #42B3E5;
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: #666666;
  font-size: 0.95rem;
  margin-bottom: 3em;
}

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

.section-pad { padding: 72px 0; }
.section-pad-sm { padding: 48px 0; }
.bg-white { background: #ffffff; }
.bg-light { background: #F0F8FF; }
.bg-blue { background: #3156A3; }
.bg-dark { background: #1a3560; }

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
}

.btn-gold {
  background: #E8A838;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(232,168,56,0.35);
}
.btn-gold:hover { background: #d4962a; color: #ffffff; transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #ffffff; }

.btn-blue {
  background: #3156A3;
  color: #ffffff;
}
.btn-blue:hover { background: #1e4a87; color: #ffffff; }

/* ============================================
   TOP BAR
============================================ */
.top-bar {
  background: #42B3E5;
  color: #ffffff;
  font-size: 0.82rem;
  padding: 7px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.top-bar a { color: #ffffff; }
.top-bar .phone { font-weight: 700; font-size: 0.9rem; }

/* ============================================
   HEADER / NAV
============================================ */
.site-header {
  background: #ffffff;
  border-bottom: 3px solid #3156A3;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 12px rgba(43,94,167,0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.site-logo {
  font-size: 1.2rem;
  font-weight: 900;
  color: #3156A3;
  line-height: 1.3;
  white-space: nowrap;
}
.site-logo span { display: block; font-size: 0.7rem; font-weight: 400; color: #666666; }
.site-logo a { color: #3156A3; }

.main-nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
}

.main-nav ul li a {
  display: block;
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #333333;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.main-nav ul li a:hover { background: #F0F8FF; color: #3156A3; }

.nav-cta a {
  background: #E8A838 !important;
  color: #ffffff !important;
  border-radius: 20px !important;
  padding: 9px 20px !important;
}
.nav-cta a:hover { background: #d4962a !important; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid #3156A3;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1.2rem;
  color: #3156A3;
}

/* ============================================
   HERO
============================================ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-color: #1a3d6e;
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(66,179,229,0.82) 0%, rgba(49,86,163,0.70) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 60px 24px;
  margin-left: calc((100vw - 1100px) / 2);
}

@media (max-width: 1148px) { .hero-content { margin-left: 24px; } }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.25);
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================
   FEATURES (3つのこだわり)
============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(43,94,167,0.09);
  border-top: 4px solid #42B3E5;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(43,94,167,0.15); }

.feature-icon {
  width: 68px; height: 68px;
  background: linear-gradient(135deg, #3156A3, #42B3E5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.9rem;
}

.feature-card h3 { color: #3156A3; font-size: 1.05rem; margin-bottom: 10px; }
.feature-card p { color: #555555; font-size: 0.88rem; line-height: 1.8; }

/* ============================================
   お知らせ (NEWS)
============================================ */
.news-list { max-width: 760px; margin: 0 auto; }

.news-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #D8EEF8;
}

.news-date { font-size: 0.82rem; color: #888888; white-space: nowrap; min-width: 88px; }

.news-item a { color: #333333; font-size: 0.95rem; transition: color 0.2s; }
.news-item a:hover { color: #3156A3; }

.news-empty { text-align: center; color: #888888; font-size: 0.9rem; padding: 24px 0; }

.news-more { text-align: center; margin-top: 28px; }

/* ============================================
   SERVICES
============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.service-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 28px 22px;
  box-shadow: 0 2px 14px rgba(43,94,167,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 6px 22px rgba(43,94,167,0.14); }

.service-icon { font-size: 2.2rem; margin-bottom: 14px; }
.service-card h3 { color: #3156A3; font-size: 1rem; margin-bottom: 8px; }
.service-card p { color: #555555; font-size: 0.87rem; line-height: 1.75; flex-grow: 1; margin-bottom: 16px; }
.service-link { font-size: 0.85rem; color: #42B3E5; font-weight: 700; }
.service-link::after { content: ' →'; }

/* ============================================
   DOCTOR
============================================ */
.doctor-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 52px;
  align-items: start;
}

.doctor-photo-wrap img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(43,94,167,0.15);
}

.doctor-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #e8f0f8, #d0e2f0);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8aabc8;
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
}

.doctor-title { font-size: 0.8rem; color: #42B3E5; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.doctor-name { font-size: 1.5rem; color: #3156A3; margin-bottom: 6px; }
.doctor-yomi { font-size: 0.82rem; color: #888888; margin-bottom: 20px; }
.doctor-message { color: #444444; line-height: 1.95; margin-bottom: 24px; font-size: 0.95rem; }

.doctor-career {
  background: #F0F8FF;
  border-left: 4px solid #42B3E5;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  font-size: 0.87rem;
  color: #555555;
  line-height: 1.9;
}

/* ============================================
   ACCESS PREVIEW
============================================ */
.access-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

.access-map-placeholder {
  width: 100%;
  height: 320px;
  background: linear-gradient(135deg, #e0e8f4, #c8d8ec);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a9bbf;
  font-size: 0.9rem;
  text-align: center;
}

.access-map iframe {
  width: 100%;
  height: 320px;
  border-radius: 10px;
  border: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.access-info-block { margin-bottom: 24px; }
.access-info-block h4 {
  font-size: 0.88rem;
  color: #3156A3;
  font-weight: 700;
  border-bottom: 2px solid #D8EEF8;
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.hours-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.hours-table th, .hours-table td { padding: 7px 8px; text-align: center; border: 1px solid #D8EEF8; }
.hours-table th { background: #3156A3; color: #ffffff; font-weight: 600; }
.hours-table tr:nth-child(even) td { background: #F7FAFD; }
.hours-table .closed { color: #bbbbbb; }

.access-phone { font-size: 1.3rem; font-weight: 700; color: #3156A3; display: block; margin: 10px 0 4px; }
.access-address { font-size: 0.87rem; color: #555555; line-height: 1.8; }

/* ============================================
   CTA BANNER
============================================ */
.cta-banner {
  background: linear-gradient(135deg, #3156A3 0%, #42B3E5 100%);
  text-align: center;
  padding: 64px 24px;
}

.cta-banner h2 { color: #ffffff; font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.88); margin-bottom: 32px; }
.cta-banner .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.5);
  padding: 13px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: background 0.2s;
}
.btn-phone:hover { background: rgba(255,255,255,0.25); color: #ffffff; }

/* ============================================
   FOOTER
============================================ */
.site-footer { background: #1a3560; color: rgba(255,255,255,0.75); padding: 52px 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-clinic-name { font-size: 1.1rem; font-weight: 700; color: #ffffff; margin-bottom: 10px; }
.footer-info { font-size: 0.85rem; line-height: 1.9; }
.footer-phone-large { font-size: 1.1rem; font-weight: 700; color: #E8A838; display: block; margin-top: 8px; }

.footer-nav h4 { color: #ffffff; font-size: 0.85rem; letter-spacing: 0.08em; margin-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 8px; }
.footer-nav li { margin-bottom: 7px; }
.footer-nav li a { font-size: 0.84rem; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-nav li a:hover { color: #E8A838; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================
   PAGE HERO (inner pages)
============================================ */
.page-hero {
  background: linear-gradient(135deg, #3156A3 0%, #1a3d6e 100%);
  padding: 48px 24px;
  text-align: center;
}
.page-hero h1 { color: #ffffff; font-size: clamp(1.4rem, 4vw, 2rem); margin: 0 0 10px; }
.page-hero .breadcrumb { font-size: 0.82rem; color: rgba(255,255,255,0.65); }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.65); }
.page-hero .breadcrumb span { color: rgba(255,255,255,0.9); }

/* ============================================
   SERVICES PAGE
============================================ */
.service-block { margin-bottom: 56px; padding-bottom: 56px; border-bottom: 1px solid #D8EEF8; }
.service-block:last-child { border-bottom: none; margin-bottom: 0; }
.service-block h2 { color: #3156A3; font-size: 1.4rem; border-left: 5px solid #42B3E5; padding-left: 14px; margin-bottom: 16px; }
.service-block .target-list { background: #F0F8FF; border-radius: 8px; padding: 16px 20px; margin-top: 16px; font-size: 0.88rem; }
.service-block .target-list strong { display: block; color: #3156A3; margin-bottom: 6px; font-size: 0.82rem; }

/* ============================================
   FAQ PAGE
============================================ */
.faq-section { margin-bottom: 44px; }
.faq-section h2 { font-size: 1rem; font-weight: 700; color: #3156A3; background: #F0F8FF; padding: 10px 16px; border-radius: 6px; margin-bottom: 0; }

.faq-item { border-bottom: 1px solid #D8EEF8; }
.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  color: #333333;
  list-style: none;
  position: relative;
}
.faq-question::after { content: '＋'; margin-left: auto; color: #3156A3; font-size: 1.1rem; flex-shrink: 0; }
.faq-item.open .faq-question::after { content: '－'; }

.faq-q-icon { color: #3156A3; font-weight: 900; flex-shrink: 0; }
.faq-answer { display: none; padding: 0 0 18px 28px; font-size: 0.92rem; color: #444444; line-height: 1.85; }
.faq-item.open .faq-answer { display: block; }

/* ============================================
   ABOUT / DOCTOR / FACILITY
============================================ */
.about-feature { display: flex; gap: 20px; margin-bottom: 28px; align-items: flex-start; }
.about-feature-icon { font-size: 1.8rem; flex-shrink: 0; width: 48px; text-align: center; }
.about-feature h3 { font-size: 1rem; color: #3156A3; margin-bottom: 6px; }
.about-feature p { font-size: 0.9rem; color: #555555; line-height: 1.8; margin: 0; }

.info-box {
  background: #F0F8FF;
  border-left: 4px solid #42B3E5;
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-size: 0.9rem;
  line-height: 1.85;
  color: #444444;
}

/* ============================================
   BOOKING / CONTACT FORM 7
============================================ */
.booking-intro {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}

.booking-phone-box {
  background: #F0F8FF;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  margin-bottom: 40px;
}
.booking-phone-box p { color: #555555; font-size: 0.9rem; margin-bottom: 8px; }
.booking-phone-box .tel { font-size: 1.6rem; font-weight: 700; color: #3156A3; }
.booking-phone-box .hours { font-size: 0.82rem; color: #777777; margin-top: 4px; }

.booking-form-wrap { max-width: 680px; margin: 0 auto; }

/* CF7 inputs */
.wpcf7-form .form-row { margin-bottom: 20px; }
.wpcf7-form label { display: block; font-size: 0.88rem; font-weight: 700; color: #333333; margin-bottom: 6px; }
.wpcf7-form .required-mark { background: #E8453C; color: #fff; font-size: 0.7rem; padding: 2px 6px; border-radius: 3px; margin-left: 6px; vertical-align: middle; }

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="date"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #D5E4F0;
  border-radius: 7px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #333333;
  background: #FAFCFF;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  border-color: #3156A3;
  outline: none;
  background: #ffffff;
}

.wpcf7-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%232B5EA7' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.wpcf7-form textarea { resize: vertical; min-height: 110px; }

.wpcf7-form .wpcf7-radio { display: flex; gap: 20px; flex-wrap: wrap; }
.wpcf7-form .wpcf7-list-item { display: inline-flex; align-items: center; margin: 0; }
.wpcf7-form .wpcf7-list-item-label { margin-left: 6px; font-size: 0.92rem; }

.wpcf7-form input[type="submit"] {
  width: 100%;
  max-width: 320px;
  display: block;
  margin: 28px auto 0;
  padding: 15px 40px;
  background: linear-gradient(135deg, #3156A3, #42B3E5);
  color: #ffffff;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(43,94,167,0.3);
  transition: opacity 0.2s, transform 0.2s;
}
.wpcf7-form input[type="submit"]:hover { opacity: 0.9; transform: translateY(-2px); }

.booking-notes { max-width: 680px; margin: 24px auto 0; font-size: 0.82rem; color: #777777; background: #f8f8f8; padding: 16px 20px; border-radius: 8px; line-height: 1.9; }

.wpcf7-not-valid-tip { color: #E8453C; font-size: 0.8rem; margin-top: 4px; display: block; }
.wpcf7-response-output { margin: 16px 0 0 !important; padding: 14px 18px !important; border-radius: 7px !important; font-size: 0.9rem !important; text-align: center; }
.wpcf7-mail-sent-ok { background: #EBF9F4 !important; border: 1px solid #42B3E5 !important; color: #1a6b53 !important; }
.wpcf7-validation-errors, .wpcf7-mail-sent-ng { background: #FEF0EF !important; border: 1px solid #E8453C !important; color: #c0392b !important; }

/* ============================================
   ACCESS PAGE
============================================ */
.access-page-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.access-note { font-size: 0.82rem; color: #888888; margin-top: 8px; }

/* ============================================
   SINGLE POST (お知らせ)
============================================ */
.single-post-wrap { max-width: 760px; margin: 0 auto; }
.post-meta { font-size: 0.82rem; color: #888888; margin-bottom: 24px; }
.post-content { font-size: 0.95rem; line-height: 1.9; color: #333333; }
.post-content h2 { font-size: 1.3rem; border-left: 4px solid #42B3E5; padding-left: 12px; margin: 28px 0 14px; }
.back-link { display: inline-block; margin-top: 36px; font-size: 0.88rem; color: #3156A3; }
.back-link::before { content: '← '; }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .doctor-inner { grid-template-columns: 1fr; }
  .doctor-photo-wrap { max-width: 240px; }
  .access-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .access-page-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-content { padding: 48px 20px; }
  .hero-buttons { flex-direction: column; max-width: 280px; }
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .main-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: #ffffff; border-top: 1px solid #D8EEF8; box-shadow: 0 8px 24px rgba(0,0,0,0.1); padding: 12px 0; }
  .main-nav.open ul { flex-direction: column; gap: 0; }
  .main-nav.open ul li a { padding: 12px 24px; border-radius: 0; }
  .top-bar { justify-content: center; text-align: center; font-size: 0.78rem; }
  .header-inner { position: relative; }
}
