/*
Theme Name: Successfee
Theme URI:
Author: creap
Author URI:
Description: Successfee用カスタムテーマ
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: successfee
*/

/* ==========================================================================
   CSS Variables (デフォルト値、カスタマイザーで上書き可能)
   ========================================================================== */
:root {
    --successfee-main-color: #0f458b;
    --successfee-base-color: #fdfdfd;
    --successfee-subtitle-color: #0f458b;
    --successfee-cta-bg-color: #0f458b;
    --successfee-cta-text-color: #fdfdfd;
    --successfee-header-height: 100px;
    --successfee-logo-height: 40px;

    /* WordPress preset spacing（PC時のデフォルト値） */
    --wp--preset--spacing--0: 0;
    --wp--preset--spacing--10: 8px;
    --wp--preset--spacing--20: 16px;
    --wp--preset--spacing--30: 24px;
    --wp--preset--spacing--40: 32px;
    --wp--preset--spacing--50: 48px;
    --wp--preset--spacing--60: 64px;
    --wp--preset--spacing--70: 80px;
    --wp--preset--spacing--80: 96px;
}

/* スマホ時（599px以下）: 余白を縮小 */
@media screen and (max-width: 599px) {
    :root {
        --wp--preset--spacing--10: 4px;
        --wp--preset--spacing--20: 10px;
        --wp--preset--spacing--30: 16px;
        --wp--preset--spacing--40: 20px;
        --wp--preset--spacing--50: 28px;
        --wp--preset--spacing--60: 36px;
        --wp--preset--spacing--70: 44px;
        --wp--preset--spacing--80: 52px;
    }
}

/* タブレット時（600px〜959px）: 中間値 */
@media screen and (min-width: 600px) and (max-width: 959px) {
    :root {
        --wp--preset--spacing--10: 6px;
        --wp--preset--spacing--20: 12px;
        --wp--preset--spacing--30: 20px;
        --wp--preset--spacing--40: 26px;
        --wp--preset--spacing--50: 38px;
        --wp--preset--spacing--60: 50px;
        --wp--preset--spacing--70: 62px;
        --wp--preset--spacing--80: 74px;
    }
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: var(--successfee-base-color);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background-color: var(--successfee-base-color);
    height: var(--successfee-header-height);
    position: relative;
    width: 100%;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Left */
.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Logo */
.site-logo a {
    display: flex;
    align-items: center;
}

.site-logo .logo-image {
    height: var(--successfee-logo-height);
    width: auto;
}

/* Divider */
.header-divider {
    width: 1px;
    height: 40px;
    background-color: #ccc;
}

/* Subtitle */
.site-subtitle {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--successfee-subtitle-color);
    line-height: 1;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
}

/* CTA Button */
.header-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
    height: 50px;
    padding: 0 20px;
    background-color: var(--successfee-cta-bg-color);
    color: var(--successfee-cta-text-color);
    font-size: 14px;
    font-weight: 700;
    border-radius: 5px;
    transition: opacity 0.3s ease;
}

.header-cta-btn:hover {
    opacity: 0.8;
}

.cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-icon svg {
    fill: currentColor;
}

.cta-text {
    white-space: nowrap;
}

/* ==========================================================================
   Utility Classes (ブロックエディタ用)
   ========================================================================== */

/* Overflow */
.u-overflow-hidden {
    overflow: hidden;
}

.u-overflow-visible {
    overflow: visible;
}

.u-overflow-scroll {
    overflow: scroll;
}

.u-overflow-auto {
    overflow: auto;
}

/* Max Width */
.u-max-w-400 {
    max-width: 400px;
}

.u-max-w-500 {
    max-width: 500px;
}

.u-max-w-600 {
    max-width: 600px;
}

.u-max-w-700 {
    max-width: 700px;
}

.u-max-w-800 {
    max-width: 800px;
}

.u-max-w-900 {
    max-width: 900px;
}

.u-max-w-1000 {
    max-width: 1000px;
}

.u-max-w-1100 {
    max-width: 1100px;
}

.u-max-w-1200 {
    max-width: 1200px;
}

/* Width */
.u-w-full {
    width: 100%;
}

.u-w-auto {
    width: auto;
}

/* 中央揃え */
.u-mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ホバーアニメーション */
.u-hover-up {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.u-hover-up:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.u-hover-scale {
    transition: transform 0.3s ease;
}

.u-hover-scale:hover {
    transform: scale(1.02);
}

.u-hover-opacity {
    transition: opacity 0.3s ease;
}

.u-hover-opacity:hover {
    opacity: 0.8;
}

.u-hover-shadow {
    transition: box-shadow 0.3s ease;
}

.u-hover-shadow:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* リンク付きグループブロック */
.has-successfee-link {
    cursor: pointer;
}

/* Position - 絶対配置で左右中央 */
.-position-x-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
    max-width: 1280px;
    margin: 0 auto;
    padding: 15px 20px;
}

.breadcrumb__list {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.breadcrumb__item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #181818;
}

.breadcrumb__item:not(:last-child)::after {
    content: ">";
    color: #181818;
}

.breadcrumb__link {
    color: #181818;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb__link:hover {
    opacity: 0.7;
}

.breadcrumb__current {
    color: #181818;
}

/* ==========================================================================
   Main Content
   ========================================================================== */
.site-content {
    max-width: 1280px;
    margin: 0 auto;
}

.site-main {
    min-height: 50vh;
}

/* コンテンツ内のリンクスタイル */
.site-main a:not(.wp-block-button__link):not(.header-cta-btn) {
    color: var(--successfee-main-color);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.site-main a:not(.wp-block-button__link):not(.header-cta-btn):hover {
    opacity: 0.7;
}

/* ==========================================================================
   Single Post - Title Section
   ========================================================================== */
.post-title-section {
    background-color: #ebf2fa;
    padding: 40px 20px;
    margin-bottom: 0;
}

.post-title {
    max-width: 1000px;
    margin: 0 auto;
    font-size: 24px;
    font-weight: 700;
    color: var(--successfee-main-color);
    text-align: center;
    line-height: 1.4;
}

/* ==========================================================================
   Single Post - Content
   ========================================================================== */
.post-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

.post-content {
    font-size: 16px;
    line-height: 2;
    color: #333;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   Headings - SWELL Style
   ========================================================================== */
/* H2 - メインセクション見出し */
.post-content h2 {
    position: relative;
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 80px 0 30px;
    padding: 20px 25px;
    background: linear-gradient(to right, #ebf2fa, #f8fafc);
    border-left: 5px solid var(--successfee-main-color);
    border-radius: 0 8px 8px 0;
    line-height: 1.5;
}

.post-content h2:first-child {
    margin-top: 0;
}

/* H3 - サブセクション見出し */
.post-content h3 {
    position: relative;
    font-size: 19px;
    font-weight: 700;
    color: #333;
    margin: 60px 0 25px;
    padding: 0 0 12px 0;
    border-bottom: 3px solid #e5e5e5;
    line-height: 1.5;
}

.post-content h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100px;
    height: 3px;
    background-color: var(--successfee-main-color);
}

/* H4 - 小見出し */
.post-content h4 {
    position: relative;
    font-size: 17px;
    font-weight: 700;
    color: #333;
    margin: 45px 0 20px;
    padding-left: 15px;
    line-height: 1.5;
}

.post-content h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 70%;
    background-color: var(--successfee-main-color);
    border-radius: 3px;
}

/* H5 */
.post-content h5 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 35px 0 15px;
    line-height: 1.5;
}

/* ==========================================================================
   Paragraphs
   ========================================================================== */
.post-content p {
    margin: 0 0 1.8em;
}

.post-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Lists - SWELL Style
   ========================================================================== */
.post-content ul {
    margin: 1.5em 0 2em;
    padding: 25px 25px 25px 45px;
    background-color: #fafafa;
    border-radius: 8px;
    list-style: none;
}

.post-content ul li {
    position: relative;
    margin-bottom: 0.8em;
    padding-left: 5px;
    line-height: 1.8;
}

.post-content ul li:last-child {
    margin-bottom: 0;
}

.post-content ul li::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0.6em;
    width: 8px;
    height: 8px;
    background-color: var(--successfee-main-color);
    border-radius: 50%;
}

.post-content ol {
    margin: 1.5em 0 2em;
    padding: 25px 25px 25px 50px;
    background-color: #fafafa;
    border-radius: 8px;
    list-style: none;
    counter-reset: ol-counter;
}

.post-content ol li {
    position: relative;
    margin-bottom: 0.8em;
    padding-left: 5px;
    line-height: 1.8;
    counter-increment: ol-counter;
}

.post-content ol li:last-child {
    margin-bottom: 0;
}

.post-content ol li::before {
    content: counter(ol-counter);
    position: absolute;
    left: -30px;
    top: 0.2em;
    width: 22px;
    height: 22px;
    background-color: var(--successfee-main-color);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    line-height: 22px;
    border-radius: 50%;
}

/* ネストしたリスト */
.post-content ul ul,
.post-content ol ol,
.post-content ul ol,
.post-content ol ul {
    margin: 0.8em 0 0;
    padding: 0 0 0 20px;
    background-color: transparent;
}

/* ==========================================================================
   Images - SWELL Style
   ========================================================================== */
.post-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 35px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.post-content figure {
    margin: 40px 0;
}

.post-content figure img {
    margin: 0 auto;
}

.post-content figcaption {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-top: 12px;
    padding: 0 10px;
    line-height: 1.6;
}

/* ==========================================================================
   Blockquote - SWELL Style
   ========================================================================== */
.post-content blockquote {
    position: relative;
    margin: 40px 0;
    padding: 30px 30px 30px 60px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: none;
}

.post-content blockquote::before {
    content: '"';
    position: absolute;
    left: 20px;
    top: 15px;
    font-size: 50px;
    font-family: Georgia, serif;
    color: var(--successfee-main-color);
    opacity: 0.3;
    line-height: 1;
}

.post-content blockquote p {
    font-style: italic;
    color: #555;
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-content blockquote cite {
    display: block;
    margin-top: 15px;
    font-size: 13px;
    color: #888;
    font-style: normal;
}

/* ==========================================================================
   Code - SWELL Style
   ========================================================================== */
.post-content code {
    font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', Menlo, monospace;
    font-size: 0.9em;
    background-color: #f1f5f9;
    color: #e11d48;
    padding: 3px 8px;
    border-radius: 4px;
}

.post-content pre {
    margin: 40px 0;
    padding: 25px;
    background-color: #1e293b;
    color: #e2e8f0;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.7;
}

.post-content pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* ==========================================================================
   Tables - SWELL Style
   ========================================================================== */
.post-content table {
    width: 100%;
    margin: 40px 0;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.post-content th,
.post-content td {
    padding: 15px 18px;
    text-align: left;
    border: none;
    border-bottom: 1px solid #e5e7eb;
}

.post-content th {
    background-color: var(--successfee-main-color);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.post-content tr:last-child td {
    border-bottom: none;
}

.post-content tr:nth-child(even) {
    background-color: #f9fafb;
}

.post-content tr:hover {
    background-color: #f3f4f6;
}

/* ==========================================================================
   Links in Content
   ========================================================================== */
.post-content a {
    color: var(--successfee-main-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.post-content a:hover {
    color: #0d3a73;
    text-decoration-color: transparent;
}

/* ==========================================================================
   WordPress Block Styles
   ========================================================================== */
.post-content .wp-block-image {
    margin: 40px 0;
}

.post-content .wp-block-image img {
    margin: 0 auto;
}

.post-content .wp-block-image.aligncenter {
    text-align: center;
}

.post-content .wp-block-image.alignleft {
    float: left;
    margin: 0 25px 20px 0;
}

.post-content .wp-block-image.alignright {
    float: right;
    margin: 0 0 20px 25px;
}

/* WordPress Separator */
.post-content hr,
.post-content .wp-block-separator {
    margin: 50px auto;
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    max-width: 300px;
}

/* WordPress Buttons */
.post-content .wp-block-button__link {
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.post-content .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Table of Contents - 目次
   ========================================================================== */
.post-toc {
    margin: 0 0 40px;
}

.post-toc-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.post-toc-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #fff;
    border: 1px solid var(--successfee-main-color);
    border-radius: 5px;
    color: var(--successfee-main-color);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition:
        background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-toc-item:hover {
    background-color: var(--successfee-main-color);
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(15, 69, 139, 0.25);
}

.post-toc-item:hover .post-toc-text,
.post-toc-item:hover .post-toc-arrow {
    color: #fff;
}

.post-toc-text {
    white-space: nowrap;
}

.post-toc-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--successfee-main-color);
    margin-left: 4px;
    transition: border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-toc-item:hover .post-toc-arrow {
    border-top-color: #fff;
}

/* ==========================================================================
   Step Badges - 手順番号バッジ
   ========================================================================== */
.post-content .step-badge,
.post-content p.is-style-step-badge {
    position: relative;
    display: block;
    margin: 30px 0 12px;
    padding-left: 32px;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    min-height: 24px;
}

.post-content .step-badge::before,
.post-content p.is-style-step-badge::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--successfee-main-color);
    border-radius: 50%;
}

/* 連番用スタイル（CSSカウンター使用） */
.post-content .step-list {
    counter-reset: step-counter;
}

.post-content .step-list .step-item {
    position: relative;
    display: block;
    margin: 25px 0 12px;
    padding-left: 32px;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    min-height: 24px;
    counter-increment: step-counter;
}

.post-content .step-list .step-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--successfee-main-color);
    border-radius: 50%;
}

/* ==========================================================================
   Callout Boxes - 注意書きボックス
   ========================================================================== */
/* 基本スタイル */
.post-content .callout-box,
.post-content .wp-block-group.is-style-callout-note,
.post-content .wp-block-group.is-style-callout-warning,
.post-content .wp-block-group.is-style-callout-tip,
.post-content .wp-block-group.is-style-callout-point {
    position: relative;
    margin: 30px 0;
    padding: 25px 25px 25px 60px;
    border-radius: 8px;
    line-height: 1.8;
}

.post-content .callout-box::before,
.post-content .wp-block-group.is-style-callout-note::before,
.post-content .wp-block-group.is-style-callout-warning::before,
.post-content .wp-block-group.is-style-callout-tip::before,
.post-content .wp-block-group.is-style-callout-point::before {
    position: absolute;
    left: 20px;
    top: 25px;
    font-size: 20px;
    line-height: 1;
}

/* Note - 補足情報（青） */
.post-content .callout-note,
.post-content .wp-block-group.is-style-callout-note {
    background-color: #ebf5ff;
    border-left: 4px solid #3b82f6;
}

.post-content .callout-note::before,
.post-content .wp-block-group.is-style-callout-note::before {
    content: 'ℹ️';
}

/* Warning - 注意（黄） */
.post-content .callout-warning,
.post-content .wp-block-group.is-style-callout-warning {
    background-color: #fffbeb;
    border-left: 4px solid #f59e0b;
}

.post-content .callout-warning::before,
.post-content .wp-block-group.is-style-callout-warning::before {
    content: '⚠️';
}

/* Tip - ポイント/コツ（緑） */
.post-content .callout-tip,
.post-content .wp-block-group.is-style-callout-tip {
    background-color: #ecfdf5;
    border-left: 4px solid #10b981;
}

.post-content .callout-tip::before,
.post-content .wp-block-group.is-style-callout-tip::before {
    content: '💡';
}

/* Point - 重要ポイント（赤） */
.post-content .callout-point,
.post-content .wp-block-group.is-style-callout-point {
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
}

.post-content .callout-point::before,
.post-content .wp-block-group.is-style-callout-point::before {
    content: '📌';
}

/* Callout内のp要素の余白調整 */
.post-content .callout-box p:last-child,
.post-content .wp-block-group[class*="is-style-callout"] p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Enhanced Figure Captions - 画像キャプション強化
   ========================================================================== */
.post-content figure.wp-block-image {
    position: relative;
    margin: 40px 0;
}

.post-content figure.wp-block-image figcaption {
    display: block;
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-top: 15px;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    line-height: 1.6;
}

/* キャプション付き画像の強調 */
.post-content figure.wp-block-image.has-caption {
    padding-bottom: 5px;
}

/* 番号付きキャプション用 */
.post-content figure.wp-block-image[data-caption-number] figcaption::before {
    content: '図' attr(data-caption-number) '：';
    font-weight: 600;
    color: var(--successfee-main-color);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--successfee-main-color);
    padding: 52px 20px;
    text-align: center;
}

.site-info {
    font-size: 12px;
    color: var(--successfee-base-color);
}

.site-info p {
    margin: 0;
}

/* ==========================================================================
   Responsive (Tablet)
   ========================================================================== */
@media screen and (max-width: 1024px) {
    .site-subtitle {
        font-size: 20px;
    }

    .header-left {
        gap: 20px;
    }

    .header-cta-btn {
        min-width: 160px;
        font-size: 13px;
    }

    /* Single Post - Tablet */
    .post-title {
        font-size: 22px;
    }

    .post-content-wrapper {
        padding: 40px 20px;
    }
}

/* ==========================================================================
   Responsive (Mobile)
   ========================================================================== */
@media screen and (max-width: 768px) {
    :root {
        --successfee-header-height: 60px;
        --successfee-logo-height: 28px;
    }

    /* SP時縦並びクラス（エディタでON/OFF可能） */
    .wp-block-group.is-mobile-stack.is-layout-flex {
        flex-direction: column;
    }

    /* SP時縦並び時、子要素をデフォルトで100%幅にする（個別の横幅設定がある場合は除外） */
    .wp-block-group.is-mobile-stack.is-layout-flex > *:not([class*="has-mobile-width-"]),
    .successfee-section .successfee-section__inner .wp-block-group.is-mobile-stack.is-layout-flex > *:not([class*="has-mobile-width-"]) {
        width: 100% !important;
        flex: 0 0 100% !important;
        flex-basis: 100% !important;
    }

    /* SP時縦並び時の配置引き継ぎ（横並び時のjustify-content設定をalign-itemsに変換） */
    .wp-block-group.is-mobile-stack.is-layout-flex.is-content-justification-left {
        align-items: flex-start;
    }

    .wp-block-group.is-mobile-stack.is-layout-flex.is-content-justification-center {
        align-items: center;
    }

    .wp-block-group.is-mobile-stack.is-layout-flex.is-content-justification-right {
        align-items: flex-end;
    }

    .wp-block-group.is-mobile-stack.is-layout-flex.is-content-justification-space-between {
        align-items: stretch;
    }

    /* SP時も横並び維持 */
    .wp-block-group.is-mobile-no-stack.is-layout-flex {
        flex-direction: row;
    }

    /* SP時横幅設定：要素自体の幅を設定（親コンテナ内での幅） */
    .wp-block-group.has-mobile-width-100,
    .successfee-section .successfee-section__inner .wp-block-group.has-mobile-width-100 {
        width: 100% !important;
        flex: 0 0 100% !important;
        flex-basis: 100% !important;
    }

    .wp-block-group.has-mobile-width-50,
    .successfee-section .successfee-section__inner .wp-block-group.has-mobile-width-50 {
        width: 50% !important;
        flex: 0 0 50% !important;
        flex-basis: 50% !important;
    }

    .wp-block-group.has-mobile-width-33,
    .successfee-section .successfee-section__inner .wp-block-group.has-mobile-width-33 {
        width: 33.333% !important;
        flex: 0 0 33.333% !important;
        flex-basis: 33.333% !important;
    }

    .wp-block-group.has-mobile-width-25,
    .successfee-section .successfee-section__inner .wp-block-group.has-mobile-width-25 {
        width: 25% !important;
        flex: 0 0 25% !important;
        flex-basis: 25% !important;
    }

    /* SP時配置クラス（縦積みブロック用） */
    .wp-block-group.is-mobile-align-left.is-layout-flex {
        align-items: flex-start;
    }

    .wp-block-group.is-mobile-align-center.is-layout-flex {
        align-items: center;
    }

    .wp-block-group.is-mobile-align-right.is-layout-flex {
        align-items: flex-end;
    }

    /* SP時配置クラス（段落ブロック用） */
    p.is-mobile-align-left {
        text-align: left;
    }

    p.is-mobile-align-center {
        text-align: center;
    }

    p.is-mobile-align-right {
        text-align: right;
    }

    /* PCのみ表示（SPでは非表示） */
    .is-pc-only {
        display: none !important;
    }

    .header-inner {
        padding: 0 15px;
    }

    .header-left {
        gap: 12px;
    }

    .site-subtitle {
        font-size: 14px;
    }

    .header-divider {
        height: 24px;
    }

    .header-cta-btn {
        min-width: auto;
        height: 36px;
        padding: 0 12px;
        font-size: 11px;
        gap: 5px;
    }

    .cta-icon svg {
        width: 14px;
        height: 11px;
    }

    /* Single Post - Mobile */
    .post-title-section {
        padding: 30px 15px;
    }

    .post-title {
        font-size: 20px;
    }

    .post-content-wrapper {
        padding: 30px 15px 50px;
    }

    .post-content {
        font-size: 15px;
        line-height: 1.8;
    }

    .post-content p {
        margin: 0 0 1.2em;
    }

    .post-content h2 {
        font-size: 18px;
        margin: 30px 0 15px;
        padding: 12px 15px;
    }

    .post-content h3 {
        font-size: 17px;
        margin: 25px 0 12px;
    }

    .post-content h4 {
        font-size: 16px;
        margin: 20px 0 10px;
    }

    .post-content ul,
    .post-content ol {
        margin: 1em 0 1.2em;
        padding: 15px 15px 15px 35px;
    }

    .post-content ul li,
    .post-content ol li {
        margin-bottom: 0.5em;
    }

    .post-content img {
        margin: 20px auto;
    }

    .post-content blockquote {
        margin: 25px 0;
        padding: 18px 15px 18px 45px;
    }

    .post-content blockquote::before {
        font-size: 36px;
        left: 12px;
    }

    /* Table of Contents - Mobile */
    .post-toc {
        margin: 0 0 20px;
    }

    .post-toc-inner {
        gap: 6px;
    }

    .post-toc-item {
        padding: 6px 12px;
        font-size: 13px;
    }

    .post-toc-text {
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 300px;
    }

    /* Step Badges - Mobile */
    .post-content .step-badge,
    .post-content p.is-style-step-badge,
    .post-content .step-list .step-item {
        padding-left: 28px;
        font-size: 14px;
        margin-bottom: 0.8em;
    }

    .post-content .step-badge::before,
    .post-content p.is-style-step-badge::before,
    .post-content .step-list .step-item::before {
        width: 18px;
        height: 18px;
    }

    /* Callout Boxes - Mobile */
    .post-content .callout-box,
    .post-content .wp-block-group.is-style-callout-note,
    .post-content .wp-block-group.is-style-callout-warning,
    .post-content .wp-block-group.is-style-callout-tip,
    .post-content .wp-block-group.is-style-callout-point {
        margin: 20px 0;
        padding: 15px 12px 15px 45px;
    }

    .post-content .callout-box::before,
    .post-content .wp-block-group.is-style-callout-note::before,
    .post-content .wp-block-group.is-style-callout-warning::before,
    .post-content .wp-block-group.is-style-callout-tip::before,
    .post-content .wp-block-group.is-style-callout-point::before {
        left: 12px;
        font-size: 16px;
    }

    /* Figure Captions - Mobile */
    .post-content figure.wp-block-image figcaption {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* ==========================================================================
   Responsive (Small Mobile)
   ========================================================================== */
@media screen and (max-width: 480px) {
    :root {
        --successfee-header-height: 56px;
        --successfee-logo-height: 24px;
    }

    .header-inner {
        padding: 0 12px;
    }

    .site-subtitle {
        font-size: 12px;
    }

    .header-left {
        gap: 8px;
    }

    .header-divider {
        height: 20px;
    }

    /* 小さい画面ではCTAボタンのテキストを非表示にしてアイコンのみ */
    .header-cta-btn .cta-text {
        display: none;
    }

    .header-cta-btn {
        min-width: 36px;
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 50%;
    }

    .cta-icon svg {
        width: 16px;
        height: 13px;
    }
}

/* ==========================================================================
   PC専用スタイル（769px以上）
   ========================================================================== */
@media (min-width: 769px) {
    /* SPのみ表示（PCでは非表示） */
    .is-sp-only {
        display: none !important;
    }
}

/* ==========================================================================
   Grid Responsive Columns - グリッドレスポンシブカラム
   ========================================================================== */
/* タブレット時（768px〜1024px） */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .wp-block-group.is-layout-grid.has-tb-columns-1 {
        grid-template-columns: 1fr !important;
    }
    .wp-block-group.is-layout-grid.has-tb-columns-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .wp-block-group.is-layout-grid.has-tb-columns-3 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .wp-block-group.is-layout-grid.has-tb-columns-4 {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* スマートフォン時（〜767px） */
@media screen and (max-width: 767px) {
    .wp-block-group.is-layout-grid.has-sp-columns-1 {
        grid-template-columns: 1fr !important;
    }
    .wp-block-group.is-layout-grid.has-sp-columns-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .wp-block-group.is-layout-grid.has-sp-columns-3 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .wp-block-group.is-layout-grid.has-sp-columns-4 {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}
