/* ===============================================
   おんゆー♨️式 Univapay決済審査通過マニュアル
   濃い青系（ネイビー）カラースキーム
   =============================================== */

:root {
    /* おんゆー♨️さんの好みの濃い青系カラーパレット */
    --primary-navy: #1A2859;        /* メインのネイビー */
    --secondary-navy: #0F3460;      /* 見出し用濃紺 */
    --accent-blue: #3D5A80;         /* アクセント用明るめの青 */
    --border-navy: #142850;         /* 区切り線用濃紺 */
    --light-blue-bg: #F8FAFE;       /* 淡いブルーグレー背景 */
    --white: #FFFFFF;               /* 白 */
    --text-dark: #1A2859;          /* テキスト用濃紺 */
    --success-green: #2E7D32;      /* 成功色 */
    --warning-red: #D32F2F;        /* 警告色 */
    --warning-orange: #F57C00;     /* 注意色 */
    --bg-gradient: linear-gradient(135deg, var(--light-blue-bg) 0%, #E3F2FD 100%);
}

/* ===============================================
   基本設定（スマホファースト）
   =============================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* 横スクロール防止 */
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-gradient);
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    /* 横スクロール防止 */
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* 基本コンテナ（スマホファースト） */
.container {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    padding: 0 12px;
    overflow-x: hidden;
}

/* 全ての要素の幅制御 */
* {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* テキスト要素の最適化 */
p, li, span, div {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    word-break: keep-all;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* 長い単語やURLの強制改行 */
.section-title,
.header-title {
    word-break: keep-all;
    overflow-wrap: anywhere;
    line-height: 1.2;
}

/* ===============================================
   ヘッダー（スマホ最適化）
   =============================================== */

.header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(26, 40, 89, 0.3);
    width: 100%;
    overflow: hidden;
}

.header .container {
    padding: 0 15px;
}

.header-title {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    line-height: 1.3;
    word-break: keep-all;
    overflow-wrap: break-word;
    /* 絵文字が見切れないように */
    padding: 0 5px;
}

.header-subtitle {
    font-size: 0.85em;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 0;
    line-height: 1.4;
    word-break: keep-all;
    overflow-wrap: break-word;
    padding: 0 10px;
}

/* タブレット以上 */
@media (min-width: 768px) {
    .header {
        padding: 30px 0;
    }
    
    .header-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    
    .header-subtitle {
        font-size: 1.1em;
    }
}

/* デスクトップ */
@media (min-width: 1024px) {
    .header {
        padding: 40px 0;
    }
    
    .header-title {
        font-size: 2.5em;
    }
    
    .header-subtitle {
        font-size: 1.2em;
    }
}

/* ===============================================
   ナビゲーション（スマホファースト開閉式）
   =============================================== */

.nav {
    background: var(--accent-blue);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(61, 90, 128, 0.3);
}

.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.nav-title {
    color: var(--white);
    font-weight: 600;
    font-size: 1.1em;
}

.nav-toggle {
    display: block;
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-toggle-icon {
    display: flex;
    flex-direction: column;
    width: 24px;
    height: 18px;
    justify-content: space-between;
}

.nav-toggle-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--white);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.nav-toggle.active .nav-toggle-icon span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .nav-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-icon span:last-child {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu {
    background: var(--primary-navy);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-menu.open {
    max-height: 500px;
}

.nav-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 15px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 30px;
}

/* デスクトップ表示（768px以上） */
@media (min-width: 768px) {
    .nav-header {
        display: none;
    }
    
    .nav-menu {
        max-height: none;
        overflow: visible;
        background: var(--accent-blue);
        padding: 15px 0;
    }
    
    .nav-list {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
        padding: 0 20px;
    }
    
    .nav-link {
        padding: 10px 16px;
        border-radius: 25px;
        border-bottom: none;
        white-space: nowrap;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
        padding-left: 16px;
    }
}

/* ===============================================
   メインコンテンツ（スマホ最適化）
   =============================================== */

.main {
    padding: 15px 0;
    width: 100%;
    overflow-x: hidden;
}

.section {
    margin-bottom: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(26, 40, 89, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.section-header {
    background: linear-gradient(135deg, var(--secondary-navy) 0%, var(--primary-navy) 100%);
    color: var(--white);
    padding: 15px 10px;
    text-align: center;
    word-wrap: break-word;
}

.section-title {
    font-size: 1.1em;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    word-break: keep-all;
    overflow-wrap: break-word;
    margin: 0;
    padding: 0 5px;
}

.section-subtitle {
    margin-top: 8px;
    font-size: 0.9em;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.4;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.content-box {
    padding: 15px 12px;
    width: 100%;
    overflow-x: hidden;
}

/* タブレット以上での調整 */
@media (min-width: 768px) {
    .main {
        padding: 25px 0;
    }
    
    .section {
        margin-bottom: 40px;
        border-radius: 15px;
    }
    
    .section-header {
        padding: 25px 20px;
    }
    
    .section-title {
        font-size: 1.5em;
    }
    
    .section-subtitle {
        font-size: 1em;
        margin-top: 12px;
    }
    
    .content-box {
        padding: 25px 20px;
    }
}

/* デスクトップでの調整 */
@media (min-width: 1024px) {
    .main {
        padding: 40px 0;
    }
    
    .section {
        margin-bottom: 60px;
    }
    
    .section-header {
        padding: 30px 40px;
    }
    
    .section-title {
        font-size: 1.8em;
        line-height: 1.4;
    }
    
    .section-subtitle {
        font-size: 1.1em;
        margin-top: 15px;
    }
    
    .content-box {
        padding: 40px;
    }
}

/* ===============================================
   特別セクション（2つの鉄則）
   =============================================== */

.featured-section {
    border: 3px solid var(--accent-blue);
    box-shadow: 0 12px 40px rgba(26, 40, 89, 0.15);
}

.iron-rules-container {
    display: grid;
    gap: 30px;
    margin-bottom: 30px;
}

.rule-box {
    background: linear-gradient(135deg, var(--light-blue-bg) 0%, #E8F4FD 100%);
    border: 2px solid var(--accent-blue);
    border-radius: 15px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.rule-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--primary-navy) 100%);
}

.rule-header {
    margin-bottom: 20px;
}

.rule-number {
    display: block;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 10px;
}

.rule-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--secondary-navy);
    margin-bottom: 15px;
}

.rule-explanation {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 20px;
}

.comparison-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.plan-item {
    padding: 20px;
    border-radius: 10px;
    border: 2px solid;
}

.plan-recommended {
    background: #E8F5E8;
    border-color: var(--success-green);
}

.plan-not-recommended {
    background: #FFE8E8;
    border-color: var(--warning-red);
}

.plan-item h4 {
    margin-bottom: 15px;
    font-weight: 600;
}

.plan-item ul {
    list-style: none;
    padding-left: 0;
}

.plan-item li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.plan-recommended li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: bold;
}

.plan-not-recommended li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--warning-red);
    font-weight: bold;
}

.pro-tip {
    background: var(--primary-navy);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 5px solid var(--accent-blue);
}

.warning-box {
    background: #FFF3E0;
    border: 2px solid var(--warning-orange);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.warning-box h4 {
    color: var(--warning-orange);
    margin-bottom: 15px;
}

.correct-example {
    background: var(--light-blue-bg);
    border: 2px solid var(--accent-blue);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.correct-example h4 {
    color: var(--success-green);
    margin-bottom: 15px;
}

.example-text {
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-blue);
    font-family: 'Courier New', monospace;
    line-height: 1.6;
}

.summary-box {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--primary-navy) 100%);
    color: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 30px;
}

.summary-box h3 {
    margin-bottom: 15px;
    font-size: 1.3em;
}

/* ===============================================
   コンテンツボックス各種
   =============================================== */

.intro-text {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: center;
}

.highlight-box {
    background: #FFE8E8;
    border: 2px solid var(--warning-red);
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
}

.highlight-box h3 {
    color: var(--warning-red);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.error-list {
    list-style: none;
    padding-left: 0;
}

.error-list li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.error-list li::before {
    content: '❌';
    position: absolute;
    left: 0;
    top: 8px;
}

.success-box {
    background: var(--light-blue-bg);
    border: 2px solid var(--accent-blue);
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
}

.success-box h3 {
    color: var(--accent-blue);
    margin-bottom: 20px;
    font-size: 1.2em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    border: 2px solid var(--accent-blue);
}

.stat-number {
    display: block;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9em;
    color: var(--text-dark);
    line-height: 1.4;
}

.question-box {
    background: var(--light-blue-bg);
    border: 2px solid var(--accent-blue);
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
    text-align: center;
}

.question-box h3 {
    color: var(--primary-navy);
    font-size: 1.3em;
    margin-bottom: 10px;
}

.answer-box {
    background: #FFF3E0;
    border: 2px solid var(--warning-orange);
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
}

.answer-box h4 {
    color: var(--warning-orange);
    margin-bottom: 15px;
}

.examiner-mindset {
    margin: 30px 0;
}

.mindset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mindset-item {
    background: var(--white);
    border: 2px solid var(--accent-blue);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.mindset-icon {
    font-size: 2em;
    margin-bottom: 15px;
}

.mindset-item h5 {
    color: var(--primary-navy);
    font-size: 1.1em;
    margin-bottom: 10px;
    font-weight: 600;
}

.mindset-item p {
    font-size: 0.95em;
    line-height: 1.5;
}

.key-insight {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);
    color: var(--white);
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
}

.key-insight h4 {
    margin-bottom: 20px;
    font-size: 1.3em;
}

.checklist-example {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.checklist-example li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.checklist-example li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

.analogy-box {
    background: var(--light-blue-bg);
    border: 2px solid var(--accent-blue);
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
}

.analogy-box h3 {
    color: var(--primary-navy);
    margin-bottom: 15px;
}

/* ===============================================
   表現比較テーブル（完全スマホ対応）
   =============================================== */

.ng-ok-table {
    margin: 15px 0;
    width: 100%;
    overflow: hidden;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(26, 40, 89, 0.1);
    -webkit-overflow-scrolling: touch;
    /* スクロールバーを目立たせる */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-blue) var(--light-blue-bg);
}

.expression-table {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-size: 0.8em;
}

.expression-table th,
.expression-table td {
    padding: 8px 6px;
    text-align: left;
    border-bottom: 1px solid #E0E7FF;
    vertical-align: top;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.expression-table th {
    background: var(--primary-navy);
    color: var(--white);
    font-weight: 600;
    font-size: 0.85em;
    position: sticky;
    top: 0;
    z-index: 10;
}

.expression-table tbody tr:hover {
    background: var(--light-blue-bg);
}

.expression-table td:first-child {
    color: var(--warning-red);
    font-weight: 500;
    width: 35%;
}

.expression-table td:nth-child(2) {
    color: var(--success-green);
    font-weight: 500;
    width: 35%;
}

.expression-table td:nth-child(3) {
    width: 30%;
    font-size: 0.75em;
    color: var(--text-dark);
}

/* スクロールヒント */
.table-container::after {
    content: "← 横にスクロールできます →";
    display: block;
    text-align: center;
    font-size: 0.7em;
    color: var(--accent-blue);
    padding: 5px 0;
    background: var(--light-blue-bg);
}

/* タブレット以上 */
@media (min-width: 768px) {
    .ng-ok-table {
        margin: 25px 0;
    }
    
    .expression-table {
        font-size: 0.9em;
    }
    
    .expression-table th,
    .expression-table td {
        padding: 12px 10px;
    }
    
    .expression-table th {
        font-size: 1em;
    }
    
    .table-container::after {
        display: none;
    }
}

/* デスクトップ */
@media (min-width: 1024px) {
    .ng-ok-table {
        margin: 30px 0;
    }
    
    .expression-table {
        font-size: 1em;
    }
    
    .expression-table th,
    .expression-table td {
        padding: 15px;
    }
    
    .expression-table th {
        font-size: 1.05em;
    }
}

.special-focus {
    background: #FFE8E8;
    border: 3px solid var(--warning-red);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.special-focus h4 {
    color: var(--warning-red);
    font-size: 1.3em;
    margin-bottom: 20px;
}

.副業-alternatives {
    margin: 20px 0;
}

.副業-alternatives h5 {
    color: var(--primary-navy);
    margin-bottom: 15px;
}

.alternatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.alternative-item {
    background: var(--white);
    padding: 10px 15px;
    border-radius: 20px;
    border: 2px solid var(--success-green);
    color: var(--success-green);
    font-weight: 500;
    text-align: center;
    font-size: 0.9em;
}

.analogy-note {
    background: var(--accent-blue);
    color: var(--white);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    font-style: italic;
}

.context-importance {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--primary-navy) 100%);
    color: var(--white);
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
}

/* ===============================================
   成功事例分析
   =============================================== */

.success-announcement {
    text-align: center;
    margin-bottom: 30px;
}

.success-announcement h3 {
    font-size: 1.4em;
    color: var(--success-green);
    margin-bottom: 15px;
}

.success-product {
    background: var(--light-blue-bg);
    border: 2px solid var(--accent-blue);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.success-product h4 {
    color: var(--primary-navy);
    font-size: 1.2em;
    font-weight: 600;
}

.analysis-container {
    margin-top: 30px;
}

.success-points {
    margin-top: 20px;
}

.success-point {
    background: var(--white);
    border: 2px solid var(--accent-blue);
    border-radius: 10px;
    margin-bottom: 25px;
    overflow: hidden;
}

.point-header {
    background: var(--light-blue-bg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.point-number {
    font-size: 1.5em;
    color: var(--success-green);
}

.point-header h5 {
    color: var(--primary-navy);
    font-size: 1.2em;
    font-weight: 600;
}

.point-content {
    padding: 25px;
}

.example-good {
    background: #E8F5E8;
    border: 2px solid var(--success-green);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.example-good h6 {
    color: var(--success-green);
    margin-bottom: 15px;
    font-weight: 600;
}

.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.ng-example {
    background: #FFE8E8;
    border: 2px solid var(--warning-red);
    border-radius: 10px;
    padding: 20px;
}

.ng-example h6 {
    color: var(--warning-red);
    margin-bottom: 10px;
    font-weight: 600;
}

.ok-example {
    background: #E8F5E8;
    border: 2px solid var(--success-green);
    border-radius: 10px;
    padding: 20px;
}

.ok-example h6 {
    color: var(--success-green);
    margin-bottom: 10px;
    font-weight: 600;
}

.policy-examples {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.refund-policy,
.support-policy {
    background: var(--light-blue-bg);
    border: 2px solid var(--accent-blue);
    border-radius: 10px;
    padding: 20px;
}

.refund-policy h6,
.support-policy h6 {
    color: var(--primary-navy);
    margin-bottom: 15px;
    font-weight: 600;
}

.policy-text {
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    line-height: 1.6;
    font-size: 0.95em;
}

.payment-example {
    margin: 20px 0;
}

.payment-example h6 {
    color: var(--primary-navy);
    margin-bottom: 15px;
    font-weight: 600;
}

.payment-details {
    background: var(--light-blue-bg);
    border: 2px solid var(--accent-blue);
    border-radius: 10px;
    padding: 20px;
}

.payment-item {
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid var(--accent-blue);
}

.payment-note {
    background: #FFF3E0;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.9em;
    color: var(--warning-orange);
    font-style: italic;
}

/* ===============================================
   チェックリスト（完全スマホ最適化）
   =============================================== */

.checklist-container {
    background: var(--white);
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.checklist-progress {
    background: var(--primary-navy);
    color: var(--white);
    padding: 15px 12px;
    text-align: center;
}

.progress-text {
    font-size: 0.95em;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
    line-height: 1.3;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.3);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    background: linear-gradient(90deg, var(--accent-blue) 0%, #4CAF50 100%);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.checklist-category {
    border-bottom: 1px solid #E0E7FF;
    padding: 15px 10px;
    width: 100%;
}

.checklist-category:last-child {
    border-bottom: none;
}

.category-title {
    color: var(--primary-navy);
    font-size: 1.05em;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-blue);
    word-break: keep-all;
    overflow-wrap: break-word;
}

.checklist-items {
    display: grid;
    gap: 10px;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 8px;
    background: var(--light-blue-bg);
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    width: 100%;
    min-height: 50px;
}

.checklist-checkbox {
    margin-right: 10px;
    margin-top: 2px;
    transform: scale(1.2);
    accent-color: var(--accent-blue);
    cursor: pointer;
    flex-shrink: 0;
    min-width: 18px;
    min-height: 18px;
}

.checklist-label {
    font-size: 0.9em;
    line-height: 1.5;
    cursor: pointer;
    color: var(--text-dark);
    font-weight: 500;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    width: 100%;
    padding: 2px 0;
}

.checklist-item.completed {
    background: #E8F5E8;
    border-color: var(--success-green);
}

.checklist-item.completed .checklist-label {
    color: var(--success-green);
    text-decoration: line-through;
}

/* チェックリスト結果 */
.checklist-result {
    padding: 15px 10px;
    background: var(--light-blue-bg);
}

.result-box {
    text-align: center;
    padding: 20px 15px;
    border-radius: 10px;
}

.result-box h4 {
    font-size: 1em;
    margin-bottom: 10px;
    line-height: 1.4;
}

.result-box p {
    font-size: 0.9em;
    line-height: 1.5;
}

/* タブレット以上での調整 */
@media (min-width: 768px) {
    .checklist-progress {
        padding: 18px 20px;
    }
    
    .progress-text {
        font-size: 1.05em;
        margin-bottom: 15px;
    }
    
    .progress-bar {
        height: 10px;
        border-radius: 5px;
    }
    
    .checklist-category {
        padding: 20px 15px;
    }
    
    .category-title {
        font-size: 1.2em;
        margin-bottom: 18px;
        padding-bottom: 10px;
    }
    
    .checklist-items {
        gap: 12px;
    }
    
    .checklist-item {
        padding: 15px 12px;
    }
    
    .checklist-checkbox {
        margin-right: 12px;
        transform: scale(1.3);
    }
    
    .checklist-label {
        font-size: 1em;
    }
    
    .checklist-result {
        padding: 20px 15px;
    }
    
    .result-box {
        padding: 25px 20px;
    }
    
    .result-box h4 {
        font-size: 1.1em;
        margin-bottom: 12px;
    }
    
    .result-box p {
        font-size: 1em;
    }
}

/* デスクトップでの調整 */
@media (min-width: 1024px) {
    .checklist-progress {
        padding: 20px 30px;
    }
    
    .progress-text {
        font-size: 1.1em;
    }
    
    .checklist-category {
        padding: 30px;
    }
    
    .category-title {
        font-size: 1.3em;
        margin-bottom: 20px;
    }
    
    .checklist-items {
        gap: 15px;
    }
    
    .checklist-item {
        padding: 15px;
    }
    
    .checklist-checkbox {
        margin-right: 15px;
    }
    
    .checklist-label {
        font-size: 1.05em;
    }
    
    .checklist-result {
        padding: 30px;
    }
    
    .result-box {
        padding: 30px;
    }
}

.checklist-result {
    padding: 30px;
    background: var(--light-blue-bg);
}

.result-box {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
}

.result-incomplete {
    background: #FFF3E0;
    border: 2px solid var(--warning-orange);
}

.result-incomplete h4 {
    color: var(--warning-orange);
    margin-bottom: 15px;
}

.result-complete {
    background: #E8F5E8;
    border: 2px solid var(--success-green);
}

.result-complete h4 {
    color: var(--success-green);
    margin-bottom: 15px;
}

.risk-list {
    list-style: none;
    padding-left: 0;
}

.risk-list li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.risk-list li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
    top: 8px;
}

.safe-operation {
    margin-top: 30px;
}

.operation-guidelines {
    margin-top: 20px;
}

.guideline-item {
    background: var(--light-blue-bg);
    border: 2px solid var(--accent-blue);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
}

.guideline-item h5 {
    color: var(--primary-navy);
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 15px;
}

.guideline-item ul {
    list-style: none;
    padding-left: 0;
}

.guideline-item li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.guideline-item li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

.good-practices {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
}

.good-practices h6 {
    color: var(--success-green);
    margin-bottom: 15px;
    font-weight: 600;
}

/* ===============================================
   まとめセクション
   =============================================== */

.final-section {
    border: 3px solid var(--success-green);
}

.conclusion-message {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.success-rules h3 {
    color: var(--primary-navy);
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.4em;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.rule-item {
    background: var(--light-blue-bg);
    border: 2px solid var(--accent-blue);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rule-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-blue);
}

.rule-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-navy);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 15px;
}

.rule-item h4 {
    color: var(--primary-navy);
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 15px;
}

.rule-item p {
    font-size: 1em;
    line-height: 1.6;
}

.final-message {
    text-align: center;
    margin: 40px 0;
}

.final-message h3 {
    color: var(--accent-blue);
    margin: 20px 0;
    font-size: 1.8em;
}

.encouragement {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-dark);
}

.iron-rules-reminder {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);
    color: var(--white);
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
}

.iron-rules-reminder h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.3em;
}

.reminder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.reminder-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.reminder-number {
    display: block;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 10px;
}

.reminder-item p {
    font-size: 1em;
    line-height: 1.6;
}

.final-encouragement {
    background: var(--success-green);
    color: var(--white);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-top: 30px;
}

.final-encouragement h4 {
    font-size: 1.3em;
    margin: 0;
}

/* ===============================================
   フッター
   =============================================== */

.footer {
    background: var(--secondary-navy);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

.footer-text {
    font-size: 0.9em;
    opacity: 0.8;
    line-height: 1.6;
}

/* ===============================================
   レスポンシブ対応（完全スマホファースト）
   =============================================== */

/* 全コンテンツボックスの基本最適化 */
.intro-text,
.rule-explanation,
.point-explanation,
.conclusion-message,
.encouragement {
    font-size: 0.9em;
    line-height: 1.7;
    margin-bottom: 15px;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.highlight-box,
.success-box,
.warning-box,
.correct-example,
.analogy-box,
.question-box,
.answer-box {
    padding: 12px 10px;
    margin: 12px 0;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    word-wrap: break-word;
}

.highlight-box h3,
.success-box h3,
.warning-box h4,
.analogy-box h3,
.question-box h3,
.answer-box h4 {
    font-size: 1em;
    line-height: 1.4;
    margin-bottom: 10px;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.rule-box {
    padding: 12px 8px;
    margin-bottom: 15px;
    border-radius: 10px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.rule-title {
    font-size: 1.1em;
    line-height: 1.3;
    margin-bottom: 10px;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.rule-number {
    font-size: 0.95em;
    margin-bottom: 8px;
    display: block;
}

/* グリッドレイアウト - 全てスマホで1カラム */
.comparison-table,
.stats-grid,
.mindset-grid,
.comparison,
.policy-examples,
.rules-grid,
.reminder-grid,
.alternatives-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    overflow: hidden;
}

.stat-item,
.mindset-item,
.plan-item,
.rule-item {
    padding: 12px 8px;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow: hidden;
}

.stat-number {
    font-size: 1.2em;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85em;
    line-height: 1.4;
}

/* リスト要素の最適化 */
.error-list,
.risk-list,
.checklist-example {
    list-style: none;
    padding-left: 0;
    margin: 10px 0;
}

.error-list li,
.risk-list li,
.checklist-example li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.9em;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* 特別なボックス要素 */
.pro-tip,
.key-insight,
.summary-box,
.final-encouragement,
.iron-rules-reminder {
    padding: 15px 10px;
    margin: 15px 0;
    border-radius: 10px;
    font-size: 0.9em;
    line-height: 1.6;
    word-wrap: break-word;
    overflow: hidden;
}

/* 装飾記号の調整 */
.rule-number,
.reminder-number {
    word-break: keep-all;
    white-space: nowrap;
    overflow: visible;
}

/* 横スクロール完全防止 */
.section,
.content-box,
.rule-box,
.highlight-box,
.success-box,
.warning-box,
.pro-tip,
.key-insight,
.summary-box {
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* タブレット以上のレイアウト調整 */

/* タブレット（768px以上） */
@media (min-width: 768px) {
    .container {
        padding: 0 20px;
        max-width: 1200px;
    }
    
    .header-title {
        font-size: 2.2em;
    }
    
    .header-subtitle {
        font-size: 1.15em;
    }
    
    .content-box {
        padding: 30px 25px;
    }
    
    .section-header {
        padding: 30px 25px;
    }
    
    .section-title {
        font-size: 1.6em;
    }
    
    .comparison-table,
    .policy-examples,
    .reminder-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stats-grid,
    .mindset-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .rules-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .checklist-category {
        padding: 20px 15px;
    }
    
    .checklist-item {
        padding: 15px;
        font-size: 1em;
    }
    
    .rule-box {
        padding: 25px;
    }
    
    .table-container {
        font-size: 0.95em;
    }
    
    .expression-table th,
    .expression-table td {
        padding: 12px 10px;
        font-size: 1em;
    }
}

/* デスクトップ（1024px以上） */
@media (min-width: 1024px) {
    .header-title {
        font-size: 2.5em;
    }
    
    .header-subtitle {
        font-size: 1.2em;
    }
    
    .content-box {
        padding: 40px;
    }
    
    .section-header {
        padding: 30px 40px;
    }
    
    .section-title {
        font-size: 1.8em;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .mindset-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rules-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .checklist-category {
        padding: 25px 20px;
    }
    
    .rule-box {
        padding: 30px;
    }
    
    .table-container {
        font-size: 1em;
    }
    
    .expression-table th,
    .expression-table td {
        padding: 15px 12px;
    }
    
    .alternatives-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* 大画面（1200px以上） */
@media (min-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .mindset-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 超小型デバイス（360px以下）と動的クラス対応 */
@media (max-width: 360px),
.ultra-small-screen {
    .header-title {
        font-size: 1.2em;
    }
    
    .section-title {
        font-size: 1em;
    }
    
    .content-box {
        padding: 12px 8px;
    }
    
    .section-header {
        padding: 15px 8px;
    }
    
    .rule-box,
    .highlight-box,
    .success-box,
    .warning-box,
    .pro-tip {
        padding: 10px 6px;
        margin: 8px 0;
        font-size: 0.85em;
    }
    
    .checklist-item {
        padding: 8px 6px;
    }
    
    .checklist-label {
        font-size: 0.8em;
    }
    
    .expression-table th,
    .expression-table td {
        padding: 4px 3px;
        font-size: 0.75em;
    }
    
    .nav-title {
        font-size: 0.95em;
    }
    
    .category-title {
        font-size: 0.95em;
    }
    
    .container {
        padding: 0 8px;
    }
}

/* タッチデバイス専用クラス */
.touch-device .checklist-item {
    min-height: 48px;
}

.touch-device .nav-link {
    min-height: 48px;
    padding: 12px 15px;
}

.touch-device .nav-toggle {
    min-width: 48px;
    min-height: 48px;
}

/* ===============================================
   アニメーション & タッチ最適化 & 横スクロール完全防止
   =============================================== */

/* 完全な横スクロール防止 */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}

* {
    max-width: 100%;
    box-sizing: border-box;
}

/* スムーズスクロールの改善 */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.4s ease-out;
}

.checklist-item {
    transition: all 0.2s ease;
}

/* デスクトップのホバー効果 */
@media (hover: hover) and (pointer: fine) {
    .checklist-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(26, 40, 89, 0.1);
    }
    
    .success-point:hover {
        box-shadow: 0 4px 15px rgba(26, 40, 89, 0.15);
        transform: translateY(-2px);
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .rule-box:hover {
        box-shadow: 0 4px 15px rgba(26, 40, 89, 0.1);
    }
}

/* タッチデバイス専用の効果（パフォーマンス重視） */
@media (hover: none) and (pointer: coarse) {
    .checklist-item:active {
        transform: scale(0.98);
        background: var(--accent-blue);
        color: var(--white);
        transition: all 0.1s ease;
    }
    
    .nav-link:active {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(0.98);
        transition: all 0.1s ease;
    }
    
    .checklist-checkbox:active {
        transform: scale(1.1);
        transition: all 0.1s ease;
    }
    
    /* タップ時の視覚フィードバック強化 */
    .rule-box:active,
    .highlight-box:active,
    .success-box:active {
        transform: scale(0.99);
        transition: all 0.1s ease;
    }
}

/* スクロール時の視覚効果 */
.nav {
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 4px 20px rgba(61, 90, 128, 0.4);
}

/* スクロールバーのスタイリング */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--light-blue-bg);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-navy);
}

/* Firefox用スクロールバー */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-blue) var(--light-blue-bg);
}

/* タッチスクロールの改善 */
.nav-menu,
.table-container,
.content-box {
    -webkit-overflow-scrolling: touch;
}

/* 画像やメディアの横スクロール防止 */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* 長いURLやコードの改行処理 */
code, pre, .example-text {
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

/* テキスト選択の最適化 */
::selection {
    background: var(--accent-blue);
    color: var(--white);
}

::-moz-selection {
    background: var(--accent-blue);
    color: var(--white);
}

/* フォーカス状態の改善（アクセシビリティ） */
button:focus,
input:focus,
.nav-toggle:focus,
.nav-link:focus,
.checklist-checkbox:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* 特別な要素の横スクロール防止 */
.iron-rules-container,
.analysis-container,
.success-points {
    overflow-x: hidden;
    width: 100%;
}