/*
Theme Name: Sawayaka Dental
Theme URI: https://example.com/sawayaka-dental/
Author: Sirona Design
Author URI: https://sironadesign.net/
Description: 歯科医院向けの、清潔感と親しみやすさを大切にしたレスポンシブWordPressテーマです。
Version: 1.0.4
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sawayaka-dental
Tags: blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

:root {
  --sd-primary: #23a8a0;
  --sd-primary-dark: #117c78;
  --sd-primary-soft: #e9f8f6;
  --sd-accent: #ffb86b;
  --sd-ink: #29434a;
  --sd-muted: #698087;
  --sd-line: #dcebea;
  --sd-white: #fff;
  --sd-bg: #f7fbfb;
  --sd-shadow: 0 16px 45px rgba(34, 101, 99, .11);
  --sd-radius: 24px;
  --sd-content: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--sd-ink);
  background: var(--sd-white);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--sd-primary-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--sd-primary); }
button, input, textarea, select { font: inherit; }
.container { width: min(calc(100% - 40px), var(--sd-content)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed; z-index: 99999; top: 12px; left: 12px; width: auto; height: auto; padding: 12px 18px; clip: auto; background: #fff; border-radius: 8px; box-shadow: var(--sd-shadow); }

/* Header */
.site-header { position: sticky; z-index: 1000; top: 0; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(220,235,234,.9); backdrop-filter: blur(10px); }
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 28px; }
.site-branding { margin-right: auto; display: flex; align-items: center; min-width: 0; }
.custom-logo-link { display: flex; align-items: center; }
.custom-logo { max-height: 58px; width: auto; }
.brand-link { display: flex; align-items: center; gap: 12px; color: var(--sd-ink); text-decoration: none; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 auto; color: var(--sd-primary); background: var(--sd-primary-soft); border-radius: 14px; }
.brand-mark svg { width: 27px; height: 27px; }
.brand-title { display: block; font-size: 1.1rem; font-weight: 800; letter-spacing: .03em; line-height: 1.35; }
.brand-subtitle { display: block; color: var(--sd-muted); font-size: .68rem; letter-spacing: .08em; line-height: 1.4; }
.main-navigation ul { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.main-navigation a { color: var(--sd-ink); font-size: .9rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.main-navigation a:hover { color: var(--sd-primary); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone { color: var(--sd-primary-dark); font-weight: 800; text-decoration: none; white-space: nowrap; }
.header-phone small { display: block; color: var(--sd-muted); font-size: .6rem; font-weight: 500; line-height: 1; }
.button, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; color: #fff; background: var(--sd-primary); border: 2px solid var(--sd-primary); border-radius: 999px; box-shadow: 0 8px 20px rgba(35,168,160,.2); font-weight: 800; line-height: 1.4; text-align: center; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover, .wp-block-button__link:hover { color: #fff; background: var(--sd-primary-dark); border-color: var(--sd-primary-dark); box-shadow: 0 12px 26px rgba(35,168,160,.27); transform: translateY(-2px); }
.button--outline { color: var(--sd-primary-dark); background: #fff; border-color: var(--sd-line); box-shadow: none; }
.button--outline:hover { color: var(--sd-primary-dark); background: var(--sd-primary-soft); border-color: var(--sd-primary); }
.button--accent { color: #573a1c; background: var(--sd-accent); border-color: var(--sd-accent); box-shadow: 0 8px 20px rgba(255,184,107,.25); }
.button--accent:hover { color: #573a1c; background: #ffc98e; border-color: #ffc98e; }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; color: var(--sd-ink); background: var(--sd-primary-soft); border: 0; border-radius: 14px; cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { display: block; width: 21px; height: 2px; margin: 5px auto; content: ""; background: currentColor; transition: transform .2s; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 74px 0 82px; background: linear-gradient(135deg, #f4fffd 0%, #effafa 55%, #fff9f2 100%); }
.hero::before, .hero::after { position: absolute; border-radius: 50%; content: ""; }
.hero::before { top: -150px; right: -80px; width: 430px; height: 430px; background: rgba(114,214,205,.14); }
.hero::after { bottom: -180px; left: -150px; width: 360px; height: 360px; background: rgba(255,184,107,.11); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 54px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--sd-primary-dark); font-size: .8rem; font-weight: 800; letter-spacing: .1em; }
.eyebrow::before { width: 28px; height: 2px; content: ""; background: var(--sd-primary); }
.hero h1 { margin: 0 0 22px; font-size: clamp(2rem, 4.15vw, 3.55rem); line-height: 1.3; letter-spacing: .01em; }
.hero h1 em { color: var(--sd-primary); font-style: normal; }
.hero-title-line { display: block; width: max-content; max-width: 100%; white-space: nowrap; }
.hero-lead { max-width: 590px; margin: 0 0 30px; color: var(--sd-muted); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; min-height: 440px; }
.hero-photo { position: absolute; inset: 0 0 24px 26px; overflow: hidden; background: linear-gradient(150deg, #c8f0eb, #effbfa); border: 10px solid rgba(255,255,255,.85); border-radius: 46% 54% 45% 55% / 52% 43% 57% 48%; box-shadow: var(--sd-shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-illustration { width: 100%; height: 100%; display: grid; place-items: center; }
.hero-illustration svg { width: 88%; height: auto; }
.hero-badge { position: absolute; right: -4px; bottom: 8px; width: 145px; height: 145px; display: grid; place-items: center; padding: 18px; color: var(--sd-primary-dark); background: #fff; border-radius: 50%; box-shadow: var(--sd-shadow); font-size: .82rem; font-weight: 800; line-height: 1.5; text-align: center; transform: rotate(4deg); }
.hero-badge strong { display: block; color: var(--sd-accent); font-size: 1.4rem; }

/* Shared sections */
.section { padding: 92px 0; }
.section--tint { background: var(--sd-bg); }
.section--mint { background: var(--sd-primary-soft); }
.section-heading { max-width: 700px; margin: 0 auto 48px; text-align: center; }
.section-heading .eyebrow { justify-content: center; }
.section-heading .eyebrow::after { width: 28px; height: 2px; content: ""; background: var(--sd-primary); }
.section-heading h2 { margin: 0 0 14px; font-size: clamp(1.7rem, 3vw, 2.55rem); line-height: 1.45; }
.section-heading p { margin: 0; color: var(--sd-muted); }
.card { background: #fff; border: 1px solid rgba(220,235,234,.8); border-radius: var(--sd-radius); box-shadow: 0 10px 35px rgba(34,101,99,.06); }

.feature-strip { position: relative; z-index: 2; margin-top: -34px; }
.feature-strip-inner { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; background: #fff; border-radius: 22px; box-shadow: var(--sd-shadow); }
.feature-item { display: flex; align-items: center; gap: 15px; padding: 24px 27px; }
.feature-item + .feature-item { border-left: 1px solid var(--sd-line); }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; color: var(--sd-primary); background: var(--sd-primary-soft); border-radius: 15px; font-size: 1.4rem; }
.feature-icon svg { width: 27px; height: 27px; display: block; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.feature-item strong { display: block; font-size: .98rem; }
.feature-item > div > span { display: block; color: var(--sd-muted); font-size: .76rem; }

.treatment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.treatment-card { position: relative; overflow: hidden; padding: 30px; transition: transform .2s, box-shadow .2s; }
.treatment-card:hover { box-shadow: var(--sd-shadow); transform: translateY(-5px); }
.treatment-card::after { position: absolute; right: -28px; bottom: -34px; width: 100px; height: 100px; content: ""; background: var(--sd-primary-soft); border-radius: 50%; }
.treatment-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 18px; color: var(--sd-primary); background: var(--sd-primary-soft); border-radius: 18px; }
.treatment-icon svg { width: 34px; height: 34px; display: block; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.treatment-icon .icon-accent { stroke: var(--sd-accent); }
.treatment-icon .icon-fill { fill: currentColor; stroke: none; }
.treatment-icon .icon-accent-fill { fill: var(--sd-accent); stroke: none; }
.treatment-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.treatment-card p { margin: 0; color: var(--sd-muted); font-size: .9rem; }

.message-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 64px; }
.message-image { position: relative; min-height: 470px; overflow: hidden; background: linear-gradient(145deg, #dff6f3, #fff); border-radius: 32px; box-shadow: var(--sd-shadow); }
.message-image img { width: 100%; height: 100%; min-height: 470px; object-fit: cover; }
.doctor-placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.doctor-placeholder svg { width: 86%; height: auto; }
.message-copy h2 { margin: 0 0 18px; font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1.5; }
.message-copy p { color: var(--sd-muted); }
.signature { margin-top: 25px; padding-top: 19px; border-top: 1px solid var(--sd-line); }
.signature small { display: block; color: var(--sd-muted); }
.signature strong { font-size: 1.25rem; letter-spacing: .1em; }

.news-layout { display: grid; grid-template-columns: 260px 1fr; gap: 52px; }
.news-intro h2 { margin: 5px 0 20px; font-size: 2.3rem; line-height: 1.35; }
.news-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--sd-line); }
.news-item { display: grid; grid-template-columns: 110px 105px 1fr; align-items: center; gap: 18px; padding: 22px 4px; border-bottom: 1px solid var(--sd-line); }
.news-date { color: var(--sd-muted); font-size: .82rem; }
.news-category { padding: 3px 10px; color: var(--sd-primary-dark); background: var(--sd-primary-soft); border-radius: 999px; font-size: .7rem; font-weight: 800; text-align: center; }
.news-item a { color: var(--sd-ink); font-weight: 700; text-decoration: none; }
.news-item a:hover { color: var(--sd-primary); }

.schedule-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; padding: 38px; }
.schedule-info h2 { margin: 0 0 10px; font-size: 1.8rem; }
.schedule-info p { margin: 0 0 18px; color: var(--sd-muted); }
.schedule-phone { display: block; color: var(--sd-primary-dark); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 900; line-height: 1.25; text-decoration: none; }
.schedule-table { width: 100%; border-collapse: collapse; text-align: center; }
.schedule-table th, .schedule-table td { padding: 10px 8px; border-bottom: 1px solid var(--sd-line); }
.schedule-table th { color: var(--sd-muted); font-size: .78rem; }
.schedule-table th:first-child, .schedule-table td:first-child { text-align: left; white-space: nowrap; }
.schedule-table .open { color: var(--sd-primary); font-size: 1.15rem; font-weight: 900; }
.schedule-note { margin: 10px 0 0; color: var(--sd-muted); font-size: .75rem; }

.access-grid { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.access-map { min-height: 360px; display: grid; place-items: center; background: #dff3f0; }
.access-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }
.map-placeholder { padding: 30px; color: var(--sd-primary-dark); text-align: center; }
.map-placeholder svg { width: 72px; height: 72px; }
.access-info { padding: 48px; }
.access-info h2 { margin: 0 0 18px; font-size: 1.85rem; }
.access-list { margin: 24px 0 0; padding: 0; list-style: none; }
.access-list li { position: relative; padding: 11px 0 11px 34px; border-bottom: 1px solid var(--sd-line); }
.access-list li::before { position: absolute; left: 4px; color: var(--sd-primary); content: "✓"; font-weight: 900; }

/* Standard pages/posts */
.page-header { padding: 72px 0; background: linear-gradient(135deg, var(--sd-primary-soft), #fff9f2); text-align: center; }
.page-header h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); }
.page-header p { margin: 7px 0 0; color: var(--sd-muted); }
.content-area { padding: 74px 0 100px; }
.content-narrow { max-width: 820px; margin-inline: auto; }
.entry-card { padding: clamp(25px, 5vw, 52px); }
.entry-title { margin-top: 0; line-height: 1.45; }
.entry-meta { margin-bottom: 22px; color: var(--sd-muted); font-size: .8rem; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { margin-top: 2.2em; padding-bottom: .35em; border-bottom: 3px solid var(--sd-primary-soft); }
.entry-content h3 { margin-top: 1.8em; padding-left: .7em; border-left: 4px solid var(--sd-primary); }
.entry-content blockquote { margin: 2em 0; padding: 18px 24px; background: var(--sd-primary-soft); border-left: 4px solid var(--sd-primary); }
.entry-content .alignwide { width: min(1100px, calc(100vw - 40px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.post-list { display: grid; gap: 20px; }
.post-card { display: grid; grid-template-columns: 220px 1fr; overflow: hidden; }
.post-thumbnail { min-height: 180px; background: var(--sd-primary-soft); }
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.post-summary { padding: 28px; }
.post-summary h2 { margin: 4px 0 10px; font-size: 1.3rem; }
.post-summary h2 a { color: var(--sd-ink); text-decoration: none; }
.post-summary p { margin: 0; color: var(--sd-muted); font-size: .9rem; }
.pagination { margin-top: 38px; text-align: center; }
.nav-links { display: flex; justify-content: center; gap: 7px; }
.page-numbers { min-width: 42px; min-height: 42px; display: grid; place-items: center; padding: 4px 10px; background: #fff; border: 1px solid var(--sd-line); border-radius: 12px; text-decoration: none; }
.page-numbers.current { color: #fff; background: var(--sd-primary); border-color: var(--sd-primary); }
.comments-area { margin-top: 35px; padding: 32px; }
.comment-list { padding-left: 25px; }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; padding: 12px; border: 1px solid var(--sd-line); border-radius: 10px; }
.comment-form .submit { min-height: 46px; padding: 10px 22px; color: #fff; background: var(--sd-primary); border: 0; border-radius: 999px; font-weight: 800; cursor: pointer; }

/* Footer */
.cta { padding: 70px 0; color: #fff; background: var(--sd-primary-dark); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta h2 { margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.35rem); }
.cta p { margin: 0; color: rgba(255,255,255,.78); }
.cta .button { flex: 0 0 auto; }
.site-footer { padding: 55px 0 25px; color: #d8e5e7; background: #28464c; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; }
.footer-brand .brand-link { color: #fff; }
.footer-brand p { max-width: 390px; color: #b9cbce; font-size: .85rem; }
.footer-heading { margin: 0 0 14px; color: #fff; font-size: .9rem; }
.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu li { margin: 6px 0; }
.footer-menu a { color: #d8e5e7; font-size: .84rem; text-decoration: none; }
.footer-menu a:hover { color: #fff; }
.footer-bottom { margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #9fb5b9; font-size: .72rem; text-align: center; }

/* Responsive */
@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .main-navigation { position: absolute; top: 82px; right: 0; left: 0; display: none; padding: 18px 20px 24px; background: #fff; border-bottom: 1px solid var(--sd-line); box-shadow: 0 20px 35px rgba(34,101,99,.1); }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { align-items: stretch; flex-direction: column; gap: 0; }
  .main-navigation li { border-bottom: 1px solid var(--sd-line); }
  .main-navigation a { display: block; padding: 11px 5px; }
  .header-actions .button { display: none; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 25px; }
  .treatment-grid { grid-template-columns: repeat(2, 1fr); }
  .message-grid { gap: 38px; }
  .schedule-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--sd-content)); }
  .header-inner { min-height: 70px; }
  .brand-title { font-size: .94rem; }
  .brand-subtitle { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .header-phone { display: none; }
  .main-navigation { top: 70px; }
  .hero { padding: 50px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(1.75rem, 8.4vw, 2.35rem); }
  .hero-visual { min-height: 330px; margin-top: 10px; }
  .hero-photo { left: 0; }
  .hero-badge { right: 0; width: 115px; height: 115px; font-size: .7rem; }
  .section { padding: 68px 0; }
  .feature-strip-inner { grid-template-columns: 1fr; }
  .feature-item + .feature-item { border-top: 1px solid var(--sd-line); border-left: 0; }
  .treatment-grid { grid-template-columns: 1fr; }
  .message-grid, .news-layout, .access-grid, .footer-grid { grid-template-columns: 1fr; }
  .message-image, .message-image img { min-height: 360px; }
  .news-item { grid-template-columns: 95px 85px; gap: 10px; }
  .news-item a { grid-column: 1 / -1; }
  .schedule-wrap { padding: 25px 18px; }
  .schedule-table { font-size: .75rem; }
  .schedule-table th, .schedule-table td { padding: 8px 4px; }
  .access-info { padding: 30px 24px; }
  .post-card { grid-template-columns: 1fr; }
  .post-thumbnail { min-height: 210px; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .cta .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
