body {
  font-family: "M PLUS Rounded 1c", sans-serif, "Noto Sans Japanese";
  line-height: 1.75;
  font-weight: 700;
  text-align: center;
  color: #565656;
  background-color: #282828;
  margin: 0;
  overflow-x: hidden; /* 横スクロールを防ぐ */
  box-sizing: border-box;
}

p {
  margin: 0;
  font-weight: 500;
}

h2 {
  margin: 0;
}

h3 {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

ul {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

/* コンテナのクラス */

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100vw; /* 画面の幅を超えないように */
  height: auto;
  border-bottom: 4px solid #000;
}

.top img {
  width: 100%;
  max-width: 100vw; /* 画面幅を超えない */
  height: auto;
  object-fit: cover; /* 画像を枠内に収める */
}

@media screen and (max-width: 600px) {
  .container {
    max-width: 100%;
  }

  .top {
    max-width: 100%;
  }

  .top img {
    max-width: 100%;
  }
}

.detail {
  display: flex;
  padding: 4px 12px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  align-self: stretch;
}

.heading {
  display: flex;
  padding: 16px 24px;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md, 16px);
}

.heading img {
  height: auto; /* 画像の縦横比を維持する */
  object-fit: contain; /* 画像が枠内に収まるように調整 */
  max-width: 100%; /* 親要素を超えないように制限 */
}

.navi {
  display: flex;
  padding: var(--space-md, 16px);
  flex-direction: column;
  align-items: center;
  gap: var(--space-md, 16px);
}

.summary {
  display: flex;
  padding: 24px;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  align-self: stretch;
  border-radius: 0px;
  background: #fff;
  margin: 16px;
  border: 3px solid #282828;
  max-width: 100%; /* 親要素を超えないようにする */
  overflow: hidden; /* はみ出しを防ぐ */
}
.summary img {
  height: auto; /* 画像の縦横比を維持する */
  object-fit: contain; /* 画像が枠内に収まるように調整 */
  max-width: 100%; /* 親要素を超えないように制限 */
}

@media screen and (max-width: 600px) {
  .summary {
    margin: 8px; /* モバイルで余白を減らす */
    padding: 16px;
  }

  .summary img {
    max-width: 100%;
    width: 100%;
  }
}

.section1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  background: #e15aa3;
  background-image: url("img/bg.png");
}

.section1_20250304 {
  display: flex;
  padding-bottom: 24px;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  background: #e15aa3;
  background-image: url("img/bg.png");
  padding-right: 16px;
  padding-left: 16px;
}

.comic_result_m {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%; /* 幅を親要素にフィットさせる */
  max-width: 600px; /* 必要に応じて調整 */
  overflow: hidden;
}

.resulut_m_contents img {
  width: 100%; /* 画像を親要素にフィットさせる */
  max-width: 100%;
  height: auto;
}

.resulut_m {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  margin-bottom: 16px;
  max-width: 100%;
}

.resulut_m p {
  padding: 16px 4px;
  background: #000;
  overflow: hidden;
  color: #fff;
  text-align: center;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  line-height: 140%;
  letter-spacing: -0.22px;
}

.resulut_illust img {
  align-self: stretch;
  max-width: 99%;
  border: 2px solid #000;
}

.resulut_m_contents {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1 0 0;
  /* margin: 16px 0; */
}

.resulut_m_contents img {
  width: 40%;
  border: 3px solid #000;
}

.comments_m {
  display: flex;
  padding: 16px;
  text-align: left;
  gap: 8px;
  flex: 1 0 0;
  margin-bottom: 16px;
  align-self: stretch;
  flex-wrap: wrap;
  border: 3px solid #282828;
  background: #f5f5f5;
  color: #282828;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

.comments {
  display: flex;
  padding: 4px;
  text-align: left;
  gap: 8px;
  flex: 1 0 0;
  align-self: stretch;
  flex-wrap: wrap;
  border: 3px solid #282828;
  background: #f5f5f5;
  color: #282828;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

.resulut_m_contents_flex {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 0 0;
  align-self: stretch;
}

.btn1 {
  display: flex;
  height: 40px;
  padding: 4px;
  justify-content: center;
  align-items: center;
  gap: 5px;
  align-self: stretch;
  border: 3px solid #282828;
  background: #2e6cfb;
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Noto Sans Japanese";
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

.btn2 {
  display: flex;
  height: 40px;
  padding: 4px;
  justify-content: center;
  align-items: center;
  gap: 5px;
  align-self: stretch;
  border: 3px solid #282828;
  background: #a8d943;
  overflow: hidden;
  color: #282828;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Noto Sans Japanese";
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

.btn3 {
  display: flex;
  height: 32px;
  padding: 4px;
  justify-content: center;
  align-items: center;
  gap: 5px;
  color: #fff;
  align-self: stretch;
  border: 2px solid #282828;
  background: #2e6cfb;
  font-family: "Noto Sans Japanese";
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

.btn4 {
  display: flex;
  height: 32px;
  padding: 4px;
  justify-content: center;
  align-items: center;
  gap: 5px;
  align-self: stretch;
  color: #282828;
  border: 2px solid #282828;
  background: #a8d943;
  font-family: "Noto Sans Japanese";
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

.section2 {
  display: flex;
  padding-top: 16px;
  padding-bottom: 24px;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  background: #2e6cfb;
  background-image: url("img/bg.png");
  border-bottom: 3px solid #282828;
}

.btnimg-s {
  width: 50%;
}

.section3 {
  display: flex;
  padding-bottom: 24px;
  padding-right: 16px;
  padding-left: 16px;
  gap: 16px;
  align-items: center;
  align-self: stretch;
  flex-direction: column;
  background: #e15aa3;
  background-image: url("img/bg.png");
  border-bottom: 3px solid #282828;
}

.section3 img {
  height: auto; /* 画像の縦横比を維持する */
  object-fit: cover; /* 画像が枠内に収まるように調整 */
  max-width: 100%; /* 親要素を超えないように制限 */
}

.comic_list {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  align-content: flex-start;
  gap: 24px 16px;
  align-self: stretch;
  flex-wrap: wrap;
}

.comic_img {
  border: 2px solid #000;
}

.comic {
  display: flex;
  width: 30%;
  flex-direction: column;
  gap: 4px;
  flex-wrap: wrap;
}

.title {
  height: 54px;
  text-align: inherit;
  align-items: center;
  align-content: center;
  gap: 8px;
  align-self: stretch;
  flex-wrap: wrap;
  border: 2px solid #000;
  background: #000;
  color: #fff;
  font-size: 8px;
  padding: 4px;
}

.section4 {
  display: flex;
  padding: 24px 24px;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  align-self: stretch;
  background: #c5c5c5;
}

.section4-b {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  align-self: stretch;
  position: relative;
}

.section4-b h3 {
  display: flex;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  background: #282828;
  color: #fff;
  font-weight: 900;
  text-align: center;
  font-size: 16px;
  line-height: 32px;
  margin-bottom: -24px;
  z-index: 10;
  border-radius: 0px;
}

.section4-b p {
  font-size: 22px;
  color: #232323;
  letter-spacing: -0.7px;
  font-weight: 600;
}

.section4-b ul {
  display: flex;
  padding: 32px 24px 24px 24px;
  flex-direction: column;
  justify-content: center;
  align-items: left;
  align-self: stretch;
  text-align: left;
  background: #fff;
  border-radius: 0px;
  border: 2px solid #000;
  align-self: stretch;
  color: #232323;
}

.section4-b li {
  text-align: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: -0.7px;
  font-weight: 500;
}

.tx_box {
  display: flex;
  padding: 32px 24px 24px 24px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  border: 2px solid #282828;
  background: #fff;
}

/* スマホサイズ用の調整 */
@media screen and (max-width: 600px) {
  /* はみ出し防止 */
  .tx_box,
  .section4-b p,
  .section4-b ul,
  .section4-b li,
  .comments_m,
  .comments {
    max-width: 100%;
    word-wrap: break-word; /* 単語がはみ出さないようにする */
    overflow-wrap: break-word;
    white-space: normal; /* 必ず折り返す */
    box-sizing: border-box; /* パディングやボーダーの影響を防ぐ */
  }

  /* 長いURL対策 */
  .tx_box a {
    display: block; /* URLをブロック要素化して改行 */
    word-break: break-all; /* 長いURLは途中で改行 */
  }

  /* h3 タイトルが折り返されるように調整 */
  .section4-b h3 {
    text-align: center;
    word-wrap: break-word;
    white-space: normal;
  }

  /* Pontaサービスのリンク部分が折り返されるように */
  .tx_box p {
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }
}

.tx_flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  align-self: stretch;
}

.gray_tx {
  color: #808080;
  font-style: normal;
  font-weight: 400;
  text-align: left;
}

/* テキストのクラス */

.copy {
  font-size: 8px;
  line-height: 1;
  font-weight: 500;
  text-align: left;
  color: #fff;
  margin-left: 16px;
}

/* 画像のクラス */

.btnimg {
  width: 100%;
}

footer {
  display: flex;
  padding: 8px 0px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex: 1 0 0;
  align-self: stretch;
  color: #fff;
  background: #282828;
}
