/* ==========================================================================
   page_flow.css - 初めての方へ/診察・施術の流れ ページ固有スタイル
   全クラスに .p-flow プレフィックスで衝突回避
   ========================================================================== */

/* --------------------------------------------------------------------------
   ヒーローセクション（背景画像＋タイトル）
   -------------------------------------------------------------------------- */
.p-flow_hero {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  background: #f8f8f8 url('/img/pages/flow/hero_bg.jpg') center center / cover no-repeat;
}

.p-flow_hero_inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-flow_hero_heading {
  background: rgba(255, 255, 255, 0.9);
  padding: 28px 30px;
  text-align: center;
  width: 536px;
  max-width: 90%;
}

.p-flow_hero_title {
  font-family: "Hiragino Mincho ProN", "HG明朝E", serif;
  font-size: 30px;
  font-weight: normal;
  color: #333;
  letter-spacing: 1.5px;
  line-height: 1.4;
  margin: 0;
}

/* --------------------------------------------------------------------------
   タイトルバー＋イントロコンテンツ
   -------------------------------------------------------------------------- */
.p-flow_titlebar {
  background: #f8f8f8;
  padding: 0 0 60px;
  overflow: hidden;
}

.p-flow_titlebar_bg {
  position: relative;
  padding: 60px 0;
  text-align: center;
}

.p-flow_titlebar_bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: #fff;
}

.p-flow_titlebar_box {
  position: relative;
  z-index: 1;
  display: inline-block;
  background: #fff;
  border-top: 3px solid #c6b7a7;
  border-bottom: 3px solid #c6b7a7;
  padding: 30px 40px;
  min-width: 616px;
}

.p-flow_titlebar_text {
  font-family: "Hiragino Mincho ProN", "HG明朝E", serif;
  font-size: 30px;
  font-weight: normal;
  color: #6c5c49;
  letter-spacing: 0.8px;
  line-height: 1.1;
  margin: 0;
}

/* --------------------------------------------------------------------------
   イントロ（テキスト左 + 写真右）
   -------------------------------------------------------------------------- */
.p-flow_intro {
  display: flex;
  gap: 37px;
  align-items: flex-start;
  margin-top: 10px;
}

.p-flow_intro_text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 276px;
}

.p-flow_intro_text p {
  font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  margin: 0 0 30px;
}

.p-flow_intro_photo {
  flex-shrink: 0;
  width: 441px;
}

.p-flow_intro_photo img {
  width: 100%;
  height: 276px;
  object-fit: cover;
  border: 1px solid #c6b7a7;
  display: block;
}

/* --------------------------------------------------------------------------
   イントロ ＆ STEP1 ボタン（pill型 + 右矢印）
   -------------------------------------------------------------------------- */
.p-flow_intro_btn,
.p-flow_step_btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 535px;
  height: 80px;
  border: 1px solid #c6b7a7;
  border-radius: 40px;
  background: #fff;
  text-decoration: none;
  transition: background 0.3s;
  padding: 0 30px;
}

.p-flow_intro_btn:hover,
.p-flow_step_btn:hover {
  background: #f7f4f0;
}

.p-flow_intro_btn_text,
.p-flow_step_btn_text {
  font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", sans-serif;
  font-size: 16px;
  color: #333;
}

.p-flow_intro_btn_arrow,
.p-flow_step_btn_arrow {
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid #9f8f78;
  border-right: 2px solid #9f8f78;
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   共通：セクション見出し（border-bottom 付き）
   -------------------------------------------------------------------------- */
.p-flow_heading {
  font-family: "Hiragino Mincho ProN", "HG明朝E", serif;
  font-size: 30px;
  font-weight: normal;
  color: #333;
  letter-spacing: 1.5px;
  line-height: 1.2;
  border-bottom: 1px solid #81725d;
  padding-bottom: 14px;
  margin-bottom: 40px;
}

/* --------------------------------------------------------------------------
   診察・施術の流れ ステップ
   -------------------------------------------------------------------------- */
.p-flow_steps {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.p-flow_step_head {
  background: #f7f4f0;
  height: 62px;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.p-flow_step_head span {
  font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W6", sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.9px;
  color: #333;
}

.p-flow_step_body {
  display: flex;
  gap: 37px;
  margin-top: 30px;
}

.p-flow_step_text {
  flex: 1;
}

.p-flow_step_text--with-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 276px;
}

.p-flow_step_text p {
  font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  margin: 0 0 16px;
}

.p-flow_step_text p:last-child {
  margin-bottom: 0;
}

.p-flow_step_photo {
  flex-shrink: 0;
  width: 441px;
}

.p-flow_step_photo img {
  width: 100%;
  height: 276px;
  object-fit: cover;
  border: 1px solid #c6b7a7;
  display: block;
}

/* --------------------------------------------------------------------------
   ポイントボックス（STEP3）
   -------------------------------------------------------------------------- */
.p-flow_step_point {
  border: 1px solid #c6b7a7;
  padding: 22px 20px;
  margin-top: 16px;
}

.p-flow_step_point_head {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.p-flow_step_point_icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url('/img/pages/flow/point_icon.svg') no-repeat center / contain;
}

.p-flow_step_point_label {
  font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W6", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

.p-flow_step_point p {
  font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  margin: 0;
}

/* --------------------------------------------------------------------------
   症例スタディ（STEP5）
   -------------------------------------------------------------------------- */
.p-flow_step_case {
  flex-shrink: 0;
  width: 441px;
  background: #f7f4f0;
}

.p-flow_step_case_title {
  background: #6c5c49;
  color: #fff;
  text-align: center;
  font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W6", sans-serif;
  font-size: 14px;
  font-weight: 600;
  height: 30px;
  line-height: 30px;
}

.p-flow_step_case_photos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 45px 51px 0;
}

.p-flow_step_case_item {
  text-align: center;
  position: relative;
}

.p-flow_step_case_item img {
  width: 142px;
  height: 169px;
  object-fit: cover;
  display: block;
}

.p-flow_step_case_item span {
  display: block;
  font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W6", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-top: -25px;
  position: relative;
  z-index: 1;
}

.p-flow_step_case_arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
}

.p-flow_step_case_arrow img {
  width: 22px;
  height: 20px;
  transform: rotate(90deg);
  display: block;
}

.p-flow_step_case_desc {
  text-align: center;
  font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  padding: 10px 20px 20px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   受診前にご確認事項 チェックリスト
   -------------------------------------------------------------------------- */
.p-flow_checklist {
  display: flex;
  flex-direction: column;
}

.p-flow_checklist_item {
  display: flex;
  gap: 111px;
  align-items: center;
  padding: 0 0 35px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 35px;
}

.p-flow_checklist_item:last-child {
  margin-bottom: 0;
}

.p-flow_checklist_label {
  font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W6", sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #000;
  width: 180px;
  flex-shrink: 0;
  margin: 0;
}

.p-flow_checklist_desc {
  flex: 1;
  font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: #333;
}

.p-flow_checklist_desc p {
  margin: 0 0 0;
}

.p-flow_checklist_bold {
  font-weight: 600;
}

.p-flow_checklist_link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #6c5c49;
  color: #fff;
  border-radius: 8px;
  padding: 10px 13px;
  text-decoration: none;
  font-size: 14px;
  margin-top: 20px;
  transition: opacity 0.3s;
}

.p-flow_checklist_link:hover {
  opacity: 0.8;
}

.p-flow_checklist_link_icon {
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.p-flow_checklist_actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.p-flow_checklist_actions .p-flow_checklist_link {
  margin-top: 0;
}

.p-flow_checklist_phone {
  display: flex;
  flex-direction: column;
}

.p-flow_checklist_phone_number {
  font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W6", sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #333;
  margin: 0;
}

.p-flow_checklist_phone_hours {
  font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", sans-serif;
  font-size: 14px;
  color: #333;
  margin: 0;
}

/* --------------------------------------------------------------------------
   レスポンシブ（991px以下）
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .p-flow_hero {
    height: 260px;
  }

  .p-flow_hero_title {
    font-size: 24px;
  }

  .p-flow_titlebar_box {
    min-width: 0;
    width: 90%;
    max-width: 616px;
  }

  .p-flow_titlebar_text {
    font-size: 24px;
  }

  .p-flow_heading {
    font-size: 24px;
  }

  /* イントロ縦並び */
  .p-flow_intro {
    flex-direction: column;
  }

  .p-flow_intro_photo {
    width: 100%;
  }

  .p-flow_intro_photo img {
    height: 240px;
  }

  .p-flow_intro_btn,
  .p-flow_step_btn {
    width: 100%;
    max-width: 535px;
  }

  /* ステップ縦並び */
  .p-flow_step_body {
    flex-direction: column;
  }

  .p-flow_step_text--with-btn {
    height: auto;
  }

  .p-flow_intro_text {
    height: auto;
  }

  .p-flow_step_photo {
    width: 100%;
  }

  .p-flow_step_photo img {
    height: 240px;
  }

  .p-flow_step_case {
    width: 100%;
  }

  /* チェックリスト縦並び */
  .p-flow_checklist_item {
    flex-direction: column;
    gap: 15px;
  }

  .p-flow_checklist_label {
    width: 100%;
  }

  .p-flow_checklist_actions {
    flex-direction: column;
    gap: 15px;
  }
}

/* --------------------------------------------------------------------------
   レスポンシブ（767px以下）
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .p-flow_hero {
    height: 200px;
  }

  .p-flow_hero_heading {
    padding: 20px 25px;
  }

  .p-flow_hero_title {
    font-size: 20px;
  }

  .p-flow_titlebar {
    padding: 0 0 40px;
  }

  .p-flow_titlebar_bg {
    padding: 30px 15px;
  }

  .p-flow_titlebar_box {
    padding: 20px;
  }

  .p-flow_titlebar_text {
    font-size: 20px;
  }

  .p-flow_heading {
    font-size: 20px;
  }

  .p-flow_intro_text p {
    font-size: 14px;
  }

  .p-flow_intro_photo img {
    height: 200px;
  }

  .p-flow_intro_btn,
  .p-flow_step_btn {
    height: 60px;
    padding: 0 20px;
  }

  .p-flow_intro_btn_text,
  .p-flow_step_btn_text {
    font-size: 14px;
  }

  .p-flow_steps {
    gap: 35px;
  }

  .p-flow_step_head {
    height: auto;
    padding: 12px 15px;
  }

  .p-flow_step_head span {
    font-size: 16px;
  }

  .p-flow_step_body {
    margin-top: 20px;
  }

  .p-flow_step_text p {
    font-size: 14px;
  }

  .p-flow_step_photo img {
    height: 200px;
  }

  .p-flow_step_point {
    padding: 15px;
  }

  .p-flow_step_case_photos {
    padding: 20px 20px 0;
  }

  .p-flow_step_case_item img {
    width: 120px;
    height: 142px;
  }

  .p-flow_checklist_item {
    gap: 10px;
    padding-bottom: 25px;
    margin-bottom: 25px;
  }

  .p-flow_checklist_label {
    font-size: 16px;
  }

  .p-flow_checklist_desc {
    font-size: 16px;
  }

  .p-flow_checklist_phone_number {
    font-size: 16px;
  }
}
