/* =============================================
   幕張ドルフィン歯科 LP8 - 統合スタイルシート
   v3 速度改善版 / YouTube・ギャラリー削除
   ============================================= */

/* --- CSS変数 --- */
:root {
  --c-primary: #6592e6;
  --c-primary-dark: #074cae;
  --c-accent-pink: #c43a87;
  --c-bg-pink: rgba(255, 0, 150, 0.04);
  --c-marine: #d1eaee;
  --c-marine-light: #e2f9fd;
  --c-navy: #3c4da5;
  --c-text: #232323;
  --c-text-sub: #656565;
  --c-text-muted: #555555;
  --c-faq-bg: rgba(245, 250, 255, 1);
  --c-caret: #4f80e0;
  --c-stripe: #0087ab;
  --c-case-pink: #f7bfc1;
  --c-white: #fff;
  --font-main: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-gothic: "遊ゴシック体", "Hiragino Kaku Gothic Pro", Meiryo, "ヒラギノ角ゴ Pro W3", sans-serif;
  --max-w: 1000px;
  --max-w-narrow: 960px;
  --max-w-cta: 800px;
  --ease: 0.3s ease;
}

/* --- リセット --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-weight: 400;
  color: var(--c-text);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

iframe {
  display: block;
  border: 0;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  word-break: break-word;
}

b, strong {
  font-weight: 700;
}

p {
  line-height: 1.7;
}

section {
  background-color: var(--c-white);
}

/* --- ユーティリティ --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/* --- レイアウト --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

.container--narrow {
  max-width: var(--max-w-narrow);
  padding: 0;
}

.container--cta {
  max-width: var(--max-w-cta);
  padding: 0;
}

.container--fluid {
  max-width: none;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container--fluid {
    padding: 0 2rem;
  }
}

/* --- レスポンシブ表示切替 --- */
.desktop-only {
  display: none;
}

.mobile-only {
  display: block;
}

@media (min-width: 768px) {
  .desktop-only {
    display: block;
  }
  .mobile-only {
    display: none;
  }
}

/* --- 共通パーツ --- */
.section__title {
  font-family: var(--font-main);
  font-size: 2rem;
  line-height: 1.5;
  text-align: left;
  color: var(--c-text);
}

.section__stripe {
  border-bottom: 1px solid var(--c-stripe);
  max-width: 100%;
  position: relative;
  margin-bottom: 0.5rem;
}

.section__stripe::before {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  border-bottom: 1px solid #e9e9e9;
  width: 73%;
}

.section__underline {
  text-align: center;
  padding-bottom: 1rem;
}

.section__underline-bar {
  width: 5rem;
  height: 3px;
  background: linear-gradient(to right, var(--c-primary) 50%, #ff6666 120%);
  display: inline-block;
}

.icon-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.icon-label svg {
  flex-shrink: 0;
}

/* =============================================
   セクション別スタイル
   ============================================= */

/* --- ファーストビュー --- */
.section-fv {
  background: var(--c-marine);
}

/* --- CTA --- */
.section-cta--head {
  background: var(--c-marine);
}

.section-cta__overlay {
  position: relative;
}

.cta-buttons {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* --- 比較表 --- */
.section-compare__head {
  background: var(--c-white);
}

.section-compare__wave {
  background: url(./img/hikaku_wave.webp) repeat-x center;
  height: 69px;
  margin-top: -35px;
  z-index: 2;
}

.section-compare__body {
  background: var(--c-white);
}

@media (min-width: 768px) {
  .section-compare__body {
    background: var(--c-marine);
  }
}

.section-compare__body picture,
.section-compare__body img {
  width: 100%;
}

/* --- 流れ --- */
.section-flow {
  background-color: var(--c-bg-pink);
  padding: 1rem 0;
}

.section-flow h2 {
  font-size: 1.4rem;
  text-align: center;
}

.section-flow__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  padding: 0 0.5rem;
}

@media (min-width: 768px) {
  .section-flow__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.section-flow__step h3 {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  background-color: var(--c-accent-pink);
  color: var(--c-white);
  padding: 0.5rem;
  margin: 0;
}

.section-flow__step img {
  width: 100%;
}

/* --- 料金 --- */
.section-price__head {
  background: var(--c-white);
}

.section-price__wave {
  background: url(./img/price_wave.webp) repeat-x center;
  height: 38px;
  z-index: 2;
}

.section-price__body {
  background: var(--c-white);
}

.section-price__body--alt {
  background: var(--c-white);
}

@media (min-width: 768px) {
  .section-price__body {
    background: var(--c-marine);
  }
  .section-price__body--alt {
    background: var(--c-white);
  }
}

/* --- FAQ --- */
.section-faq {
  padding: 20px 0 0;
  background-color: var(--c-white);
}

.section-faq h2 {
  font-size: 1.4rem;
  text-align: center;
}

.section-faq__list {
  max-width: 100%;
  margin: 0 auto;
  padding-top: 0.25rem;
}

@media (min-width: 768px) {
  .section-faq__list {
    max-width: 83.333%;
  }
}

@media (min-width: 992px) {
  .section-faq h2 {
    font-size: 2.4rem;
  }
  .section-faq__list {
    max-width: 66.666%;
  }
}

.faq__item {
  background: var(--c-faq-bg);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.faq__question {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding: 1rem 1rem;
  padding-right: 4rem;
  font-weight: 500;
  list-style: none;
  transition: border-radius var(--ease);
  border-radius: 10px;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::marker {
  display: none;
  content: "";
}

.faq__question-text {
  font-size: 0.9rem;
  line-height: 1.2rem;
  color: var(--c-text);
}

@media (min-width: 992px) {
  .faq__question-text {
    font-size: 1.2rem;
    line-height: 1.4rem;
  }
}

.faq__caret {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3rem;
  background: var(--c-caret);
  border-radius: 0 10px 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq__caret::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--c-white);
  border-bottom: 2.5px solid var(--c-white);
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform var(--ease);
}

details[open] > .faq__question .faq__caret::before {
  transform: rotate(-135deg) translate(-1px, -1px);
}

details[open] > .faq__question {
  border-radius: 10px 10px 0 0;
}

.faq__answer {
  padding: 0 15px 15px;
  font-size: 0.8rem;
  line-height: 1.2rem;
  animation: faq-slide 0.3s ease;
}

@media (min-width: 992px) {
  .faq__answer {
    font-size: 1rem;
    line-height: 1.6rem;
    padding: 0 30px 30px;
  }
}

@keyframes faq-slide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .faq__question {
    padding: 10px 10px 10px 10px;
    padding-right: 3.5rem;
  }
  .faq__caret {
    width: 2.5rem;
  }
}

/* --- ケース --- */
.section-case {
  background-color: var(--c-bg-pink);
  padding: 2rem 0;
}

.section-case h2 {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 2rem;
}

.section-case__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

@media (min-width: 768px) {
  .section-case__grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.section-case__item {
  text-align: center;
}

.section-case__item h3 {
  text-align: center;
  font-size: 0.8rem;
}

.section-case__circle {
  background: var(--c-case-pink);
  padding: 10px;
  margin: 10px;
  border-radius: 50%;
}

.section-case__break-sp {
  display: inline;
}

@media (min-width: 992px) {
  .section-case__break-sp {
    display: none;
  }
}

/* --- 共感 --- */
.section-empathy {
  background: var(--c-marine-light);
  padding-top: 2rem;
}

.section-empathy__logo {
  max-width: 400px;
  width: 50%;
  margin: 0 auto 0.5rem;
}

.section-empathy__title {
  color: var(--c-navy);
  font-size: 1.125rem;
  font-weight: 700;
  font-family: var(--font-gothic);
  text-align: center;
  margin: 1rem 0 1.5rem;
}

@media (min-width: 768px) {
  .section-empathy__title {
    font-size: 2rem;
    margin: 2rem 0;
  }
}

.section-empathy__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0 2rem;
}

@media (min-width: 768px) {
  .section-empathy__grid {
    grid-template-columns: 1fr 1fr;
    padding: 0;
  }
}

/* --- 先生コメント --- */
.section-message {
  background-color: #f4f8fa;
  padding: 1rem 0;
}

.section-message .section__stripe::before {
  width: 45%;
}

.section-message__grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 992px) {
  .section-message__grid {
    flex-direction: row;
    gap: 2rem;
  }
  .section-message__text,
  .section-message__photo {
    flex: 1;
  }
}

.section-message__body {
  font-size: 0.8rem;
  line-height: 1.2rem;
  color: var(--c-text-muted);
}

@media (min-width: 576px) {
  .section-message__body {
    font-size: 1rem;
    line-height: 1.6rem;
  }
}

.section-message__photo img {
  box-shadow: 0 0 30px rgba(147, 153, 161, 0.3);
  border-radius: 0.25rem;
}

/* --- 医院概要 --- */
.section-about {
  padding: 1rem 0 0;
  background-color: var(--c-white);
}

.section-about__grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 992px) {
  .section-about__grid {
    flex-direction: row;
  }
  .section-about__map,
  .section-about__info {
    flex: 1;
  }
}

.section-about__map-wrap {
  height: 100%;
  min-height: 25rem;
  position: relative;
  width: 100%;
}

.section-about__map-wrap iframe {
  min-height: 100%;
  width: 100%;
}

.section-about__info-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  color: #000;
  font-size: 1.1rem;
  line-height: 1.5;
}

.section-about__info-item svg {
  flex-shrink: 0;
  margin-right: 0.5rem;
  color: var(--c-text);
}

.section-about__timetable {
  overflow-x: auto;
}

.timetable {
  width: 100%;
  border: 1px solid #dee2e6;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.timetable th,
.timetable td {
  border: 1px solid #dee2e6;
  padding: 0.3rem 0.5rem;
  text-align: center;
}

.timetable th {
  background-color: #f8f9fa;
  font-weight: 700;
}

.section-about__note {
  color: var(--c-text-sub);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- フッター --- */
.section-footer {
  background-color: var(--c-primary-dark);
  color: var(--c-white);
  text-align: center;
  font-size: 0.75rem;
  padding: 0.5rem 0;
  padding-bottom: 9em;
}

@media (max-width: 767px) {
  .section-footer {
    padding-bottom: 4em;
  }
}

/* --- SP固定フッター --- */
.fixbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: none;
  padding: 0.25rem 0.75rem;
  z-index: 100;
}

.fixbar__row {
  display: flex;
  gap: 4px;
}

.fixbar__col {
  flex: 1;
}

.fixbar__btn {
  position: relative;
  text-align: center;
  padding: 0.25rem 0;
}

.fixbar__btn a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

@media (min-width: 768px) {
  .fixbar {
    max-width: 700px;
    left: 50%;
    transform: translateX(-50%);
    padding-left: 2px;
    padding-right: 2px;
  }
}
