/* 図の下※の部分 */
div .appearance .attention_list {
  counter-reset: number;
}
.appearance.attention_list li {
  counter-increment: number;
  padding-left: 28px;
}

.appearance.attention_list li::before {
  content: "※" counter(number);
}

@media only screen and (min-width: 981px) {
  .appearance.attention_list li {
    padding-left: 32px;
  }
}

/* ページ内一覧に戻るボタン */
.back_list_link img {
  width: 58px;
  height: auto;
  margin: 0;
}

.back_list {
  width: 100%;
  height: 35px;
  margin: 32px auto 0;
  text-align: center;
}

.back_list .back_list_link {
  position: relative;
  display: inline-block;
  align-items: center;
  width: auto;
  height: inherit;
  transition: 0.3s;
  text-decoration: none;
  color: var(--txt-color);
  margin: 0 auto;
}
.back_list .back_list_link > img {
  position: absolute;
  top: 0px;
  left: calc(50% - 58px * 0.5);
}
.back_list .back_list_link:hover > img {
  top: -8px;
}

.back_list_link span {
  display: block;
  margin-top: 15px;
  font-size: 10px;
  font-size: 1rem;
}

@media only screen and (min-width: 981px) {
  .back_list {
    margin: 50px auto 0;
  }
}

/* ---------------------------------------- */

/* 文章途中等固有箇所 */
/* 文章内 太字箇所 */

p > span.em,
em.em {
  font-weight: var(--noto-bold);
}

/* ※の部分 */
.supplement {
  font-weight: var(--noto-regular);
  color: var(--txt-color-second);
  font-size: 10px;
  padding-left: 20px;
  position: relative;
  margin: 0;
}

.section_contents .supplement {
  margin: 16px 0 0 0;
}

.supplement::before {
  content: "※";
  position: absolute;
  left: 0;
}

/* ---------------------------------------- */

/* コンテンツリスト */

h3.menu_title {
  font-weight: var(--noto-mid);
}

.link_list {
  position: relative;
  display: inline-block;
  list-style-type: none;
}

.link_list a {
  text-decoration: none;
  font-weight: var(--noto-bold);
  color: var(--c-chocolate-brown);
}
.link_list a:hover {
  text-decoration: underline;
}
.link_list li {
  margin-bottom: 8px;
}
.link_list li:last-child {
  margin-bottom: 0;
}

.icon_with_text {
  display: inline-block;
  position: relative;
}

.icon_with_text::after {
  content: "";
  background-image: url("../img/icon_arrow-down.svg");
  background-size: 16px 16px;
  width: 16px;
  height: 16px;
  display: inline-block;
  position: absolute;
  bottom: 6px;
  margin-left: 8px;
}

@media only screen and (min-width: 981px) {
  div.contents_header {
    width: 176px;
    padding-right: 50px;
  }

  h3.menu_title {
    width: 126px;
  }

  .link_list li {
    margin-bottom: 4px;
  }
  .link_list li :last-child {
    margin-bottom: 0;
  }

  .icon_with_text::after {
    background-size: 18px 18px;
    width: 18px;
    height: 18px;
  }
}

/* ---------------------------------------- */

/* ライフステージ一覧　ボタン箇所 ベース */
ul.list_button .button {
  padding: 16px;
}

ul.list_button {
  display: grid;
  gap: 8px;
  margin-top: 32px;
}
ul.list_button li {
  display: grid;
  margin: 0;
}

.button.border span {
  position: relative;
  padding-left: 65px;
  display: grid;
  align-items: center;
  line-height: 1.5;
  text-align: left;
}

.icon_d_arrow::after {
  position: absolute;
  top: calc(50% - 12px);
  right: 0;
  content: "";
  display: block;
  background-image: url(../img/icon_arrow-down.svg);
  background-repeat: no-repeat;
  background-position: center;
  width: 24px;
  height: 24px;
  margin-left: 8px;
}

@media only screen and (min-width: 981px) {
  ul.list_button {
    display: flex;
    justify-content: space-between;
    gap: 24px;
  }
  ul.list_button li {
    display: grid;
    margin: 0;
    width: 100%;
  }

  .button.border span {
    position: relative;
    padding-left: 88px;
    display: grid;
    align-items: center;
    line-height: 1.5;
    text-align: left;
  }
}

/* ---------------------------------------- */
/* タイトル横ベージュアイコン */

.title_with_icon {
  display: flex;
  align-items: center;
}

.title_with_icon img {
  margin-right: 10px;
  width: 80px;
  height: 90px;
}

@media only screen and (min-width: 981px) {
  .title_with_icon img {
    margin-right: 30px;
    width: 100px;
    height: 112px;
  }
}

/* ---------------------------------------- */

/* カラダケア用語集 */
.contents_top {
  padding-bottom: 32px;
}

/* 仕切りコンテンツ内のh4 */
.contents_top h4,
.contents_border h4 {
  font-size: 16px;
  font-size: 1.6rem;
  font-weight: var(--noto-mid);
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 16px;
}
/* 背景付きコンテンツで下に仕切りがつくパーツ */
.contents_border {
  padding: 32px 0;
  border-top: 1px solid var(--border-color);
}

.contents_border:last-child {
  padding-bottom: 0;
}

.contents_box_last {
  padding-bottom: 0;
}
@media only screen and (min-width: 981px) {
  .contents_top h4,
  .contents_border h4 {
    font-size: 22px;
    font-size: 2.2rem;
  }
  .contents_top {
    padding-bottom: 50px;
  }
  .contents_border {
    padding: 50px 0;
  }

  .contents_box.last {
    padding-bottom: 0;
  }
}

/* ---------------------------------------- */

/* ディナゲスト錠0.5mgについて */
.qa_list .supplement {
  padding-top: 16px;
}
.appearance.caution_list {
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
}
.appearance.caution_list > * {
  margin: 32px 0;
}
.appearance.caution_list > *:first-child {
  margin-top: 0;
}
.appearance.caution_list > *:last-child {
  margin-bottom: 0;
}
.appearance.caution_list > * .title {
  font-size: 16px;
  font-size: 1.6rem;
  font-weight: var(--noto-mid);
  line-height: 1.5;
  min-height: 42px;
  margin: 0 0 16px 0;
  color: var(--c-red);
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.appearance.caution_list > * .title::before {
  display: block;
  content: "";
  width: 42px;
  height: 42px;

  background-image: url("../img/icon_caution.svg");
  background-position: center;
  background-size: contain;
}
.appearance.caution_list > * .title .title_txt {
  display: block;
  width: calc(100% - 58px);
}
.appearance.caution_list > * > p {
  margin: 0;
}
.appearance.caution_list > * > ul {
  margin-top: 16px;
  font-weight: var(--noto-bold);
}

@media only screen and (min-width: 981px) {
  .appearance.caution_list > * .title {
    font-size: 20px;
    font-size: 2rem;
  }
  .appearance.caution_list > * > ul {
    margin-top: 32px;
  }
  .appearance.caution_list > * {
    margin: 50px 0;
  }
}

/* ---------------------------------------- */

/* アコーディオンのカード一式 */

.accordion_card {
  outline: solid 1px var(--border-color);
  border-radius: 32px;
  padding: 24px 16px calc(32px - 18px);
}
.accordion_card .layout > *,
.layout.one_half > *,
.layout.two_column > * {
  width: auto;
}

/* 医者イラスト見出し */
.accordion-docter_title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.accordion_title {
  font-family: "Shippori Mincho", serif;
  font-weight: var(--shippori-mid);
  color: var(--txt-color);
  text-align: left;
  margin: 0;
  letter-spacing: 0.2rem;
}
.accordion_title .main_txt {
  display: block;
  line-height: 1.5;
  font-size: 18px;
  font-size: 1.8rem;
}

/* アコーディオンコンテンツ */
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 18px 0;
  color: var(--txt-color);
  font-size: 16px;
  font-size: 1.6rem;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-align: left;
}

.accordion-section {
  margin-bottom: calc(32px - 18px);
}

.accordion-content > * {
  margin: 18px 0 0;
}

.section_contents.contents_top > p {
  margin: 0;
}

.contents_wrapper figure.img_box.appearance {
  margin: 0;
}

@media only screen and (min-width: 981px) {
  .accordion-section {
    margin-bottom: calc(50px - 24px);
  }
}

/* アコーディオン展開 */
.accordion-section .accordion-header {
  cursor: pointer;
  width: 100%;
  border: solid 1px var(--c-white);
  background-color: var(--c-white);
  transition: all 0.5s ease;
}
.accordion-section .border {
  border-bottom: solid 1px var(--border-color);
  transition: all 0.5s ease;
}
.accordion-section .accordion-content {
  display: none;
  overflow: hidden;
}

/* アコーディオンPC */
@media only screen and (min-width: 981px) {
  .accordion_card {
    padding: 60px 80px calc(60px - 26px);
  }
  .accordion_card .layout {
    justify-content: left;
  }
  .accordion-docter_title {
    flex-direction: row;
    margin-bottom: 50px;
  }

  .accordion-content > * {
    margin: 24px 0 0;
  }
  .accordion_title .main_txt {
    font-size: 22px;
    font-size: 2.2rem;
  }
  .accordion-header {
    padding: 0 0 24px 0;
    font-size: 22px;
    font-size: 2.2rem;
  }
}
/* ---------------------------------------- */

/* トグルボタンの動き */
.btn_plus {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
  -webkit-filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.1));
  -moz-filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.1));
  -ms-filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.1));
  filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.1));
}
.btn_plus.rotate {
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}
/* ---------------------------------------- */

/* 定義リストを使う場合の基本スタイル */
dl.appearance div {
  margin-bottom: 4px;
}
.appearance dt {
  font-weight: var(--noto-bold);
}
.appearance dd {
  margin-left: 0;
  color: var(--txt-color-second);
}

/* 定義リストに番号がついている場合 */
.appearance.num_list div {
  position: relative;
}

.appearance.num_list dt {
  padding-left: 16px;
}

.appearance.num_list dt::before {
  content: "①";
  position: absolute;
  top: 0;
  left: 0;
}

.appearance.num_list div:nth-child(2) dt::before {
  content: "②";
  position: absolute;
  top: 0;
  left: 0;
}

.appearance.num_list div:nth-child(3) dt::before {
  content: "③";
  position: absolute;
  top: 0;
  left: 0;
}

.appearance.num_list div:nth-child(4) dt::before {
  content: "④";
  position: absolute;
  top: 0;
  left: 0;
}

/* ---------------------------------------- */

/* pc　白背景内の制御 */

.section_bgw .img_box {
  margin: 32px auto;
}

.section_bgw .img_box:last-child {
  margin: 32px auto 0;
}

.appearance.round_box .img_box {
  margin: 18px auto 0;
}
.appearance.round_box .img_box:first-child {
  margin-top: 0;
}

.appearance.img_box .img_title {
  font-size: 14px;
  font-size: 1.4rem;
  font-weight: var(--noto-bold);
  text-align: center;
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 20px;
}

@media only screen and (min-width: 981px) {
  .section_bgw .img_box {
    width: 70%;
    margin: 32px auto 0;
  }

  .section_bgw .wrapper .wrapper {
    max-width: 960px;
  }

  .round_box figure.img_box {
    margin: 50px auto 0;
  }
  .appearance.round_box .img_box {
    margin-top: 50px;
  }
  .section_bgw .img_box.img_large {
    width: 100%;
    margin-top: 50px;
  }
}

/* 白背景内の画像が2clomunになる場合の制御 */

figure.two_column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
figure.two_column figcaption {
  display: inherit;
}

@media only screen and (min-width: 981px) {
  figure.two_column {
    flex-direction: unset;
  }
  figure.two_column.wide_img {
    flex-direction: column;
    gap: 28px;
  }
  figure.two_column img {
    display: block;
  }

  figure.two_column.wide_img > div {
    width: 70%;
    margin: 0 auto;
  }
  #effect figure.two_column.wide_img > div {
    width: 100%;
  }
}

@media only screen and (min-width: 981px) {
  figure.img_box.appearance.two_column,
  figure.img_box.appearance.wide_img {
    width: 100%;
  }
}

/* 白背景内の画像が2clomunになる＋captionがついている場合*/
div.appearance.round_box.two_column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

div.appearance.round_box.two_column .img_box {
  margin: 0;
}

@media only screen and (min-width: 981px) {
  div.appearance.round_box.two_column {
    flex-direction: unset;
    gap: 28px;
  }
}

/* 白背景内にvideoと説明がある場合の制御 */
.video_info {
  margin-top: 32px;
}

.video_info dt {
  margin-bottom: 8px;
  font-weight: var(--noto-bold);
}

.video_info dd {
  display: flex;
  color: var(--txt-color-second);
}

.video_info dd p {
  margin: 0;
}

.video_info dd p:first-child {
  margin-bottom: 8px;
}

.video_info dd div {
  margin-left: 10px;
  margin-bottom: 0;
  width: calc(100% - 20%);
}

@media only screen and (min-width: 981px) {
  figure video {
    width: 100%;
    display: block;
  }
}

/* ---------------------------------------- */

/* button unit セレクト画面用 */

/* ボタン関係 */

#question ul.list_button {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

#question ul.list_button li {
  width: 100%;
}

#question .button {
  color: var(--c-white);
}
#question .button span.main_txt {
  display: block;
  font-size: 16px;
  font-size: 1.6rem;
  margin-bottom: 8px;
}
#question .button span.sub_txt {
  display: block;
  font-size: 12px;
  font-size: 1.2rem;
}
#question .button span.icon_r_arrow {
  width: 100%;
  padding: 2px 32px;
  max-height: none;
}
#question .icon_r_arrow::after {
  background-image: url(../img/icon_arrow-w.svg);
}
.btn_no {
  background-color: var(--c-gray);
}
.btn_yes {
  background-color: var(--c-blue);
}

@media only screen and (min-width: 981px) {
  /* 画面幅固定化 */

  #select.section_bgw .wrapper .wrapper,
  #question.section_bgw .wrapper .wrapper {
    max-width: 886px;
  }

  /* ボタン関係 */
  #question .button span.main_txt {
    font-size: 20px;
    font-size: 2.0rem;
    margin-bottom: 10px;
  }
  #question .button span.sub_txt {
    font-size: 14px;
    font-size: 1.4rem;
  }

  #select ul.list_button {
    gap: 24px;
  }

  #question ul.list_button {
    gap: 32px 24px;
  }
  #question ul.list_button li {
    width: calc(50% - 16px);
  }

  #select .button.border .icon_bag {
    padding-left: 66px;
  }
  #select .button.border .icon_bag::before {
    top: 0;
    width: 56px;
    height: 56px;
  }
  #select .button.border span {
    min-width: 385px;
    min-height: 54px;
    font-size: 18px;
    font-size: 1.8rem;
  }

  #question .button span {
    font-size: 18px;
    font-size: 1.8rem;
    max-height: 26px;
  }
}
.box_caveat {
  margin-top: 32px;
}
.box_caveat > p {
  line-height: 2;
  margin: 8px 0;
}
.box_caveat > p:last-child {
  margin: 0;
}

@media only screen and (min-width: 981px) {
  .box_caveat {
    margin-top: 50px;
  }
}

/* ---------------------------------------- */
/* 文章に関するスタイル */

div.section_contents > p:first-child {
  margin: 0;
}

.description_list p:first-child {
  margin: 0;
}

.description_list p:nth-child(n + 2) {
  margin: 8px 0 0 0;
}

/* ---------------------------------------- */

/* タイトル＋文章＋角丸背景の間隔 */
.contents_box + .appearance.round_box {
  margin: 32px 0 0;
}

@media only screen and (min-width: 981px) {
  .contents_box + .appearance.round_box {
    margin: 60px 0 0;
  }
  .two_column .appearance.round_box {
    margin: 0;
  }
}

/* ---------------------------------------- */

/* アイコン + セクションタイトル + サブタイトルの場合の制御 */
.flex_box img {
  margin-right: 10px;
}

.flex_box {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
}

@media only screen and (min-width: 981px) {
  .flex_box img {
    margin-right: 30px;
    width: 100px;
    height: 112px;
  }
}

/* ---------------------------------------- */

/* qa_list + accordionの場合の余白調整 */

.in_qa_list + .accordion_card {
  margin: 32px 0;
}

@media only screen and (min-width: 981px) {
  .in_qa_list + .accordion_card {
    margin: 50px 0;
  }
}

/* ---------------------------------------- */

/* チェックリストを使う場合のスタイル */
.appearance.check_list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}

.appearance.check_list li:last-child {
  margin-bottom: 0;
}

.appearance.check_list > li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  content: "";
  width: 20px;
  height: 20px;
  background-image: url(../img/icon_check_list.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin: 4px 0;
}

@media only screen and (min-width: 981px) {
  .appearance.check_list li {
    padding-left: 34px;
  }
  .appearance.check_list > li::before {
    width: 24px;
    height: 24px;
    margin: 3px 0;
  }
}

/* ---------------------------------------- */

/* topics card スタイル */
.appearance.round_box.layout.topics_card {
  margin: 32px 0;
  padding: 26px 16px;
  outline: solid 1px var(--border-color);
}

.topics_title {
  font-size: 16px;
  font-size: 1.6rem;
  padding-bottom: 18px;
  border-bottom: solid 1px var(--border-color);
  margin: 0 0 18px;
}
@media only screen and (min-width: 981px) {
  .appearance.round_box.layout.topics_card {
    margin: 50px 0;
    padding: 60px 80px;
  }
  .topics_title {
    font-size: 22px;
    font-size: 2.2rem;
    font-weight: var(--noto-mid);
    padding-bottom: 24px;
    margin: 0 0 24px;
  }
}

/* ---------------------------------------- */
/* checklistが連続する場合のスタイル */

.appearance.round_box.check_list > div {
  margin-bottom: 32px;
}
.appearance.round_box.check_list > div:last-child,
.appearance.round_box.check_list > div > p:last-child {
  margin: 0;
}

@media only screen and (min-width: 981px) {
  .appearance.round_box.check_list > div {
    margin-bottom: 50px;
  }
  .appearance.round_box.check_list > div > p {
    text-align: center;
  }
  .appearance.round_box.check_list > div > p.recommended_text:last-child {
    margin-top: 60px;
  }
}

/* ---------------------------------------- */

/* 横長画像にはSP時横スクロールを発生させる */

.img_box .scroll {
  overflow-x: scroll; /* 横スクロールを有効にする */
  width: calc(100% + 16px);
  padding-right: 16px;
}
.img_box .scroll img {
  width: auto;
  height: 320px;
  display: block;
}
.img_box .scroll.min-w853 img {
  min-width: 853px;
  width: 100%;
  height: auto;
}
.img_box .scroll.min-w799 img {
  min-width: 799px;
  width: 100%;
  height: auto;
}
.img_box .scroll.min-w757 img {
  min-width: 757px;
  width: 100%;
  height: auto;
}
.img_box .scroll.min-w693 img {
  min-width: 693px;
  width: 100%;
  height: auto;
}
.img_box .scroll.min-w672 img {
  min-width: 672px;
  width: 100%;
  height: auto;
}
.img_box .scroll.min-w655 img {
  min-width: 655px;
  width: 100%;
  height: auto;
}
.img_box .scroll.min-w598 img {
  min-width: 598px;
  width: 100%;
  height: auto;
}
.img_box .scroll.min-w540 img {
  min-width: 540px;
  width: 100%;
  height: auto;
}
.img_box .scroll.min-w520 img {
  min-width: 520px;
  width: 100%;
  height: auto;
}
.img_box .scroll.min-w404 img {
  min-width: 404px;
  width: 100%;
  height: auto;
}
.img_box .scroll.min-w366 img {
  min-width: 366px;
  width: 100%;
  height: auto;
}
@media only screen and (min-width: 981px) {
  .img_box .scroll {
    overflow-x: unset;
    padding-right: 0;
  }
  .img_box .scroll img {
    width: 100%;
    height: 100%;
  }
  .img_box .scroll.min-w598 img {
    min-width: unset;
  }
  .img_box .scroll.min-w757 img {
    min-width: unset;
  }
  .img_box .scroll.min-w853 img {
    min-width: unset;
  }
  .img_box .scroll.max-w686 {
    width: 72%;
    max-width: 686px;
    margin-left: auto;
    margin-right: auto;
  }
}
