@charset "UTF-8";

/* =========================================================
   こくみんうさぎの「実際どうなの？」の一覧（page-howisit.php）と個別（single-howisit.php）
   - inc/howisit.php がこの 2 種類のページでだけ読む
   - Q・A ブロックの見た目は blocks/howisit-q・howisit-a の style.css
   - 色はサイトの紺 #003f82・黄 #FFC000・薄いグレー #F1F2EE
   ========================================================= */

/* ---------- 趣旨文（うさぎと吹き出し） ---------- */
.howisit-hero {
  margin-top: 40px;
  background: #FFC000 url(../img/usagi/bg_usagi.png);
}
.howisit-hero__inner {
  position: relative;
  display: flex;
  align-items: center; /* 吹き出しは帯の高さの中で上下中央 */
  width: 1200px;
  min-height: 400px;
  margin: 0 auto;
  padding: 40px 0;
  box-sizing: border-box;
}
.howisit-hero__usagi {
  position: absolute;
  z-index: 1; /* スマホでは吹き出しに重なるので手前に出す */
  top: 65px;
  left: 29px;
  width: 230px;
  height: auto;
}
.howisit-hero__bubble {
  position: relative;
  width: 878px;
  margin-left: 294px;
  padding: 40px 77px 40px 98px;
  box-sizing: border-box;
  border-radius: 120px;
  background-color: #fff;
}
/* 吹き出しのしっぽ（左下、うさぎのほうへ） */
.howisit-hero__bubble::after {
  content: "";
  position: absolute;
  left: 40px;
  bottom: -28px;
  width: 48px;
  height: 36px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 36'%3E%3Cpath d='M0 36C14 28 26 14 30 0h18C44 18 26 32 0 36z' fill='%23fff'/%3E%3C/svg%3E") no-repeat 0 0 / contain;
}
.howisit-hero__bubble p {
  margin: 0;
}
.howisit-hero__bubble strong {
  font-weight: 700;
  background: linear-gradient(transparent 62%, #FFC000 62%);
}
/* スマホで文字をうさぎの右に回り込ませるための場所取り。PC では使わない */
.howisit-hero__wrap {
  display: none;
}

/* ---------- 一覧 ---------- */
.howisit-list {
  margin-top: 150px;
}
.howisit-list__items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.howisit-list__link {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 24px 28px 24px 20px;
  background-color: #F1F2EE;
  color: #003f82;
  text-decoration: none; /* 下線は質問の文だけに付ける */
}
.howisit-list__mark {
  flex: 0 0 auto;
  font-size: 1.33em; /* 本文（サイト共通）より一回り大きく */
  font-weight: 700;
  line-height: 1;
}
.howisit-list__text {
  flex: 1 1 auto;
  text-decoration: underline;
}
.howisit-list__link:hover .howisit-list__text {
  text-decoration: none;
}
.howisit-list__link .c-arrowRound02_right {
  flex: 0 0 auto;
}
.howisit-list__empty {
  text-align: center;
}

/* ---------- 個別 ---------- */
.howisit-article {
  margin-top: 150px;
}
/* 公開日。文字の大きさはサイト共通の本文のまま */
.howisit-date {
  margin-top: 16px;
}
.howisit-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 97px; /* A の枠から 144px（日付の 16px ＋ 行の高さ約 31px の分を引く） */
  color: #003f82;
  font-weight: 700;
}
.howisit-nav a {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: inherit;
}
.howisit-nav__label,
.howisit-nav__list a {
  text-decoration: underline;
}
.howisit-nav a:hover .howisit-nav__label,
.howisit-nav__list a:hover {
  text-decoration: none;
}
.howisit-nav__next {
  text-align: right;
}

/* ---------- スマホ（750px のカンプを基準に vw） ---------- */
@media screen and (max-width: 767px) {
  .howisit-hero {
    margin-top: 5.33vw;
    background-size: 13.33vw;
  }
  .howisit-hero__inner {
    display: block;
    width: auto;
    min-height: 0;
    padding: 5.33vw 4.67vw;
  }
  /* 頭の上に空きが出ないよう、回り込みの始まり（4 行目）に合わせて上から置く。
     上の余白 5.33vw ＋ 吹き出しの上の余白 5.47vw ＋ 3 行分 19.04vw */
  .howisit-hero__usagi {
    top: 29.84vw;
    left: 6.67vw;
    width: 27.33vw;
  }
  .howisit-hero__bubble {
    display: flow-root; /* 回り込み用の float を吹き出しの中に収める */
    width: auto;
    margin-left: 0;
    padding: 5.47vw 10vw 7.07vw;
    border-radius: 16vw;
  }
  .howisit-hero__bubble::after {
    left: 39.33vw;
    bottom: -4.4vw;
    width: 7.33vw;
    height: 5.33vw;
  }
  /* 3 行目（サイト共通の行の高さ 28px × 1.7 × 3）までは全幅、4 行目からうさぎの右に回り込む */
  .howisit-hero__wrap {
    display: block;
    float: left;
    width: 22vw;
    /* うさぎの足元まで（3 行分 19.04vw ＋ うさぎの高さ 44.4vw）。文がうさぎの下に回り込まないようにする */
    height: 63.44vw;
    shape-outside: inset(19.2vw 0 0 0); /* 3 行分（19.04vw）ちょうどだと端数で 3 行目まで回り込むので、少しだけ下げる */
  }

  .howisit-list {
    margin-top: 21.33vw;
  }
  .howisit-list__items {
    gap: 2.4vw;
  }
  .howisit-list__link {
    gap: 2.8vw;
    padding: 3.73vw 2.27vw 3.73vw 1.6vw;
  }

  .howisit-article {
    margin-top: 21.33vw;
  }
  .howisit-date {
    margin-top: 3.2vw;
  }
  .howisit-nav {
    margin-top: 23.78vw; /* A の枠から 33.33vw（日付の 3.2vw ＋ 行の高さ 6.35vw の分を引く） */
  }
  .howisit-nav a {
    gap: 2.67vw;
  }
}
