.top-img {
  background-color: #FFFCD5;
  text-align: center;
  padding: 2rem 2rem 0rem 2rem;
  position: relative;
}
.top-img img {
  max-width: 1080px;
}
.top-img .top-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0px 10px;
}
.top-flex img {
  max-width: 70%;
  z-index: -1;
}
.top-flex .top-title h1 {
  font-weight: 900;
  white-space: nowrap;
}
.top-flex .top-title p {
  font-size: clamp(1.2rem, 3.8vw, 1.75rem);
  font-weight: 800;
}
.top-bar h2 {
  padding: 2rem;
  text-align: center;
  font-weight: bold;
}
.top-bar h2 span {
  color: red;
}
.top-bar {
  background-color: #FFEE2F;
}
body main {
  margin: 5em auto;
}
.blue_title {
  background: url("../img/design.png") no-repeat 10px, linear-gradient(#007AFF, #004999);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  margin: 2rem auto;
}
.blue_title h3 {
  font-weight: bold;
  color: #fff;
  margin-bottom: 3px;
  padding-left: 60px;
}
.blue_title p {
  font-weight: 600;
  color: yellow;
  padding-left: 60px;
}
.orange_back {
  background: #F89500;
  padding: 0.5rem;
  text-align: center;
  border-radius: 5rem;
  margin-top: 2rem;
  margin-right: 0;
  margin-left: 0;
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 600;
}
.adult_imgcont_subcap {
  text-align: center;
}
.manga {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}
.inner #trouble2 .manga {}
.manga-child {
  flex-basis: 50%;
  flex-grow: 1;
}
.manga .manga-child img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.douga {
  text-align: center;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  width: 80%;
}
.douga iframe {
  width: 100%;
  height: 100%;
}
/*黄色のボックス*/
.box {
  margin: 3rem 0;
  background-color: #FFFAAA;
  border-radius: 10px;
}
#trouble4 h4 {
  text-align: center;
  color: red;
}
.text {
  margin: 1rem auto;
}
.text-right {
  text-align: end;
  overflow-wrap: break-word;
}
.ttl {
  align-items: center; /* 線を上下中央 */
  display: flex; /* 文字と横線を横並び */
  justify-content: center; /* 文字を中央寄せ */
  font-weight: 900;
  color: red;
  /* [disabled]font-size: 1.8em; */
}
.life-event-tbl {
  margin: 2rem auto;
}
.life-event-tbl tbody tr th {
  background-color: #DFEADD;
  font-weight: bold;
}
.ttl::before, .ttl::after {
  background-color: red; /* 線の色 */
  border-radius: 5px; /* 線の両端を丸く */
  content: "";
  height: 5px; /* 線の高さ */
  width: 40px; /* 線の長さ */
}
.ttl::before {
  margin-right: 5px; /* 文字との余白 */
  transform: rotate(60deg); /* 傾ける */
}
.ttl::after {
  margin-left: 5px; /* 文字との余白 */
  transform: rotate(-60deg); /* 傾ける */
}
.box .txt p {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 15px
}
.flex {
  display: flex;
  padding: 0rem 1rem 1rem 3rem;
  justify-content: space-between;
  align-items: center;
  gap: 0rem 1rem;
}
.flex1 {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.flex-img, .flex1-img {
  width: 30%;
}
.flex .txt, .flex1-text {
  width: 70%;
}
.flex-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.c-list {
  padding: 2rem;
  border: solid 1px #000000;
}
.c-list ul li .red {
  text-decoration: underline;
}
.style-disc {
  list-style: disc;
  padding-left: 1rem;
  margin-top: 1.5em;
}
.check-shikaku {
  margin-top: 1.5em;
}
.check-shikaku li, .style-disc li {
  font-size: 1.1em;
  margin: 0.5em 0;
  font-weight: 500;
  line-height: 1.3;
}
.check-shikaku li::before {
  content: '\f0c8';
  font-family: 'Font Awesome 6 Free';
  color: #5A5A5A;
  font-size: 1.1em;
  padding: 0 7px 0 0
}
/*若者よりクーリングオフ*/
.knowledge_tblcont {
  padding-bottom: 20px;
}
.knowledge_tblcont_ttl, .knowledge_tblcont_ttlcap {
  text-align: left;
  color: #593A28;
  font-size: 18px;
  font-weight: bold;
}
.knowledge_tblcont_ttlcap {
  display: none;
}
.knowledge_tblcont_table {
  margin-bottom: 20px;
  border: 1px solid #000000;
}
.knowledge_tblcont_table thead {
  background-color: #C2E657;
}
.knowledge_tblcont_table tbody {
  background-color: #ffffff;
}
.knowledge_tblcont_table th, .knowledge_tblcont_table td {
  padding: 5px 10px;
  border: 1px solid #000000;
  vertical-align: middle;
}
.knowledge_tblcont_table tbody tr * {
  border-top: none;
}
.knowledge_tblcont_table tr *:not(:first-child) {
  border-left: none;
}
.knowledge_tblcont_table tbody tr *:nth-child(1) {
  width: 220px;
  font-weight: bold;
  text-align: left;
}
.knowledge_tblcont_table tbody tr *:nth-child(3) {
  width: 160px;
  color: #ED5944;
  font-size: 60px;
  font-weight: bold;
  text-align: center;
}
.knowledge_tblcont_table tbody tr *:nth-child(3) small {
  font-size: 24px;
  font-weight: normal;
}
.icon-warning:before {
  content: "\f071";
  font-family: 'Font Awesome 6 Free';
}
.knowledge_tblcont_note {
  font-size: 14px;
}
.knowledge_tblcont_note em {
  padding-bottom: 20px;
  color: #D93D3D;
  font-weight: bold;
}
.knowledge_tblcont_note em a {
  text-decoration: underline;
}
.knowledge_noticecont {
  border: 1px solid #C2E657;
  padding: 20px;
  background-color: #ECF5D3;
}
.knowledge_noticecont em {
  color: #D93D3D;
  font-weight: bold;
}
/*ここまで*/
.life-event-tbl th, .life-event-tbl td {
  padding: 5px 10px;
  border: 1px solid #000000;
  vertical-align: middle;
}
.flex-colum {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
}
.flex-colum img {
  width: 100%;
}
#trouble5 .soudan p {
  font-weight: 900;
  font-size: 1.5em;
}
/*フッター若者から*/
.footer {
  background-color: #FBEC84;
}
.footinner {
  margin: 0 auto;
  max-width: 1000px;
  width: 100%;
  height: auto;
  padding-top: 25px;
  padding-bottom: 100px;
  text-align: center;
  position: relative;
}
.footinner em {
  font-size: 18px;
  font-weight: bold;
}
.footinner small {
  font-size: 12px;
}
.topbutton {
  position: absolute;
  top: 0;
  right: 0px;
  transform: translate(-50%, -50%);
}
.bold-blue-title {
  text-align: center;
  color: #004999;
  font-weight: bold;
  margin-bottom: 0px;
}
.soudan p a {
  color: blue;
}
@media screen and (max-width:640px) {
  .flex, .flex1 {
    flex-direction: column;
    padding: 1rem;
  }
  .flex .txt, .flex .flex-img, .flex1-text, .flex1-img {
    width: 100%;
  }
  .flex .flex-img img {
    object-fit: contain;
    max-height: 150px;
  }
  .flex1-img {
    text-align: center;
  }
  .flex1-img img {
    max-width: 280px;
  }
  .blue_title {
    background-size: 3rem;
  }
  body main {
    margin: 2em 0;
  }
  .c-list {
    padding: 1.2em;
  }
  .manga {
    flex-direction: column;
  }
  .manga-child {
    margin: 0 auto;
  }
  .manga-child img {
    max-width: 450px;
  }
  .top-bar h2 {
    padding: 1rem;
  }
  .blue_title h3, .blue_title p {
    padding-left: 25px;
  }
  .top-img .top-flex .top-sumaho, .top-img .top-flex .top-pc {
    display: none;
  }
  .top-flex .top-title h1 {
    white-space: inherit;
  }
  .text-right {
    text-align: center;
  }
  /*若者サイトより*/
  .knowledge_tblcont_ttl {
    font-size: 16px;
    text-align: center;
  }
  .knowledge_tblcont_ttlcap {
    font-size: 14px;
    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .knowledge_tblcont_ttlcap::before, .knowledge_tblcont_ttlcap::after {
    content: "▲";
  }
  .knowledge_tblcont_ttlcap::before {
    transform: rotate(-90deg);
  }
  .knowledge_tblcont_ttlcap::after {
    transform: rotate(90deg);
  }
  .knowledge_tblcont_table {
    border: none;
    display: block;
    overflow-x: scroll;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .topbutton {
    right: -40px;
    transform: translate(-50%, -50%) scale(0.5);
  }
}
@media screen and (max-width:400px) {
  .orange_back.long {
    transform: scale(0.9, 1);
    transform-origin: 0 0;
    width: 111%;
  }
.douga   {
  width:100%;
}
}
