/* ==========================================================
   旭ヶ丘やまだ治療院  スタイルシート
   ========================================================== */
:root {
  --primary: #00a4b4;
  --primary-dark: #0e6f8f;
  --primary-light: #ccf4ff;
  --accent: #f9b42d;
  --bg-light: #fbf7f0;
  --text: #333;
  --border: #ddd;
  --font-serif: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic Medium", Meiryo, sans-serif;
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
}

img { max-width: 100%; height: auto; vertical-align: bottom; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { opacity: .8; }
ul, ol { list-style: none; }

h1, h2, h3, h4 { font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif; }

.inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.inner.narrow { max-width: 860px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.header-inner {
  display: flex; align-items: center; gap: 18px;
  max-width: 1280px; margin: 0 auto; padding: 8px 20px;
}
.header-logo img { height: 56px; width: auto; }
.global-nav { flex: 1; }
.global-nav ul { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.global-nav a {
  display: block; padding: 8px 12px; font-weight: 700; font-size: 15px;
  color: var(--text); border-radius: 6px;
}
.global-nav a:hover, .global-nav a.current { color: var(--primary); background: var(--bg-light); opacity: 1; }
.header-right { display: flex; align-items: center; gap: 14px; }
.header-tel { text-align: right; line-height: 1.3; }
.tel-number { font-size: 20px; font-weight: 700; color: var(--primary-dark); }
.tel-number::before { content: "☎ "; }
.tel-note { display: block; font-size: 11px; color: #777; }
.header-btns { display: flex; gap: 6px; }

.btn {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  font-weight: 700; font-size: 14px; text-align: center;
  border: 2px solid transparent; cursor: pointer; transition: .2s;
}
.btn-contact { background: var(--primary); color: #fff; }
.btn-trial { background: var(--accent); color: #fff; }
.btn-area { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-white { background: #fff; color: var(--primary-dark); }
.btn-lg { padding: 14px 34px; font-size: 17px; }
.btn:hover { opacity: .85; transform: translateY(-1px); }

.menu-toggle { display: none; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(135deg, #fbf7f0 0%, #eef7f6 100%); overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 60px 20px;
}
.hero-text h1 {
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.6; color: var(--text); margin-bottom: 20px;
  font-family: var(--font-serif); font-weight: 600;
}
.hero-text h1 .accent { color: var(--primary); }
.hero-text h1 .unit { display: inline-block; }
.hero-text p { margin-bottom: 28px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-images { position: relative; aspect-ratio: 4/3; }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: 20px; opacity: 0; transition: opacity 1.2s;
}
.hero-img.active { opacity: 1; }

/* ---------- news ticker ---------- */
.news-ticker { background: #fff; border-bottom: 1px solid var(--border); }
.news-ticker .inner { display: flex; align-items: center; gap: 16px; padding: 10px 20px; }
.ticker-label {
  flex-shrink: 0; background: var(--primary); color: #fff;
  padding: 3px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
}
.news-ticker ul { flex: 1; overflow: hidden; }
.news-ticker li { display: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-ticker li.show { display: block; }
.news-ticker time { color: var(--primary-dark); font-weight: 700; margin-right: 12px; font-size: 14px; }
.news-ticker a { color: var(--text); font-size: 14px; }
.ticker-more { flex-shrink: 0; font-size: 13px; font-weight: 700; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.bg-light { background: var(--bg-light); }
.bg-teal { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; }
.bg-teal .sec-title h2, .bg-teal .sec-title .en { color: #fff; }
.bg-teal .sec-title h2::after { background: #fff; }
.bg-teal a { color: #fff; }
.bg-teal a.btn-white { color: var(--primary-dark); }

.sec-title { text-align: center; margin-bottom: 36px; }
.sec-title .en {
  display: block; font-size: 13px; letter-spacing: .2em; color: var(--primary);
  font-weight: 700; text-transform: uppercase;
}
.sec-title h2 { font-size: clamp(24px, 3vw, 32px); display: inline-block; position: relative; padding-bottom: 10px; font-family: var(--font-serif); font-weight: 600; }
.sec-title h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 56px; height: 4px; border-radius: 2px; background: var(--primary);
}

.catch { text-align: center; font-size: clamp(20px, 2.6vw, 26px); font-weight: 600; color: var(--primary-dark); margin-bottom: 24px; font-family: var(--font-serif); }
.center-text { text-align: center; margin-bottom: 24px; }
.center-btn { text-align: center; margin-top: 30px; }
.note { font-size: 14px; color: #666; }

/* ---------- concept ---------- */
.concept-lead { text-align: center; font-weight: 700; margin: -20px 0 30px; color: var(--primary-dark); }
.concept-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.concept-text .btn { margin-top: 20px; }
.concept-photos { display: grid; gap: 14px; }
.concept-photos img { border-radius: 16px; width: 100%; object-fit: cover; }

/* ---------- houmon ---------- */
.houmon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; margin-bottom: 40px; }
.houmon-grid img { border-radius: 16px; }
.taisho { background: #fff; border-radius: 16px; padding: 34px; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.taisho h3 { font-size: 22px; color: var(--primary-dark); margin-bottom: 12px; text-align: center; }
.taisho h4 { margin: 18px 0 10px; color: var(--primary-dark); }
.disease-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px 20px; }
.disease-list li { padding-left: 1.4em; position: relative; }
.disease-list li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* ---------- service ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.service-item {
  background: #fff; border: 2px solid var(--primary-light); border-radius: 16px;
  padding: 24px; text-align: center;
}
.service-item img { height: 130px; object-fit: contain; margin-bottom: 14px; }
.service-item h3 { font-size: 17px; color: var(--primary-dark); margin-bottom: 10px; min-height: 3em; display: flex; align-items: center; justify-content: center; }
.service-item p { font-size: 14px; text-align: left; }

/* ---------- area ---------- */
.area-sec { text-align: center; }
.area-text { max-width: 720px; margin: 0 auto 20px; }
.area-tel { text-align: center; font-size: 24px; font-weight: 700; margin-bottom: 24px; }
.area-tel a { font-size: 30px; }
.area-map { display: block; margin: 24px auto; border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,.1); }

/* ---------- treatment ---------- */
.treatment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.treatment-item { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.treatment-item img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #fff; padding: 10px; box-sizing: border-box; }
.treatment-item h3 { font-size: 19px; color: var(--primary-dark); padding: 16px 20px 0; }
.treatment-item p { font-size: 14px; padding: 8px 20px 22px; }

/* ---------- voice ---------- */
.voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 30px; }
.voice-item { background: #fff; border-radius: 16px; padding: 26px; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.voice-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.voice-head img {
  width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--primary-light); background: #fff; object-fit: cover;
}
.voice-item h3 { color: var(--primary-dark); font-size: 17px; }
.voice-item p { font-size: 14px; }

/* ---------- flow / price ---------- */
.flow-img, .price-img { display: block; margin: 0 auto; border-radius: 16px; }
.price-img { max-width: 640px; width: 100%; }

/* ---------- news list ---------- */
.news-list { border-top: 1px solid var(--border); }
.news-list li { border-bottom: 1px solid var(--border); }
.news-list a { display: flex; gap: 22px; padding: 16px 8px; align-items: baseline; color: var(--text); }
.news-list time { flex-shrink: 0; color: var(--primary-dark); font-weight: 700; }
.news-list a:hover span { color: var(--primary); }

/* ---------- page hero (下層) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 54px 0; text-align: center;
}
.page-hero h1 { font-size: clamp(26px, 3.4vw, 36px); font-family: var(--font-serif); font-weight: 600; }
.page-hero-sub { margin-top: 8px; font-size: 15px; opacity: .95; }

/* ---------- about ---------- */
.greeting-grid { display: grid; grid-template-columns: 320px 1fr; gap: 36px; align-items: start; }
.incho-photo { border-radius: 16px; }
.greeting-text h3 { color: var(--primary-dark); font-size: 21px; margin-bottom: 14px; }
.greeting-text p { margin-bottom: 14px; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.staff-grid img { border-radius: 12px; aspect-ratio: 3/4; object-fit: cover; width: 100%; }

/* ---------- free trial ---------- */
.trial-img { display: block; margin: 0 auto 28px; border-radius: 16px; max-width: 520px; width: 100%; }
.step-list { counter-reset: step; margin: 20px 0; }
.step-list li {
  counter-increment: step; position: relative; padding: 16px 16px 16px 62px;
  background: var(--bg-light); border-radius: 12px; margin-bottom: 12px;
}
.step-list li::before {
  content: counter(step); position: absolute; left: 16px; top: 16px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.em-box {
  background: #fff8e6; border: 2px solid var(--accent); border-radius: 12px;
  padding: 18px 22px; text-align: center; font-weight: 700; margin: 22px 0;
}
.check-list { max-width: 640px; margin: 0 auto 26px; }
.check-list li { padding: 10px 0 10px 2em; position: relative; border-bottom: 1px dashed var(--border); }
.check-list li::before { content: "✓"; position: absolute; left: .4em; color: var(--primary); font-weight: 700; }
.flow-steps { counter-reset: fstep; }
.flow-steps li {
  counter-increment: fstep; position: relative; padding: 20px 20px 20px 74px;
  border: 2px solid var(--primary-light); border-radius: 14px; margin-bottom: 18px; background: #fff;
}
.flow-steps li::before {
  content: "STEP\A" counter(fstep); white-space: pre; position: absolute; left: 14px; top: 20px;
  width: 46px; text-align: center; font-size: 11px; font-weight: 700; color: #fff;
  background: var(--primary); border-radius: 8px; padding: 5px 0; line-height: 1.3;
}
.flow-steps h3 { color: var(--primary-dark); font-size: 18px; margin-bottom: 6px; }

/* ---------- faq ---------- */
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 14px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 16px 44px 16px 52px; font-weight: 700; position: relative;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "Q"; position: absolute; left: 14px; top: 14px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.faq-item summary::after {
  content: "＋"; position: absolute; right: 16px; top: 16px; color: var(--primary); font-weight: 700;
}
.faq-item[open] summary::after { content: "−"; }
.faq-a { padding: 0 20px 18px 52px; position: relative; }
.faq-a::before {
  content: "A"; position: absolute; left: 14px; top: 2px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}

/* ---------- contact form ---------- */
.contact-form { max-width: 680px; margin: 30px auto 10px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 700; margin-bottom: 6px; }
.req, .opt {
  display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 4px;
  margin-left: 8px; vertical-align: middle; color: #fff;
}
.req { background: #ff5353; }
.opt { background: #999; }
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 16px; font-family: inherit; background: #fafafa;
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--primary); background: #fff;
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* ---------- recruit ---------- */
.job-title { color: var(--primary-dark); font-size: 20px; margin: 10px 0 16px; }
.job-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.job-table th, .job-table td { border: 1px solid var(--border); padding: 14px 16px; text-align: left; vertical-align: top; }
.job-table th { background: var(--bg-light); width: 180px; color: var(--primary-dark); }
.job-table ul li { padding-left: 1.2em; position: relative; }
.job-table ul li::before { content: "・"; position: absolute; left: 0; }

/* ---------- privacy / news post ---------- */
.privacy h3 { color: var(--primary-dark); margin: 26px 0 8px; font-size: 18px; }
.privacy ul li { padding-left: 1.2em; position: relative; }
.privacy ul li::before { content: "・"; position: absolute; left: 0; }
.post-date { color: var(--primary-dark); font-weight: 700; }
.post-title { font-size: clamp(22px, 3vw, 28px); margin: 6px 0 24px; padding-bottom: 12px; border-bottom: 3px solid var(--primary-light); }
.post-body p { margin-bottom: 16px; }
.post-body h3 { color: var(--primary-dark); margin: 22px 0 8px; }
.post-body ul { margin-bottom: 16px; }
.post-body ul li { padding-left: 1.2em; position: relative; }
.post-body ul li::before { content: "・"; position: absolute; left: 0; color: var(--primary); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin: 30px 0 6px; font-size: 14px; }
.post-nav a { max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-next { margin-left: auto; }

/* ---------- promise / family ---------- */
.promise-list li {
  position: relative; padding: 18px 20px 18px 56px; margin-bottom: 14px;
  background: #fff; border: 1px solid #eee2cf; border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.promise-list li::before {
  content: "✓"; position: absolute; left: 18px; top: 18px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.promise-list strong { color: var(--primary-dark); font-size: 17px; }
.promise-list li br + * , .promise-list li { font-size: 15px; }

.family-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.family-item {
  background: #fff; border-radius: 14px; padding: 24px 26px;
  border-top: 4px solid var(--primary); box-shadow: 0 3px 14px rgba(0,0,0,.06);
}
.family-item h3 { color: var(--primary-dark); font-size: 17px; margin-bottom: 8px; font-family: var(--font-serif); }
.family-item p { font-size: 14px; }

/* ---------- footer disclaimer ---------- */
.disclaimer {
  max-width: 760px; margin: 32px auto 0; padding: 0 20px;
  font-size: 12px; line-height: 1.9; opacity: .75; text-align: center;
}

/* ---------- スマホ固定CTA ---------- */
.sp-fixed-cta { display: none; }

/* ---------- banner links ---------- */
.banner-links { padding: 50px 0; background: #fff; border-top: 1px solid var(--border); }
.banner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.banner-item { position: relative; border-radius: 14px; overflow: hidden; display: block; }
.banner-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .3s; }
.banner-item:hover img { transform: scale(1.05); }
.banner-item span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35); color: #fff; font-size: 22px; font-weight: 700;
  font-family: "Zen Maru Gothic", sans-serif; text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

/* ---------- footer ---------- */
.site-footer { background: var(--primary-dark); color: #fff; padding: 50px 0 20px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 40px; }
.footer-logo { max-width: 190px; background: #fff; border-radius: 10px; padding: 8px; margin-bottom: 14px; }
.footer-name { font-weight: 700; margin-bottom: 6px; }
.footer-tel a { font-size: 22px; font-weight: 700; }
.footer-tel a::before { content: "☎ "; }
.footer-schedule table { width: 100%; border-collapse: collapse; font-size: 13px; }
.footer-schedule th, .footer-schedule td {
  border: 1px solid rgba(255,255,255,.35); padding: 7px 4px; text-align: center;
}
.footer-schedule th:first-child { white-space: nowrap; }
.footer-nav ul { columns: 1; }
.footer-nav li { margin-bottom: 8px; font-size: 14px; }
.footer-nav a::before { content: "› "; }
.copyright { text-align: center; margin-top: 36px; font-size: 12px; opacity: .8; }

.page-top {
  position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px;
  border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: .3s;
  z-index: 90;
}
.page-top.visible { opacity: 1; pointer-events: auto; }

/* ==========================================================
   レスポンシブ
   ========================================================== */
@media (max-width: 1024px) {
  .header-tel { display: none; }
  .header-btns .btn-area { display: none; }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block; background: none; border: none; cursor: pointer;
    width: 44px; height: 44px; position: relative; flex-shrink: 0;
  }
  .menu-toggle span {
    position: absolute; left: 10px; width: 24px; height: 3px; border-radius: 2px;
    background: var(--primary); transition: .3s;
  }
  .menu-toggle span:nth-child(1) { top: 13px; }
  .menu-toggle span:nth-child(2) { top: 21px; }
  .menu-toggle span:nth-child(3) { top: 29px; }
  .menu-toggle.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

  .header-inner { flex-wrap: wrap; }
  .header-btns { margin-left: auto; }
  .header-btns .btn { padding: 8px 12px; font-size: 12px; }
  .global-nav {
    display: none; order: 10; width: 100%; border-top: 1px solid var(--border);
  }
  .global-nav.open { display: block; }
  .global-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .global-nav a { padding: 12px 8px; border-bottom: 1px dashed var(--border); }

  .hero-inner { grid-template-columns: 1fr; padding: 40px 20px; }
  .concept-grid, .houmon-grid, .greeting-grid, .voice-grid, .family-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .banner-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }

  body { padding-bottom: 64px; }
  .sp-fixed-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    box-shadow: 0 -3px 12px rgba(0,0,0,.15);
  }
  .sp-fixed-cta a {
    flex: 1; text-align: center; padding: 16px 8px; font-weight: 700; font-size: 15px; color: #fff;
  }
  .sp-cta-tel { background: var(--primary-dark); }
  .sp-cta-trial { background: var(--accent); }
  .page-top { bottom: 80px; }
  .incho-photo { max-width: 320px; margin: 0 auto; display: block; }
  .job-table th { width: auto; display: block; border-bottom: none; }
  .job-table td { display: block; }
}
