:root {
    /* カラーパレット（ラベンダー系 - みちぽカラー） */
    --primary-color: #b19cd9;
    --primary-light: #d4c5f9;
    --primary-dark: #8b7aa8;
    --secondary-color: #a29bfe;
    --accent-color: #fd79a8;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --danger-color: #ff7675;
    --info-color: #74b9ff;
    
    /* ニュートラルカラー */
    --bg-color: #f8f5ff;
    --bg-alt: #ffffff;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-light: #b2bec3;
    --border-color: #e8d9ff;
    
    /* グラデーション */
    --gradient-primary: linear-gradient(135deg, #b19cd9 0%, #a29bfe 100%);
    --gradient-secondary: linear-gradient(135deg, #fd79a8 0%, #ffeaa7 100%);
    --gradient-success: linear-gradient(135deg, #00b894 0%, #55efc4 100%);
    --gradient-danger: linear-gradient(135deg, #ff7675 0%, #fd79a8 100%);
    
    /* シャドウ */
    --shadow-sm: 0 2px 8px rgba(177, 156, 217, 0.15);
    --shadow-md: 0 4px 12px rgba(177, 156, 217, 0.2);
    --shadow-lg: 0 8px 24px rgba(177, 156, 217, 0.25);
    --shadow-xl: 0 16px 48px rgba(177, 156, 217, 0.3);
    
    /* スペーシング */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* ボーダー半径 */
    --radius-sm: 0.75rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    
    /* トランジション */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-color);
    line-height: 1.8;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ヘッダー */
.header {
    background: var(--bg-alt);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-light);
}

.navbar {
    padding: var(--spacing-sm) 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--primary-light);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    transition: all var(--transition-fast);
    position: relative;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
}

.nav-menu a:hover {
    color: var(--primary-color);
    background: var(--bg-color);
}

/* ヒーローセクション */
.hero {
    padding: var(--spacing-2xl) 0;
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
    border-bottom: 5px solid var(--primary-dark);
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.4) 0%, transparent 50%);
    animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, -30px) scale(1.05); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.6s ease 0.2s both;
}

.gradient-text {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-subtitle strong {
    background: rgba(255, 255, 255, 0.2);
    padding: 0 var(--spacing-xs);
    border-radius: var(--radius-sm);
}

.hero-cta {
    animation: fadeInUp 0.6s ease 0.6s both;
}

.hero-image {
    position: relative;
    animation: fadeInUp 0.6s ease 0.8s both;
}

.michiho-large {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.speech-bubble {
    position: absolute;
    top: -20px;
    right: -20px;
    background: white;
    color: var(--primary-color);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    border: 3px solid var(--primary-light);
    animation: bounce 2s ease-in-out infinite;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 20px solid white;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

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

/* ボタン */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-lg);
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.btn-large {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: 1.2rem;
}

/* セクション */
.section {
    padding: var(--spacing-2xl) 0;
}

.section-alt {
    background: white;
}

.section-intro {
    background: linear-gradient(180deg, var(--bg-color) 0%, white 100%);
}

/* みちぽ先生の吹き出し */
.michiho-says {
    display: flex;
    gap: var(--spacing-lg);
    align-items: start;
    margin-bottom: var(--spacing-2xl);
}

.michiho-small {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--primary-light);
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.says-bubble {
    flex: 1;
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 3px solid var(--primary-light);
    position: relative;
}

.says-bubble::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 30px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 20px solid white;
}

.says-bubble h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
}

.says-bubble p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* 比較カード */
.change-comparison {
    margin-bottom: var(--spacing-2xl);
}

.comparison-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.comparison-cards {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.comparison-card {
    flex: 1;
    min-width: 300px;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.old-card {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    opacity: 0.9;
}

.new-card {
    background: var(--gradient-primary);
    color: white;
    border: 4px solid var(--primary-dark);
}

.card-label {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.card-label.old {
    background: rgba(0,0,0,0.2);
}

.card-label.new {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    color: var(--text-primary);
    border: 2px solid rgba(255,255,255,0.5);
}

.comparison-card h4 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
}

.comparison-card ul {
    list-style: none;
    padding: 0;
}

.comparison-card li {
    padding: var(--spacing-sm) 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.arrow-center {
    flex-shrink: 0;
}

.arrow-circle {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow-lg);
}

/* キーポイントボックス */
.key-point-box {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 4px solid #f39c12;
}

.point-icon {
    font-size: 4rem;
    flex-shrink: 0;
}

.point-content h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.point-content p {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.8;
}

/* セクションヘッダー（みちぽ先生付き） */
.section-header-michiho {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* アルゴリズムビジュアル */
.algorithm-visual {
    max-width: 1000px;
    margin: 0 auto;
}

.algo-step {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    border: 3px solid var(--border-color);
    transition: all var(--transition-normal);
}

.algo-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.highlight-step {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border-color: var(--accent-color);
}

.step-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.step-number {
    background: var(--gradient-primary);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1rem;
}

.step-header h3 {
    font-size: 2rem;
    color: var(--primary-color);
}

.step-visual {
    margin-bottom: var(--spacing-lg);
}

.visual-box {
    display: inline-block;
    padding: var(--spacing-lg);
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 0 var(--spacing-sm);
}

.visual-box.highlight {
    background: var(--gradient-primary);
    color: white;
    border: 3px solid var(--primary-dark);
}

.number-big {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: var(--spacing-xs);
}

.arrow-right {
    display: inline-block;
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0 var(--spacing-md);
}

.step-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.detail-box {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--bg-color);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.detail-icon {
    font-size: 1.5rem;
}

.detail-text strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.filter-item {
    padding: var(--spacing-md);
    background: var(--bg-color);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    border: 2px solid var(--border-color);
}

.filter-note {
    text-align: center;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: var(--spacing-sm);
}

.scoring-visual {
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
}

.scoring-box h4 {
    text-align: center;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.action-examples {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.action-ex {
    padding: var(--spacing-xs) var(--spacing-md);
    background: white;
    border-radius: var(--radius-xl);
    font-size: 0.95rem;
    border: 2px solid var(--primary-light);
}

.action-more {
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-xl);
    font-weight: 700;
}

.formula-simple {
    text-align: center;
    padding: var(--spacing-lg);
    background: white;
    border-radius: var(--radius-md);
    border: 3px solid var(--primary-light);
}

.formula-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.delivery-stats {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
}

.stat-card {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-lg);
    min-width: 200px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 1rem;
}

.step-arrow-down {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-color);
    margin: var(--spacing-lg) 0;
}

/* みちぽコメント */
.michiho-comment {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    align-items: center;
    border-left: 4px solid var(--primary-color);
}

.michiho-comment.important {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border-left-color: var(--accent-color);
}

.michiho-comment img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--primary-light);
    flex-shrink: 0;
}

.michiho-comment p {
    font-size: 1.05rem;
    line-height: 1.6;
}

/* 重み表 */
.weights-intro-box {
    text-align: center;
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, #d4c5f9 0%, #b19cd9 100%);
    color: white;
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-xl);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.8;
}

.weights-table-container {
    margin-bottom: var(--spacing-2xl);
}

.table-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.weights-table-container.positive .table-title {
    color: var(--success-color);
}

.weights-table-container.negative .table-title {
    color: var(--danger-color);
}

.weights-table {
    width: 100%;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--border-color);
}

.weights-table thead {
    background: var(--gradient-primary);
    color: white;
}

.weights-table th {
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 700;
    font-size: 1.1rem;
}

.weights-table tbody tr {
    border-bottom: 2px solid var(--border-color);
    transition: all var(--transition-fast);
}

.weights-table tbody tr:hover {
    background: var(--bg-color);
}

.weights-table tbody tr.row-max {
    background: linear-gradient(135deg, #e8ffe8 0%, #d4f7d4 100%);
    border: 3px solid var(--success-color);
}

.weights-table tbody tr.row-danger {
    background: linear-gradient(135deg, #ffe8e8 0%, #ffd4d4 100%);
    border: 3px solid var(--danger-color);
}

.weights-table td {
    padding: var(--spacing-md);
}

.action-cell {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.action-icon {
    font-size: 1.8rem;
}

.action-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.badge-max {
    background: var(--gradient-success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-base {
    background: var(--bg-color);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-danger {
    background: var(--gradient-danger);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 700;
}

.weight-cell {
    text-align: center;
}

.weight-big {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
}

.weight-medium {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--info-color);
}

.weight-base {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.weight-negative {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--danger-color);
}

.desc-cell {
    font-size: 1rem;
    line-height: 1.6;
}

.recovery-cell {
    text-align: center;
    font-size: 0.95rem;
}

.recovery-cell strong {
    color: var(--danger-color);
    font-size: 1.1rem;
}

/* みちぽTIP/WARNING */
.michiho-tip,
.michiho-warning {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-top: var(--spacing-lg);
    align-items: start;
}

.michiho-tip {
    background: linear-gradient(135deg, #d4c5f9 0%, #b19cd9 100%);
    color: white;
}

.michiho-warning {
    background: linear-gradient(135deg, #ff7675 0%, #fd79a8 100%);
    color: white;
}

.michiho-tip img,
.michiho-warning img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    flex-shrink: 0;
}

.tip-bubble,
.warning-bubble {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* 伸ばし方セクション */
.top-rule {
    padding: var(--spacing-xl);
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    margin-bottom: var(--spacing-2xl);
    border: 4px solid var(--primary-dark);
}

.rule-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    color: var(--text-primary);
    padding: var(--spacing-xs) var(--spacing-lg);
    border-radius: var(--radius-xl);
    font-weight: 900;
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
}

.top-rule h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
}

.timeline-chart {
    background: rgba(255,255,255,0.2);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    backdrop-filter: blur(10px);
}

.timeline-item {
    margin-bottom: var(--spacing-md);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.time-badge {
    display: inline-block;
    background: rgba(255,255,255,0.3);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.time-content {
    padding-left: var(--spacing-md);
    font-size: 1.1rem;
}

.good {
    color: #55efc4;
    font-weight: 900;
}

.bad {
    color: #ff7675;
    font-weight: 900;
}

.timeline-arrow {
    text-align: center;
    font-size: 2rem;
    margin: var(--spacing-sm) 0;
}

.rule-action {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.rule-action i {
    font-size: 1.5rem;
}

/* HOWTOグリッド */
.howto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.howto-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 3px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
}

.howto-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.alert-card {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border-color: var(--danger-color);
}

.card-number {
    position: absolute;
    top: -15px;
    left: var(--spacing-lg);
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
}

.card-icon {
    font-size: 3rem;
    margin: var(--spacing-md) 0;
    text-align: center;
}

.howto-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.card-alert {
    background: var(--gradient-danger);
    color: white;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
}

.card-why,
.card-how {
    margin-bottom: var(--spacing-md);
}

.card-why strong,
.card-how strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.howto-card ul {
    margin-left: var(--spacing-lg);
    line-height: 1.8;
}

.best-times {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.time-slot {
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 700;
}

.time-slot.best {
    background: var(--gradient-success);
    color: white;
    font-size: 1.1rem;
}

.time-slot.good {
    background: var(--bg-color);
    border: 2px solid var(--primary-light);
}

.michiho-mini-comment {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-color);
}

.michiho-mini-comment img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
}

.michiho-mini-comment p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* まとめボックス */
.summary-box {
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--radius-xl);
    border: 4px solid var(--primary-light);
}

.summary-box h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xl);
}

.summary-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.summary-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.summary-num {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.summary-item p {
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Q&A */
.qa-list {
    max-width: 900px;
    margin: 0 auto;
}

.qa-item {
    background: white;
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    border: 3px solid var(--border-color);
    overflow: hidden;
}

.qa-question {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.qa-question:hover {
    background: var(--bg-color);
}

.q-mark {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.qa-question p {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.qa-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.qa-item.active .qa-answer {
    max-height: 500px;
}

.qa-answer {
    display: flex;
    gap: var(--spacing-md);
    padding: 0 var(--spacing-lg) var(--spacing-lg) var(--spacing-lg);
}

.a-mark {
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.answer-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.answer-content strong {
    color: var(--primary-color);
}

/* CTA */
.cta-section {
    padding: var(--spacing-2xl) 0;
    background: var(--gradient-primary);
    border-top: 5px solid var(--primary-dark);
    border-bottom: 5px solid var(--primary-dark);
}

.cta-grid {
    display: flex;
    align-items: center;
    gap: var(--spacing-2xl);
}

.cta-michiho {
    width: 200px;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
    animation: float 3s ease-in-out infinite;
}

.cta-content {
    flex: 1;
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

/* フッター */
.footer {
    background: var(--text-primary);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-md) 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-brand .logo {
    color: white;
    margin-bottom: var(--spacing-md);
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-info h4 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
}

.footer-info p {
    opacity: 0.8;
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: var(--spacing-md);
    text-align: center;
}

.footer-bottom p {
    opacity: 0.6;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .speech-bubble {
        position: static;
        margin-top: var(--spacing-lg);
    }
    
    .michiho-large {
        max-width: 300px;
    }
    
    .comparison-cards {
        flex-direction: column;
    }
    
    .arrow-center {
        transform: rotate(90deg);
    }
    
    .section-header-michiho {
        flex-direction: column;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .weights-table {
        font-size: 0.9rem;
    }
    
    .action-cell {
        flex-direction: column;
        text-align: center;
    }
    
    .howto-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-grid {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu {
        display: none;
    }
}

/* スクロールアニメーション */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}
