/*
Theme Name:TW_ofzo01の子テーマ
Theme URI:
Description:さまざまなテーマの子テーマを作るためのひながたです。
Author:Naoki Nishizawa
Author URI:http://www.nishi2002.com/
Template:ofzo01
Version:0.1.0
*/

/* 2026/10/17：===== お口の機能を育てるプログラム 見出しブロック ===== */
.cp-nurture {
  text-align: center !important;
  padding: 40px 20px;
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
}
.cp-nurture__icon {
  display: block;
  width: 180px;
  max-width: 50%;
  height: auto;
  margin: 0 auto 10px;
}
.cp-nurture__lead {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 6px !important;
  color: #8a6a4f;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.4;
}
.cp-nurture__lead::before,
.cp-nurture__lead::after {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffc56b;
}
.cp-nurture .cp-nurture__title {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  color: #f0873a !important;
  font-family: inherit !important;
  font-size: clamp(22px, 4vw, 30px) !important;
  font-weight: 500 !important;
  letter-spacing: .12em;
  line-height: 1.4;
  text-align: center !important;
}
.cp-nurture .cp-nurture__title::before,
.cp-nurture .cp-nurture__title::after {
  display: none !important;
}
.cp-nurture .cp-nurture__text {
  max-width: 760px;
  margin: 28px auto 0 !important;
  padding: 0 !important;
  color: #555;
  font-size: 15px;
  line-height: 2.2 !important;
  letter-spacing: .06em;
  text-align: center !important;
  text-indent: 0 !important;
}
.cp-nurture .cp-nurture__text p {
  margin: 0 !important;
}
.cp-nurture__badge-wrap {
  margin-top: 24px;
}
.cp-nurture__badge {
  display: inline-block;
  padding: 4px 22px;
  border-radius: 999px;
  background: #fff1dc;
  color: #c9741f;
  font-family: 'Quicksand', 'Zen Maru Gothic', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 1.6;
}
@media (max-width: 600px) {
  .cp-nurture { padding: 30px 16px; }
  .cp-nurture__icon { width: 150px; }
  .cp-nurture__lead { font-size: 15px; gap: 10px; }
  .cp-nurture__lead::before,
  .cp-nurture__lead::after { width: 10px; height: 10px; }
  .cp-nurture .cp-nurture__text { margin-top: 20px !important; font-size: 14px; line-height: 2 !important; }
  .cp-nurture__text .pc-br { display: none; }
  .cp-nurture__badge { font-size: 12px; padding: 3px 16px; }
}

/* 2026/10/17：===== お口の機能を育てるプログラム 三角配置ブロック ===== */
.cp-tri {
  position: relative;
  width: 680px;
  max-width: 100%;
  height: 570px;
  margin: 40px auto;
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
}
.cp-tri__line {
  position: absolute;
  top: 0;
  left: 0;
  width: 680px;
  height: 570px;
}

/* 円 */
.cp-tri__circle {
  position: absolute;
  width: 200px;
  height: 200px;
  box-sizing: border-box;
  border: 2.5px solid #6b5240;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
}
.cp-tri__circle--01 { left: 240px; top: 10px;  background: #fff1dc; }
.cp-tri__circle--02 { left: 430px; top: 350px; background: #eef7e8; }
.cp-tri__circle--03 { left: 50px;  top: 350px; background: #ffece6; }

.cp-tri__icon { width: 58px; height: 40px; margin-bottom: 2px; }
.cp-tri__no {
  font-family: 'Quicksand', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #c9741f;
  letter-spacing: .1em;
  line-height: 1.4;
}
.cp-tri__title {
  margin: 2px 0;
  font-size: 24px;
  font-weight: 500;
  color: #f0873a;
  letter-spacing: .12em;
  line-height: 1.4;
}
.cp-tri__sub {
  font-size: 12px;
  color: #8a6a4f;
  letter-spacing: .06em;
  line-height: 1.5;
}

/* 中央の説明 */
.cp-tri__mid {
  position: absolute;
  left: 245px;
  top: 232px;
  width: 190px;
  text-align: center;
  z-index: 1;
}
.cp-tri__label {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  background: #fff1dc;
  color: #c9741f;
  font-family: 'Quicksand', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.6;
}
.cp-tri .cp-tri__head {
  margin: 6px 0 10px !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  color: #8a6a4f !important;
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  letter-spacing: .06em;
  line-height: 1.5;
  text-align: center !important;
}
.cp-tri .cp-tri__head::before,
.cp-tri .cp-tri__head::after { display: none !important; }

.cp-tri .cp-tri__list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left;
}
.cp-tri .cp-tri__list li {
  position: relative;
  margin: 0 !important;
  padding: 0 0 0 16px !important;
  list-style: none !important;
  font-size: 12.5px;
  color: #555;
  line-height: 2.1;
  letter-spacing: .03em;
}
.cp-tri .cp-tri__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .8em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.cp-tri .cp-tri__list li:nth-child(3n+1)::before { background: #ffc56b; }
.cp-tri .cp-tri__list li:nth-child(3n+2)::before { background: #a8dc8a; }
.cp-tri .cp-tri__list li:nth-child(3n)::before   { background: #ffb7a8; }

/* タブレット・スマホ：縦並び */
@media (max-width: 719px) {
  .cp-tri {
    width: auto;
    height: auto;
    margin: 30px auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .cp-tri__line { display: none; }
  .cp-tri__circle,
  .cp-tri__mid {
    position: static;
  }
  .cp-tri__circle { width: 190px; height: 190px; }
  .cp-tri__mid {
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
    padding: 20px 24px;
    background: #fff8ec;
    border: 2px dashed #ffc56b;
    border-radius: 16px;
  }
  .cp-tri .cp-tri__list { display: inline-block; }
}

/* 2026/10/17：===== care-heading（おのだ歯科と同じ見出し） ===== */
.care-heading {
    text-align: center;
    margin: 0 auto 32px;
    padding: 0 16px;
}
.care-heading__title-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.care-heading .care-heading__title {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    font-size: 30px;
    font-weight: 700;
    color: #4a4a4a;
    line-height: 1.4;
    letter-spacing: 0.05em;
}
.care-heading .care-heading__title::before,
.care-heading .care-heading__title::after {
    display: none !important;
}
.care-heading__leaf {
    width: 50px;
    height: 66px;
    flex-shrink: 0;
}
.care-heading__leaf--right {
    transform: scaleX(-1);
}
.care-heading__lead {
    margin: 14px 0 0;
    font-size: 16px;
    color: #555;
    line-height: 1.9;
}

/* ===== feature-box（おのだ歯科と同じボックス） ===== */
.feature-box {
    position: relative;
    border: 2px solid #2A9D8F;
    border-radius: 16px;
    max-width: 900px;
    margin: 40px auto 20px;
    padding: 40px 30px 25px;
}
.feature-box__title {
    position: absolute;
    top: -28px;
    left: 20px;
    display: flex;
    align-items: center;
    background-color: #2A9D8F;
    color: #fff;
    border-radius: 30px;
    padding: 6px 24px 6px 6px;
    font-size: 18px;
    font-weight: bold;
}
.feature-box__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background-color: #fff;
    color: #2A9D8F;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
    box-sizing: border-box;
    line-height: 1;
}
.feature-box__text-title {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.feature-box__text {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    margin: 0;
}

/* ===== フローチャート用の追加分 ===== */
.flow {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 16px;
}
.flow .feature-box {
    margin: 44px auto 0;
}

/* STEP3（装置を使う方のみ）はコーラルで区別 */
.feature-box--opt {
    border-color: #E76F51;
}
.feature-box--opt .feature-box__title {
    background-color: #E76F51;
}
.feature-box--opt .feature-box__number {
    color: #E76F51;
}
.flow__tag {
    display: inline-block;
    margin-bottom: 8px;
    padding: 2px 14px;
    border-radius: 999px;
    background: #fdece7;
    color: #b8452a;
    font-size: 13px;
    line-height: 1.6;
}

/* 下向き矢印 */
.flow__arrow {
    width: 0;
    height: 0;
    margin: 22px auto 0;
    border-left: 34px solid transparent;
    border-right: 34px solid transparent;
    border-top: 20px solid #a9dcd5;
}
.flow__arrow--opt {
    border-top-color: #f5b8a8;
}

/* STEP2 → STEP3 / STEP4 の分岐 */
.flow__branch {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 24px;
}
.flow__skip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-top: 22px;
}
.flow__skip .flow__arrow {
    margin: 0;
}
.flow__skip-label {
    writing-mode: vertical-rl;
    padding: 12px 5px;
    border-radius: 20px;
    background: #eaf6f4;
    color: #1f7a6f;
    font-size: 13px;
    letter-spacing: .2em;
}

/* スマホ */
@media (max-width: 767px) {
    .care-heading .care-heading__title { font-size: 20px; }
    .care-heading__leaf { width: 30px; height: 40px; }
    .care-heading__title-wrap { gap: 8px; }
    .care-heading__lead { font-size: 14px; text-align: left; }

    .flow .feature-box { padding: 40px 18px 20px; }
    .flow .feature-box__title {
        left: 12px;
        max-width: calc(100% - 24px);
        font-size: 15px;
        padding-right: 16px;
    }
    .flow .feature-box__text-title { line-height: 1.3; }
    .flow .feature-box__text { font-size: 14px; }

    .flow__branch {
        grid-template-columns: minmax(0, 1fr) 52px;
        gap: 10px;
    }
    .flow__arrow {
        border-left-width: 24px;
        border-right-width: 24px;
        border-top-width: 14px;
    }
    .flow__skip .flow__arrow {
        border-left-width: 16px;
        border-right-width: 16px;
        border-top-width: 10px;
    }
    .flow__skip-label { font-size: 11px; padding: 10px 3px; }
}

/* ===== 右下固定ロゴ ===== */
.amari-fixed-logo {
  position: fixed;
  right: 20px;
  bottom: 90px; /* ページトップボタンと重ならないよう上にずらす */
  z-index: 9999;
  width: 180px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  line-height: 0;
  transition: opacity .2s;
}
.amari-fixed-logo:hover {
  opacity: .85;
}
.amari-fixed-logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* スマホ */
@media (max-width: 767px) {
  .amari-fixed-logo {
    width: 120px;
    right: 10px;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    padding: 6px 8px;
  }
}