/**
 * SWELL Compatibility CSS
 * SWELLテーマからの移行用スタイル
 */

/* =====================================================
   SWELL吹き出しブロック (swell-block-balloon)
   ===================================================== */
.swell-block-balloon {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin: 1.5em 0;
}

.swell-block-balloon[data-icon="1"] { --swell-balloon-bg: var(--swell-balloon-color-1); }
.swell-block-balloon[data-icon="2"] { --swell-balloon-bg: var(--swell-balloon-color-2); }
.swell-block-balloon[data-icon="3"] { --swell-balloon-bg: var(--swell-balloon-color-3); }
.swell-block-balloon[data-icon="4"] { --swell-balloon-bg: var(--swell-balloon-color-4); }
.swell-block-balloon[data-icon="5"] { --swell-balloon-bg: var(--swell-balloon-color-5); }
.swell-block-balloon[data-icon="6"] { --swell-balloon-bg: var(--swell-balloon-color-6); }
.swell-block-balloon[data-icon="7"] { --swell-balloon-bg: var(--swell-balloon-color-7); }
.swell-block-balloon[data-icon="8"] { --swell-balloon-bg: var(--swell-balloon-color-8); }
.swell-block-balloon[data-icon="9"] { --swell-balloon-bg: var(--swell-balloon-color-9); }
.swell-block-balloon[data-icon="10"] { --swell-balloon-bg: var(--swell-balloon-color-10); }

.swell-block-balloon__icon {
    flex-shrink: 0;
    text-align: center;
}

.swell-block-balloon__iconBody {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.swell-block-balloon__iconImg,
.swell-block-balloon__iconBody img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.swell-block-balloon__iconName {
    font-size: 12px;
    color: #666;
    line-height: 1.2;
}

.swell-block-balloon__body {
    flex: 1;
    max-width: calc(100% - 80px);
}

.swell-block-balloon__text {
    position: relative;
    padding: 15px 18px;
    background: var(--swell-balloon-bg, #f5f5f5);
    border-radius: 12px;
    line-height: 1.7;
}

.swell-block-balloon__text::before {
    content: "";
    position: absolute;
    top: 18px;
    left: -10px;
    border: 8px solid transparent;
    border-right-color: var(--swell-balloon-bg, #f5f5f5);
}

/* 右寄せ */
.swell-block-balloon[data-align="right"],
.swell-block-balloon.-right {
    flex-direction: row-reverse;
}

.swell-block-balloon[data-align="right"] .swell-block-balloon__text::before,
.swell-block-balloon.-right .swell-block-balloon__text::before {
    left: auto;
    right: -10px;
    border-right-color: transparent;
    border-left-color: var(--swell-balloon-bg, #f5f5f5);
}

/* 考え中スタイル */
.swell-block-balloon[data-shape="think"] .swell-block-balloon__text {
    border-radius: 20px;
}

.swell-block-balloon[data-shape="think"] .swell-block-balloon__text::before {
    border: none;
    width: 12px;
    height: 12px;
    background: var(--swell-balloon-bg, #f5f5f5);
    border-radius: 50%;
    top: 20px;
}

/* LINE風スタイル */
.swell-block-balloon[data-shape="line"] .swell-block-balloon__text {
    background: var(--swell-balloon-bg, #85e085);
    border-radius: 18px;
}

.swell-block-balloon[data-shape="line"] .swell-block-balloon__text::before {
    border-right-color: var(--swell-balloon-bg, #85e085);
}

/* =====================================================
   SWELLキャップブロック (swell-block-capBlock)
   ===================================================== */
.swell-block-capBlock {
    margin: 1.5em 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.swell-block-capBlock__title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    font-weight: 600;
    color: #fff;
    background: #667eea;
}

.swell-block-capBlock__body {
    padding: 20px;
}

.swell-block-capBlock__body > *:first-child {
    margin-top: 0;
}

.swell-block-capBlock__body > *:last-child {
    margin-bottom: 0;
}

/* Good */
.swell-block-capBlock.is-style-good {
    border-color: #4caf50;
}
.swell-block-capBlock.is-style-good .swell-block-capBlock__title {
    background: #4caf50;
}

/* Bad */
.swell-block-capBlock.is-style-bad {
    border-color: #f44336;
}
.swell-block-capBlock.is-style-bad .swell-block-capBlock__title {
    background: #f44336;
}

/* Point */
.swell-block-capBlock.is-style-point {
    border-color: #ff9800;
}
.swell-block-capBlock.is-style-point .swell-block-capBlock__title {
    background: #ff9800;
}

/* Check */
.swell-block-capBlock.is-style-check {
    border-color: #2196f3;
}
.swell-block-capBlock.is-style-check .swell-block-capBlock__title {
    background: #2196f3;
}

/* Info */
.swell-block-capBlock.is-style-info {
    border-color: #03a9f4;
}
.swell-block-capBlock.is-style-info .swell-block-capBlock__title {
    background: #03a9f4;
}

/* =====================================================
   SWELL FAQブロック (swell-block-faq)
   ===================================================== */
.swell-block-faq {
    margin: 1.5em 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.swell-block-faq__q,
.swell-block-faq__a {
    display: flex;
    gap: 15px;
    padding: 15px 20px;
}

.swell-block-faq__q {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
}

.swell-block-faq__label {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
}

.swell-block-faq__q .swell-block-faq__label {
    background: #667eea;
    color: #fff;
}

.swell-block-faq__a .swell-block-faq__label {
    background: #f44336;
    color: #fff;
}

.swell-block-faq__qText {
    flex: 1;
    line-height: 1.6;
    padding-top: 3px;
}

.swell-block-faq__aText {
    flex: 1;
    line-height: 1.7;
}

.swell-block-faq__aText > *:first-child {
    margin-top: 0;
}

.swell-block-faq__aText > *:last-child {
    margin-bottom: 0;
}

/* =====================================================
   SWELLステップブロック (swell-block-step)
   ===================================================== */
.swell-block-step {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 1.5em 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border-left: none;
    counter-reset: swell-step-counter;
}

.swell-block-step__item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    margin-bottom: 16px;
    counter-increment: swell-step-counter;
}

.swell-block-step__item:last-child {
    margin-bottom: 0;
}

.swell-block-step__head {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    min-width: 60px;
    background: #667eea;
    color: #fff;
    border-radius: 8px;
    line-height: 1;
}

.swell-block-step__num {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.swell-block-step__numText {
    font-size: 24px;
    font-weight: 700;
    margin-top: 2px;
}

/* ステップ番号が空の場合、CSSカウンターで自動付番 */
.swell-block-step__numText:empty::after {
    content: counter(swell-step-counter);
    font-size: 24px;
    font-weight: 700;
}

.swell-block-step__body {
    flex: 1;
    min-width: 0;
}

.swell-block-step__title {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.swell-block-step__content {
    line-height: 1.7;
}

.swell-block-step__content > *:first-child {
    margin-top: 0;
}

.swell-block-step__content > *:last-child {
    margin-bottom: 0;
}

/* =====================================================
   SWELLボタンブロック (swell-block-button)
   ===================================================== */
.swell-block-button {
    margin: 1.5em 0;
    text-align: center;
}

.swell-block-button__link {
    display: inline-block;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.swell-block-button__link.btn_normal {
    background: #667eea;
    color: #fff;
}

.swell-block-button__link.btn_normal:hover {
    background: #5a6fd6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.swell-block-button__link.btn_shiny {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.swell-block-button__link.btn_shiny::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shiny 2s infinite;
}

@keyframes shiny {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.swell-block-button__link.btn_solid {
    background: #333;
    color: #fff;
}

.swell-block-button__link.btn_line {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.swell-block-button__link.btn_line:hover {
    background: #667eea;
    color: #fff;
}

/* SWELLボタン - is-style-* クラス対応 */
.swell-block-button.is-style-btn_shiny .swell-block-button__link,
.swell-block-button .swell-block-button__link {
    display: inline-block;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #fff !important;
    position: relative;
    overflow: hidden;
}

.swell-block-button.is-style-btn_shiny .swell-block-button__link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: swell-shiny 2.5s infinite;
}

@keyframes swell-shiny {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* SWELLボタン - カラークラス */
.swell-block-button.red_ .swell-block-button__link {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
}
.swell-block-button.blue_ .swell-block-button__link {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
}
.swell-block-button.green_ .swell-block-button__link {
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
}
.swell-block-button.yellow_ .swell-block-button__link {
    background: linear-gradient(135deg, #fdd835 0%, #f9a825 100%);
    color: #333 !important;
}
.swell-block-button.orange_ .swell-block-button__link {
    background: linear-gradient(135deg, #fb8c00 0%, #ef6c00 100%);
}
.swell-block-button.pink_ .swell-block-button__link {
    background: linear-gradient(135deg, #ec407a 0%, #c2185b 100%);
}
.swell-block-button.purple_ .swell-block-button__link {
    background: linear-gradient(135deg, #7e57c2 0%, #5e35b1 100%);
}
.swell-block-button.black_ .swell-block-button__link {
    background: linear-gradient(135deg, #424242 0%, #212121 100%);
}
.swell-block-button.gray_ .swell-block-button__link {
    background: linear-gradient(135deg, #757575 0%, #616161 100%);
}

/* デフォルト(色指定なし) */
.swell-block-button .swell-block-button__link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ホバー効果 */
.swell-block-button .swell-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-decoration: none !important;
}

/* =====================================================
   SWELLリストスタイル
   ===================================================== */
.is-style-swell-list-check li {
    position: relative;
    padding-left: 28px;
    list-style: none;
}

.is-style-swell-list-check li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 18px;
    height: 18px;
    background: #4caf50;
    border-radius: 50%;
}

.is-style-swell-list-check li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 9px;
    width: 8px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

.is-style-swell-list-triangle li {
    position: relative;
    padding-left: 24px;
    list-style: none;
}

.is-style-swell-list-triangle li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 0;
    height: 0;
    border-left: 10px solid #667eea;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.is-style-swell-list-circle li {
    position: relative;
    padding-left: 24px;
    list-style: none;
}

.is-style-swell-list-circle li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 50%;
}

/* =====================================================
   SWELLボックススタイル (グループブロック)
   ===================================================== */
.is-style-swell-box-1 {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 1.5em 0;
}

.is-style-swell-box-2 {
    padding: 25px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin: 1.5em 0;
}

.is-style-swell-box-icon-good {
    position: relative;
    padding: 25px 25px 25px 55px;
    background: #e8f5e9;
    border-radius: 8px;
    margin: 1.5em 0;
}

.is-style-swell-box-icon-good::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: #4caf50;
    border-radius: 50%;
}

.is-style-swell-box-icon-good::after {
    content: "";
    position: absolute;
    left: 27px;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    width: 10px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    margin-top: -2px;
}

.is-style-swell-box-icon-bad {
    position: relative;
    padding: 25px 25px 25px 55px;
    background: #ffebee;
    border-radius: 8px;
    margin: 1.5em 0;
}

.is-style-swell-box-icon-bad::before {
    content: "×";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: #f44336;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* =====================================================
   tuuhan-theme互換スタイル(ショートコード用)
   ===================================================== */

/* FAQ */
.tuuhan-faq {
    margin: 1.5em 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.tuuhan-faq-q,
.tuuhan-faq-a {
    display: flex;
    gap: 15px;
    padding: 15px 20px;
}

.tuuhan-faq-q {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
}

.tuuhan-faq-label {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
}

.tuuhan-faq-label-q {
    background: #667eea;
    color: #fff;
}

.tuuhan-faq-label-a {
    background: #f44336;
    color: #fff;
}

.tuuhan-faq-text {
    flex: 1;
    line-height: 1.7;
}

/* ステップ */
.tuuhan-step {
    display: flex;
    gap: 20px;
    margin: 1.5em 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.tuuhan-step-head {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    background: #667eea;
    color: #fff;
    border-radius: 8px;
    line-height: 1;
}

.tuuhan-step-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.tuuhan-step-num {
    font-size: 24px;
    font-weight: 700;
}

.tuuhan-step-body {
    flex: 1;
}

.tuuhan-step-title {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.tuuhan-step-content {
    line-height: 1.7;
}

/* ランキング */
.tuuhan-ranking {
    display: flex;
    gap: 20px;
    margin: 1.5em 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    position: relative;
}

.tuuhan-ranking-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.tuuhan-ranking-num {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.tuuhan-ranking-image {
    flex-shrink: 0;
    width: 120px;
}

.tuuhan-ranking-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.tuuhan-ranking-body {
    flex: 1;
}

.tuuhan-ranking-title {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 8px;
}

.tuuhan-ranking-title a {
    color: #333;
    text-decoration: none;
}

.tuuhan-ranking-title a:hover {
    color: #667eea;
}

.tuuhan-ranking-stars {
    margin-bottom: 10px;
}

.tuuhan-star {
    font-size: 16px;
}

.tuuhan-star-filled {
    color: #ffc107;
}

.tuuhan-star-empty {
    color: #e0e0e0;
}

.tuuhan-ranking-content {
    line-height: 1.7;
    color: #666;
}

/* =====================================================
   アコーディオン (SWELLブロック互換)
   ===================================================== */
.swell-block-accordion {
    margin: 1.5em 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.swell-block-accordion__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.swell-block-accordion__title:hover {
    background: #f0f0f0;
}

.swell-block-accordion__title::after {
    content: "+";
    font-size: 20px;
    font-weight: 400;
    transition: transform 0.3s;
}

.swell-block-accordion.is-open .swell-block-accordion__title::after {
    transform: rotate(45deg);
}

.swell-block-accordion__content {
    padding: 20px;
    display: none;
}

.swell-block-accordion.is-open .swell-block-accordion__content {
    display: block;
}

/* =====================================================
   WordPress ネイティブ details/summary (よくある質問)
   ===================================================== */
details.wp-block-details {
    margin: 1em 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

details.wp-block-details:hover {
    border-color: #667eea;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

details.wp-block-details summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    line-height: 1.5;
    transition: background 0.2s;
    list-style: none;
}

details.wp-block-details summary::-webkit-details-marker {
    display: none;
}

details.wp-block-details summary::before {
    content: "Q";
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

details.wp-block-details summary::after {
    content: "+";
    margin-left: auto;
    font-size: 20px;
    font-weight: 400;
    color: #667eea;
    transition: transform 0.3s;
}

details.wp-block-details[open] summary::after {
    transform: rotate(45deg);
}

details.wp-block-details[open] summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-bottom: 1px solid #e0e0e0;
}

details.wp-block-details > *:not(summary) {
    padding: 0 20px;
}

details.wp-block-details > *:not(summary):first-of-type {
    padding-top: 15px;
}

details.wp-block-details > *:not(summary):last-child {
    padding-bottom: 20px;
}

/* SWELL FAQ拡張スタイル */
.is-style-faq_list,
.is-style-faq-list {
    list-style: none !important;
    padding-left: 0 !important;
}

.is-style-faq_list > li,
.is-style-faq-list > li {
    margin: 1em 0;
    padding: 0;
}

.is-style-faq_list details,
.is-style-faq-list details {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

/* =====================================================
   タブ (SWELLブロック互換)
   ===================================================== */
.swell-block-tab {
    margin: 1.5em 0;
}

.swell-block-tab__buttons {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
}

.swell-block-tab__button {
    padding: 12px 24px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.swell-block-tab__button:hover {
    color: #333;
}

.swell-block-tab__button.is-active {
    background: #fff;
    color: #667eea;
    border-bottom-color: #667eea;
}

.swell-block-tab__content {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-top: none;
}

.swell-block-tab__panel {
    display: none;
}

.swell-block-tab__panel.is-active {
    display: block;
}

/* =====================================================
   レスポンシブ
   ===================================================== */
@media (max-width: 600px) {
    .swell-block-balloon {
        gap: 10px;
    }

    .swell-block-balloon__iconImg {
        width: 50px;
        height: 50px;
    }

    .swell-block-balloon__body {
        max-width: calc(100% - 65px);
    }

    .swell-block-step__item {
        gap: 15px;
        padding: 15px;
    }

    .swell-block-step__head {
        flex-direction: row;
        gap: 6px;
        padding: 8px 12px;
        min-width: auto;
    }

    .swell-block-step__numText {
        font-size: 20px;
    }

    .tuuhan-step {
        flex-direction: column;
        gap: 15px;
    }

    .tuuhan-step-head {
        flex-direction: row;
        gap: 8px;
        width: fit-content;
    }

    .tuuhan-ranking {
        flex-direction: column;
        padding-top: 35px;
    }

    .tuuhan-ranking-image {
        width: 100%;
        max-width: 200px;
    }

    .swell-block-tab__buttons {
        flex-wrap: wrap;
    }

    .swell-block-tab__button {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }
}

/* =====================================================
   追加ブロック: フルワイド
   ===================================================== */
.swell-block-fullWide {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 60px 20px;
    background-size: cover;
    background-position: center;
}

.swell-block-fullWide__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.swell-block-fullWide__inner > *:first-child {
    margin-top: 0;
}

.swell-block-fullWide__inner > *:last-child {
    margin-bottom: 0;
}

/* =====================================================
   追加ブロック: 投稿リスト
   ===================================================== */
.p-postListWrap {
    margin: 1.5em 0;
}

.p-postList {
    display: grid;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.p-postList[data-col="2"] { grid-template-columns: repeat(2, 1fr); }
.p-postList[data-col="3"] { grid-template-columns: repeat(3, 1fr); }
.p-postList[data-col="4"] { grid-template-columns: repeat(4, 1fr); }

.p-postList__item {
    margin: 0;
    padding: 0;
}

.p-postList__link {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.p-postList__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.p-postList__thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.p-postList__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.p-postList__link:hover .p-postList__thumb img {
    transform: scale(1.05);
}

.p-postList__body {
    padding: 15px;
}

.p-postList__title {
    font-size: 1em;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.p-postList__excerpt {
    font-size: 0.85em;
    color: #666;
    margin: 0 0 8px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.p-postList__date {
    font-size: 0.8em;
    color: #999;
}

/* 横型リスト */
.p-postList--list .p-postList__link {
    display: flex;
    gap: 15px;
}

.p-postList--list .p-postList__thumb {
    flex-shrink: 0;
    width: 150px;
    aspect-ratio: 4/3;
}

.p-postList--list .p-postList__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* =====================================================
   追加ブロック: ブログカード
   ===================================================== */
.p-blogCard {
    display: block;
    margin: 1.5em 0;
    padding: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: all 0.3s ease;
}

.p-blogCard:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.p-blogCard__caption {
    display: block;
    padding: 8px 15px;
    background: #667eea;
    color: #fff;
    font-size: 0.8em;
    font-weight: 600;
}

.p-blogCard.-external .p-blogCard__caption {
    background: #78909c;
}

.p-blogCard__inner {
    display: flex;
    gap: 15px;
    padding: 15px;
}

.p-blogCard__figure {
    flex-shrink: 0;
    width: 150px;
}

.p-blogCard__figure img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.p-blogCard__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.p-blogCard__title {
    font-size: 1em;
    font-weight: 600;
    line-height: 1.5;
    color: #333;
}

.p-blogCard__excerpt {
    font-size: 0.85em;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.p-blogCard__site {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8em;
    color: #999;
}

.p-blogCard__favicon {
    width: 16px;
    height: 16px;
}

/* =====================================================
   追加ブロック: カスタムバナー
   ===================================================== */
.p-customBanner {
    margin: 1.5em 0;
}

.c-bannerLink {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
}

.c-bannerLink.-shadow-on {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.c-bannerLink__figure {
    position: relative;
    margin: 0;
    height: 200px;
}

.c-bannerLink__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.c-bannerLink.-blur-on .c-bannerLink__img {
    filter: blur(2px);
}

.c-bannerLink__text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,0.4);
    text-align: center;
}

.c-bannerLink__title {
    font-size: 1.4em;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.c-bannerLink__description {
    margin-top: 8px;
    font-size: 0.9em;
    opacity: 0.9;
}

/* =====================================================
   追加ブロック: SWELL本家吹き出し(c-balloon)
   ===================================================== */
.c-balloon {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin: 1.5em 0;
}

.c-balloon.-bln-right {
    flex-direction: row-reverse;
}

.c-balloon__icon {
    flex-shrink: 0;
    text-align: center;
}

.c-balloon__icon.-circle .c-balloon__iconImg {
    border-radius: 50%;
}

.c-balloon__icon.-square .c-balloon__iconImg {
    border-radius: 8px;
}

.c-balloon__iconImg {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.c-balloon__iconName {
    display: block;
    margin-top: 5px;
    font-size: 0.75em;
    color: #666;
}

.c-balloon__body {
    flex: 1;
    max-width: calc(100% - 80px);
}

.c-balloon__text {
    position: relative;
    padding: 15px 18px;
    background: #f5f5f5;
    border-radius: 12px;
    line-height: 1.7;
}

.c-balloon__shapes {
    position: absolute;
    top: 18px;
    left: -10px;
}

.c-balloon.-bln-right .c-balloon__shapes {
    left: auto;
    right: -10px;
}

.c-balloon__before {
    display: block;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-right-color: #f5f5f5;
}

.c-balloon.-bln-right .c-balloon__before {
    border-right-color: transparent;
    border-left-color: #f5f5f5;
}

.c-balloon__after {
    display: none;
}

/* 考え中 */
.c-balloon__body.-thinking .c-balloon__text {
    border-radius: 20px;
}

.c-balloon__body.-thinking .c-balloon__before {
    border: none;
    width: 12px;
    height: 12px;
    background: inherit;
    border-radius: 50%;
}

/* ボーダーあり */
.c-balloon__body.-border-on .c-balloon__text {
    border: 2px solid #ddd;
}

/* =====================================================
   追加ブロック: 説明リスト(DL)
   ===================================================== */
.swell-block-dl {
    margin: 1.5em 0;
}

.swell-block-dl dt {
    font-weight: 600;
    padding: 10px 15px;
    background: #f5f5f5;
    border-left: 4px solid #667eea;
    margin: 0;
}

.swell-block-dl dd {
    padding: 15px;
    margin: 0;
    border-bottom: 1px solid #e0e0e0;
}

.swell-block-dl dd:last-child {
    border-bottom: none;
}

/* 横並びスタイル */
.swell-block-dl.-horizontal {
    display: grid;
    grid-template-columns: 200px 1fr;
}

.swell-block-dl.-horizontal dt {
    border-left: none;
    border-bottom: 1px solid #e0e0e0;
}

.swell-block-dl.-horizontal dd {
    background: #fff;
}

/* =====================================================
   追加ブロック: リンクリスト
   ===================================================== */
.swell-block-linkList {
    list-style: none;
    margin: 1.5em 0;
    padding: 0;
}

.swell-block-linkList__item {
    margin: 0;
    padding: 0;
}

.swell-block-linkList__item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.swell-block-linkList__item a:hover {
    background: #f5f5f5;
    color: #667eea;
}

.swell-block-linkList__item a::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 6px solid #667eea;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

/* =====================================================
   追加ブロック: ボックスメニュー
   ===================================================== */
.swell-block-boxMenu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 1.5em 0;
}

.swell-block-boxMenu__item {
    text-align: center;
}

.swell-block-boxMenu__item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.swell-block-boxMenu__item a:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.swell-block-boxMenu__icon {
    font-size: 2em;
    color: #667eea;
}

.swell-block-boxMenu__label {
    font-size: 0.9em;
    font-weight: 600;
}

/* =====================================================
   追加ブロック: レビュー星評価
   ===================================================== */
.c-reviewStars {
    display: inline-flex;
    gap: 2px;
}

.c-reviewStar {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #e0e0e0;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
}

.c-reviewStar.-full {
    background: #ffc107;
}

.c-reviewStar.-half {
    background: linear-gradient(90deg, #ffc107 50%, #e0e0e0 50%);
}

.c-reviewStar.-empty {
    background: #e0e0e0;
}

/* =====================================================
   追加ブロック: カラム
   ===================================================== */
.swell-block-columns {
    display: flex;
    gap: 20px;
    margin: 1.5em 0;
}

.swell-block-column {
    flex: 1;
}

.swell-block-columns.-reverse {
    flex-direction: row-reverse;
}

/* =====================================================
   追加ブロック: ABテスト
   ===================================================== */
.swell-block-abTest {
    margin: 1.5em 0;
}

.swell-block-abTest__item {
    display: none;
}

.swell-block-abTest__item.-active {
    display: block;
}

/* =====================================================
   追加ブロック: 制限エリア
   ===================================================== */
.swell-block-restrictedArea {
    margin: 1.5em 0;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
}

.swell-block-restrictedArea__message {
    font-weight: 600;
    color: #ff9800;
}

/* =====================================================
   追加ブロック: PR表記
   ===================================================== */
.p-prNotation {
    display: inline-block;
    padding: 2px 8px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
    color: #666;
}

/* =====================================================
   ユーティリティ
   ===================================================== */
.sp_ { display: none; }
.pc_ { display: inline; }

.u-obf-cover {
    object-fit: cover;
}

/* =====================================================
   レスポンシブ追加
   ===================================================== */
@media (max-width: 768px) {
    .p-postList[data-col-sp="1"] { grid-template-columns: 1fr; }
    .p-postList[data-col-sp="2"] { grid-template-columns: repeat(2, 1fr); }

    .p-postList--list .p-postList__link {
        flex-direction: column;
    }

    .p-postList--list .p-postList__thumb {
        width: 100%;
    }

    .p-blogCard__inner {
        flex-direction: column;
    }

    .p-blogCard__figure {
        width: 100%;
    }

    .swell-block-columns {
        flex-direction: column;
    }

    .swell-block-boxMenu {
        grid-template-columns: repeat(2, 1fr);
    }

    .c-balloon {
        gap: 10px;
    }

    .c-balloon__iconImg {
        width: 50px;
        height: 50px;
    }

    .c-balloon__body {
        max-width: calc(100% - 65px);
    }

    .swell-block-dl.-horizontal {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .sp_ { display: inline; }
    .pc_ { display: none; }

    .swell-block-fullWide {
        padding: 40px 15px;
    }

    .swell-block-boxMenu {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .swell-block-boxMenu__item a {
        padding: 15px 10px;
    }

    .c-bannerLink__figure {
        height: 150px;
    }

    .c-bannerLink__title {
        font-size: 1.1em;
    }
}

/* =====================================================
   SWELLフォントサイズユーティリティ (swl-fz)
   ===================================================== */
.swl-fz {
    line-height: 1.6;
}

.swl-fz.u-fz-xs {
    font-size: 0.75em !important;
}

.swl-fz.u-fz-s {
    font-size: 0.875em !important;
}

.swl-fz.u-fz-m {
    font-size: 1em !important;
}

.swl-fz.u-fz-l {
    font-size: 1.25em !important;
}

.swl-fz.u-fz-xl {
    font-size: 1.5em !important;
}

.swl-fz.u-fz-xxl {
    font-size: 2em !important;
}

.swl-fz.u-fz-xxxl {
    font-size: 2.5em !important;
}

/* フォントサイズ(単独クラス) */
.u-fz-xs { font-size: 0.75em !important; }
.u-fz-s { font-size: 0.875em !important; }
.u-fz-m { font-size: 1em !important; }
.u-fz-l { font-size: 1.25em !important; }
.u-fz-xl { font-size: 1.5em !important; }
.u-fz-xxl { font-size: 2em !important; }
.u-fz-xxxl { font-size: 2.5em !important; }

/* =====================================================
   SWELLインラインカラー (swl-inline-color)
   ===================================================== */
.swl-inline-color {
    display: inline;
}

/* SWELLカラーパレット - Deep系 */
.has-swl-deep-01-color { color: #e53935 !important; } /* 赤 */
.has-swl-deep-02-color { color: #1e88e5 !important; } /* 青 */
.has-swl-deep-03-color { color: #43a047 !important; } /* 緑 */
.has-swl-deep-04-color { color: #8e24aa !important; } /* 紫 */
.has-swl-deep-05-color { color: #f57c00 !important; } /* オレンジ */

/* SWELLカラーパレット - Pale系(背景用だが文字色にも使える) */
.has-swl-pale-01-color { color: #ffcdd2 !important; } /* 薄赤 */
.has-swl-pale-02-color { color: #bbdefb !important; } /* 薄青 */
.has-swl-pale-03-color { color: #c8e6c9 !important; } /* 薄緑 */
.has-swl-pale-04-color { color: #e1bee7 !important; } /* 薄紫 */
.has-swl-pale-05-color { color: #ffe0b2 !important; } /* 薄オレンジ */

/* SWELLカラーパレット - Main系 */
.has-swl-main-color { color: #667eea !important; }
.has-swl-main-thin-color { color: rgba(102, 126, 234, 0.7) !important; }

/* 背景色クラス - Deep系 */
.has-swl-deep-01-background-color { background-color: #e53935 !important; color: #fff !important; }
.has-swl-deep-02-background-color { background-color: #1e88e5 !important; color: #fff !important; }
.has-swl-deep-03-background-color { background-color: #43a047 !important; color: #fff !important; }
.has-swl-deep-04-background-color { background-color: #8e24aa !important; color: #fff !important; }
.has-swl-deep-05-background-color { background-color: #f57c00 !important; color: #fff !important; }

/* Deep系背景の内部要素も白文字に */
.has-swl-deep-01-background-color *,
.has-swl-deep-02-background-color *,
.has-swl-deep-03-background-color *,
.has-swl-deep-04-background-color *,
.has-swl-deep-05-background-color * {
    color: #fff !important;
}

/* 黒/暗い背景色 - WordPress標準(フォールバック) */
.has-black-background-color,
ul.has-black-background-color,
ol.has-black-background-color,
.wp-block-list.has-black-background-color {
    background-color: #000;
    color: #fff;
    padding: 20px 20px 20px 45px;
    border-radius: 8px;
}

/* リストブロック背景色適用時の共通スタイル */
.wp-block-list[class*="has-"][class*="-background-color"] {
    padding: 20px 20px 20px 45px;
    border-radius: 8px;
    margin: 1em 0;
}

/* WordPress標準カラーパレット - 背景色(フォールバック、インラインスタイル優先) */
.wp-block-list.has-white-background-color { background-color: #fff; }
.wp-block-list.has-pale-pink-background-color { background-color: #f78da7; }
.wp-block-list.has-vivid-red-background-color { background-color: #cf2e2e; color: #fff; }
.wp-block-list.has-luminous-vivid-orange-background-color { background-color: #ff6900; color: #fff; }
.wp-block-list.has-luminous-vivid-amber-background-color { background-color: #fcb900; }
.wp-block-list.has-light-green-cyan-background-color { background-color: #7bdcb5; }
.wp-block-list.has-vivid-green-cyan-background-color { background-color: #00d084; }
.wp-block-list.has-pale-cyan-blue-background-color { background-color: #8ed1fc; }
.wp-block-list.has-vivid-cyan-blue-background-color { background-color: #0693e3; color: #fff; }
.wp-block-list.has-vivid-purple-background-color { background-color: #9b51e0; color: #fff; }
.wp-block-list.has-cyan-bluish-gray-background-color { background-color: #abb8c3; }

/* 暗い背景色のリスト項目も白文字に */
.wp-block-list.has-vivid-red-background-color li,
.wp-block-list.has-vivid-cyan-blue-background-color li,
.wp-block-list.has-vivid-purple-background-color li,
.wp-block-list.has-luminous-vivid-orange-background-color li {
    color: #fff;
}

.has-black-background-color *,
.has-black-background-color li,
.has-black-background-color p,
.has-black-background-color span,
ul.has-black-background-color li,
ol.has-black-background-color li,
.wp-block-list.has-black-background-color li {
    color: #fff !important;
}

/* チェックリスト + 黒背景の組み合わせ */
ul.is-style-check_list.has-black-background-color li,
ol.is-style-check_list.has-black-background-color li,
.is-style-check_list.has-black-background-color li {
    color: #fff !important;
}

/* インラインスタイルの黒背景 */
[style*="background-color:#000"],
[style*="background-color: #000"],
[style*="background-color:#000000"],
[style*="background-color: #000000"],
[style*="background-color:rgb(0,0,0)"],
[style*="background-color: rgb(0, 0, 0)"],
[style*="background:#000"],
[style*="background: #000"] {
    color: #fff !important;
}

[style*="background-color:#000"] *,
[style*="background-color: #000"] *,
[style*="background-color:#000000"] *,
[style*="background-color: #000000"] *,
[style*="background:#000"] *,
[style*="background: #000"] * {
    color: #fff !important;
}

/* wp-block-groupの暗い背景 */
.wp-block-group.has-black-background-color,
.wp-block-group[style*="background-color:#000"],
.wp-block-group[style*="background-color: #000"],
.wp-block-group[style*="background-color:#000000"],
.wp-block-group[style*="background-color: #000000"] {
    color: #fff !important;
}

.wp-block-group.has-black-background-color .is-style-check_list li,
.wp-block-group[style*="background-color:#000"] .is-style-check_list li,
.wp-block-group[style*="background-color:#000000"] .is-style-check_list li {
    color: #fff !important;
}

/* グループブロック内のリスト白文字 */
.wp-block-group.has-black-background-color ul li,
.wp-block-group.has-black-background-color ol li,
.wp-block-group[style*="background:#000"] ul li,
.wp-block-group[style*="background:#000"] ol li {
    color: #fff !important;
}

/* 背景色クラス - Pale系 */
.has-swl-pale-01-background-color { background-color: #ffebee !important; }
.has-swl-pale-02-background-color { background-color: #e3f2fd !important; }
.has-swl-pale-03-background-color { background-color: #e8f5e9 !important; }
.has-swl-pale-04-background-color { background-color: #f3e5f5 !important; }
.has-swl-pale-05-background-color { background-color: #fff3e0 !important; }

/* 背景色クラス - Main系 */
.has-swl-main-background-color { background-color: #667eea !important; color: #fff !important; }
.has-swl-main-thin-background-color { background-color: rgba(102, 126, 234, 0.1) !important; }

/* =====================================================
   SWELLマーカー (swl-marker)
   ===================================================== */
.swl-marker {
    background-size: 100% 40%;
    background-repeat: no-repeat;
    background-position: left bottom;
    padding-bottom: 2px;
}

.swl-marker.mark_yellow {
    background-image: linear-gradient(transparent 60%, #fff59d 60%);
}

.swl-marker.mark_red {
    background-image: linear-gradient(transparent 60%, #ffcdd2 60%);
}

.swl-marker.mark_blue {
    background-image: linear-gradient(transparent 60%, #bbdefb 60%);
}

.swl-marker.mark_green {
    background-image: linear-gradient(transparent 60%, #c8e6c9 60%);
}

.swl-marker.mark_orange {
    background-image: linear-gradient(transparent 60%, #ffe0b2 60%);
}

.swl-marker.mark_pink {
    background-image: linear-gradient(transparent 60%, #f8bbd9 60%);
}

/* マーカー太線 */
.swl-marker.mark_yellow_bold {
    background-image: linear-gradient(transparent 40%, #fff59d 40%);
}

.swl-marker.mark_red_bold {
    background-image: linear-gradient(transparent 40%, #ffcdd2 40%);
}

.swl-marker.mark_blue_bold {
    background-image: linear-gradient(transparent 40%, #bbdefb 40%);
}

/* =====================================================
   SWELLチェックリスト (is-style-check_list)
   SWELLオリジナルデザイン再現
   ===================================================== */
.is-style-check_list,
ul.is-style-check_list,
ol.is-style-check_list {
    list-style: none !important;
    padding: 25px 20px !important;
    margin: 1.5em 0;
    border-radius: 8px;
}

/* デフォルト背景(has-backgroundがない場合のみ) */
.is-style-check_list:not(.has-background):not([class*="has-"][class*="-background-color"]),
ul.is-style-check_list:not(.has-background):not([class*="has-"][class*="-background-color"]),
ol.is-style-check_list:not(.has-background):not([class*="has-"][class*="-background-color"]) {
    background: linear-gradient(135deg, #fef9f9 0%, #fff 100%);
}

.is-style-check_list li {
    position: relative;
    padding: 12px 10px 12px 50px !important;
    margin: 0 0 12px 0;
    list-style: none !important;
    line-height: 1.7;
    font-weight: 500;
}

/* デフォルトテキスト色(赤文字デザイン) */
.is-style-check_list:not(.has-text-color):not(.has-background) li {
    color: #c0392b !important;
}

/* 明るい背景色の場合は黒文字で読みやすく */
.is-style-check_list.has-background:not(.has-black-background-color):not(.has-vivid-red-background-color):not(.has-vivid-purple-background-color):not(.has-vivid-cyan-blue-background-color) li {
    color: #333 !important;
}

/* 明るい背景パレット色 */
.is-style-check_list.has-pale-pink-background-color li,
.is-style-check_list.has-luminous-vivid-amber-background-color li,
.is-style-check_list.has-light-green-cyan-background-color li,
.is-style-check_list.has-vivid-green-cyan-background-color li,
.is-style-check_list.has-pale-cyan-blue-background-color li,
.is-style-check_list.has-cyan-bluish-gray-background-color li,
.is-style-check_list.has-white-background-color li {
    color: #333 !important;
}

.is-style-check_list li:last-child {
    margin-bottom: 0;
}

.is-style-check_list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 34px;
    height: 34px;
    background: #e53935;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(229, 57, 53, 0.4);
}

.is-style-check_list li::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 16px;
    width: 14px;
    height: 8px;
    border-left: 4px solid #fff;
    border-bottom: 4px solid #fff;
    transform: rotate(-45deg);
}

/* =====================================================
   SWELLその他のリストスタイル
   ===================================================== */
/* 数字リスト */
.is-style-num_list {
    counter-reset: num-counter;
    list-style: none !important;
    padding-left: 0 !important;
}

.is-style-num_list li {
    position: relative;
    padding-left: 36px;
    margin-bottom: 8px;
    counter-increment: num-counter;
}

.is-style-num_list li::before {
    content: counter(num-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background: #667eea;
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* バツ印リスト */
.is-style-bad_list {
    list-style: none !important;
    padding-left: 0 !important;
}

.is-style-bad_list li {
    position: relative;
    padding-left: 36px;
    margin-bottom: 8px;
}

.is-style-bad_list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background: #e53935;
    border-radius: 50%;
}

.is-style-bad_list li::after {
    content: "×";
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 丸リスト */
.is-style-circle_list {
    list-style: none !important;
    padding-left: 0 !important;
}

.is-style-circle_list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
}

.is-style-circle_list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 50%;
}

/* =====================================================
   SWELLアイコン付きボックス
   ===================================================== */
.is-style-icon_good,
.is-style-icon_bad,
.is-style-icon_info,
.is-style-icon_point,
.is-style-icon_check {
    position: relative;
    padding: 20px 20px 20px 60px;
    margin: 1.5em 0;
    border-radius: 8px;
}

.is-style-icon_good::before,
.is-style-icon_bad::before,
.is-style-icon_info::before,
.is-style-icon_point::before,
.is-style-icon_check::before {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.is-style-icon_good {
    background: #e8f5e9;
}

.is-style-icon_good::before {
    content: "";
    background: #43a047;
}

.is-style-icon_good::after {
    content: "";
    position: absolute;
    left: 28px;
    top: 29px;
    width: 10px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

.is-style-icon_bad {
    background: #ffebee;
}

.is-style-icon_bad::before {
    content: "×";
    background: #e53935;
    color: #fff;
}

.is-style-icon_info {
    background: #e3f2fd;
}

.is-style-icon_info::before {
    content: "i";
    background: #1e88e5;
    color: #fff;
    font-style: italic;
}

.is-style-icon_point {
    background: #fff3e0;
}

.is-style-icon_point::before {
    content: "!";
    background: #f57c00;
    color: #fff;
}

.is-style-icon_check {
    background: #e3f2fd;
}

.is-style-icon_check::before {
    content: "";
    background: #1e88e5;
}

.is-style-icon_check::after {
    content: "";
    position: absolute;
    left: 28px;
    top: 29px;
    width: 10px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

/* =====================================================
   SWELLテキスト装飾
   ===================================================== */
/* 太字+色 */
.swl-inline-b {
    font-weight: bold;
}

/* 下線 */
.swl-underline {
    text-decoration: underline;
}

/* 打消し線 */
.swl-strikethrough {
    text-decoration: line-through;
}

/* 上付き/下付き */
.swl-sup { vertical-align: super; font-size: 0.75em; }
.swl-sub { vertical-align: sub; font-size: 0.75em; }

/* =====================================================
   SWELLスペーサー
   ===================================================== */
.swell-block-spacer {
    display: block;
    width: 100%;
}

.swell-block-spacer[data-height="10"] { height: 10px; }
.swell-block-spacer[data-height="20"] { height: 20px; }
.swell-block-spacer[data-height="30"] { height: 30px; }
.swell-block-spacer[data-height="40"] { height: 40px; }
.swell-block-spacer[data-height="50"] { height: 50px; }
.swell-block-spacer[data-height="60"] { height: 60px; }
.swell-block-spacer[data-height="80"] { height: 80px; }
.swell-block-spacer[data-height="100"] { height: 100px; }

/* WordPressスペーサー */
.wp-block-spacer {
    display: block;
}

/* =====================================================
   SWELLボーダー設定
   ===================================================== */
.has-border {
    border: 1px solid currentColor;
}

.is-style-border_solid {
    border: 2px solid #ddd;
    padding: 20px;
    border-radius: 8px;
}

.is-style-border_double {
    border: 4px double #ddd;
    padding: 20px;
    border-radius: 8px;
}

.is-style-border_dashed {
    border: 2px dashed #ddd;
    padding: 20px;
    border-radius: 8px;
}

/* =====================================================
   SWELLグループ装飾
   ===================================================== */
.is-style-bg_stripe {
    background: repeating-linear-gradient(
        -45deg,
        #f8f9fa,
        #f8f9fa 5px,
        #fff 5px,
        #fff 10px
    );
    padding: 20px;
    border-radius: 8px;
}

.is-style-bg_grid {
    background-image:
        linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    padding: 20px;
    border-radius: 8px;
}

.is-style-sticky {
    background: #fffde7;
    padding: 20px;
    border-radius: 0;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    transform: rotate(-1deg);
}

/* =====================================================
   Tuuhan Theme 強化スタイル
   SWELLより美しくなる追加装飾
   ===================================================== */

/* チェックリスト - Tuuhan版(より洗練) - 明るい背景のみ */
.is-style-check_list:not(.has-black-background-color):not(.has-background) li {
    background: linear-gradient(135deg, rgba(67, 160, 71, 0.05) 0%, transparent 50%);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.is-style-check_list:not(.has-black-background-color):not(.has-background) li:hover {
    background: linear-gradient(135deg, rgba(67, 160, 71, 0.12) 0%, transparent 50%);
    transform: translateX(3px);
}

.is-style-check_list:not(.has-black-background-color) li::before {
    box-shadow: 0 2px 8px rgba(67, 160, 71, 0.3);
    transition: transform 0.2s ease;
}

.is-style-check_list:not(.has-black-background-color) li:hover::before {
    transform: scale(1.1);
}

/* 黒背景のチェックリスト - 完全修正 */
.is-style-check_list.has-black-background-color {
    padding: 30px 25px !important;
    border-radius: 12px;
    margin: 1.5em 0 !important;
    background: #000 !important;
}

.is-style-check_list.has-black-background-color li,
.is-style-check_list.has-black-background-color li strong,
.is-style-check_list.has-black-background-color li * {
    color: #fff !important;
    background-image: none !important;
    background: transparent !important;
}

.is-style-check_list.has-black-background-color li {
    padding: 15px 15px 15px 50px !important;
    margin-bottom: 12px !important;
    line-height: 1.8 !important;
    font-weight: 500;
}

.is-style-check_list.has-black-background-color.has-large-font-size li {
    font-size: 1.15em !important;
}

.is-style-check_list.has-black-background-color.has-huge-font-size li {
    font-size: 1.3em !important;
}

.is-style-check_list.has-black-background-color li::before {
    background: #4fc3f7 !important;
    width: 34px !important;
    height: 34px !important;
    top: 12px !important;
    left: 8px !important;
    box-shadow: 0 3px 12px rgba(79, 195, 247, 0.5);
}

.is-style-check_list.has-black-background-color li::after {
    width: 14px !important;
    height: 8px !important;
    top: 20px !important;
    left: 18px !important;
    border-left: 4px solid #fff !important;
    border-bottom: 4px solid #fff !important;
    border-left: 3px solid #fff !important;
    border-bottom: 3px solid #fff !important;
}

/* マーカー - Tuuhan版(グラデーション強化) */
.swl-marker.mark_yellow {
    background-image: linear-gradient(90deg, transparent 0%, #fff59d 10%, #fff59d 90%, transparent 100%);
    background-size: 100% 45%;
}

.swl-marker.mark_red {
    background-image: linear-gradient(90deg, transparent 0%, #ffcdd2 10%, #ffcdd2 90%, transparent 100%);
    background-size: 100% 45%;
}

.swl-marker.mark_blue {
    background-image: linear-gradient(90deg, transparent 0%, #bbdefb 10%, #bbdefb 90%, transparent 100%);
    background-size: 100% 45%;
}

/* フォントサイズ - Tuuhan版(よりなめらか) */
.swl-fz.u-fz-xl,
.swl-fz.u-fz-xxl,
.u-fz-xl,
.u-fz-xxl {
    letter-spacing: 0.02em;
    line-height: 1.5;
}

/* カラーテキスト - Tuuhan版(影付き) */
.has-swl-deep-01-color,
.has-swl-deep-02-color,
.has-swl-deep-03-color {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* ボタン - Tuuhan版(さらにリッチ) */
.swell-block-button .swell-block-button__link {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.swell-block-button .swell-block-button__link:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* FAQ - Tuuhan版(モダン強化) */
.swell-block-faq {
    border: none;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    overflow: visible;
}

.swell-block-faq::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 8px 8px 0 0;
}

.swell-block-faq__q {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.swell-block-faq__q .swell-block-faq__label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.swell-block-faq__a .swell-block-faq__label {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.4);
}

/* 吹き出し - Tuuhan版(より柔らか) */
.swell-block-balloon__text,
.tuuhan-balloon__body {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

/* アイコンボックス - Tuuhan版(グラデーション境界) */
.is-style-icon_good,
.is-style-icon_bad,
.is-style-icon_info,
.is-style-icon_point,
.is-style-icon_check {
    border-left: 4px solid transparent;
    background-clip: padding-box;
}

.is-style-icon_good {
    border-image: linear-gradient(180deg, #43a047 0%, #2e7d32 100%) 1;
}

.is-style-icon_bad {
    border-image: linear-gradient(180deg, #e53935 0%, #c62828 100%) 1;
}

.is-style-icon_info {
    border-image: linear-gradient(180deg, #1e88e5 0%, #1565c0 100%) 1;
}

.is-style-icon_point {
    border-image: linear-gradient(180deg, #f57c00 0%, #e65100 100%) 1;
}

/* 背景色ブロック - Tuuhan版(微細グラデーション) */
.has-swl-pale-01-background-color {
    background: linear-gradient(135deg, #ffebee 0%, #fff 100%) !important;
}

.has-swl-pale-02-background-color {
    background: linear-gradient(135deg, #e3f2fd 0%, #fff 100%) !important;
}

.has-swl-pale-03-background-color {
    background: linear-gradient(135deg, #e8f5e9 0%, #fff 100%) !important;
}

.has-swl-deep-01-background-color {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%) !important;
}

.has-swl-deep-02-background-color {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%) !important;
}

.has-swl-deep-03-background-color {
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%) !important;
}

/* ボーダー - Tuuhan版 */
.is-style-border_solid,
.is-style-border_double,
.is-style-border_dashed {
    transition: all 0.3s ease;
}

.is-style-border_solid:hover,
.is-style-border_double:hover,
.is-style-border_dashed:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ステップ - Tuuhan版(番号アニメーション) */
.swell-block-step__head,
.tuuhan-step-head {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* 全体のタイポグラフィ強化 */
.entry-content .swl-fz,
.entry-content .swl-inline-color,
.entry-content .swl-marker {
    font-feature-settings: "palt";
}

/* =====================================================
   SWELL画像・レイアウトリセット
   ===================================================== */

/* 画像の回り込みをリセット */
.entry-content .wp-block-image,
.entry-content figure.wp-block-image {
    float: none !important;
    clear: both !important;
    margin: 1.5em 0 !important;
    max-width: 100% !important;
}

.entry-content .wp-block-image img,
.entry-content figure img {
    float: none !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

/* SWELL特有のfloatクラスをリセット */
.entry-content .alignleft,
.entry-content .alignright {
    float: none !important;
    margin: 1.5em auto !important;
    display: block !important;
}

/* SWELLカラムブロックのリセット */
.swell-block-columns,
.wp-block-columns {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    margin: 1.5em 0 !important;
}

.swell-block-columns > .wp-block-column,
.wp-block-columns > .wp-block-column {
    flex: 1 1 300px !important;
    min-width: 0 !important;
}

/* SWELLメディアとテキストブロック */
.wp-block-media-text {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    align-items: center !important;
    margin: 1.5em 0 !important;
}

.wp-block-media-text .wp-block-media-text__media {
    margin: 0 !important;
}

.wp-block-media-text .wp-block-media-text__media img {
    width: 100% !important;
    height: auto !important;
}

.wp-block-media-text .wp-block-media-text__content {
    padding: 0 !important;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .wp-block-media-text {
        grid-template-columns: 1fr !important;
    }

    .swell-block-columns,
    .wp-block-columns {
        flex-direction: column !important;
    }

    .swell-block-columns > .wp-block-column,
    .wp-block-columns > .wp-block-column {
        flex: 1 1 100% !important;
    }
}

/* クリアフィックス */
.entry-content::after {
    content: "";
    display: table;
    clear: both;
}

/* =====================================================
   SWELLプロフィール・ウィジェット内見出しリセット
   ===================================================== */

/* ウィジェット内の見出し線をリセット */
.widget h2,
.widget h3,
.widget h4,
.sidebar h2,
.sidebar h3,
.p-profileBox h2,
.p-profileBox h3,
.swell-profile-box h2,
.swell-profile-box h3,
.author-box h2,
.author-box h3 {
    border: none !important;
    border-bottom: none !important;
    border-left: none !important;
    background: none !important;
    padding-left: 0 !important;
}

/* SWELLプロフィールボックス */
.p-profileBox,
.swell-profile-box {
    background: rgba(0,0,0,0.6);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: #fff;
}

.p-profileBox__name,
.swell-profile-box__name,
.profile-name,
.author-name,
.widget .profile-name,
.sidebar .profile-name {
    font-size: 1.2em;
    font-weight: bold;
    margin: 10px 0;
    border: none !important;
    border-bottom: none !important;
    background: none !important;
    padding-bottom: 0 !important;
}

.p-profileBox__img img,
.swell-profile-box__img img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid #fff;
}

/* =====================================================
   Tuuhan独自吹き出し (tuuhan-balloon)
   loos/balloonブロックのレンダリング用
   ===================================================== */
.tuuhan-balloon {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin: 1.5em 0;
}

.tuuhan-balloon.is-right {
    flex-direction: row-reverse;
}

.tuuhan-balloon__icon {
    flex-shrink: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.tuuhan-balloon__icon.is-circle .tuuhan-balloon__icon-img {
    border-radius: 50%;
}

.tuuhan-balloon__icon.is-square .tuuhan-balloon__icon-img {
    border-radius: 8px;
}

.tuuhan-balloon__icon-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
}

.tuuhan-balloon__icon-placeholder {
    display: block;
    width: 60px;
    height: 60px;
    background: #ddd;
    border-radius: 50%;
}

.tuuhan-balloon__name {
    display: block;
    font-size: 12px;
    color: #666;
    line-height: 1.2;
    max-width: 80px;
    word-break: break-word;
}

.tuuhan-balloon__body {
    flex: 1;
    max-width: calc(100% - 90px);
    position: relative;
    padding: 15px 18px;
    border-radius: 12px;
    line-height: 1.7;
}

/* 吹き出し三角(尖り部分) */
.tuuhan-balloon__triangle {
    content: "";
    position: absolute;
    top: 18px;
    width: 0;
    height: 0;
    border-width: 10px;
    border-style: solid;
    border-color: transparent;
    z-index: 1;
}

/* 左向き吹き出し(デフォルト) - 三角は左側 */
.tuuhan-balloon.is-left .tuuhan-balloon__triangle {
    left: -20px;
    border-right-color: inherit;
}

/* 右向き吹き出し - 三角は右側 */
.tuuhan-balloon.is-right .tuuhan-balloon__triangle {
    right: -20px;
    border-left-color: inherit;
}

.tuuhan-balloon__content {
    line-height: 1.7;
}

.tuuhan-balloon__content p {
    margin: 0;
}

.tuuhan-balloon__content p + p {
    margin-top: 0.8em;
}

/* 考え中スタイル */
.tuuhan-balloon.is-thinking .tuuhan-balloon__body {
    border-radius: 20px;
}

.tuuhan-balloon.is-thinking .tuuhan-balloon__body::before,
.tuuhan-balloon.is-thinking .tuuhan-balloon__body::after {
    border: none;
    width: 12px;
    height: 12px;
    background: inherit;
    border-radius: 50%;
    top: 20px;
}

/* レスポンシブ */
@media (max-width: 600px) {
    .tuuhan-balloon {
        gap: 10px;
    }

    .tuuhan-balloon__icon-img,
    .tuuhan-balloon__icon-placeholder {
        width: 50px;
        height: 50px;
    }

    .tuuhan-balloon__body {
        max-width: calc(100% - 65px);
        padding: 12px 15px;
    }

    .tuuhan-balloon__name {
        font-size: 11px;
    }
}
