/*
Theme Name: ひなた歯科クリニック
Theme URI: https://tribal-works.com/
Author: TRIBAL WORKS
Description: 歯科・クリニック向けの、やさしい水色と丸みのあるデザイン(制作サンプル)。診療案内カスタム投稿・診療時間表・初診の流れ・WEB予約導線付き。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: hinata
*/

:root {
	--c-bg: #ffffff;
	--c-text: #23384d;
	--c-primary: #2b8fd6;
	--c-on-primary: #fff;
	--c-accent: #f2a93b;
	--c-on-accent: #fff;
	--c-muted: #5f7488;
	--c-line: #dbeaf5;
	--c-surface: #eef7fd;
	--c-card: #fff;
	--c-dark: #1b4f7a;
	--radius: 22px;
	--btn-radius: 999px;
	--maxw: 1120px;
	--header-h: 76px;
	--shadow: 0 14px 34px rgba(43, 143, 214, .16);
	--hdr-bg: rgba(255, 255, 255, .94);
	--font-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
	--font-head: var(--font-body);
	--font-en: "Quicksand", var(--font-body);
}
body { font-weight: 500; letter-spacing: .02em; }
a { color: var(--c-primary); }
h1, h2, h3, h4 { font-weight: 700; }

/* ヘッダー */
.site-header { border-bottom: 0; box-shadow: 0 2px 0 var(--c-line); }
.brand { font-weight: 900; letter-spacing: .04em; }
.brand small { font-family: var(--font-en); font-weight: 700; letter-spacing: .12em; opacity: .55; }
.gnav a:not(.btn) { font-weight: 700; font-size: .92rem; }
.gnav li:not(.menu-item-has-children) > a::after { height: 3px; border-radius: 3px; }
.site-header .header-cta { box-shadow: 0 6px 16px rgba(43, 143, 214, .35); }
.btn { border-width: 2px; }
.btn--primary { box-shadow: 0 8px 20px rgba(43, 143, 214, .3); }
.btn--ghost { color: var(--c-primary); }
.eyebrow { font-family: var(--font-en); letter-spacing: .26em; color: var(--c-primary); }
.section__title { font-weight: 900; }

/* ヒーロー */
.hero { position: relative; background: linear-gradient(180deg, #e3f3fd 0%, #f6fbff 100%); padding: 64px 0 120px; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; z-index: 0; }
.hero::before { width: 440px; height: 440px; right: -120px; top: -140px; background: radial-gradient(circle, rgba(255, 211, 107, .55), transparent 68%); }
.hero::after { width: 380px; height: 380px; left: -140px; bottom: 20px; background: radial-gradient(circle, rgba(95, 207, 180, .3), transparent 70%); }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero__chip { display: inline-block; margin: 0 0 18px; padding: 6px 16px; background: #fff; color: var(--c-primary); border-radius: 999px; font-size: .84rem; font-weight: 700; box-shadow: 0 4px 14px rgba(43, 143, 214, .12); }
.hero__title { font-size: clamp(2rem, 4.8vw, 3.6rem); font-weight: 900; line-height: 1.38; margin: 0 0 22px; letter-spacing: .03em; }
.hero__title em { font-style: normal; color: var(--c-primary); background: linear-gradient(transparent 62%, #ffe39a 62%); }
.hero__lead { color: var(--c-muted); max-width: 32em; margin-bottom: 28px; }
.hero__badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 26px 0 0; }
.hero__badges li { background: #fff; border: 2px solid var(--c-line); border-radius: 999px; padding: 4px 16px; font-size: .84rem; font-weight: 700; color: var(--c-dark); }
.hero__badges li::before { content: "✓"; color: #3fbfa0; margin-right: 6px; }
.hero__photo { position: relative; margin: 0; }
.hero__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%; border: 8px solid #fff; box-shadow: var(--shadow); }
.hero__bubble { position: absolute; left: -12px; bottom: 14%; background: var(--c-accent); color: #fff; width: 140px; height: 140px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-align: center; font-size: .74rem; line-height: 1.5; font-weight: 700; box-shadow: 0 10px 24px rgba(242, 169, 59, .4); transform: rotate(-8deg); }
.hero__bubble b { font-size: .95rem; }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 64px; display: block; z-index: 1; }
@media (max-width: 860px) { .hero { padding: 36px 0 90px; } .hero__grid { grid-template-columns: 1fr; gap: 34px; } .hero__photo { max-width: 420px; margin: 0 auto; } .hero__bubble { left: 0; } }

/* 診療時間 */
.hours { margin-top: -54px; position: relative; z-index: 2; }
.hours__card { display: grid; grid-template-columns: 1fr 1.7fr auto; gap: 28px; align-items: center; background: #fff; border: 3px solid var(--c-line); border-radius: 28px; padding: 28px 34px; box-shadow: var(--shadow); }
.hours__title { display: flex; align-items: center; gap: 8px; font-size: 1.35rem; font-weight: 900; margin: 0 0 8px; color: var(--c-primary); }
.hours__note { font-size: .84rem; color: var(--c-muted); margin: 0; }
.hours__table { width: 100%; border-collapse: collapse; text-align: center; font-size: .9rem; }
.hours__table th, .hours__table td { padding: 10px 6px; border-bottom: 1px dashed var(--c-line); }
.hours__table thead th { color: var(--c-muted); font-weight: 700; font-size: .8rem; white-space: nowrap; }
@media (max-width: 520px) { .hours__table th, .hours__table td { padding: 10px 2px; } .hours__table thead th { font-size: .7rem; } .hours__table tbody th { font-size: .78rem; } }
.hours__table tbody th { text-align: left; white-space: nowrap; color: var(--c-dark); }
.hours__table td { color: var(--c-primary); font-weight: 900; font-size: 1.05rem; }
.hours__table td.off { color: #a4b3c0; font-weight: 500; font-size: .86rem; }
.hours__foot { font-size: .74rem; color: var(--c-muted); margin: 8px 0 0; }
.hours__tel { text-align: center; background: var(--c-surface); border-radius: 20px; padding: 18px 22px; }
.hours__tel span { display: block; font-size: .78rem; color: var(--c-muted); font-weight: 700; }
.hours__tel a { font-family: var(--font-en); font-weight: 700; font-size: 1.55rem; color: var(--c-primary); letter-spacing: .04em; }
@media (max-width: 960px) { .hours__card { grid-template-columns: 1fr; padding: 24px 20px; gap: 18px; } }

/* ポイント */
.points__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.point { position: relative; background: var(--c-surface); border-radius: 28px; padding: 40px 28px 30px; }
.point:nth-child(2) { background: #fff6e0; }
.point:nth-child(3) { background: #e6f8f2; }
.point__no { position: absolute; top: -18px; left: 24px; width: 48px; height: 48px; border-radius: 50%; background: var(--c-primary); color: #fff; font-family: var(--font-en); font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(43, 143, 214, .35); }
.point:nth-child(2) .point__no { background: var(--c-accent); box-shadow: 0 6px 14px rgba(242, 169, 59, .4); }
.point:nth-child(3) .point__no { background: #3fbfa0; box-shadow: 0 6px 14px rgba(63, 191, 160, .4); }
.point h3 { font-size: 1.2rem; margin: 0 0 .6em; font-weight: 900; }
.point p { margin: 0; color: var(--c-muted); font-size: .94rem; }
@media (max-width: 860px) { .points__grid { grid-template-columns: 1fr; gap: 34px; } }

/* 診療案内 */
.treat__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.treat__item a { display: block; color: inherit; background: #fff; border-radius: 26px; overflow: hidden; border: 3px solid #fff; box-shadow: 0 8px 24px rgba(43, 143, 214, .1); transition: .25s; height: 100%; }
.treat__item a:hover { opacity: 1; transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--c-primary); }
.treat__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-surface); }
.treat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.treat__item a:hover .treat__img img { transform: scale(1.06); }
.treat__body { padding: 20px 22px 24px; }
.treat__body h3 { font-size: 1.12rem; font-weight: 900; margin: 10px 0 .4em; }
.treat__body p { font-size: .88rem; color: var(--c-muted); margin: 0 0 .5em; }
.treat__cost { font-size: .8rem !important; color: var(--c-dark) !important; }
.treat__cost b { color: var(--c-primary); font-size: 1rem; }
.pill { background: var(--c-surface); border-color: transparent; color: var(--c-primary); font-weight: 700; }
@media (max-width: 900px) { .treat__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .treat__grid { grid-template-columns: 1fr; } }

/* ご来院の流れ */
.flow__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.flow__list li { position: relative; text-align: center; padding: 0 8px; }
.flow__list li:not(:last-child)::after { content: ""; position: absolute; top: 31px; left: calc(50% + 44px); right: calc(-50% + 44px); border-top: 3px dotted #9fd0ee; }
.flow__no { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #fff; border: 4px solid var(--c-primary); color: var(--c-primary); font-family: var(--font-en); font-weight: 700; font-size: 1.5rem; }
.flow__list h3 { font-size: 1.05rem; font-weight: 900; margin: 0 0 .5em; }
.flow__list p { font-size: .86rem; color: var(--c-muted); margin: 0; }
@media (max-width: 860px) { .flow__list { grid-template-columns: 1fr 1fr; row-gap: 36px; } .flow__list li::after { display: none; } }
@media (max-width: 520px) { .flow__list { grid-template-columns: 1fr; } }

/* お知らせ・アクセス */
.info__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; }
.news-list { border-top: 0; }
.news-row a { background: #fff; border: 0; border-radius: 16px; margin-bottom: 10px; padding: 16px 20px; }
.news-row a:hover { background: #fff; box-shadow: 0 6px 18px rgba(43, 143, 214, .14); }
.news-row time { font-family: var(--font-en); font-weight: 700; color: var(--c-primary); }
.info__more { margin-top: 24px; }
.info__map { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 220px; margin-bottom: 18px; border-radius: 26px; background: linear-gradient(135deg, #d9eefb, #eaf7ff); background-image: linear-gradient(135deg, #d9eefb, #eaf7ff), repeating-linear-gradient(0deg, rgba(43, 143, 214, .08) 0 1px, transparent 1px 36px), repeating-linear-gradient(90deg, rgba(43, 143, 214, .08) 0 1px, transparent 1px 36px); background-blend-mode: normal, multiply, multiply; color: var(--c-dark); font-weight: 700; font-size: .92rem; border: 3px solid #fff; box-shadow: 0 8px 22px rgba(43, 143, 214, .12); }
.info__map span { color: #e8574f; }
.info__access p { font-size: .92rem; color: var(--c-muted); }
@media (max-width: 860px) { .info__grid { grid-template-columns: 1fr; gap: 44px; } }

/* クロージング */
.closing { background: linear-gradient(135deg, #2b8fd6, #4aaee8); color: #fff; padding: 72px 0; position: relative; overflow: hidden; }
.closing::before { content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.closing__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.closing__title { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 900; margin: 0 0 .4em; color: #fff; }
.closing__lead { margin: 0; opacity: .92; }
.btn--light { color: var(--c-primary); }

/* 下層 */
.page-header { background: linear-gradient(180deg, #e3f3fd, #f6fbff); border-bottom: 0; padding: 70px 0 52px; position: relative; }
.page-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; background: #fff; border-radius: 26px 26px 0 0; }
.page-header__title { font-weight: 900; }
.entry h2 { border-left: 0; padding: 4px 0 4px 40px; position: relative; font-weight: 900; }
.entry h2::before { content: ""; position: absolute; left: 0; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe39a, var(--c-accent)); }
.entry th { background: var(--c-surface); border-radius: 0; color: var(--c-dark); }
.entry__visual { border-radius: 28px; border: 4px solid #fff; box-shadow: var(--shadow); }
.card { border: 3px solid #fff; border-radius: 26px; box-shadow: 0 8px 24px rgba(43, 143, 214, .1); }
.card:hover { border-color: var(--c-primary); }
.card__title { font-weight: 900; }
.term-filter a { border-width: 2px; font-weight: 700; color: var(--c-primary); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea { border: 2px solid var(--c-line); border-radius: 16px; background: #fbfdff; }
.form input:focus, .form select:focus, .form textarea:focus { outline-color: var(--c-primary); border-color: var(--c-primary); }
.form .wpcf7-submit { border-radius: 999px; }

/* フッター */
.site-footer { --c-footer-bg: #17415f; --c-footer-text: rgba(255, 255, 255, .82); }

/* ---------- 写真 ---------- */
.clinic__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.clinic__photos { position: relative; padding-bottom: 12%; }
.clinic__main { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 28px; border: 6px solid #fff; box-shadow: var(--shadow); }
.clinic__main .art, .clinic__sub .art { width: 100%; height: 100%; object-fit: cover; display: block; }
.clinic__sub { margin: 0; position: absolute; right: -4%; bottom: 0; width: 46%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 50%; border: 6px solid #fff; box-shadow: var(--shadow); }
.clinic__body p { color: var(--c-muted); }
@media (max-width: 860px) { .clinic__grid { grid-template-columns: 1fr; gap: 28px; } .clinic__sub { right: 0; } }
