/*セクション左上共通のorangeタグ*/
.c-label-tag {
  display: inline-block;
  background-color: var(--wp--preset--color--main-color);
  color: var(--wp--preset--color--white);
  font-size: 14px;
  font-weight: bold;
  padding: 10px 16px;
  border-radius: 4px;
  line-height: 1;
}


/*ボタンを中央に寄せる「外枠」の設定*/
.c-section-button {
  display: flex;
  justify-content: center; /* 左右中央に配置 */
  margin-top: 60px;        /* セクションコンテンツとの間隔 */
  width: 100%;
}


/*ボタンの共通スタイル*/
.c-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 25px;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s, opacity 0.3s;
  border: 2px solid transparent;
  cursor: pointer;
}

/*バリエーション：色指定*/
.c-button.--orange {
	background-color: var(--wp--preset--color--main-color);
	color: var(--wp--preset--color--white);
}

.c-button.--deep-orange {
	background-color: var(--wp--preset--color--sub-color-1);
	color: var(--wp--preset--color--white);
}

.c-button.--gradation {
	background: linear-gradient(90deg, var(--wp--preset--color--main-color), var(--wp--preset--color--sub-color-1));
	color: var(--wp--preset--color--white);
	padding: 12px 40px;
    background-clip: padding-box;
}

.c-button.--gradation:hover {
    color: var(--wp--preset--color--main-color);
    background: var(--wp--preset--color--white); /* 背景を白に */
    border-color: var(--wp--preset--color--main-color);
}

.c-button.--hole {
	border: 2px solid var(--wp--preset--color--sub-color-1);
    background-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--sub-color-1);
}

.c-button:hover { opacity: 0.8; }


/*キャプション付きボタンユニット (c-button-unit)*/
.c-button-unit {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px; /* キャプションとボタンの間隔 */
    border: 2px solid transparent; /* 枠線を2pxにするとデザイン案の力強さに近づきます */
    box-sizing: border-box;        /* 枠線を含んだサイズ計算 */
    transition: all 0.3s ease;     /* 背景、文字色、枠線を同時に変化させる */
}

/*上部の注釈（キャプション）*/
.c-button-unit__caption {
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
    line-height: 1;
    margin-bottom: 0;
}

.c-button-unit .c-button.--orange:hover {
    background-color: #fff !important;
    color: var(--wp--preset--color--main-color) !important;
    border-color: var(--wp--preset--color--main-color) !important;
}

.c-button-unit .c-button.--deep-orange:hover {
    background-color: #fff !important;
    color: var(--wp--preset--color--sub-color-1) !important;
    border-color: var(--wp--preset--color--sub-color-1) !important;
}



/*バリエーション：色指定*/
.c-button-unit.--main .c-button-unit__caption {
    color: var(--wp--preset--color--main-color);
}

.c-button-unit.--sub .c-button-unit__caption {
    color: var(--wp--preset--color--sub-color-1);
}

@media (max-width: 768px) {
    .c-section-button{
        max-width: 280px;
        margin: 20px auto 0;
        white-space: nowrap;
        font-size: 16px
    }

    .c-button-unit {
        flex: 1;             /* ★左右で半分ずつ幅を分け合う */
        max-width: 180px;    /* 大きくなりすぎない制限 */
        min-width: 0;        /* 崩れ防止 */
    }

    .c-button-unit__caption {
        font-size: 10px;     /* 横並びにするため少し小さく */
        letter-spacing: -0.02em; /* 文字間を少し詰める */
        text-align: center;
        width: 100%;
    }
}