.common-style-area {
  container-type: inline-size;
  max-width: 767px;
  margin: auto;

  /* 計算の基準となる横幅 (375px) */
  --w-ref: 375;

  padding: 0;

  color: var(--color-black);
}

.common-style-area .border-l {
  border: var(--border-thick) solid var(--color-gray-dark);
  border-radius: var(--border-radius-l);
}

.common-style-area .border-m {
  border: var(--border-thick) solid var(--color-gray-dark);
  border-radius: var(--border-radius-m);
}

.common-style-area .border-s {
  border: var(--border-thin) solid var(--color-gray-dark);
  border-radius: var(--border-radius-s);
}

.common-style-area .text-black {
  color: var(--color-black);
}

.common-style-area .text-gray-dark {
  color: var(--color-gray-dark);
}

.common-style-area .text-gray-medium {
  color: var(--color-gray-medium);
}

.common-style-area .text-gray-light {
  color: var(--color-gray-light);
}

.common-style-area .text-white {
  color: var(--color-white);
}

.common-style-area .text-red {
  color: var(--color-red);
}

.common-style-area .text-pink {
  color: var(--color-pink);
}

.common-style-area .text-blue-dark {
  color: var(--color-blue-dark);
}

.common-style-area .text-blue-bright {
  color: var(--color-blue-bright);
}

.common-style-area .text-yellow {
  color: var(--color-yellow);
}

.common-style-area .text-beige {
  color: var(--color-beige);
}

/* ============================================
            背景色用クラス
            ============================================ */
.common-style-area .bg-black {
  background-color: var(--color-black);
}

.common-style-area .bg-gray-dark {
  background-color: var(--color-gray-dark);
}

.common-style-area .bg-gray-medium {
  background-color: var(--color-gray-medium);
}

.common-style-area .bg-gray-light {
  background-color: var(--color-gray-light);
}

.common-style-area .bg-white {
  background-color: var(--color-white);
}

.common-style-area .bg-red {
  background-color: var(--color-red);
}

.common-style-area .bg-pink {
  background-color: var(--color-pink);
}

.common-style-area .bg-blue-dark {
  background-color: var(--color-blue-dark);
}

.common-style-area .bg-blue-bright {
  background-color: var(--color-blue-bright);
}

.common-style-area .bg-yellow {
  background-color: var(--color-yellow);
}

.common-style-area .bg-beige {
  background-color: var(--color-beige);
}

.common-style-area * {
  --f-cq-calc: calc(100cqw * var(--f-base) / var(--w-ref));

  /* 適用 */
  font-size: var(--f-cq-calc);
}

.common-style-area span.theme-color-red {
  color: var(--theme-color);
}

.common-style-area .body-text {
  --f-base: 14;
}

.common-style-area .body-bold-text {
  --f-base: 14;
  font-weight: bold;
}

.common-style-area .small-text {
  --f-base: 13;
}

.common-style-area .small-bold-text {
  --f-base: 13;
  font-weight: bold;
}

.common-style-area .x-small-text {
  --f-base: 11;
}

.common-style-area .x-small-bold-text {
  --f-base: 11;
  font-weight: bold;
}

.common-style-area .xx-small-text {
  --f-base: 10;
}

.common-style-area .xx-small-bold-text {
  --f-base: 10;
  font-weight: bold;
}

.common-style-area .xxx-small-text {
  --f-base: 9;
}

.common-style-area .xxx-small-bold-text {
  --f-base: 9;
  font-weight: bold;
}

.common-style-area .large-bold-text {
  --f-base: 17;
  font-weight: bold;
}

.common-style-area .x-large-bold-text {
  --f-base: 19;
  font-weight: bold;
}

.common-style-area .x-large-text {
  --f-base: 17;
}

.common-style-area .xx-large-text {
  --f-base: 25;
}

.common-style-area .xx-large-bold-text {
  --f-base: 25;
  font-weight: bold;
}

.common-style-area .num-text {
  --f-base: 15;
  font-weight: bold;
  font-family: "Roboto";
}

.common-style-area .num-large-text {
  --f-base: 19;
  font-weight: bold;
  font-family: "Roboto";
}

.common-style-area .num-x-large-text {
  --f-base: 21;
  font-weight: bold;
  font-family: "Roboto";
}

.common-style-area .num-xx-large-text {
  --f-base: 25;
  font-weight: bold;
  font-family: "Roboto";
}

.common-style-area .body-bold-title-text {
  --f-base: 14;
  font-weight: bold;
}

.common-style-area .num-x-small-text {
  --f-base: 11;
  font-weight: bold;
  font-family: "Roboto";
}

.common-style-area .title {
  text-align: center;
  border-bottom: 2px solid var(--color-red);
  /* 変数適用 */
  padding-bottom: 3cqw;
}

.common-style-area .title-wrap .title span {
  color: var(--color-red);
  /* 変数適用 */
}

.common-style-area .title-wrap .speach-bubble {
  margin: auto;
  margin-bottom: 2cqw;
}

.common-style-area .title-lead {
  margin: 3cqw 3cqw 1.5cqw;
}

.common-style-area .speach-bubble {
  position: relative;
  padding: 1.7cqw 1.5cqw;
  background-color: var(--color-red);
  /* 変数適用 */
  border-radius: 50px;
  color: var(--color-white);
  /* 変数適用 */
  width: fit-content;
  line-height: 1;
}

.common-style-area .speach-bubble::after {
  content: "";
  position: absolute;
  bottom: -1.3cqw;
  left: 50%;
  transform: translateX(-50%);
  border-width: 11px 7px 0 7px;
  border-color: var(--color-red) transparent transparent transparent;
}

.common-style-area .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;
}

.common-style-area .acod-item:last-child {
  margin: 0 0 0px;
}

.common-style-area .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-style-area .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-style-area .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");
}

.common-style-area .acod-content {
  box-sizing: border-box;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 4cqw;
}

.common-style-area .acod-content p {
  margin: 4cqw 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.common-style-area .common-acod.is-active + .acod-content p {
  opacity: 1;
}

.common-style-area .acod-content p span {
  color: var(--color-red);
  /* 変数適用 */
}

.common-style-area .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: var(--border-thick) solid var(--color-gray-dark);
  border-radius: var(--border-radius-m);
  transition:
    opacity 0.3s ease,
    background-color 0.3s ease;
}

.common-style-area .common-link-btn:hover {
  background-color: var(--color-gray-light);
  /* 変数適用 */
  opacity: 0.8;
}

.common-style-area .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-style-area .common-view-limit-wrap {
  position: relative;
  overflow: hidden;
  /* はみ出しを隠す */
  height: 500px;
  transition: height 0.5s ease;
  /* 伸び縮みのアニメーション */
}

/* ボタンエリア：絶対配置で底に張り付かせる */
.common-style-area .limit-btn-area {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20cqw;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-sizing: border-box;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
  z-index: 10;
}

.common-style-area .common-view-limit-wrap.is-opened {
  height: auto !important;
  /* JSの計算より優先させる場合があるため念のため */
  overflow: visible;
}

/* 全開になったらボタンエリアを消す */
.common-style-area .common-view-limit-wrap.is-opened .limit-btn-area {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: transparent;
  /* グラデーションを透明に */
  position: static;
  /* 絶対配置を解除して本文の下に配置 */
  height: auto;
  padding-bottom: 3cqw;
  /* 余白調整 */
}

/* ボタンのデザイン */
.common-style-area .limit-trigger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  height: auto;
  border: var(--border-thick) solid var(--color-gray-dark);
  border-radius: var(--border-radius-m);
  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);
  margin: auto;
  display: block;
  margin-top: 5cqw;
}

.common-style-area .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);
}

.common-style-area .subtitle-wrap {
  background-color: var(--color-beige);
  padding: 3cqw 3cqw;
  text-align: center;
}

/* アコーディオンのトリガー部分と、もっと見るボタンにポインターを指定 */
.common-style-area .common-acod,
.common-style-area .limit-trigger-btn {
  cursor: pointer;
  /* タップ時のハイライトを有効にする（任意） */
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

/* 共通selectボックス */
.common-style-area .cmn-select-box {
  position: relative;
  border: var(--border-thin) solid var(--color-gray-dark);
  border-radius: var(--border-radius-m);
  box-sizing: border-box;
}

.common-style-area .cmn-select-box select {
  padding: 4cqw 1.5cqw;
  width: 100%;
  border-radius: var(--border-radius-m);
  cursor: pointer;
}

.common-style-area .cmn-select-box::after {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  right: 2%;
  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;
  transform: rotate(90deg);
}

.topic__path.common-style-area {
  max-width: 1152px;
  margin-bottom: 1rem;
}

/* 本文用 (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;
}

/* 太字用 (Bold) */
@font-face {
  font-family: "DIN2014";
  src: url("../fonts/DIN2014-ExtraBold.woff") format("woff2");
  font-weight: bold;
  font-style: normal;
}
