/*
Theme Name: 茶屋モールクリニック
Theme URI: https://chaya-clinic.jp
Author: Chaya Mall Clinic
Description: 茶屋モールクリニック 公式サイトテーマ
Version: 1.0
License: Private
Text Domain: chaya-clinic
*/

/* ===== 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', 'Meiryo', 'Yu Gothic', sans-serif;
  color: #2d3748;
  line-height: 1.75;
  background: #fff;
}
a { text-decoration: none; color: inherit; }

/* ===== Tokens ===== */
:root {
  --teal:       #9B5624;
  --teal-dk:    #7A3E18;
  --teal-mid:   #B3692E;
  --teal-lt:    #F5E8DC;
  --teal-pale:  #FBF4EE;
  --green:      #5B8A3C;
  --green-dk:   #3D6128;
  --green-lt:   #EBF3E4;
  --accent:     #5B8A3C;
  --text:       #2d2418;
  --sub:        #7a6555;
  --border:     #E8D5C4;
  --bg:         #FAF6F2;
  --radius:     12px;
  --shadow:     0 4px 24px rgba(155,86,36,.13);
  --shadow-lg:  0 10px 44px rgba(155,86,36,.18);
}

/* ===== Utilities ===== */
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }
.sec-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .72rem; font-weight: 800; letter-spacing: .16em;
  color: var(--green); background: var(--green-lt);
  padding: 4px 14px; border-radius: 99px; margin-bottom: 10px;
}
.sec-tag::before { content: ''; width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.sec-ttl { font-size: clamp(1.45rem, 3vw, 2.05rem); font-weight: 800; line-height: 1.25; }
.sec-sub { color: var(--sub); margin-top: 8px; font-size: .93rem; }

.rv { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }

/* ===== HEADER ===== */
#hd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
#hd.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.08); }
.hd-in {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 22px; max-width: 1060px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-m { height: 42px; flex-shrink: 0; display: flex; align-items: center; }
.logo-m img { height: 42px; width: auto; display: block; }
.logo-n { font-size: 1.15rem; font-weight: 900; color: var(--text); line-height: 1.15; font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif; letter-spacing: .02em; }
.logo-s { font-size: .62rem; color: #aaa; letter-spacing: .12em; }
.gnav ul { display: flex; list-style: none; gap: 2px; }
.gnav a {
  display: block; padding: 7px 12px; border-radius: 8px;
  font-size: .82rem; font-weight: 600; color: var(--text);
  transition: background .15s, color .15s;
}
.gnav a:hover { background: var(--teal-lt); color: var(--teal); }
.gnav .resv-btn {
  background: var(--teal); color: #fff !important; border-radius: 99px;
  padding: 8px 17px !important; font-size: .81rem !important;
  box-shadow: 0 3px 11px rgba(155,86,36,.33);
}
.gnav .resv-btn:hover { background: var(--teal-dk) !important; }
.hmb { display: none; flex-direction: column; gap: 5px; cursor: pointer; border: none; background: none; padding: 5px; }
.hmb span { display: block; width: 24px; height: 2px; background: var(--teal); border-radius: 2px; transition: transform .3s, opacity .3s; }
.hmb.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hmb.open span:nth-child(2) { opacity: 0; }
.hmb.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.sp-nav { display: none; flex-direction: column; background: #fff; border-top: 1px solid var(--border); }
.sp-nav.open { display: flex; }
.sp-nav a { padding: 13px 22px; font-size: .93rem; font-weight: 600; border-bottom: 1px solid var(--border); }

/* ===== HERO SLIDER ===== */
#hero {
  position: relative; height: 100svh; min-height: 500px;
  overflow: hidden; padding-top: 64px;
}
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.4s ease;
  background-size: cover; background-position: center;
}
.slide.act { opacity: 1; }
.overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, rgba(0,0,0,.52) 0%, rgba(0,0,0,.18) 55%, transparent 100%);
}
.hero-body {
  position: relative; z-index: 2;
  height: 100%; display: flex; align-items: center;
  padding: 0 22px; max-width: 1060px; margin: 0 auto;
}
.hero-copy { max-width: 560px; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.38);
  backdrop-filter: blur(6px); color: #fff;
  font-size: .74rem; font-weight: 700; letter-spacing: .1em;
  padding: 4px 14px; border-radius: 99px; margin-bottom: 18px;
}
.hero-h {
  color: #fff;
  font-size: clamp(1.8rem, 4.5vw, 3.1rem); font-weight: 900;
  line-height: 1.22; text-shadow: 0 2px 18px rgba(0,0,0,.3);
  animation: fu .85s ease both;
}
.hero-p {
  color: rgba(255,255,255,.87);
  font-size: clamp(.87rem, 1.8vw, 1.04rem);
  margin-top: 14px; line-height: 1.75;
  text-shadow: 0 1px 8px rgba(0,0,0,.22);
  animation: fu .85s .12s ease both;
}
@keyframes fu { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-btns { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.btn-w {
  background: #fff; color: var(--teal);
  padding: 13px 28px; border-radius: 99px; font-size: .9rem; font-weight: 800;
  box-shadow: 0 4px 16px rgba(0,0,0,.18); transition: transform .15s, box-shadow .15s;
}
.btn-w:hover { transform: translateY(-2px); box-shadow: 0 7px 22px rgba(0,0,0,.24); }
.btn-ow {
  border: 2px solid rgba(255,255,255,.78); color: #fff;
  padding: 11px 26px; border-radius: 99px; font-size: .9rem; font-weight: 700;
  transition: background .15s, transform .15s;
}
.btn-ow:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 99px; background: rgba(255,255,255,.4); border: none; cursor: pointer; transition: background .3s, width .3s; }
.dot.act { background: #fff; width: 26px; }
.arr {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.18); backdrop-filter: blur(5px);
  color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.arr:hover { background: rgba(255,255,255,.32); }
.arr-l { left: 16px; }
.arr-r { right: 16px; }

/* ===== 新着情報 ===== */
#news { background: var(--bg); padding: 72px 0; }
.news-grid { display: flex; flex-direction: column; gap: 32px; }
.news-side { text-align: center; }
.news-side .sec-ttl { font-size: 1.35rem; }
.news-side .sec-sub { font-size: .8rem; }
.all-link {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 5px;
  font-size: .8rem; font-weight: 700; color: var(--green);
  padding: 6px 14px; border: 1.5px solid var(--green); border-radius: 99px;
  transition: background .15s, color .15s;
}
.all-link:hover { background: var(--green); color: #fff; }
.news-list { display: flex; flex-direction: column; }
.ni {
  display: grid; grid-template-columns: 94px 70px 1fr; gap: 12px;
  align-items: center; padding: 15px 0; border-bottom: 1px solid var(--border);
}
.ni:first-child { border-top: 1px solid var(--border); }
.ni-date { font-size: .79rem; color: var(--sub); }
.ni-tag { font-size: .69rem; font-weight: 700; padding: 3px 0; border-radius: 5px; text-align: center; }
.t-red   { background: #fff0f0; color: #c0392b; }
.t-blue  { background: #eff5ff; color: #1a56a0; }
.t-green { background: #f0fbf5; color: #1e8a5a; }
.t-gray  { background: #f4f4f4; color: #555; }
.ni-body { font-size: .87rem; }
.ni a { color: inherit; }
.ni a:hover .ni-body { color: var(--teal); }

/* ===== 診療スケジュール ===== */
#schedule { background: #eef7ee; padding: 80px 0; }
.sch-inner { max-width: 760px; margin: 0 auto; }
.sch-heading { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 32px; }
.sch-heading h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 800; color: #2d4a2d; }
.leaf-svg { width: 48px; height: 48px; flex-shrink: 0; }
.tbl-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: 0 2px 16px rgba(0,0,0,.07); }
.sch-tbl { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; }
.sch-tbl th {
  background: #c8e6c8; color: #2d4a2d; font-weight: 700;
  padding: 13px 10px; text-align: center; border: 1px solid #b0d4b0;
}
.sch-tbl th:first-child { text-align: center; padding-left: 0; min-width: 120px; }
.sch-tbl .day-sun { color: #c0392b; }
.sch-tbl .day-sat { color: #1a56a0; }
.sch-tbl td { padding: 16px 10px; text-align: center; border: 1px solid #d4e8d4; vertical-align: middle; }
.sch-tbl td:first-child { text-align: center; padding-left: 0; background: #f5fbf5; }
.sch-tbl .row-label { font-weight: 700; font-size: .88rem; color: #2d4a2d; display: block; }
.sch-tbl .row-time  { font-size: .8rem; color: #555; margin-top: 3px; display: block; line-height: 1.6; }
.mo { color: #2e7d32; font-weight: 800; font-size: 1.1rem; }
.mx { color: #bbb; font-size: 1.1rem; }
.sch-footer { display: flex; flex-direction: column; align-items: center; margin-top: 20px; gap: 16px; width: 100%; }
.sch-note-text { font-size: .88rem; color: #2d4a2d; font-weight: 600; text-align: center; }
.sch-boxes { display: flex; flex-direction: row; justify-content: center; gap: 16px; width: 100%; }
.sch-tel-box { background: linear-gradient(135deg, var(--teal), var(--teal-dk)); border-radius: var(--radius); padding: 22px 28px; color: #fff; text-align: center; flex: 1; max-width: 460px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.sch-tel-box p   { font-size: .82rem; opacity: .88; margin: 0; }
.sch-tel-box .tn { font-size: 1.7rem; font-weight: 900; letter-spacing: .04em; color: inherit; text-decoration: none; }
.sch-tel-box a.tn:hover { opacity: .8; }
.sch-tel-box small { font-size: .75rem; opacity: .78; }
.sch-web-box { background: linear-gradient(135deg, var(--green), var(--green-dk)); }
.sch-web-btn { display: inline-block; background: #fff; color: var(--green-dk); font-weight: 800; font-size: .95rem; padding: 10px 28px; border-radius: 8px; text-decoration: none; transition: opacity .15s; }
.sch-web-btn:hover { opacity: .85; }

/* ===== 院長挨拶 ===== */
#doctor { background: var(--bg); padding: 86px 0; }
.doc-grid { display: grid; grid-template-columns: 270px 1fr; gap: 56px; align-items: start; }
.doc-left { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.doc-photo { width: 230px; height: 290px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.doc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.doc-namecard { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; text-align: center; width: 100%; }
.doc-namecard .dn  { font-size: 1.18rem; font-weight: 800; }
.doc-namecard .dr  { font-size: .76rem; color: var(--teal); font-weight: 700; margin-top: 2px; }
.doc-namecard .dc  { font-size: .72rem; color: var(--sub); margin-top: 5px; }
.doc-right .quote  { font-size: 72px; line-height: 1; color: var(--green-lt); font-family: Georgia, serif; margin-bottom: -16px; display: block; }
.doc-right p { font-size: .94rem; color: var(--text); line-height: 1.95; margin-bottom: 16px; text-align: justify; }
.doc-sign { display: flex; align-items: baseline; gap: 8px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); }
.doc-sign .sn { font-size: 1.12rem; font-weight: 800; }
.doc-sign .sr { font-size: .78rem; color: var(--sub); }
.career-box { margin-top: 26px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.career-box h4 { background: var(--green-lt); padding: 9px 16px; font-size: .83rem; font-weight: 800; color: var(--green-dk); }
.career-list { list-style: none; padding: 4px 0; }
.career-list li { display: flex; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--border); font-size: .82rem; }
.career-list li:last-child { border: none; }
.cy { color: var(--teal); font-weight: 700; min-width: 42px; flex-shrink: 0; }

/* ===== アクセス ===== */
#access { background: #fff; padding: 80px 0; }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.acc-info h3 { font-size: 1.08rem; font-weight: 800; color: var(--teal-dk); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--teal-lt); }
.acc-rows { display: flex; flex-direction: column; gap: 10px; }
.ar { display: flex; gap: 0; }
.ar-l { font-size: .78rem; font-weight: 800; color: var(--teal); background: var(--teal-lt); padding: 9px 12px; min-width: 68px; display: flex; align-items: flex-start; border-radius: 8px 0 0 8px; flex-shrink: 0; line-height: 1.5; }
.ar-v { font-size: .86rem; background: var(--bg); padding: 9px 13px; border-radius: 0 8px 8px 0; flex: 1; border: 1px solid var(--border); border-left: none; line-height: 1.6; }
.transit { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.tr-item { display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 8px; padding: 9px 13px; border: 1px solid var(--border); font-size: .83rem; }
.tr-ic { width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }

/* ===== 予約・QR ===== */
#reservation { background: var(--bg); padding: 80px 0; }
.resv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.resv-grid-2 { display: flex; flex-direction: row; justify-content: center; gap: 24px; max-width: 780px; margin: 0 auto; }
.resv-grid-2 .resv-card { flex: 1; max-width: 360px; }
.resv-card { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 32px 24px; text-align: center; border: 1px solid var(--border); transition: transform .2s, box-shadow .2s; }
.resv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.r-icon { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.ri-green  { background: #eaf8f0; }
.ri-teal   { background: var(--teal-lt); }
.resv-card h3 { font-size: .98rem; font-weight: 800; margin-bottom: 8px; }
.resv-card > p { font-size: .81rem; color: var(--sub); line-height: 1.65; margin-bottom: 18px; }
.qr-frame { width: 150px; height: 150px; margin: 0 auto 10px; border-radius: 10px; overflow: hidden; }
.qr-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qr-note { font-size: .74rem; color: var(--sub); }
.tel-resv { background: linear-gradient(145deg, var(--teal), var(--teal-dk)); color: #fff; border: none; }
.tel-resv h3 { color: #fff; }
.tel-resv > p { color: rgba(255,255,255,.8); }
.tel-resv .r-icon { background: rgba(255,255,255,.18); }
a.big-tel { display: block; color: #fff; text-decoration: none; }
a.big-tel:hover { opacity: .85; }
.big-tel { font-size: 1.55rem; font-weight: 900; letter-spacing: .04em; }
.tel-hr { font-size: .77rem; opacity: .8; margin-top: 6px; line-height: 1.7; }

/* ===== お問い合わせ ===== */
#contact { background: #fff; padding: 120px 0; }
.contact-inner { max-width: 600px; margin: 0 auto; background: var(--bg); border-radius: 18px; box-shadow: var(--shadow); padding: 60px 48px; border: 1px solid var(--border); }
.f-form { text-align: left; }
.fg { margin-bottom: 11px; }
.fg label { display: block; font-size: .75rem; font-weight: 700; margin-bottom: 4px; }
.fg .rq { color: #e53935; font-size: .68rem; margin-left: 3px; }
.fc { width: 100%; padding: 9px 11px; font-size: .83rem; border: 1.5px solid var(--border); border-radius: 7px; font-family: inherit; color: var(--text); background: #fff; transition: border-color .15s, box-shadow .15s; }
.fc:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(155,86,36,.1); }
.sub-btn { width: 100%; background: var(--teal); color: #fff; border: none; padding: 12px; border-radius: 7px; font-size: .88rem; font-weight: 800; font-family: inherit; cursor: pointer; transition: background .15s, transform .1s; margin-top: 3px; }
.sub-btn:hover { background: var(--teal-dk); transform: translateY(-1px); }

/* ===== 単独記事ページ ===== */
.single-wrap { max-width: 760px; margin: 100px auto 80px; padding: 0 22px; }
.single-wrap .post-date { font-size: .8rem; color: var(--sub); margin-bottom: 8px; }
.single-wrap h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--border); }
.single-wrap .post-content { font-size: .95rem; line-height: 1.9; color: var(--text); }
.single-wrap .back-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 40px; color: var(--teal); font-weight: 700; font-size: .88rem; border: 1.5px solid var(--teal); padding: 8px 18px; border-radius: 99px; transition: background .15s, color .15s; }
.single-wrap .back-btn:hover { background: var(--teal); color: #fff; }

/* ===== FOOTER ===== */
footer { background: #0e2830; color: rgba(255,255,255,.72); padding: 52px 0 22px; }
.ft-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.ft-brand .fn { color: #fff; font-size: 1.05rem; font-weight: 800; display: block; margin-bottom: 9px; }
.ft-brand p { font-size: .8rem; opacity: .62; line-height: 1.8; }
.ft-col h5 { color: #fff; font-size: .83rem; font-weight: 800; margin-bottom: 13px; }
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ft-col li a { font-size: .78rem; opacity: .58; transition: opacity .15s; }
.ft-col li a:hover { opacity: 1; }
.ft-btm { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; text-align: center; font-size: .73rem; opacity: .38; }

/* ===== Scroll Top ===== */
#top-btn { position: fixed; bottom: 24px; right: 20px; z-index: 800; width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: #fff; border: none; font-size: 17px; cursor: pointer; box-shadow: 0 4px 14px rgba(155,86,36,.38); opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s; display: flex; align-items: center; justify-content: center; }
#top-btn.show { opacity: 1; transform: none; }
#top-btn:hover { background: var(--teal-dk); }

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .gnav { display: none; }
  .hmb  { display: flex; }
  .news-side { text-align: center; }
  .doc-grid  { grid-template-columns: 1fr; }
  .doc-left  { flex-direction: row; align-items: flex-start; }
  .acc-grid  { grid-template-columns: 1fr; }
  .resv-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .resv-grid-2 { flex-direction: column; align-items: center; max-width: 400px; }
  .resv-grid-2 .resv-card { max-width: 100%; width: 100%; }
  .contact-inner { padding: 40px 24px; }
  .ft-grid   { grid-template-columns: 1fr 1fr; }
  .ft-brand  { grid-column: 1 / -1; }
}
@media (max-width: 580px) {
  .doc-left  { flex-direction: column; align-items: center; }
  .ft-grid   { grid-template-columns: 1fr; }
  .btn-ow    { display: inline-block; }
  .arr       { display: none; }
  .ni { grid-template-columns: 84px 60px 1fr; gap: 8px; }
  .sch-boxes { flex-direction: column; }
  .sch-tel-box { max-width: 100%; }
}
/* モバイルカード：デスクトップでは非表示 */
.sch-mobile { display: none; }
.sch-card { border: 1px solid #c8e6c8; border-radius: 8px; overflow: hidden; margin-bottom: 10px; background: #fff; }
.sch-card-head { background: var(--green); padding: 8px 14px; display: flex; align-items: baseline; gap: 8px; }
.sch-card-head strong { color: #fff; font-size: .9rem; }
.sch-card-head span { color: rgba(255,255,255,.8); font-size: .76rem; }
.sch-card-days { display: flex; }
.sch-card-days span { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 2px; border-right: 1px solid #e0f0dc; font-size: .85rem; }
.sch-card-days span:last-child { border-right: none; }
.sch-card-days em { font-style: normal; font-size: .65rem; font-weight: 700; color: var(--green-dk); margin-bottom: 3px; }

@media (max-width: 640px) {
  .sch-mobile { display: none; }
  .tbl-wrap { overflow-x: visible; }
  .sch-tbl { font-size: .72rem; table-layout: fixed; width: 100%; }
  .sch-tbl th, .sch-tbl td { padding: 6px 2px; text-align: center; }
  .sch-tbl th:first-child, .sch-tbl td:first-child { width: 60px; min-width: 0; padding: 6px 2px; text-align: center; }
  .sch-tbl .row-label { font-size: .68rem; font-weight: 700; }
  .sch-tbl .row-time { font-size: .58rem; letter-spacing: -.02em; }
}
