/* ==========================================================================
   Components — 再利用コンポーネント
   ========================================================================== */

/* --------------------------------------------------------------------------
   .c-button（CTAボタン）— 要件定義書「5-2」「4-4」
   -------------------------------------------------------------------------- */
.c-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--border-radius-full);
  background-color: var(--color-base);
  color: var(--color-white);
  padding: 2rem 2rem 2rem 2.7rem;
  column-gap: 1.6rem;
  font-size: 1.4rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-base);
  line-height: var(--leading-none);
  transition: background-color 0.2s ease;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}

.c-button:hover {
  background-color: var(--rotation-color);
}

.c-button__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background-color: var(--color-white);
  flex-shrink: 0;
}

.c-button__icon img,
.c-button__icon svg {
  width: 1rem;
  height: 1rem;
}

/* インバートバリアント */
.c-button--invert {
  background-color: var(--color-white);
  color: var(--color-base);
}

.c-button--invert .c-button__icon {
  background-color: var(--color-base);
}

.c-button--invert .c-button__icon img,
.c-button--invert .c-button__icon svg {
  filter: invert(1);
}

/* フルワイド（フォーム送信ボタン用） */
.c-button--full {
  width: 100%;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   .c-stroke（ストロークホバーエフェクト）— 要件定義書「4-3」
   -------------------------------------------------------------------------- */
.c-stroke {
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--border-radius);
  transition: border-color 0.3s ease;
}

.c-stroke.is-hover {
  border-color:
    var(--stroke-color-top)
    var(--stroke-color-right)
    var(--stroke-color-bottom)
    var(--stroke-color-left);
}

.c-stroke-icon-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: var(--index-color, var(--color-01));
}

.c-stroke-icon-bg img,
.c-stroke-icon-bg svg {
  width: 25%;
  fill: var(--color-white);
}

/* --------------------------------------------------------------------------
   .c-strong（強調マーカー）— 要件定義書「3-3-5」
   -------------------------------------------------------------------------- */
.c-strong {
  display: inline;
  font-weight: var(--font-weight-bold);
}

/* --------------------------------------------------------------------------
   .c-colorful（カラフルテキスト）— 要件定義書「3-2-7」
   -------------------------------------------------------------------------- */
.c-colorful-child {
  display: inline-block;
  transform-origin: 10% 90%;
}

@keyframes colorful {
  0%   { color: var(--color-last, var(--color-base)); }
  18%  { color: var(--color-start); }
  36%  { color: var(--color-end); }
  100% { color: var(--color-last, var(--color-base)); }
}

/* --------------------------------------------------------------------------
   .page-balloon（バルーンラベル）— 要件定義書「3-3-4」
   -------------------------------------------------------------------------- */
.page-balloon {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-white);
  border-radius: var(--border-radius-full);
  font-family: var(--font-family-red-hat);
  font-weight: var(--font-weight-extra-bold);
  font-size: 1.2rem;
  padding: 1rem 1.4rem;
  line-height: var(--leading-none);
  position: relative;
}

.page-balloon::before {
  content: '';
  position: absolute;
  bottom: -0.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.7rem;
  height: 0.6rem;
  background-color: var(--color-white);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* 強みセクション内バルーン */
.section-strength .page-balloon {
  background-color: var(--color-cloud);
}

.section-strength .page-balloon::before {
  background-color: var(--color-cloud);
}

/* --------------------------------------------------------------------------
   .c-separator-r（曲線セパレータ）— 要件定義書「3-3-3」
   -------------------------------------------------------------------------- */
.c-separator-r {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
}

.c-separator-r svg {
  display: block;
  width: 100%;
}

/* --------------------------------------------------------------------------
   .c-separator-three-dot（三点ドット）— 要件定義書「3-3-3」
   -------------------------------------------------------------------------- */
.c-separator-three-dot {
  display: flex;
  justify-content: center;
}

.c-separator-three-dot svg {
  fill: var(--color-muted);
}

/* --------------------------------------------------------------------------
   .c-illust（イラストコンテナ）— 要件定義書「3-4」
   -------------------------------------------------------------------------- */
.c-illust {
  position: relative;
}

.c-illust img {
  width: 100%;
  height: auto;
}

/* アニメーション二枚組 */
.c-illust.is-multiple img:last-child {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
}

.c-illust.is-multiple.is-wow img:last-child {
  visibility: visible;
}

/* --------------------------------------------------------------------------
   セクション共通
   -------------------------------------------------------------------------- */
.section-title-wrapper {
  margin-bottom: 4.8rem;
}

.section-title-balloon {
  margin-bottom: 1.6rem;
}

.section-title-svg {
  height: 11rem;
  margin-bottom: 0.8rem;
  overflow: visible;
}

.section-title-svg svg,
.section-title-svg img {
  height: 100%;
  width: auto;
  overflow: visible;
}

.section-title-ja {
  font-size: 1.3rem;
  color: var(--color-muted);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-base);
}

/* nth-child自動カラーインデキシング */
.service-item:nth-child(6n+1),
.strength-item:nth-child(6n+1) { --index-color: var(--color-01); }
.service-item:nth-child(6n+2),
.strength-item:nth-child(6n+2) { --index-color: var(--color-02); }
.service-item:nth-child(6n+3),
.strength-item:nth-child(6n+3) { --index-color: var(--color-03); }
.service-item:nth-child(6n+4),
.strength-item:nth-child(6n+4) { --index-color: var(--color-04); }
.service-item:nth-child(6n+5),
.strength-item:nth-child(6n+5) { --index-color: var(--color-05); }
.service-item:nth-child(6n+6),
.strength-item:nth-child(6n+6) { --index-color: var(--color-06); }

/* コンテナ */
.l-container {
  width: 100%;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 4rem;
}
