body {
  font-family: "sans-serif", "BIZ UDPGothic", "Hiragino Maru Gothic Pro",
    "ヒラギノ丸ゴ Pro W4", "ヒラギノ丸ゴ Pro", "Hiragino Kaku Gothic Pro",
    "ヒラギノ角ゴ Pro W3", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", Osaka,
    sans-serif;

  color: #333;
  margin: 0;
  padding: 0;
  width: 100%;
}

/*.title-box {
  background: url(../images/bg_top2.svg) center top no-repeat;
  background-size: cover;
  min-height: 360px;
  width: 100%;
}*/

.top-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  /* アスペクト比を保ちながらサイズ調整 */
}

header,
nav {
  margin: 0;
  padding: 0;
}

.nav-box {
  background-color: #00c853;
  font-size: large;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.nav-box a {
  color: #000 !important;
  font-size: large;
  text-decoration: none;
}

.nav-box button {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

footer {
  background-color: #00c853;
  padding: 1rem 0;
  text-align: center;
}

footer p {
  margin: 0;
}

main {
  margin-top: 10px;
}

main h2 {
  border-bottom: 4px solid #00A9F4;
  margin-bottom: 1.5rem;
  padding: 1rem 0 0.3rem 4rem;
  min-height: 40px;
}

h2 a {
  text-decoration: none;
  color: inherit;
  display: inline-block;
  /* クリックしやすいように */
}

h2 a:hover {
  opacity: 0.9;
}

main h5 {
  line-height: 1.8rem;
  font-size: large;
}

.sitemap h2 {
  background: url(../images/bg_h2_sitemap.svg) left center no-repeat;
}

.about h2 {
  background: url(../images/bg_h2_about.svg) left center no-repeat;
}

.features h2 {
  background: url(../images/bg_h2_features.svg) left center no-repeat;
}

.advantages h2 {
  background: url(../images/bg_h2_advantages.svg) left center no-repeat;
}

.cases h2 {
  background: url(../images/bg_h2_cases.svg) left center no-repeat;
}

.comparison h2 {
  background: url(../images/bg_h2_comparison.svg) left center no-repeat;
}

.price h2 {
  background: url(../images/bg_h2_price.svg) left center no-repeat;
}

.simulator h2 {
  background: url(../images/bg_h2_billin-simulation.svg) left center no-repeat;
}

.steps h2 {
  background: url(../images/bg_h2_steps.svg) left center no-repeat;
}

.inquiry h2 {
  background: url(../images/bg_h2_inquiry.svg) left center no-repeat;
}

.support h2 {
  background: url(../images/bg_h2_support.svg) left center no-repeat;
}

.document h2 {
  background: url(../images/bg_h2_document.svg) left center no-repeat;
}

.faq h2 {
  background: url(../images/bg_h2_faq.svg) left center no-repeat;
}

.info h2 {
  background: url(../images/bg_h2_info.svg) left center no-repeat;
}

.sitemap h2,
.about h2,
.features h2,
.advantages h2,
.cases h2,
.comparison h2,
.price h2,
.simulator h2,
.steps h2,
.inquiry h2,
.support h2,
.document h2,
.faq h2,
.info h2 {
  background-size: 48px 48px;
}

main h4 {
  border-bottom: solid 3px #e3d674;
  display: inline-block;
  margin: 1.5rem 0;
  padding-bottom: 0.4rem;
}

main h6 {
  font-size: 16px;
  margin: 1rem 1rem 1rem 1.5rem;
  padding-bottom: 0.4rem;
}

main h7 {
  font-size: 18px;
  margin: 2rem 1rem 1rem 1rem;
  padding-bottom: 0.4rem;
}

main p {
  font-size: 18px;
  line-height: 1.88rem;
  margin: 0 1.5rem 0.3rem 1.5rem;
}

section {
  padding-top: 2rem !important;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.toc > a {
  background: url(../images/bg_memo.png) left top repeat;
  border-radius: 10px;
  font-size: 20px;
  margin: 5px;
  padding: 16px 0 8px 0;
  box-sizing: border-box;
  width: calc(33.3% - 10px);
  text-align: center;
  color: inherit;
  /* リンクのテキスト色を継承 */
  text-decoration: none;
  /* リンクの下線を削除 */
}

.toc > a:nth-child(2n) {
  background: url(../images/bg_memo2.png) left top repeat;
}

.toc > a:hover {
  filter: brightness(75%);
}

.toc h5 {
  font-size: 14px;
  padding: 8px 12px;
}

.container {
  max-width: 1100px;
}

.about li {
  font-size: larger;
}

.live-streaming,
.recording {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.live-streaming dl {
  flex: 0 1 calc(25% - 1rem);
  box-sizing: border-box;
  margin: 0 0 1rem 0;
}

.recording dl {
  flex: 0 1 calc(33% - 1rem);
  /* 3つ横並びにするための幅設定 */
  box-sizing: border-box;
  margin: 0 0 1rem 0;
}

.live-streaming dt {
  background: #dcdcdc;
  border-radius: 8px;
  display: inline-block;
  font-size: 14px;
  line-height: 24px;
  margin: 14px 0;
  padding: 4px 8px;
  font-family: "BIZ UDPGothic", "Hiragino Maru Gothic Pro", "ヒラギノ丸ゴ Pro W4",
    "ヒラギノ丸ゴ Pro", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3",
    "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", Osaka, sans-serif !important;
}

.recording dt {
  background: #dcdcdc;
  border-radius: 8px;
  display: inline-block;
  font-size: 14px;
  line-height: 24px;
  margin: 14px 0;
  padding: 4px 8px;
  font-family: "BIZ UDPGothic", "Hiragino Maru Gothic Pro", "ヒラギノ丸ゴ Pro W4",
    "ヒラギノ丸ゴ Pro", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3",
    "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", Osaka, sans-serif !important;
}

.live-streaming dd.image {
  max-width: 90%;
  height: auto;
  margin-bottom: 10px;
}

.recording dd.image {
  max-width: 90%;
  /* 画像の最大幅を画面サイズの80%に制限 */
  height: auto;
  /* アスペクト比を保ちながら高さを自動調整 */
  margin-bottom: 10px;
}

.live-streaming dd.text {
  font-size: 14px;
  margin: 20px 10px 0;
}

.recording dd.text {
  font-size: 14px;
  margin: 20px 14px 0;
}

.price img {
  display: block;
  margin: 3rem auto;
  max-width: 600px;
  width: 70%;
}

.price img.price-img-2 {
  max-width: 330px;
  width: 60%;
  margin: 2rem auto 3rem;
}

.box_sora {
  background: #f1f1f1;
  box-shadow: 0 1px 5px #333333;
  width: 520px;
  margin: 1.5rem 1rem;
}

.box_sora .box-title {
  background: #2a62eb;
  box-shadow: 0 1px 4px #333333;
  color: #FFF;
  font-size: 22px;
  font-weight: bold;
  padding: 10px;
  text-align: center;
}

.box_sora li {
  font-size: 18px;
  height: 66px;
}

.box_sora-cloud {
  background: #f1f1f1;
  box-shadow: 0 1px 5px #333333;
  width: 520px;
  margin: 1.5rem 1rem;
}

.box_sora-cloud .box-title {
  background: #00A9F4;
  box-shadow: 0 1px 4px #00A9F4;
  color: #ffffff;
  font-size: 22px;
  font-weight: bold;
  padding: 10px;
  text-align: center;
}

.box_sora-cloud li {
  font-size: 18px;
  height: 66px;
}

.cases .title {
  background-color: #dcdcdc;
  border-radius: 12px;
  display: inline-block;
  font-size: 18px;
  line-height: 40px;
  margin: 2rem 0 0.5rem 1.5rem;
  padding: 0.5rem 1rem;
  text-align: center;
}

.cases .text {
  font-size: 16px;
  margin: 1.5rem 0 1.5rem 2rem;
}

.cases img {
  margin: 1rem 0 1rem 1.5rem;
  max-width: 660px;
  width: 60%;
}

.comparison table {
  font-size: 20px;
  margin: 2rem 0 1rem 1.5rem;
  max-width: 1060px;
  padding: 1.8rem;
  table-layout: fixed;
  width: 100%;
}

.comparison table tr:last-child {
  border-bottom: solid 1px #ddd;
}

.comparison table th {
  border-right: solid 1px #ccc;
  border-left: solid 1px #ccc;
  font-size: 18px;
  padding: 8px 0;
  text-align: center;
}

.comparison table tr:nth-child(odd) {
  background-color: #eee
}

.comparison table th:nth-child(2) {
  background-color: #2a62eb;
  color: #ffffff;
  font-size: 18px;
  width: 36%;
}

.comparison table th:nth-child(3) {
  background-color: #00A9F4;
  color: #ffffff;
  font-size: 18px;
  width: 36%;
}

.comparison table td {
  text-align: center;
  padding: 8px 0;
  border-right: solid 1px #ccc;
  border-left: solid 1px #ccc;
}

.contact-block {
  background: url(../images/bg_memo3.png) left top repeat;
  border-radius: 10px;
  max-width: 950px;
  margin: 2rem 0 1rem 1.5rem;
  padding: 1.5rem;
}

.contact-block p {
  margin: 1rem 0 0;
}

.memo-block {
  background-color: #FFFFBE;
  border-radius: 10px;
  max-width: 950px;
  margin: 2rem 0 1rem 1.5rem;
  padding: 1.5rem;
}

.memo-block p {
  font-size: 15px;
  margin: 0 0 0 0.5rem;
}

.memo-block li {
  font-size: 14px;
  line-height: 1.4rem;
  margin: 0 0 0 1rem;
}

.memo-block ul {
  font-size: 14px;
}

.container {
  padding: 0 2rem;
}

.faq dt {
  background: url(../images/faq_q.svg) left top no-repeat;
  background-size: 22px;
  font-size: 18px;
  margin: 0.5rem 0 1rem 1.5rem;
  padding-left: 2.5rem;
}

.faq dd {
  background: url(../images/faq_a.svg) left top no-repeat;
  background-size: 22px;
  font-size: 18px;
  margin: 0.5rem 1rem 2rem 2.5rem;
  padding-left: 2.5rem;
}

.steps h5 {
  background-color: #e3d674;
  border-radius: 8px;
  display: inline-block;
  font-size: 16px;
  line-height: 18px;
  margin: 2rem 0 0.5rem 1.5rem;
  padding: 0.5rem 1.5rem;
  text-align: center;
}

.steps p {
  font-size: 16px;
}

.steps ul {
  background: url(../images/bg_memo3.png) left top repeat;
  border-radius: 10px;
  font-size: 14px;
  max-width: 960px;
  margin: 2rem 0 1rem 1.5rem;
  padding: 1.5rem 3rem;
}

.info .date {
  border-bottom: solid 3px #e3d674;
  display: inline-block;
  font-size: 18px;
}

.info .body {
  font-size: 20px;
  margin: 1rem 1.5rem;
}

.price h5 {
  background-color: #dcdcdc;
  border-radius: 14px;
  line-height: 40px;
  margin: 0.5rem 0 1.5rem 1.5rem;
  text-align: center;
  width: 240px;
}

.price ul {
  font-size: 16px;
  margin: 2rem 0 3rem 0.5rem;
}

.price_basic {
  border-collapse: collapse;
  border-spacing: 0;
  margin: 2rem 2rem 2rem 1.5rem;
  table-layout: fixed;
  width: 350px;
}

.price_basic th {
  background-color: #e3d674;
  border-left: solid 2px #e3d674;
  border-right: solid 2px #e3d674;
  color: #000;
  font-size: 20px;
  padding: 8px 0;
  text-align: center;
}

.price_basic td {
  font-size: 18px;
  text-align: center;
  padding: 16px 0 6px 0;
  border-right: solid 2px #c0c0c0;
  border-left: solid 2px #c0c0c0;
}

.price_basic tr:nth-child(2) td {
  font-size: 16px;
  padding: 20px 0 2px 0;
}

.price_basic tr:nth-child(3) td {
  font-size: 24px;
}

.price_basic tr:last-child {
  border-bottom: solid 2px #c0c0c0;
}

.price_option {
  border-collapse: collapse;
  border-spacing: 0;
  margin: 2rem 1.5rem;
  table-layout: fixed;
  width: 550px;
}

.price_option tr:nth-child(2) td {
  font-size: 18px;
  padding-top: 12px;
}

.price_option tr:nth-child(3) td {
  font-size: 24px;
}

.price_option tr:nth-child(4) td {
  font-size: 16px;
  padding: 4px 0 0;
}

.price_option tr:nth-child(5) td {
  font-size: 20px;
  padding: 4px 0 8px;
}

.price_option tr:last-child {
  border-bottom: solid 2px #c0c0c0;
}

.price_option th {
  background-color: #e3d674;
  border-left: solid 2px #e3d674;
  border-right: solid 2px #e3d674;
  color: #000;
  font-size: 20px;
  text-align: center;
  padding: 8px 0;
}

.price_option td {
  border-left: solid 2px #c0c0c0;
  border-right: solid 2px #c0c0c0;
  text-align: center;
  padding: 6px 0 6px 0;
}

.price_list {
  font-size: 18px;
  margin: 1rem 1.5rem;
  max-width: 960px;
  padding: 1rem;
  table-layout: fixed;
  width: 100%;
}

caption {
  caption-side: top;
  color: #333333;
  font-size: 20px;
  text-align: left;
}

.price_list tr:last-child {
  border-bottom: solid 2px #ddd;
}

.price_list th {
  border-left: solid 2px #ddd;
  border-right: solid 2px #ddd;
  font-size: large;
  padding: 10px 0;
  text-align: center;
}

.price_list tr:nth-child(odd) {
  background-color: #eee
}

.price_list td {
  border-left: solid 2px #ddd;
  border-right: solid 2px #ddd;
  padding: 6px 0;
  text-align: center;
}

.price_model {
  display: flex;
}

.price_model .image {
  margin: 0.5rem 2rem 1rem 1.5rem;
  max-width: 800px;
  width: 100%;
  text-align: center;
}

.price_model .example {
  background-color: #f5f5f5;
  border-radius: 14px;
  max-width: 580px;
  min-width: 220px;
  margin: 0.5rem 0 1rem 0.5rem;
  padding: 1rem;
}

.price_model .emphasis {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 0.5rem 0.5rem;
}

.price_model .detail {
  font-size: 16px;
  line-height: 24px;
  margin: 0.5rem 0 1rem 1.5rem;
}

.price_model .note {
  font-size: 14px;
  line-height: 22px;
  margin: 1rem 0 1rem 1.5rem;
}

.price_model li {
  font-size: 14px;
}

.price_model p {
  font-size: 16px;
  line-height: 18px;
  padding-bottom: 0.5rem;
}

/* シミュレーターの CSS */

.simulator img {
  max-width: 100%;
  height: auto;
  display: block;
}

.simulator .note {
  font-size: 14px;
  margin: 2rem 1rem;
}

.distribution-pattern h5,
.video-quality h5,
.channel-count h5,
.users-per-channel h5 {
  border-bottom: solid 3px #e3d674;
  display: inline-block;
  margin: 1.5rem;
  padding-bottom: 0.3rem;
}

.simulator p.text-secondary {
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 8px;
}

/* ボタン内の画像を中央揃え */
.pattern-button {
  display: flex;
  align-items: center;
  justify-content: center;
  /* 水平方向に中央揃え */
  min-width: 90px;
  padding: 5px;
  text-align: center;
  border: 3px solid #ddd;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-size: 0.8rem;
}

.pattern-button img {
  width: 60%;
  height: auto;
  display: block;
  /* 余計な余白を防ぐため block にする */
  margin: 0 auto;
  /* 親要素の中央に配置 */
}

/* 未選択のボタンの opacity を元に戻す */
.pattern-button:not(.active) {
  opacity: 0.8 !important;
  /* 透明度80%にする */
}

/* ホバー時のデザイン */
.pattern-button:hover {
  border-color: #007bff;
  /* ホバー時も青に */
  background-color: #f5f5f5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* 選択された配信パターンのデザイン */
.pattern-button.active {
  border-color: #007bff;
  background-color: #e7f1ff;
  box-shadow: 0 3px 8px rgba(0, 123, 255, 0.2);
  transform: translateY(-2px);
}

.pattern-label {
  text-align: center;
  width: 100%;
  /* 幅を100%にして中央寄せ */
  display: block;
}

.video-quality-selection {
  margin-bottom: 20px;
}

.video-quality-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2列のグリッド */
  gap: 10px;
  /* ボタン間の余白を調整 */
  justify-content: center;
  max-width: 300px;
  margin: 0 auto;
}

.video-quality {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quality-option {
  position: relative;
}

.quality-option input {
  display: none;
}

.quality-button {
  display: block;
  min-width: 150px;
  padding: 10px;
  text-align: center;
  border: 3px solid #ddd;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-family: "BIZ UDPGothic", "Hiragino Maru Gothic Pro", "ヒラギノ丸ゴ Pro W4",
    "ヒラギノ丸ゴ Pro", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3",
    "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", Osaka, sans-serif !important;
  width: 100%;
}

.quality-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 6px;
  color: #333;
  font-family: "BIZ UDPGothic", "Hiragino Maru Gothic Pro", "ヒラギノ丸ゴ Pro W4",
    "ヒラギノ丸ゴ Pro", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3",
    "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", Osaka, sans-serif !important;
}

.quality-detail {
  font-size: 0.9rem;
  color: #555;
  font-family: "BIZ UDPGothic", "Hiragino Maru Gothic Pro", "ヒラギノ丸ゴ Pro W4",
    "ヒラギノ丸ゴ Pro", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3",
    "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", Osaka, sans-serif !important;
}

.quality-option input[type="radio"]:checked + .quality-button {
  border-color: #007bff;
  /* 青色に変更 */
  background-color: #e7f1ff;
  /* 背景色も青系統に */
  box-shadow: 0 3px 8px rgba(0, 123, 255, 0.2);
  /* 影の色も青に */
  transform: translateY(-2px);
}

.quality-button:hover {
  border-color: #007bff;
  /* ホバー時も青に */
  background-color: #f5f5f5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.quality-option:not(:has(input:checked)) .quality-button {
  opacity: 0.8;
}

.config-options {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  /* 配信パターンと映像品質の間隔 */
}

.distribution-pattern,
.video-quality {
  width: 50%;
  /* 画面の半分ずつを使う */
}

.btn-red {
  background-color: red;
  border-color: red;
  color: white;
  /* テキストを白くする場合 */
}

.btn-red:hover {
  background-color: darkred;
  /* ホバー時に濃い赤にする例 */
  border-color: darkred;
}

.btn-group .btn {
  border-radius: 10px !important;
}

.btn.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
  border-radius: 12px;
}

h3.video-quality,
h3.max-connections {
  margin: 2rem 0 1rem 0;
}

.mb-3 {
  margin-left: 2rem;
}

.results {
  background: url(../images/bg_memo3.png) left top repeat;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.distribution-option {
  transition: opacity 0.3s ease;
}

.distribution-option:not(.selected) .form-check-label {
  color: #666;
}

.channel-count {
  max-width: 800px;
  margin: 0 auto;
}

.slider-container {
  padding: 20px 0;
  max-width: 800px;
  margin-left: 4rem;
  /* 左マージンを追加 */
}

/* スライダーのスタイルカスタマイズ */
.form-range {
  height: 8px;
}

.form-range::-webkit-slider-thumb {
  background: #007bff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -6px;
}

.form-range::-moz-range-thumb {
  background: #007bff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
}

.form-range::-webkit-slider-runnable-track {
  background: #dee2e6;
  height: 8px;
  border-radius: 4px;
}

.form-range::-moz-range-track {
  background: #dee2e6;
  height: 8px;
  border-radius: 4px;
}

.settings-container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  position: relative;
  margin-bottom: 1rem;
  padding-left: 1rem;
  text-align: left;
  /* 明示的に左揃えに */
  margin-left: 0;
  /* 左マージンを0に */
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1em;
  background-color: #007bff;
  border-radius: 2px;
}

.video-quality .d-flex {
  margin: 0 auto;
  /* センター揃えのマージン */
}

.channel-count {
  max-width: none;
}

.slider-container {
  padding: 20px 0;
  max-width: 800px;
}

/* 説明文も左端に揃える */
.channel-count p {
  margin-left: 1rem;
}

/* 数値表示用の共通スタイル */
.number-display {
  width: 120px;
  /* 固定幅を設定 */
  padding: 10px 20px;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  text-align: center;
  flex-shrink: 0;
  /* フレックスボックス内で縮小しないように */
  white-space: nowrap;
  /* テキストの折り返しを防止 */
}

.number-display span:first-child {
  font-size: 1.2em;
  font-weight: bold;
  margin-right: 5px;
  display: inline-block;
  min-width: 20px;
}

.total-fee {
  border: 3px dashed #007bff;
  /* 青い枠線を追加 */
  border-radius: 12px;
  /* 角を丸くする */
  padding: 20px;
}

#totalMonthlyFee {
  display: inline-block;
  font-size: 2rem;
  /* 数字を大きくする */
  font-weight: bold;
  color: #222;
  background: #f5f5f5;
  padding: 10px 20px;
  border-radius: 10px;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
  /* 立体感を出す影 */
  font-family: "BIZ UDPGothic", "Hiragino Maru Gothic Pro", "ヒラギノ丸ゴ Pro W4",
    "ヒラギノ丸ゴ Pro", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3",
    "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", Osaka, sans-serif !important;
}


/* PC ファーストでメディアクエリを記載する */

@media screen and (max-width: 1280px) {
  .live-streaming dl {
    /* 4 列 */
    flex: 0 1 calc(25% - 1rem);
  }

  .recording dl {
    /* 3 列 */
    flex: 0 1 calc(30% - 1rem);
  }

  .price_model {
    flex-direction: column;
    align-items: center;
  }

  .price_model .image {
    display: block;
    /* 確実に表示されるようにする */
    width: 100%;
    max-width: 400px;
    margin: 0 auto 1rem auto;
  }

  .price_model .image img {
    width: 100%;
    height: auto;
    display: block;
  }

  .price_model .example {
    max-width: 90%;
    text-align: left;
  }
}

@media screen and (max-width: 768px) {
  .live-streaming dl {
    /* 2 列 */
    flex: 0 1 calc(50% - 1rem);
  }

  /* 2 列になった際にフォントを大きくしたい */
  .live-streaming dt {
    font-size: smaller;
  }

  .live-streaming dd {
    font-size: 18px;
  }

  .recording dl {
    /* 3 列 */
    flex: 0 1 calc(33% - 1rem);
  }

  .recording dd {
    font-size: 18px;
  }

  .toc > a {
    font-size: 14px;
    margin: 4px;
    padding: 6px 4px;
  }

  .toc h5 {
    font-size: 10px;
    line-height: 1.2rem;
    padding: 4px 6px;
  }

  .price img {
    margin: 1.5rem auto;
    min-width: 300px;
    width: 100%;
  }

  .price img.price-img-2 {
    max-width: 300px;
    width: 100%;
    margin: 1rem auto 2rem;
  }

  .distribution-pattern .d-flex {
    flex-direction: column;
    align-items: center;
  }

  .pattern-button {
    width: 80%;
    max-width: 280px;
  }

  .video-quality .d-flex {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .quality-button {
    width: 100%;
    max-width: 150px;
    padding: 5px 10px;
  }

  .quality-name {
    font-size: 1.4rem;
  }

  .quality-detail {
    font-size: 1rem;
  }
}


@media screen and (max-width: 480px) {
  .container {
    max-width: 100%;
    padding: 0 1rem;
  }

  section {
    padding-top: 2rem !important;
  }

  main h2 {
    margin: 0 0 0.5rem 0;
  }

  main h4 {
    font-size: 0.9rem;
    margin: 1rem 0;
  }

  main h5 {
    font-size: small;
    line-height: 1.4rem;
  }

  main p {
    margin: 0 0 0.3rem 0;
    font-size: small;
    line-height: 1.4rem;
  }

  .box_sora {
    max-width: none;
    min-width: 0;
    margin: 0.5rem 0 0 0;
  }

  .box_sora li {
    font-size: smaller;
  }

  .box_sora-cloud {
    max-width: none;
    min-width: 0;
    margin: 0.5rem 0 0 0;
  }

  .box_sora-cloud li {
    font-size: 16px;
  }

  main h6 {
    margin: 1rem 0 1rem 0;
    padding-bottom: 0.4rem;
  }

  .traffic .image {
    margin: 0;
    min-width: calc(100vw - 3rem);
  }

  .traffic .text {
    font-size: 14px;
    margin: 0;
    margin-top: 1rem;
    padding: 0.5rem;
  }

  .cases .title {
    margin: 1rem 0 1rem 0;
    font-size: small;
    line-height: 24px;
  }

  .cases .text {
    font-size: small;
    line-height: 1.4rem;
    margin: 0;
  }

  .cases img {
    margin: 1rem 0;
    width: 100%;
  }

  .price_model {
    flex-direction: column;
    /* 縦並び */
    align-items: center;
    /* 中央揃え */
    width: 100%;
    /* 幅を100%に */
  }

  .price_model .image {
    margin: 0 auto 1rem auto;
    width: 100%;
    max-width: 100%;
  }

  .price_model .image img {
    width: 100%;
    height: auto;
    display: block;
  }

  .price_model .example {
    max-width: 90%;
    text-align: left;
  }

  .comparison table {
    margin: 0;
  }

  .comparison table th {
    font-size: 0.7rem;
    padding: 0.2rem;
  }

  .comparison table th:nth-child(2),
  .comparison table th:nth-child(3) {
    font-size: 0.8rem;
  }

  .comparison table td {
    font-size: 0.6rem;
    padding: 0.2rem;
  }

  .contact-block {
    margin: 1rem 0;
    padding: 1rem;
  }

  .memo-block {
    margin: 0.5rem 0;
    padding: 1rem;
  }

  .memo-block p {
    font-size: 13px;
    margin: 0 0 0.5rem 0;
  }

  .memo-block li {
    font-size: 12px;
    line-height: 1.2rem;
    margin: 0 0 0 0.5rem;
  }

  .memo-block ul {
    font-size: 12px;
  }

  .live-streaming dl {
    flex: 0 1 100%;
  }

  .live-streaming dd.image {
    max-width: 50%;
    margin: 0 auto 10px;
    /* 上下マージンはそのまま、左右は auto */
  }

  .live-streaming dd {
    font-size: small;
  }

  .recording dl {
    flex: 0 1 100%;
  }

  .recording dd.image {
    max-width: 70%;
    margin: 0 auto 10px;
  }

  .recording dd {
    font-size: small;
  }

  .price img {
    margin: 1.5rem auto;
    min-width: 300px;
    width: 100%;
  }

  .price img.price-img-2 {
    max-width: 250px;
    min-width: unset;
    /* ← これを追加！ `min-width: 350px;` を解除 */
    width: 80%;
    margin: 1rem auto;
  }

  .price ul {
    font-size: smaller;
    margin: 2rem 0 0.5rem 0;
  }

  .price_list {
    font-size: 0.8rem;
    padding: 0.2rem;
    margin: 1rem 0;
  }

  .price_list th {
    font-size: 0.5rem;
    max-width: 70px;
    padding: 0.5rem 0;
  }

  .price_list td {
    padding: 0.2rem 0.1rem;
  }

  caption {
    font-size: 0.6rem;
  }

  .faq dt {
    font-size: smaller;
    margin: 0.5rem 0 1rem 0;
  }

  .faq dd {
    font-size: smaller;
    margin: 0.5rem 1rem 2rem 1rem;
  }

  .steps h5 {
    font-size: 14px;
    margin: 1rem 0 0.5rem 0rem;
    padding: 0.5rem 1rem;
  }

  .steps p {
    font-size: 14px;
  }

  .info .date {
    font-size: 14px;
  }

  .info .body {
    font-size: 16px;
  }

  .distribution-pattern h5,
  .video-quality h5,
  .channel-count h5,
  .users-per-channel h5 {
    font-size: 1rem;
    margin: 0.8rem;
  }

  .simulator p.text-secondary {
    font-size: smaller;
  }

  .pattern-button {
    width: 100%;
    max-width: 300px;
  }

  .pattern-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* ボタンとラベルを中央揃え */
  }

  .pattern-label {
    font-size: smaller;
    text-align: center;
    width: 100%;
  }

  .quality-button {
    width: 100%;
    max-width: 300px;
    padding: 5px 10px;
  }

  .video-quality-grid {
    grid-template-columns: 1fr;
    /* スマホでは1列にする */
    max-width: 90%;
    /* 最大幅を制限 */
    margin: 0 auto;
    /* 中央揃え */
  }

  .quality-name {
    font-size: 1rem;
    /* 文字サイズを小さく */
  }

  .quality-detail {
    font-size: 0.8rem;
    /* 説明文を小さく */
  }

  #totalMonthlyFee {
    font-size: 1.2rem;
  }

  /* 「基本料金」「最大同時接続数」「最大利用帯域」のフォントサイズ */
  .fee-breakdown div[style*="border-bottom"] {
    font-size: 0.75rem !important;
    /* さらに小さくして !important を追加 */
  }

  /* 「5,000 円」「15,000 円」「30,000 円」などのフォントサイズ */
  .fee-breakdown .fw-bold {
    font-size: 0.85rem !important;
    /* 変更を強制 */
  }

  /* 「ー」「0 Mbps」などの補助情報 */
  .fee-breakdown .my-2 {
    font-size: 0.8rem !important;
  }

  /* 「【内訳】」のタイトル */
  .fee-breakdown h5 {
    font-size: 0.9rem !important;
  }

  /* 「※最大利用帯域の算出方法」の文字サイズを小さく */
  .fee-breakdown h6 {
    font-size: 0.8rem !important;
    font-weight: normal;
    /* 太字を少し抑える */
    line-height: 1.2;
    /* 行間を詰める */
  }

  /* 補足説明のフォントサイズを小さくする */
  .fee-breakdown p,
  .fee-breakdown div[id="calculationFormula"] {
    font-size: 0.8rem !important;
  }

  .fee-calculation {
    margin-top: 10px !important;
    /* 補足説明との間隔を狭く */
    padding-top: 5px !important;
  }
}


/* PC 表示時のナビゲーションバーの設定 */
@media screen and (min-width: 992px) {
  .navbar-collapse {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .navbar-nav {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
}