.common-style-area {
  container-type: inline-size;
  max-width: 767px;
  margin: auto;

  /* 計算の基準となる横幅 (375px) */
  --w-ref: 375;

  padding: 0;

  color: var(--color-black);
  .text-black {
    color: var(--color-black);
  }
  .text-gray-dark {
    color: var(--color-gray-dark);
  }
  .text-gray-medium {
    color: var(--color-gray-medium);
  }
  .text-gray-light {
    color: var(--color-gray-light);
  }
  .text-white {
    color: var(--color-white);
  }
  .text-red {
    color: var(--color-red);
  }
  .text-pink {
    color: var(--color-pink);
  }
  .text-blue-dark {
    color: var(--color-blue-dark);
  }
  .text-blue-bright {
    color: var(--color-blue-bright);
  }
  .text-yellow {
    color: var(--color-yellow);
  }
  .text-beige {
    color: var(--color-beige);
  }

  /* ============================================
   背景色用クラス
   ============================================ */
  .bg-black {
    background-color: var(--color-black);
  }
  .bg-gray-dark {
    background-color: var(--color-gray-dark);
  }
  .bg-gray-medium {
    background-color: var(--color-gray-medium);
  }
  .bg-gray-light {
    background-color: var(--color-gray-light);
  }
  .bg-white {
    background-color: var(--color-white);
  }
  .bg-red {
    background-color: var(--color-red);
  }
  .bg-pink {
    background-color: var(--color-pink);
  }
  .bg-blue-dark {
    background-color: var(--color-blue-dark);
  }
  .bg-blue-bright {
    background-color: var(--color-blue-bright);
  }
  .bg-yellow {
    background-color: var(--color-yellow);
  }
  .bg-beige {
    background-color: var(--color-beige);
  }

  * {
    --f-cq-calc: calc(100cqw * var(--f-base) / var(--w-ref));

    /* 適用 */
    font-size: var(--f-cq-calc);
  }

  span.theme-color-red {
    color: var(--theme-color);
  }

  .body-text {
    --f-base: 15;
  }

  .body-bold-text {
    --f-base: 15;
    font-weight: bold;
  }

  .small-text {
    --f-base: 14;
  }

  .small-bold-text {
    --f-base: 14;
    font-weight: bold;
  }

  .x-small-text {
    --f-base: 12;
  }

  .x-small-bold-text {
    --f-base: 12;
    font-weight: bold;
  }

  .xx-small-text {
    --f-base: 11;
  }

  .xx-small-bold-text {
    --f-base: 11;
    font-weight: bold;
  }

  .xxx-small-text {
    --f-base: 10;
  }

  .xxx-small-bold-text {
    --f-base: 10;
    font-weight: bold;
  }

  .large-bold-text {
    --f-base: 20;
    font-weight: bold;
  }

  .x-large-bold-text {
    --f-base: 18;
    font-weight: bold;
  }

  .x-large-text {
    --f-base: 18;
  }

  .xx-large-text {
    --f-base: 26;
  }

  .xx-large-bold-text {
    --f-base: 26;
    font-weight: bold;
  }

  .num-text {
    --f-base: 16;
    font-weight: bold;
    font-family: "Roboto";
  }

  .num-large-text {
    --f-base: 20;
    font-weight: bold;
    font-family: "Roboto";
  }

  .num-x-large-text {
    --f-base: 22;
    font-weight: bold;
    font-family: "Roboto";
  }

  .num-xx-large-text {
    --f-base: 26;
    font-weight: bold;
    font-family: "Roboto";
  }

  .body-bold-title-text {
    --f-base: 15;
    font-weight: bold;
  }

  .num-x-small-text {
    --f-base: 12;
    font-weight: bold;
    font-family: "Roboto";
  }

  .title {
    text-align: center;
    border-bottom: 2px solid var(--color-red); /* 変数適用 */
    padding-bottom: 3cqw;
  }

  .title-wrap .title span {
    color: var(--color-red); /* 変数適用 */
  }

  .title-wrap .speach-bubble {
    margin: auto;
    margin-bottom: 2cqw;
  }

  .title-lead {
    margin: 3cqw 3cqw 1.5cqw;
  }

  .speach-bubble {
    position: relative;
    padding: 4px 7px;
    background-color: var(--color-red); /* 変数適用 */
    border-radius: 50px;
    color: var(--color-white); /* 変数適用 */
    width: fit-content;
  }

  .speach-bubble::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 5px 0 5px;
    border-color: var(--color-red) transparent transparent transparent; /* 変数適用 */
  }

  .acod-item {
    margin: auto;
    background: var(--color-white); /* 変数適用 */
    border: 1px solid var(--color-gray-dark); /* 変数適用 */
    border-radius: 10px;
    overflow: hidden;
    width: auto;
    /* margin調整 */
    margin: 0 0cqw 3cqw;
  }

  .acod-item:last-child {
    margin: 0 0 0px;
  }

  .common-acod {
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4cqw 4cqw 4cqw;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.3s ease;
  }

  /* SVG内の色は変数が使えないためハードコードのままにしています */
  .common-acod::after {
    content: "";
    display: block;
    width: 6cqw;
    height: 6cqw;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.5 5C12.0523 5 12.5 5.44772 12.5 6V11.5H18C18.5523 11.5 19 11.9477 19 12.5C19 13.0523 18.5523 13.5 18 13.5H12.5V19C12.5 19.5523 12.0523 20 11.5 20C10.9477 20 10.5 19.5523 10.5 19V13.5H5C4.44772 13.5 4 13.0523 4 12.5C4 11.9477 4.44772 11.5 5 11.5H10.5V6C10.5 5.44772 10.9477 5 11.5 5Z' fill='%23D00000'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.3s ease;
  }

  .common-acod.is-active::after {
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='4' y='11' width='15' height='2' rx='1' fill='%23D00000'/%3E%3C/svg%3E");
  }

  .acod-content {
    box-sizing: border-box;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 4cqw;
  }

  .acod-content p {
    margin: 4cqw 0;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .common-acod.is-active + .acod-content p {
    opacity: 1;
  }

  .acod-content p span {
    color: var(--color-red); /* 変数適用 */
  }

  .common-link-btn {
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4cqw 4cqw 4cqw;
    background: var(--color-white); /* 変数適用 */
    border: 1px solid var(--color-gray-dark); /* 変数適用 */
    border-radius: 10px;
    transition: opacity 0.3s ease, background-color 0.3s ease;
  }

  .common-link-btn:hover {
    background-color: var(--color-gray-light); /* 変数適用 */
    opacity: 0.8;
  }

  .common-link-btn::after {
    content: "";
    display: block;
    width: 6cqw;
    height: 6cqw;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.5 7L14 12L9.5 17' stroke='%23D00000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }

  .common-view-limit-wrap {
    position: relative;
    overflow: hidden; /* はみ出しを隠す */
    transition: height 0.5s ease; /* 伸び縮みのアニメーション */
  }

  /* ボタンエリア：絶対配置で底に張り付かせる */
  .limit-btn-area {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 1) 70%
    );
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 30px;
    box-sizing: border-box;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 10;
  }

  /* 全開になったらボタンエリアを消す */
  .common-view-limit-wrap.is-opened .limit-btn-area {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: transparent; /* グラデーションを透明に */
    position: static; /* 絶対配置を解除して本文の下に配置 */
    height: auto;
    padding-top: 20px; /* 余白調整 */
  }

  /* ボタンのデザイン */
  .limit-trigger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    height: auto;
    border: 1px solid var(--color-gray-dark);
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    padding: 2% 4%;
    transition: all 0.3s ease;
    background: #fff; /* 変数が効かない場合のため #fff */
    background: var(--color-white);
  }

  .limit-trigger-btn:hover {
    background-color: #f0f0f0;
    background-color: var(--color-gray-light);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
  }
  .subtitle-wrap {
    background-color: var(--color-beige);
    padding: 3cqw 3cqw;
    text-align: center;
  }
}

/* 本文用 (Regular) */
@font-face {
  font-family: "Roboto";
  src: url("./fonts/Roboto-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

/* 太字用 (Bold) */
@font-face {
  font-family: "Roboto";
  src: url("./fonts/Roboto-Bold.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
}
