.visit-content { max-width: 860px; margin: 0 auto; }
/* 初診の方へ セクションのみ、本文をコンテナ幅いっぱい（カードと同幅）に */
#first-visit .visit-content { max-width: none; }
.visit-content > p.lead { font-size: var(--fs-base); line-height: 1.95; color: var(--text); margin-bottom: 24px; }
.visit-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
@media (max-width: 700px) { .visit-cols { grid-template-columns: 1fr; } }
.visit-card { background: var(--primary-light); border-radius: 12px; padding: 20px 24px; }
.section-alt .visit-card { background: #ffffff; }
.visit-card h3 { font-weight: 700; color: var(--primary-dark); margin: 0 0 14px; padding-left: 12px; border-left: 4px solid var(--primary); line-height: 1.5; }
.visit-card ul { margin: 0 0 0 22px; padding: 0; }
.visit-card li { list-style: disc; font-size: var(--fs-base); line-height: 1.85; margin-bottom: 4px; color: var(--text); }
.visit-card p { font-size: var(--fs-base); line-height: 1.85; color: var(--text); margin: 0; }
.visit-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 16px; }
.visit-flow-step { background: var(--primary-light); border-radius: 10px; padding: 14px 12px; text-align: center; }
.section-alt .visit-flow-step { background: #ffffff; }
.visit-flow-step .num { display:inline-block;width:26px;height:26px;background:var(--primary);color:white;border-radius:50%;font-size: var(--fs-sm);line-height:26px;font-weight:700;margin-bottom:6px; }
.visit-flow-step .ttl { font-size: var(--fs-sm); font-weight: 700; color: var(--text); }
.visit-flow-step .desc { font-size: var(--fs-sm); color: var(--text-light); margin-top: 4px; line-height: 1.55; }
.visit-sub-h { font-weight: 700; color: var(--primary-dark); margin: 32px 0 14px; padding-left: 14px; border-left: 4px solid var(--primary); }
.visit-note { margin-top: 14px; font-size: var(--fs-sm); color: var(--text-light); line-height: 1.85; }
.visit-note strong { color: var(--text); }

.payment-lead {
  max-width: 760px;
  margin: -10px auto 28px;
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.8;
  text-align: center;
}
.payment-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1060px;
  margin: 0 auto;
}
.payment-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.payment-card h3 {
  min-height: 58px;
  margin: 0;
  padding: 16px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--primary-pale);
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}
.payment-card-body {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 16px;
  align-items: center;
  align-content: center;
  justify-content: center;
  flex: 1;
  padding: 30px 18px 28px;
}
.pay-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  flex-shrink: 0;
  padding: 0;
}
.pay-tile img,
.pay-tile svg {
  display: block;
  width: auto;
  height: auto;
  max-width: 78px;
  max-height: 34px;
  object-fit: contain;
}
.pay-tile img[alt="楽天Edy"] { width: 24px; max-width: 24px; }
@media (max-width: 767px) {
  .payment-lead { margin: -6px auto 22px; text-align: left; }
  .payment-wrap { grid-template-columns: 1fr; gap: 16px; }
  .payment-card { min-height: 0; }
  .payment-card h3 { min-height: 0; padding: 14px 16px; }
  .payment-card-body { justify-content: center; padding: 22px 18px 24px; }
}

.partner-card { max-width: 860px; margin: 0 auto; background: white; border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-card); }
.partner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .partner-grid { grid-template-columns: 1fr; } }
.partner-grid h3 { font-weight: 700; color: var(--primary-dark); margin-bottom: 14px; border-left: 4px solid var(--primary); padding-left: 12px; }
.partner-grid ul { font-size: var(--fs-base); color: var(--text-light); }
.partner-grid li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.partner-grid li:last-child { border-bottom: 0; }
.partner-note { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 16px; }

.calendar-wrap {
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: white;
}
.calendar-wrap iframe {
  display: block;
  width: 100%;
  height: 600px;
  border: 0;
}
.calendar-note {
  max-width: 880px;
  margin: 14px auto 0;
  font-size: var(--fs-sm);
  color: var(--text-light);
  text-align: center;
}
@media (max-width: 768px) {
  .calendar-wrap iframe { height: 480px; }
}

/* 初診の方へ 冒頭のご案内カード */
.intro-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.intro-card {
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
}
.intro-card-icon { width: 48px; height: 48px; margin: 0 auto 16px; color: var(--primary); }
.intro-card-icon svg { width: 100%; height: 100%; }
.intro-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--primary-dark);
  margin: 0 0 16px;
}
.intro-card p { font-size: var(--fs-base); color: var(--text); line-height: 1.8; text-align: left; margin: 0; }
@media (max-width: 767px) {
  .intro-cards { grid-template-columns: 1fr; gap: 16px; }
  /* モバイル: アイコン(左)＋見出し(右)を横並び、説明文は下に全幅 */
  .intro-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    row-gap: 12px;
    align-items: center;
    text-align: left;
  }
  .intro-card-icon { width: 40px; height: 40px; margin: 0; }
  .intro-card h3 { margin: 0; }
  .intro-card p { grid-column: 1 / -1; }
}

/* 初診の流れ: 縦型ステップカード */
.flow-steps { display: flex; flex-direction: column; }
.flow-step {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: center;
  background: var(--primary-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  /* 右は画像の中央寄せ余白(約38px)+padding44pxで約82px。左テキストもそれに合わせる */
  padding: 36px 44px 36px 82px;
}
.flow-step-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 14px;
}
.flow-step-num {
  font-size: var(--fs-md);
  letter-spacing: .12em;
  color: var(--primary);
}
.flow-step-bar { width: 1px; height: 1.2em; background: var(--border); }
.flow-step-desc { font-size: var(--fs-base); color: var(--text); line-height: 1.9; margin: 0; }
.flow-step-img {
  width: 80%;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--primary-light);
}
.flow-step-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flow-arrow { display: flex; justify-content: center; color: var(--primary); }
.flow-arrow svg { width: 28px; height: 28px; margin: 10px 0; }
@media (max-width: 767px) {
  .flow-step { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
  /* 見出し→画像→説明文の順、画像はカード幅いっぱい
     ラッパーを display:contents で透過させ、3要素を並び替える */
  .flow-step-body { display: contents; }
  .flow-step-label { order: 1; margin-bottom: 0; }
  .flow-step-img { order: 2; width: 100%; margin: 0; }
  .flow-step-desc { order: 3; }
}

/* 持ち物: 円形アイコン */
.belongings {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.belonging-item { text-align: center; }
.belonging-icon {
  width: 140px; height: 140px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.belonging-icon svg { width: 56px; height: 56px; }
.belonging-item p { font-size: var(--fs-base); color: var(--text); line-height: 1.6; margin: 0; }
@media (max-width: 767px) {
  /* モバイル: アイコン左＋テキスト右 */
  .belongings { grid-template-columns: 1fr; gap: 14px; }
  .belonging-item {
    display: grid; grid-template-columns: auto 1fr;
    align-items: center; gap: 16px; text-align: left;
  }
  .belonging-icon { width: 64px; height: 64px; margin: 0; }
  .belonging-icon svg { width: 30px; height: 30px; }
}
