/* ============================================
   WordPress カスタムコンポーネント CSS
   ============================================ */

/* ============================================
   親テーマの H2 スタイルをオーバーライド
   ============================================ */

/* カスタム H2 スタイルを使用する場合、親テーマのデフォルトスタイルを無効化 */
.post_content h2.h2-style-1,
.post_content h2.h2-style-2,
.post_content h2.h2-style-3,
.post_content h2.h2-style-4,
.post_content h2.h2-style-5,
.post_content h2.h2-style-6,
.post_content .h2-style-7 {
    background: none !important;
    padding: 0 !important;
    color: inherit !important;
}

.post_content h2.h2-style-1::before,
.post_content h2.h2-style-2::before,
.post_content h2.h2-style-3::before,
.post_content h2.h2-style-4::before,
/* h2-style-5 は ::before と ::after を使用するため除外 */
.post_content h2.h2-style-6::before,
.post_content .h2-style-7::before {
    content: none !important;
    display: none !important;
}

/* すべてのカスタム H2 クラスを持つ要素に対して親テーマのスタイルを無効化 */
.post_content h2[class*="h2-style-"]:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)) {
    background: none !important;
    padding: 0 !important;
    color: inherit !important;
}

/* h2-style-5 は ::before と ::after を使用するため除外 */
.post_content h2[class*="h2-style-"]:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)):not(.h2-style-5)::before {
    content: none !important;
    display: none !important;
}

/* ============================================
   1. H2 タイトルデザイン（7スタイル）
   ============================================ */

/* H2 Style 1: オレンジ背景 + 白文字 */
.h2-style-1,
.post_content h2.h2-style-1 {
    display: inline-block;
    background-color: #FC5E3A !important;
    color: #fff !important;
    padding: 12px 24px !important;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.4;
    margin: 20px 0;
    border-radius: 4px;
}

/* H2 Style 2: オレンジ文字のみ */
.h2-style-2,
.post_content h2.h2-style-2 {
    color: #FC5E3A !important;
    font-size: 28px;
    font-weight: bold;
    line-height: 1.4;
    margin: 20px 0;
    background: none !important;
    padding: 0 !important;
}

/* H2 Style 3: オレンジ文字 + 上に装飾テキスト */
.h2-style-3,
.post_content h2.h2-style-3 {
    color: #FC5E3A !important;
    font-size: 28px;
    font-weight: bold;
    line-height: 1.4;
    margin: 20px 0;
    position: relative;
    background: none !important;
    padding: 0 !important;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.h2-style-3__label {
    display: inline-block;
    text-align: center;
    margin-bottom: 8px;
    color: #FC5E3A;
    position: relative;
    width: auto;
    /* テキストの長さに応じて幅が自動調整される */
}

/* 主标题文本部分をラップ */
.h2-style-3> :not(.h2-style-3__label) {
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    /* この幅が親要素の幅を決定し、label も同じ幅になる */
}

.h2-style-3__label::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    width: 1px;
    height: 20px;
    background-color: #333;
    /* label のテキストの左側に配置（左に45度傾斜した線） */
}

.h2-style-3__label::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 1px;
    height: 20px;
    background-color: #333;
    /* label のテキストの右側に配置（右に45度傾斜した線） */
}

/* H2 Style 4: 黒文字のみ（複数行対応） */
.h2-style-4,
.post_content h2.h2-style-4 {
    color: #333 !important;
    font-size: 28px;
    font-weight: bold;
    line-height: 1.6;
    margin: 20px 0;
    white-space: normal;
    background: none !important;
    padding: 0 !important;
}

/* H2 Style 5: オレンジ文字 + 左右に線 */
.h2-style-5,
.post_content h2.h2-style-5 {
    color: #FC5E3A !important;
    font-size: 28px;
    font-weight: bold;
    line-height: 1.4;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: none !important;
    padding: 0 !important;
}

/* h2-style-5 の ::before - 親テーマのスタイルを上書きして左側の線を表示 */
.h2-style-5::before,
.post_content h2.h2-style-5::before {
    content: '' !important;
    display: block !important;
    width: 40px;
    height: 1px;
    background-color: #333;
    flex-shrink: 0;
    /* 親テーマのスタイルを完全に上書き */
    position: static !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    border-top: none;
    border-bottom: none;
}

/* h2-style-5 の ::after - 右側の線 */
.h2-style-5::after,
.post_content h2.h2-style-5::after {
    content: '' !important;
    display: block !important;
    width: 40px;
    height: 1px;
    background-color: #333;
    flex-shrink: 0;
}

/* H2 Style 6: 2行テキスト（複数行対応） */
.h2-style-6,
.post_content h2.h2-style-6 {
    color: #333 !important;
    font-size: 18px;
    font-weight: normal;
    line-height: 1.6;
    margin: 20px 0;
    white-space: normal;
    background: none !important;
    padding: 0 !important;
}

/* H2 Style 7: 大見出し + 説明文（複数行対応） */
.h2-style-7,
.post_content .h2-style-7 {
    margin: 20px 0;
}

.h2-style-7__title,
.post_content .h2-style-7__title {
    color: #333 !important;
    font-size: 32px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 8px;
    background: none !important;
    padding: 0 !important;
}

.h2-style-7__desc,
.post_content .h2-style-7__desc {
    color: #666;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.6;
    white-space: normal;
}

/* ============================================
   2. H3 タイトルデザイン（7スタイル）
   ============================================ */

/* H3 Style 1: 番号付き + 下線 */
.h3-style-1 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #FC5E3A;
}

.h3-style-1__number {
    color: #FC5E3A;
    font-size: 24px;
    font-weight: bold;
    min-width: 40px;
}

.h3-style-1__text {
    color: #333;
    font-size: 22px;
    font-weight: normal;
}

/* H3 Style 2: 番号付き + 下線（番号のみ） */
.h3-style-2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #FC5E3A;
}

.h3-style-2__number {
    color: #FC5E3A;
    font-size: 24px;
    font-weight: bold;
    min-width: 40px;
}

.h3-style-2__text {
    color: #333;
    font-size: 22px;
    font-weight: normal;
}

/* H3 Style 3: 番号付き + 下線 + 太字 */
.h3-style-3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #FC5E3A;
}

.h3-style-3__number {
    color: #FC5E3A;
    font-size: 24px;
    font-weight: bold;
    min-width: 40px;
}

.h3-style-3__text {
    color: #333;
    font-size: 22px;
    font-weight: bold;
}

/* H3 Style 4: 通常テキスト */
.h3-style-4 {
    color: #333;
    font-size: 20px;
    font-weight: normal;
    line-height: 1.6;
    margin: 20px 0;
}

/* H3 Style 5: 画像 + テキスト（左画像 + 右テキスト） */
.h3-style-5 {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 20px 0;
}

.h3-style-5__image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.h3-style-5__content {
    flex: 1;
}

.h3-style-5__title {
    color: #333;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 12px;
    line-height: 1.4;
}

.h3-style-5__text {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.h3-style-5__text p {
    margin: 0 0 8px 0;
}

.h3-style-5__text p:last-child {
    margin-bottom: 0;
}

/* H3 Style 6: 画像 + テキスト（左画像 + 右テキスト） */
.h3-style-6 {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 20px 0;
}

.h3-style-6__image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.h3-style-6__content {
    flex: 1;
}

.h3-style-6__title {
    color: #333;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 12px;
    line-height: 1.4;
}

.h3-style-6__text {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.h3-style-6__text p {
    margin: 0 0 8px 0;
}

.h3-style-6__text p:last-child {
    margin-bottom: 0;
}

/* H3 Style 7: 画像 + テキスト（左画像 + 右テキスト） */
.h3-style-7 {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 20px 0;
}

.h3-style-7__image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.h3-style-7__content {
    flex: 1;
}

.h3-style-7__title {
    color: #333;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 12px;
    line-height: 1.4;
}

.h3-style-7__text {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.h3-style-7__text p {
    margin: 0 0 8px 0;
}

.h3-style-7__text p:last-child {
    margin-bottom: 0;
}

/* ============================================
   3. Q&A デザイン（2スタイル）
   ============================================ */

/* Q&A Style 1: 標準スタイル */
.qa-style-1 {
    margin: 20px 0;
}

.qa-style-1__item {
    margin-bottom: 16px;
}

.qa-style-1__question {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 8px;
}

.qa-style-1__q-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background-color: #FC5E3A;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.qa-style-1__question-text {
    flex: 1;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.qa-style-1__answer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
}

.qa-style-1__a-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background-color: #FC5E3A;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.qa-style-1__answer-text {
    flex: 1;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Q&A Style 2: アコーディオン式 */
.qa-style-2 {
    margin: 20px 0;
}

.qa-style-2__item {
    margin-bottom: 16px;
}

.qa-style-2__question {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #FC5E3A;
    color: #fff;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qa-style-2__question:hover {
    background-color: #e04a2a;
}

.qa-style-2__q-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background-color: transparent;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.qa-style-2__question-text {
    flex: 1;
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

.qa-style-2__toggle {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.qa-style-2__toggle::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #FC5E3A;
}

.qa-style-2__item.active .qa-style-2__toggle {
    transform: rotate(180deg);
}

.qa-style-2__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #FC5E3A;
    color: #fff;
    border-radius: 8px;
    margin-top: 5px;
    padding: 0 16px;
}

.qa-style-2__item.active .qa-style-2__answer {
    max-height: 1000px;
    padding: 16px;
}

.qa-style-2__answer-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.qa-style-2__a-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background-color: transparent;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.qa-style-2__answer-text {
    flex: 1;
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   4. 口コミ（ユーザー評価）デザイン
   ============================================ */

.review-block {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.review-item {
    background-color: #fff;
    border: 5px solid #FC5E3A;
    border-radius: 12px;
    padding: 24px;
}

.review-item__avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: block;
    object-fit: cover;
    background-color: #f0f0f0;
}

.review-item__title {
    font-size: 25px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin-bottom: 12px;
    min-height: 48px;
}

.review-item__separator {
    height: 1px;
    background-color: #ddd;
    margin: 12px 0;
}

.review-item__content {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 12px;
    min-height: 80px;
    font-weight: bold;
}

.review-item__meta {
    padding-top: 12px;
    font-size: 15px;
    text-align: center;
}

/* 口コミ Style 2: シンプルスタイル */
.review-item--simple {
    border: 1px solid #ddd;
    box-shadow: none;
}

.review-item--simple .review-item__avatar {
    width: 60px;
    height: 60px;
}

.review-item--simple .review-item__title {
    font-size: 16px;
    min-height: auto;
}

.review-item--simple .review-item__content {
    font-size: 13px;
    min-height: auto;
}

/* 口コミ Style 3: カードスタイル */
.review-item--card {
    background: linear-gradient(135deg, #fff 0%, #fff8f5 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   5. ボタンデザイン（2スタイル）
   ============================================ */

/* ボタン Style 1: fuku-chan.info スタイル */
.button-block-1 {
    background-color: #FC5E3A;
    border: 10px solid #FC5E3A;
    border-radius: 40px;
    padding: 0;
    margin: 30px 0;
    position: relative;
    /* overflow: hidden; */
}

.button-block-1__header {
    color: #fff;
    padding: 16px 24px;
    border-radius: 27px 27px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0;
    margin-bottom: 0;
}

.button-block-1__header-text {
    font-size: 40px;
    font-weight: bold;
    line-height: 1.4;
    flex: 1;
}

.button-block-1__header_small {
    font-size: 30px;
    font-weight: bold;
}

.button-block-1__header-img {
    width: 35%;
    position: absolute;
    right: 10px;
    top: -142px;
}

.button-block-box {
    background-color: #fff;
    padding: 24px;
    border-radius: 40px;
}

.button-block-1__appraisal {
    background-color: #FFE190;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0px 5px 8px 1px rgb(92 92 92 / 37%)
}

.button-block-1__appraisal:hover {
    transform: translateY(-2px);
}

.button-block-1__appraisal-text {
    /* flex: 1; */
    width: 55%;
}

.button-block-1__appraisal-main {
    font-size: 45px;
    font-weight: bold;
    color: #FF0000;
    margin-bottom: 6px;
    line-height: 1.3;
}

.appraisal_text_small, .appraisal_text_small2 {
    font-size: 35px;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.3;
}

.button-block-1__appraisal-sub, .button-block-1__phone-time {
    font-size: 25px;
    color: #333;
    line-height: 1.4;
    font-weight: bold;
    text-align: center;
}

.button-block-1__appraisal-icon {
    width: 10%;
    flex-shrink: 0;
    margin-left: 16px;
    object-fit: contain;
}

.button-block-1__phone {
    background-color: #8BC64D;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0px 5px 8px 1px rgb(92 92 92 / 37%)
}

.button-block-1__phone:hover {
    transform: translateY(-2px);
}

.button-block-1__phone-icon {
    width: 20%;
    flex-shrink: 0;
    object-fit: contain;
}

.button-block-1__phone-text {
    /* flex: 1; */
    width: 55%;
    text-align: center;
}

.button-block-1__phone-number {
    font-size: 45px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.2;
}

.button-block-1__phone-time {
    color: #fff;
}

/* ボタン Style 2: kurashi-tech.com スタイル */
.button-block-2 {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.button-block-2__appraisal {
    flex: 1;
    min-width: 280px;
    box-shadow: 0px 5px 8px 1px rgb(92 92 92 / 37%);
    background-color: white;
    border: 5px solid #FFE190;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    transition: all 0.3s ease;
}

.button-block-2__appraisal:hover {
    transform: translateY(-2px);
}

.button-block-2__appraisal-text {
    flex: 1;
}

.button-block-2__appraisal-main {
    font-size: 35px;
    font-weight: bold;
    color: #FF0000;
    line-height: 1.4;
    /* margin-bottom: 4px; */
}

.appraisal_text_small2 {
    font-size: 26px;
}

.button-block-2__appraisal-sub {
    font-size: 20px;
    color: #333;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
}

.button-block-2__phone {
    flex: 1;
    min-width: 280px;
    background-color: white;
    border: 5px solid #8BC64D;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0px 5px 8px 1px rgb(92 92 92 / 37%)
}

.button-block-2__phone:hover {
    transform: translateY(-2px);
}

.button-block-2__appraisal-icon {
    width: 15%;
}

.button-block-2__phone-icon {
    width: 25%;
}

.button-block-2__phone-text {
    flex: 1;
    text-align: center;
}

.button-block-2__phone-number {
    font-size: 40px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
}

.button-block-2__phone-time {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    line-height: 30px;
}

/* ============================================
   6. テーブルデザイン
   ============================================ */

.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 14px;
}

.custom-table th,
.custom-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.custom-table thead th {
    background-color: #FC5E3A;
    color: #fff;
    font-weight: bold;
    text-align: center;
}

.custom-table tbody tr td:first-child {
    background-color: #FFF8EB;
    color: #404040;
    font-weight: 500;
}

.custom-table tbody td {
    background-color: #fff;
    color: #333;
}

.custom-table tbody tr:hover td {
    background-color: #f9f9f9;
}

/* ============================================
   7. Tab タブデザイン
   ============================================ */

.tab-container {
    margin: 30px 0;
}

.tab-menu {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    position: relative;
}

.tab-menu__item {
    flex: 1;
    background-color: #FBE3D6;
    color: #333;
    padding: 16px 24px;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.tab-menu__item:hover {
    background-color: #f5d4c0;
}

.tab-menu__item.active {
    background-color: #FC5E3A;
    color: #fff;
    z-index: 2;
}

.tab-menu__item.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #FC5E3A;
}

.tab-content {
    background-color: #fff;
    border: 2px solid #FBE3D6;
    border-radius: 0 0 8px 8px;
    padding: 24px;
    margin-top: 10px;
    min-height: 200px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   8. バナーデザイン
   ============================================ */

.banner-block {
    margin: 30px 0;
    overflow: hidden;
}

/* バナー Style 1: オレンジ背景 + 白枠 */
.banner-style-1 {
    background-color: white;
    border: 15px solid #FC5E3A;
    padding: 20px 10px 0px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    min-height: 200px;
    align-items: flex-end;
}

/* 左上角logo */
.banner-style-1__top-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: auto;
    height: 60px;
    z-index: 10;
    object-fit: contain;
}

.banner-style-1__left {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 上排内容 */
.banner-style-1__top-row {
    position: absolute;
    bottom: 80px;
    left: 18%;
}

.banner-style-1__top-row::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 0px solid transparent;
    border-right: 11px solid transparent;
    border-top: 6px solid #FC5E3A;
}

.banner-style-1__speech {
    background-color: #FC5E3A;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.banner-style-1__speech-left {
    display: inline-block;
    line-height: 1.2;
    font-size: 20px;
    font-weight: bold;
    white-space: nowrap;
}

.banner-style-1__speech-right {
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

.banner-style-1__speech-right::first-letter {
    font-size: 30px;
}

/* 下排内容 */
.banner-style-1__bottom-row {
    margin-top: 20px;
}

.banner-style-1__main-text {
    font-size: 36px;
    font-weight: bold;
    line-height: 1.2;
}

.banner-style-1__main-text--orange {
    color: #FC5E3A;
    font-size: 65px;
}

.banner-style-1__main-text--black {
    color: #333;
    font-size: 40px;
}

/* 右侧图片 */
.banner-style-1__right {
    flex-shrink: 0;
    width: auto;
    max-width: 58%;
}

.banner-style-1__right-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* 旧样式保留（用于兼容性） */
.banner-style-1__logo {
    margin-bottom: 12px;
}

.banner-style-1__tagline {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.banner-style-1__title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 16px;
}

.banner-style-1__images {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.banner-style-1__image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    background-color: #fff;
}

/* バナー Style 2: オレンジ背景のみ */
.banner-style-2 {
    background-color: #FC5E3A;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    min-height: 200px;
}

.banner-style-2__left {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 上排内容 */
.banner-style-2__top-row {
    position: relative;
    text-align: center;
}

.banner-style-2__text-box {
    background-color: transparent;
    padding: 12px 20px;
    margin-bottom: 0;
    border-radius: 0;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    position: relative;
    display: inline-block;
    width: auto;
}

.banner-style-2__text-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    width: 2px;
    height: 40px;
    background-color: #fff;
    /* text-box のテキストの左側に配置（左に45度傾斜した線） */
}

.banner-style-2__text-box::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 2px;
    height: 40px;
    background-color: #fff;
    /* text-box のテキストの右側に配置（右に45度傾斜した線） */
}

/* 中间悬浮对话框 */
.banner-style-2__speech-wrapper {
    position: relative;
}

.banner-style-2__speech {
    background-color: #fff;
    border-radius: 8px;
    padding: 10px;
    font-size: 15px;
    font-weight: bold;
    color: #FC5E3A;
    display: flex;
    align-items: center;
    position: absolute;
    left: 85%;
    top: -75px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.banner-style-2__speech-left {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 45px;
    font-size: 20px;
}

.banner-style-2__speech-right {
    font-size: 25px;
    font-weight: bold;
    line-height: 1;
}

.banner-style-2__speech::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 0px solid transparent;
    border-right: 20px solid transparent;
    border-top: 8px solid #fff;
}

/* 下排内容（白色大块） */
.banner-style-2__bottom-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.banner-style-2__bottom-row div {
    background-color: #fff;
    padding: 12px 9px;
    text-align: center;
    display: inline-block;
    width: auto;
}

.banner-style-2__text-main {
    font-size: 30px;
    font-weight: bold;
    color: #FC5E3A;
    line-height: 1.3;
    margin-bottom: 0;
}

.banner-style-2__text-sub {
    font-size: 18px;
    font-weight: 500;
    color: #FC5E3A;
    line-height: 1.4;
}

/* 右侧图片 */
.banner-style-2__right {
    flex-shrink: 0;
    width: auto;
    max-width: 55%;
}

.banner-style-2__right-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* 旧样式保留（用于兼容性） */
.banner-style-2__images {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.banner-style-2__image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    background-color: #fff;
}

/* ============================================
   レスポンシブ対応
   ============================================ */

@media (max-width: 768px) {

    /* H2 スタイル */
    .h2-style-1 {
        font-size: 20px;
        padding: 10px 16px;
    }

    .h2-style-2,
    .h2-style-3,
    .h2-style-4,
    .h2-style-5 {
        font-size: 24px;
    }

    .h2-style-7__title {
        font-size: 28px;
    }

    /* H3 スタイル */
    .h3-style-1,
    .h3-style-2,
    .h3-style-3 {
        flex-wrap: wrap;
    }

    .h3-style-5,
    .h3-style-6,
    .h3-style-7 {
        flex-direction: column;
    }

    .h3-style-5__image,
    .h3-style-6__image,
    .h3-style-7__image {
        width: 100%;
        height: auto;
        max-height: 200px;
    }

    /* 口コミ */
    .review-block {
        grid-template-columns: 1fr;
    }

    /* ボタン */
    /* button_block1: sp版自适应 - 缩小整体比例 */
    .button-block-1 {
        transform-origin: center top;
        margin: 20px 0;
    }

    .button-block-1__header-text, .button-block-1__phone-number,.button-block-2__appraisal-main,.button-block-2__phone-number{
        font-size: 25px;
    }

    .button-block-1__header_small, .appraisal_text_small, .button-block-1__phone-time,.button-block-2__appraisal-sub,.appraisal_text_small2,.button-block-2__phone-time{
        font-size: 20px;
    }

    .button-block-1__header-img {
        width: 30%;
        right: 5px;
        top: -81px;
    }

    .button-block-box {
        padding: 30px 13px;
    }

    .button-block-1__appraisal, .button-block-1__phone {
        padding: 20px 15px;
    }

    .button-block-1__appraisal-text, .button-block-1__phone-text {
        width: 100%;
    }

    .button-block-1__appraisal-main {
        font-size: 24px;
    }

    .button-block-1__appraisal-sub {
        font-size: 18px;
    }

    /* button_block2: sp版自适应 - 缩小整体比例 */
    .button-block-2 {
        flex-direction: column;
        transform-origin: center top;
    }

    .button-block-2__appraisal,
    .button-block-2__phone {
        min-width: 100%;
    }

    /* テーブル */
    .custom-table {
        font-size: 12px;
    }

    .custom-table th,
    .custom-table td {
        padding: 8px;
    }

    /* Tab */
    .tab-menu {
        flex-direction: column;
    }

    .tab-menu__item {
        border-radius: 8px;
        margin-bottom: 8px;
    }

    .tab-menu__item.active::after {
        display: none;
    }

    /* バナー */
    /* banner_style1: sp版自适应 - 缩小整体比例 */
    .banner-style-1 {
        flex-direction: column;
        text-align: center;

        transform-origin: center top;
        white-space: nowrap;
        border: 5px solid #FC5E3A;
    }

    .banner-style-1__left,
    .banner-style-1__right {
        white-space: nowrap;
    }

    .banner-style-1__speech-left,
    .banner-style-1__speech-right,
    .banner-style-1__main-text--orange,
    .banner-style-1__main-text--black {
        white-space: nowrap;
    }

    /* banner_style2: sp版自适应 - 缩小整体比例 */
    .banner-style-2 {
        flex-direction: column;
        text-align: center;

        transform-origin: center top;
        white-space: nowrap;
        padding: 20px;
    }

    .banner-style-2__left {
        white-space: nowrap;
    }

    .banner-style-2__text-box {
        font-size: 15px;
    }

    .banner-style-2__text-box::before, .banner-style-2__text-box::after {
        width: 1px;
        height: 30px;
    }

    .banner-style-2__text-main {
        font-size: 25px;
    }

    .banner-style-2__right {
        max-width: 100%;
    }

    .banner-style-2__speech {
        flex-direction: column;
        left: 80%;
        top: -55px;
    }

    .banner-style-2__speech-left {
        font-size: 13px;
    }

    .banner-style-2__speech-right {
        font-size: 16px;
    }

    .banner-style-2__text-box,
    .banner-style-2__speech-left,
    .banner-style-2__speech-right,
    .banner-style-2__text-main {
        white-space: nowrap;
    }

    .banner-style-1__main-text,
    .banner-style-2__main-text {
        font-size: 28px;
    }

    .banner-style-1__top-logo {
        position: absolute;
        top: 0;
        left: 0;
        height: 40px;
    }

    .banner-style-1__left {
        position: absolute;
        bottom: 0;
        left: 5px;
        align-items: flex-start;
    }

    .banner-style-1__top-row {
        left: 10%;
    }

    .banner-style-1__speech,
    .banner-style-1__speech-left,
    .banner-style-1__speech-right {
        font-size: 15px;
    }

    .banner-style-1__main-text {
        display: flex;
        flex-direction: column;
        text-align: left;
    }

    .banner-style-1__main-text--orange {
        font-size: 35px;
    }

    .banner-style-1__main-text--black {
        font-size: 25px;
    }

    .banner-style-1__speech {
        padding: 5px;
    }

    .banner-style-1__right {
        position: absolute;
        bottom: 0;
        right: 0;
    }

    .banner-style-1__speech-right::first-letter {
        font-size: 25px;
    }

}

/* ============================================
   ピアノタグバナーショートコード
   ============================================ */

.piano-tag-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* padding: 20px 30px; */
    border: 5px solid;
    border-radius: 12px;
    gap: 20px;
    box-sizing: border-box;
    /* min-height: 120px; */

    max-width: 40%;
    min-width: 40%;
    max-height: 100px;
    padding: 25px 15px;
    position: relative;
    box-shadow: 1px 2px 7px 0px #00000052;
}

.piano-tag-banner__text {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    flex-shrink: 0;
    line-height: 1.4;
}

.piano-tag-banner__image {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    position: absolute;
    right: -20px;
}

.piano-tag-banner__image img {
    /* max-width: 100%; */
    height: auto;
    max-height: 150px;
    object-fit: contain;

    max-width: 52%;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .piano-tag-banner {
        padding: 22px 20px;
        text-align: center;
        min-height: auto;
        max-width: 100%;
        margin-bottom: 0px;
    }

    .piano-tag-banner__text {
        font-size: 20px;
    }

    .piano-tag-banner__image img {
        max-height: 120px;
    }
}

/* ============================================
   Piano Tag Group (ピアノタググループ)
   ============================================ */

.piano-tag-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 30px 0;
    background-color: #FBE3D6;
}

.piano-tag-group__title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    padding: 0 40px;
}

.piano-tag-group__title::before,
.piano-tag-group__title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background-color: #ff6600;
    transform: translateY(-50%);
}

.piano-tag-group__title::before {
    left: 0;
    transform: translateY(-50%) rotate(45deg);
}

.piano-tag-group__title::after {
    right: 0;
    transform: translateY(-50%) rotate(-45deg);
}

.piano-tag-group__row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
}

.piano-tag-group__row--single {
    /* 単一タグを中央配置 */
    justify-content: center;
}

.piano-tag-group__row--double {
    /* 2つのタグを並列配置 */
    justify-content: center;
    gap: 20px;
}

.piano-tag-group__row--single .piano-tag-banner {
    margin: 0 auto;
}

.piano-tag-group__row--double .piano-tag-banner {
    flex: 0 1 calc(50% - 10px);
    /* min-width: 280px; */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .piano-tag-group {
        gap: 15px;
        padding: 15px 0;
    }

    .piano-tag-group__title {
        font-size: 21px;
        padding: 0 19px;
    }

    .piano-tag-group__title::before,
    .piano-tag-group__title::after {
        width: 20px;
    }

    .piano-tag-group__row {
        gap: 15px;
    }
    .piano-tag-group__row--single .piano-tag-banner{
        width: 90%;
    }
    .piano-tag-group__row--double .piano-tag-banner {
        flex: 1 1 100%;
        /* min-width: 100%; */
        max-width: 90%;
    }
}