@charset "UTF-8";
/* ==========================================================================
   content.css
   下層ページ固有のCSS（資料請求・お問い合わせ）
   読み込み順：reset.css → style.css → base.css → content.css
   ========================================================================== */

/* ==========================================================================
   Page : フォーム（資料請求・お問い合わせ）
   ========================================================================== */
.p-form {
  color: #17375B;
}

/* ==========================================================================
   Component : Steps（入力 → 確認 → 完了）
   ========================================================================== */
.c-steps {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 40px;
}

.c-steps__item {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 32px;
  color: #6282A5;
}

/* 項目どうしをつなぐ線 */
.c-steps__item + .c-steps__item::before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  width: 40px;
  height: 1px;
  background: #BCC7CB;
}

.c-steps__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 10px;
  font-size: 16px;
  line-height: 1;
  color: #6282A5;
  background: #fff;
  border: 1px solid #BCC7CB;
  border-radius: 50%;
}

.c-steps__item.is-current {
  color: #2864B4;
}

.c-steps__item.is-current .c-steps__num {
  color: #fff;
  background: #2864B4;
  border-color: #2864B4;
}

.c-steps__item.is-done .c-steps__num {
  color: #fff;
  background: #75C8C2;
  border-color: #75C8C2;
}

/* ==========================================================================
   Component : Form
   ========================================================================== */
.c-form {
  padding: 50px 60px 60px;
  background: #fff;
  border-radius: 6px;
}

.c-form__lead {
  margin-bottom: 30px;
  font-size: 14px;
  line-height: 24px;
  text-align: center;
}

.c-form__lead .c-form__tag {
  margin: 0 4px 0 0;
}

/* 別の窓口への案内（/contact/ の「歯科医院の方は…」。フォームの上に目立つ形で置く） */
.c-form-guide {
  margin-bottom: 30px;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
  background: #fff;
  border: 2px solid #2864B4;
  border-radius: 6px;
}

.c-form__body {
  border-top: 1px solid #E0E0E0;
}

/* ---------- 1項目 ---------- */
.c-form__row {
  display: flex;
  padding: 20px 0;
  border-bottom: 1px solid #E0E0E0;
}

/* チェックボックスのまとまり（fieldset）は legend を左に float し、入力側を余白で並べる */
.c-form__row--fieldset {
  display: flow-root;
  min-width: 0;
  margin: 0;
  border-width: 0 0 1px;
  border-style: solid;
  border-color: #E0E0E0;
}

.c-form__label {
  display: flex;
  flex: 0 0 260px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 30px 0 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.c-form__row--fieldset .c-form__label {
  float: left;
  width: 260px;
}

.c-form__row--fieldset .c-form__field {
  margin-left: 260px;
}

.c-form__field {
  flex: 1;
  min-width: 0;
}

/* 「（確認用）」などの補足は2行目に */
.c-form__label-sub {
  display: block;
}

/* 必須・任意 */
.c-form__tag {
  flex-shrink: 0;
  display: inline-block;
  margin-top: 2px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  color: #fff;
  background: #BCC7CB;
  border-radius: 4px;
}

.c-form__tag--required {
  background: #2864B4;
}

/* ---------- 入力欄 ---------- */
.c-form__input,
.c-form__select,
.c-form__textarea {
  width: 100%;
  font-size: 16px;
  color: #17375B;
  background: #fff;
  border: 1px solid #BCC7CB;
  border-radius: 4px;
  transition: border-color .2s, box-shadow .2s;
}

.c-form__input,
.c-form__select {
  height: 48px;
  padding: 0 15px;
}

.c-form__select {
  max-width: 360px;
  padding-right: 40px;
  cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232864B4' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 15px center / 12px 8px;
}

.c-form__textarea {
  display: block;
  min-height: 180px;
  padding: 12px 15px;
  line-height: 1.75;
  resize: vertical;
}

.c-form__input::placeholder,
.c-form__textarea::placeholder {
  color: #A9B6C4;
}

.c-form__input:focus,
.c-form__select:focus,
.c-form__textarea:focus {
  border-color: #2864B4;
  outline: none;
  box-shadow: 0 0 0 3px rgba(40, 100, 180, .15);
}

/* ---------- チェックボックス・ラジオ ---------- */
.c-form__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-top: 12px;
}

.c-form__check {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  line-height: 24px;
  cursor: pointer;
}

.c-form__check-input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 0 8px 0 0;
  accent-color: #2864B4;
  cursor: pointer;
  appearance: auto;
}

/* ---------- 補足・エラー ---------- */
.c-form__note {
  margin-top: 6px;
  font-size: 13px;
  line-height: 20px;
  color: #6282A5;
  text-align: left;
}

.c-form__error {
  margin-top: 6px;
  font-size: 13px;
  line-height: 20px;
  color: #D0342C;
  text-align: left;
}

.c-form__error:empty {
  display: none;
}

.c-form__input.is-error,
.c-form__select.is-error,
.c-form__textarea.is-error {
  background-color: #FFF6F5;
  border-color: #D0342C;
}

/* ---------- 同意 ---------- */
.c-form__agree {
  margin-top: 30px;
  text-align: center;
}

.c-form__agree .c-form__error {
  text-align: center;
}

.c-form__link {
  color: #2864B4;
  text-decoration: underline;
}

/* スパム対策の隠し欄（画面外に配置） */
.c-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- ボタン ---------- */
.c-form__btns {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
}

.c-form__btn {
  width: 280px;
  font-family: inherit;
}

.c-form__btn:disabled {
  cursor: wait;
  opacity: .6;
}

@media (hover: hover) {
  button.c-btn {
    transition: opacity .3s;
  }
  button.c-btn:hover {
    opacity: .7;
  }
}

/* ---------- 確認画面 ---------- */
.c-form__confirm {
  border-top: 1px solid #E0E0E0;
}

.c-form__confirm-row {
  display: flex;
  padding: 18px 0;
  border-bottom: 1px solid #E0E0E0;
}

.c-form__confirm-label {
  flex: 0 0 260px;
  padding-right: 30px;
  font-size: 16px;
  font-weight: 700;
  line-height: 28px;
}

.c-form__confirm-value {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  line-height: 28px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.c-form__confirm-value.is-empty {
  color: #A9B6C4;
}

/* 自動送信の確認（Turnstile）のウィジェット。送信ボタンと同じく中央に置く
   （既定では左端に寄る。2026-10-18 本番で確認） */
.c-form__turnstile {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.c-form__send-error {
  margin-top: 30px;
  padding: 12px 15px;
  font-size: 14px;
  line-height: 24px;
  color: #D0342C;
  text-align: center;
  background: #FFF6F5;
  border: 1px solid #D0342C;
  border-radius: 4px;
}

/* ---------- 完了画面 ---------- */
.c-form__done {
  padding: 60px 60px 60px;
  text-align: center;
  background: #fff;
  border-radius: 6px;
}

.c-form__done-title {
  margin-bottom: 20px;
  text-wrap: balance;
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
  color: #2864B4;
  text-align: center;
}

.c-form__done-text {
  font-size: 16px;
  line-height: 30px;
  text-align: center;
  text-wrap: balance; /* 末尾の1〜2文字だけが次の行に残らないように */
}

/* ==========================================================================
   Page : 法務ページ（プライバシーポリシー・利用規約）
   ========================================================================== */
.p-legal {
  color: #17375B;
}

.p-legal__body {
  padding: 50px 60px 60px;
  background: #fff;
  border-radius: 6px;
}

/* 冒頭のリード文 */
.p-legal__lead {
  margin-bottom: 40px;
  font-size: 16px;
  line-height: 30px;
}

/* 目次 */
.p-legal__toc {
  margin-bottom: 50px;
  padding: 25px 30px;
  background: #F5F8FC;
  border-radius: 4px;
}

.p-legal__toc-title {
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.p-legal__toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 30px;
}

.p-legal__toc-item {
  font-size: 14px;
  line-height: 24px;
}

.p-legal__toc-link {
  color: #2864B4;
  text-decoration: underline;
}

/* 見出し */
.p-legal__title {
  margin-top: 50px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 34px;
  border-bottom: 2px solid #2864B4;
}

.p-legal__title:first-child {
  margin-top: 0;
}

.p-legal__subtitle {
  margin-top: 32px;
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 700;
  line-height: 30px;
  color: #2864B4;
}

/* 本文 */
.p-legal__text {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 30px;
}

.p-legal__text:last-child {
  margin-bottom: 0;
}

.p-legal__link {
  color: #2864B4;
  text-decoration: underline;
}

/* リスト */
.p-legal__list,
.p-legal__olist {
  margin-bottom: 20px;
  padding-left: 1.6em;
}

.p-legal__list {
  list-style: disc;
}

.p-legal__olist {
  list-style: decimal;
}

.p-legal__item,
.p-legal__oitem {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 30px;
}

.p-legal__item:last-child,
.p-legal__oitem:last-child {
  margin-bottom: 0;
}

/* 表 */
.p-legal__table-wrap {
  margin-bottom: 24px;
  overflow-x: auto;
}

.p-legal__table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #E0E0E0;
}

.p-legal__th {
  padding: 12px 15px;
  font-size: 15px;
  font-weight: 700;
  line-height: 26px;
  text-align: left;
  vertical-align: top;
  background: #F5F8FC;
  border: 1px solid #E0E0E0;
}

.p-legal__td {
  padding: 12px 15px;
  font-size: 15px;
  line-height: 26px;
  text-align: left;
  vertical-align: top;
  border: 1px solid #E0E0E0;
}

/* 項目名の列は折り返さない（幅は内容に合わせて自動で決まる） */
.p-legal__th:first-child,
.p-legal__td:first-child {
  white-space: nowrap;
}

/* 補足・注意書き */
.p-legal__note {
  margin-bottom: 24px;
  padding: 18px 22px;
  background: #F5F8FC;
  border-left: 4px solid #2864B4;
  border-radius: 0 4px 4px 0;
}

.p-legal__note-text {
  font-size: 15px;
  line-height: 28px;
}

.p-legal__note-text + .p-legal__note-text {
  margin-top: 10px;
}

/* 住所・連絡先 */
.p-legal__address {
  margin-bottom: 20px;
  padding: 18px 22px;
  font-size: 16px;
  font-style: normal;
  line-height: 30px;
  background: #F5F8FC;
  border-radius: 4px;
}

/* 制定日・バージョン */
.p-legal__meta {
  margin-top: 50px;
  padding-top: 24px;
  font-size: 14px;
  line-height: 26px;
  color: #6282A5;
  text-align: right;
  border-top: 1px solid #E0E0E0;
}

/* 索引ページのカード（/terms/） */
.p-legal__cards {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.p-legal__card {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  padding: 35px 35px 30px;
  background: #fff;
  border: 1px solid #BCC7CB;
  border-radius: 6px;
}

.p-legal__card-title {
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 700;
  line-height: 32px;
  color: #2864B4;
}

.p-legal__card-text {
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 28px;
}

.p-legal__card-btn {
  margin-top: auto;
}

/* ==========================================================================
   SP : 767px 以下
   ========================================================================== */
@media (max-width: 767px) {

  .c-steps {
    gap: 28px;
    margin-bottom: 25px;
  }

  .c-steps__item {
    font-size: 13px;
  }

  .c-steps__item + .c-steps__item::before {
    right: calc(100% + 6px);
    width: 16px;
  }

  .c-steps__num {
    width: 26px;
    height: 26px;
    margin-right: 6px;
    font-size: 13px;
  }

  .c-form {
    padding: 25px 20px 30px;
  }

  .c-form__lead {
    margin-bottom: 20px;
    font-size: 13px;
    text-align: left;
  }

  .c-form__row,
  .c-form__confirm-row {
    display: block;
    padding: 16px 0;
  }

  .c-form__label {
    justify-content: flex-start;
    margin-bottom: 8px;
    padding: 0;
    font-size: 15px;
  }

  /* legend は float のまま全幅にする（float を外すと枠線の上に重なるため） */
  .c-form__row--fieldset .c-form__label {
    width: 100%;
  }

  .c-form__label-sub {
    display: inline;
  }

  .c-form__label .c-form__tag {
    margin-top: 2px;
  }

  .c-form__row--fieldset .c-form__field {
    clear: both;
    margin-left: 0;
  }

  .c-form__select {
    max-width: none;
  }

  .c-form__checks {
    gap: 10px 20px;
    padding-top: 0;
  }

  .c-form__check {
    font-size: 15px;
  }

  .c-form__agree {
    margin-top: 25px;
  }

  .c-form__btns {
    flex-direction: column-reverse;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
  }

  .c-form__btn {
    width: 100%;
    max-width: 335px;
  }

  .c-form__confirm-label {
    margin-bottom: 4px;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
  }

  .c-form__confirm-value {
    font-size: 15px;
    line-height: 1.7;
  }

  .c-form__done {
    padding: 35px 20px;
  }

  .c-form__done-title {
    font-size: 19px;
    line-height: 1.6;
  }

  .c-form__done-text {
    font-size: 14px;
    line-height: 1.9;
    text-align: left;
    text-wrap: wrap;
  }


  /* ---------- 法務ページ ---------- */
  .p-legal__body {
    padding: 25px 20px 30px;
  }

  .p-legal__lead {
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.9;
  }

  .p-legal__toc {
    margin-bottom: 30px;
    padding: 18px 20px;
  }

  .p-legal__toc-title {
    font-size: 15px;
  }

  .p-legal__toc-list {
    display: block;
  }

  .p-legal__toc-item {
    margin-bottom: 6px;
    font-size: 13px;
  }

  .p-legal__title {
    margin-top: 35px;
    font-size: 18px;
    line-height: 1.6;
  }

  .p-legal__subtitle {
    margin-top: 25px;
    font-size: 16px;
    line-height: 1.6;
  }

  .p-legal__text,
  .p-legal__item,
  .p-legal__oitem {
    font-size: 14px;
    line-height: 1.9;
  }

  .p-legal__th,
  .p-legal__td {
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.8;
  }

  .p-legal__table {
    min-width: 500px;
  }

  .p-legal__th:first-child,
  .p-legal__td:first-child {
    white-space: normal;
  }

  .p-legal__note {
    padding: 14px 16px;
  }

  .p-legal__note-text {
    font-size: 13px;
    line-height: 1.9;
  }

  .p-legal__address {
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.9;
  }

  .p-legal__meta {
    margin-top: 35px;
    font-size: 13px;
  }

  .p-legal__cards {
    display: block;
    margin-bottom: 25px;
  }

  .p-legal__card {
    margin-bottom: 20px;
    padding: 25px 20px;
  }

  .p-legal__card:last-child {
    margin-bottom: 0;
  }

  .p-legal__card-title {
    font-size: 17px;
    line-height: 1.6;
  }

  .p-legal__card-text {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.9;
  }
}
