/**
 * システムページ用CSS（ブロックエディター用）
 * 
 * @package NONKE_SPA
 * @since 1.0.5
 */


/* ==========================================================================
   システムページ共通スタイル
   ========================================================================== */
.p-systemContent {
    margin: 0;
    padding: 20px 0;
    background: transparent;
}

.p-systemContent .l-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   各セクションのスタイリング
   ========================================================================== */
/* 共通セクションスタイル */
.p-systemContent .wp-block-columns {
    margin: 0;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 基本料金セクション */
.p-systemContent .kihon {
    background: linear-gradient(135deg, #fff 0%, #f8fdf5 100%);
    border: 1px solid #e8f5e0;
}

/* 出張費用セクション */
.p-systemContent .shuccho {
    background: linear-gradient(135deg, #fff 0%, #f5f8fd 100%);
    border: 1px solid #e0e8f5;
}

/* コース料金セクション */
.p-systemContent .course {
    background: linear-gradient(135deg, #fff 0%, #fdf8f5 100%);
    border: 1px solid #f5e8e0;
}

/* 基本プレイセクション */
.p-systemContent .play {
    background: #f8f8f8;
    border: 2px solid #303c09;
}

/* オプションセクション */
.p-systemContent .option {
    background: linear-gradient(135deg, #fff 0%, #f5fdf8 100%);
    border: 1px solid #e0f5e8;
}

/* ご利用案内セクション */
.p-systemContent .howtouse {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 40px;
}

/* クレジットカードセクション */
.p-systemContent .creditcard {
    background: #f0f7ff;
    border: 1px solid #d0e7ff;
}

/* 注意事項セクション */
.p-systemContent .warning {
    background: #fff5f5;
    border: 2px solid #ffdddd;
    position: relative;
}

/* ==========================================================================
   見出し（H2）- WordPressブロックエディター対応
   ========================================================================== */
.p-systemContent h2,
.p-systemContent h2.wp-block-heading {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #303c09 0%, #4a5a0d 100%);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* 中央揃えの見出し */
.p-systemContent h2.has-text-align-center {
    text-align: center;
}

.p-systemContent h2:first-child,
.p-systemContent h2.wp-block-heading:first-child {
    margin-top: 0;
}

/* サブ見出し（H3）- WordPressブロックエディター対応 */
.p-systemContent h3,
.p-systemContent h3.wp-block-heading {
    font-size: 16px;
    font-weight: 700;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #303c09;
    color: #333;
    line-height: 1.5;
}

/* wp-block-headingクラスの上マージン追加 */
.p-systemContent .wp-block-heading {
    margin-top: 40px;
}

.p-systemContent .wp-block-heading:first-child {
    margin-top: 0;
}

/* コラム内の見出し */
.p-systemContent .wp-block-column .wp-block-heading:first-child {
    margin-top: 0;
}

/* サブ見出し（H4） */
.p-systemContent h4,
.p-systemContent h4.wp-block-heading {
    font-size: 20px;
    font-weight: 700;
    margin: 30px 0 15px;
    color: #303c09;
    padding-left: 15px;
    border-left: 4px solid #303c09;
    line-height: 1.5;
}


/* ==========================================================================
   テーブル
   ========================================================================== */
.p-systemContent table,
.p-systemContent .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: #fff;
}

.p-systemContent th,
.p-systemContent td,
.p-systemContent .wp-block-table th,
.p-systemContent .wp-block-table td {
    border: 1px solid #e5e5e5;
    line-height: 1.6;
}

.p-systemContent th,
.p-systemContent .wp-block-table th {
    background: #f8f8f8;
    font-weight: 700;
    text-align: left;
    color: #333;
    width: 35%;
}

.p-systemContent td,
.p-systemContent .wp-block-table td {
    background: #fff;
    color: #333;
}

/* 料金テーブル用スタイル */
.p-systemContent .has-text-align-right td,
.p-systemContent .wp-block-table .has-text-align-right td {
    text-align: right;
    font-weight: 700;
    color: #303c09;
}

/* ストライプテーブル */
.p-systemContent .is-style-stripes tbody tr:nth-child(odd) td,
.p-systemContent .wp-block-table.is-style-stripes tbody tr:nth-child(odd) td {
    background: #fafafa;
}

/* ==========================================================================
   テーブルのカスタムスタイル - 左列グレー
   ========================================================================== */
/* 左列グレースタイル（カスタムクラス） */
.p-systemContent .is-style-left-gray tbody tr td:first-child,
.p-systemContent .wp-block-table.is-style-left-gray tbody tr td:first-child,
.p-systemContent table.is-style-left-gray tbody tr td:first-child,
.p-systemContent figure.is-style-left-gray table tbody tr td:first-child,
.p-systemContent figure.wp-block-table.is-style-left-gray table tbody tr td:first-child {
    background: linear-gradient(90deg, #f0f0f0 0%, #f8f8f8 100%) !important;
    font-weight: 700 !important;
    color: #303c09 !important;
    border-right: 2px solid #e0e0e0;
}

/* 左列グレー + ヘッダー付きテーブル */
.p-systemContent .is-style-left-gray thead th,
.p-systemContent .wp-block-table.is-style-left-gray thead th,
.p-systemContent table.is-style-left-gray thead th {
    background: #e8e8e8;
    font-weight: 700;
    color: #333;
}

/* 左列グレー - thead無しのテーブルでも最初のtdをグレーに */
.p-systemContent .is-style-left-gray tr td:first-child,
.p-systemContent .wp-block-table.is-style-left-gray tr td:first-child,
.p-systemContent table.is-style-left-gray tr td:first-child,
.p-systemContent figure.is-style-left-gray tr td:first-child {
    background: #f8f8f8 !important;
    font-weight: 700 !important;
    color: #333 !important;
}

/* figureタグでラップされている場合も対応 */
.p-systemContent figure.wp-block-table.is-style-left-gray table tbody tr td:first-child,
.p-systemContent figure.wp-block-table.is-style-left-gray table tr td:first-child {
    background: #f8f8f8 !important;
    font-weight: 700 !important;
    color: #333 !important;
}

/* 左列グレー + ストライプの組み合わせ */
.p-systemContent .is-style-left-gray.is-style-stripes tbody tr:nth-child(odd) td:first-child,
.p-systemContent .wp-block-table.is-style-left-gray.is-style-stripes tbody tr:nth-child(odd) td:first-child {
    background: #f0f0f0;
}

/* 左列グレー + 料金表示 */
.p-systemContent .is-style-left-gray tbody tr td:last-child,
.p-systemContent .wp-block-table.is-style-left-gray tbody tr td:last-child {
    text-align: right;
    font-weight: 700;
    color: #303c09;
}

/* 各セクションのテーブルスタイル */
.p-systemContent .kihon table,
.p-systemContent .shuccho table,
.p-systemContent .course table,
.p-systemContent .option table {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

.p-systemContent .kihon td:last-child,
.p-systemContent .shuccho td:last-child,
.p-systemContent .course td:last-child,
.p-systemContent .option td:last-child {
    background: linear-gradient(90deg, #fff 0%, #fffef5 100%);
}

/* ==========================================================================
   段落
   ========================================================================== */
.p-systemContent p {
    font-size: 16px;
    line-height: 1.8;
    margin: 20px 0;
    color: #333;
}

/* 中央揃えの段落 */
.p-systemContent p.has-text-align-center {
    text-align: center;
}

/* 基本プレイセクションの段落 */
.p-systemContent .play p {
    font-size: 18px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    margin: 0;
}

/* リード文（大きめの段落） */
.p-systemContent p.has-large-font-size {
    font-size: 18px;
    line-height: 1.8;
    margin: 30px 0;
    font-weight: 500;
}

/* 注記（小さめの段落） */
.p-systemContent p.has-small-font-size {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* ==========================================================================
   リスト
   ========================================================================== */
.p-systemContent ul,
.p-systemContent ol {
    margin: 20px 0;
    padding-left: 30px;
}

.p-systemContent li {
    font-size: 16px;
    line-height: 1.8;
    margin: 10px 0;
    color: #333;
}

/* 警告セクションのリスト */
.p-systemContent .warning ul {
    background: #fff;
    padding: 20px 20px 20px 40px;
    border-radius: 8px;
    margin: 20px 0;
}

.p-systemContent .warning li {
    color: #d9534f;
    font-weight: 500;
    margin: 15px 0;
}

/* クレジットカードの手順リスト */
.p-systemContent .creditcard ol {
    background: #fff;
    padding: 0;
    padding-left: 30px;
    border-radius: 8px;
    counter-reset: list;
}

.p-systemContent .creditcard ol li {
    position: relative;
    padding-left: 10px;
    counter-increment: list;
}

.p-systemContent .creditcard ol li::before {
    content: counter(list);
    position: absolute;
    left: -25px;
    width: 24px;
    height: 24px;
    background: #303c09;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* チェックリスト風 */
.p-systemContent ul.is-style-check {
    list-style: none;
    padding-left: 0;
}

.p-systemContent ul.is-style-check li {
    position: relative;
    padding-left: 30px;
}

.p-systemContent ul.is-style-check li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #303c09;
    font-weight: 700;
    font-size: 18px;
}

/* ==========================================================================
   メディアテキストブロック
   ========================================================================== */
.p-systemContent .wp-block-media-text {
    margin: 30px 0;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
    align-items: center;
    gap: 15px;
}

.p-systemContent .wp-block-media-text__media {
    width: 100%;
    max-width: 820px;
    height: auto;
    flex-shrink: 0;
}

.p-systemContent .wp-block-media-text__media img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border: none;
    border-radius: 8px;
}

.p-systemContent .wp-block-media-text__content {
    flex: 1;
    padding: 0;
}

.p-systemContent .wp-block-media-text__content h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    color: #303c09;
}

.p-systemContent .wp-block-media-text__content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #666;
}

/* ご利用案内のステップ番号 */
.p-systemContent .howtouse .wp-block-media-text {
    position: relative;
    counter-increment: step;
}

.p-systemContent .howtouse .wp-block-media-text::before {
    content: "STEP " counter(step);
    position: absolute;
    top: -10px;
    left: 20px;
    background: #303c09;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

/* クレジットカードセクションのメディアテキスト */
.p-systemContent .creditcard .wp-block-media-text {
    background: #fff;
    border: 1px solid #d0e7ff;
}

/* ==========================================================================
   コラム（カラムブロック）
   ========================================================================== */
.p-systemContent .wp-block-columns {
    margin: 0;
    margin-bottom: 40px;
    gap: 30px;
}

.p-systemContent .wp-block-column {
    flex-basis: calc(50% - 15px);
}

/* 3カラム */
.p-systemContent .wp-block-columns.has-3-columns .wp-block-column {
    flex-basis: calc(33.333% - 20px);
}

/* 4カラム */
.p-systemContent .wp-block-columns.has-4-columns .wp-block-column {
    flex-basis: calc(25% - 22.5px);
}

/* コース料金内のASKセクション */
.p-systemContent .course .wp-block-columns {
    margin-top: 30px;
    margin-bottom: 0;
    padding: 20px;
    background: #fff8f0;
    border-radius: 8px;
    border: 1px dashed #ff9800;
}

/* カウンターリセット */
.p-systemContent .howtouse {
    counter-reset: step;
}

/* ==========================================================================
   ボックス・グループブロック
   ========================================================================== */
/* 基本ボックス */
.p-systemContent .wp-block-group {
    margin: 30px 0;
    padding: 25px;
    background: #f8f8f8;
    border-radius: 8px;
}

/* 白背景ボックス */
.p-systemContent .wp-block-group.has-white-background-color {
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* アクセントボックス */
.p-systemContent .wp-block-group.is-style-accent {
    background: #f0f7e8;
    border-left: 4px solid #303c09;
    border-radius: 0 8px 8px 0;
}

/* 警告ボックス */
.p-systemContent .wp-block-group.is-style-warning {
    background: #fff5f5;
    border: 1px solid #ffdddd;
    color: #d9534f;
}

/* ==========================================================================
   画像
   ========================================================================== */
.p-systemContent .wp-block-image {
    margin: 30px 0;
}

.p-systemContent .wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 画像キャプション */
.p-systemContent .wp-block-image figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* ==========================================================================
   ボタン
   ========================================================================== */
.p-systemContent .wp-block-button {
    margin: 30px 0;
}

.p-systemContent .wp-block-button__link {
    display: inline-block;
    padding: 15px 40px;
    background: #303c09;
    color: #fff !important;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
}

.p-systemContent .wp-block-button__link:hover {
    background: #4a5a0d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* アウトラインボタン */
.p-systemContent .is-style-outline .wp-block-button__link {
    background: transparent;
    border: 2px solid #303c09;
    color: #303c09 !important;
}

.p-systemContent .is-style-outline .wp-block-button__link:hover {
    background: #303c09;
    color: #fff !important;
}

/* ==========================================================================
   区切り線
   ========================================================================== */
.p-systemContent hr,
.p-systemContent .wp-block-separator {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 40px 0;
}

/* 警告セクション内の区切り線 */
.p-systemContent .warning .wp-block-separator {
    border-top: 2px dashed #ffaaaa;
    margin: 30px 0;
}

/* 太い区切り線 */
.p-systemContent .wp-block-separator.is-style-wide {
    border-top-width: 3px;
    border-color: #303c09;
}

/* 点線 */
.p-systemContent .wp-block-separator.is-style-dots {
    border: none;
    text-align: center;
    line-height: 1;
    height: auto;
}

.p-systemContent .wp-block-separator.is-style-dots:before {
    content: "···";
    font-size: 30px;
    letter-spacing: 1em;
    color: #ccc;
}

/* ==========================================================================
   引用
   ========================================================================== */
.p-systemContent blockquote,
.p-systemContent .wp-block-quote {
    margin: 30px 0;
    padding: 20px 25px;
    background: #f8f8f8;
    border-left: 4px solid #303c09;
    font-style: italic;
}

.p-systemContent blockquote p,
.p-systemContent .wp-block-quote p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
}

.p-systemContent blockquote cite,
.p-systemContent .wp-block-quote cite {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    font-style: normal;
    text-align: right;
}

/* ==========================================================================
   スペーサー
   ========================================================================== */
.p-systemContent .wp-block-spacer {
    clear: both;
}

/* ==========================================================================
   レスポンシブ対応
   ========================================================================== */
@media (max-width: 768px) {
    /* システムコンテンツ全体 */
    .p-systemContent {
        padding-top: 20px;
    }
    
    /* 各セクション */
    .p-systemContent .wp-block-columns {
        margin-bottom: 30px;
    }
    
    /* 見出し */
    .p-systemContent h2 {
        font-size: 24px;
        padding: 15px;
    }
    
    .p-systemContent h2:first-child {
        margin-top: 0;
    }
    
    .p-systemContent h3 {
        font-size: 18px;
        margin: 30px 0 15px;
    }
    
    /* テーブル */
    
    .p-systemContent th {
        width: 30%;
    }
    
    /* 段落 */
    .p-systemContent p {
        font-size: 15px;
    }
    
    /* コラム */
    .p-systemContent .wp-block-column {
        flex-basis: 100%;
    }
    
    /* メディアテキスト */
    .p-systemContent .wp-block-media-text {
        padding: 15px;
    }
    
    .p-systemContent .wp-block-media-text__media {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    
    
    /* ボックス */
    .p-systemContent .wp-block-group {
        padding: 20px;
    }
    
    /* ボタン */
    .p-systemContent .wp-block-button__link {
        padding: 12px 30px;
        font-size: 15px;
    }
    
    /* 区切り線 */
    .p-systemContent hr,
    .p-systemContent .wp-block-separator {
        margin: 30px 0;
    }
}

/* ==========================================================================
   印刷用スタイル
   ========================================================================== */
@media print {
    .p-systemContent {
        color: #000;
    }
    
    .p-systemContent h2,
    .p-systemContent h3,
    .p-systemContent h4 {
        color: #000;
        border-color: #000;
    }
    
    .p-systemContent table {
        border-color: #000;
    }
    
    .p-systemContent th,
    .p-systemContent td {
        border-color: #000;
    }
    
    .p-systemContent .wp-block-button {
        display: none;
    }
}