/* ==============================================
   Modern Sophistication Typography System
   ============================================== */

/* ==============================================
   Base Typography - Refined Foundation
   ============================================== */

body {
    font-family: var(--font-base);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    font-weight: var(--font-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.01em;
    font-feature-settings: 'palt' 1, 'kern' 1;
}

/* ==============================================
   Heading System - Modern Type Scale
   ============================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    margin: 0 0 var(--space-6) 0;
    letter-spacing: -0.02em;
    font-feature-settings: 'palt' 1;
}

h1 {
    font-size: var(--text-6xl);
    font-weight: var(--font-bold);
    background: linear-gradient(135deg, var(--primary-900), var(--primary-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: var(--space-8);
}

h2 {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    color: var(--primary-800);
    margin-bottom: var(--space-8);
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-500), var(--accent-600));
    border-radius: 2px;
}

.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--primary-700);
    margin-bottom: var(--space-6);
}

h4 {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    color: var(--primary-700);
    margin-bottom: var(--space-4);
}

h5 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

h6 {
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
    letter-spacing: 0.025em;
}

/* ==============================================
   Paragraph and Text Elements
   ============================================== */

p {
    margin: 0 0 var(--space-4) 0;
    line-height: var(--leading-normal);
    color: var(--text-primary);
}

.text-lead {
    font-size: var(--text-xl);
    font-weight: var(--font-medium);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    margin-bottom: var(--space-6);
}

.text-body {
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
}

.text-small {
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    color: var(--text-secondary);
}

.text-xs {
    font-size: var(--text-xs);
    line-height: var(--leading-normal);
    color: var(--text-tertiary);
}

/* ==============================================
   Text Colors - セマンティックカラー
   ============================================== */

.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-tertiary {
    color: var(--text-tertiary);
}

.text-inverse {
    color: var(--text-inverse);
}

.text-accent {
    color: var(--accent-600);
}

.text-success {
    color: var(--success-600);
}

.text-warning {
    color: var(--warning-600);
}

.text-error {
    color: var(--error-600);
}

/* ==============================================
   Font Weights
   ============================================== */

.font-normal {
    font-weight: var(--font-normal);
}

.font-medium {
    font-weight: var(--font-medium);
}

.font-semibold {
    font-weight: var(--font-semibold);
}

.font-bold {
    font-weight: var(--font-bold);
}

/* ==============================================
   Special Typography Classes - Premium Design
   ============================================== */

.hero-title {
    font-size: 2.5rem;
    font-weight: var(--font-black);
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: var(--space-8);
    letter-spacing: -0.02em;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-subtitle {
    font-size: 1.75rem;
    font-weight: var(--font-bold);
    color: rgba(255, 255, 255, 0.95);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
    letter-spacing: -0.01em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 2.5rem;
    }
}

.hero-message {
    font-size: 1.125rem;
    font-weight: var(--font-semibold);
    color: rgba(255, 255, 255, 0.95);
    line-height: var(--leading-normal);
    margin-bottom: var(--space-10);
    letter-spacing: 0.01em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .hero-message {
        font-size: 1.75rem;
    }
}

.section-title {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    background: linear-gradient(135deg, var(--primary-800), var(--primary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: var(--leading-tight);
    margin-bottom: var(--space-6);
    text-align: center;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: var(--text-xl);
    font-weight: var(--font-normal);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--space-10) auto;
    letter-spacing: 0.01em;
}

/* ==============================================
   Emphasis and Inline Elements
   ============================================== */

strong, .font-strong {
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

em, .font-italic {
    font-style: italic;
}

.emphasis-text {
    color: var(--accent-600);
    font-weight: var(--font-semibold);
    position: relative;
    display: inline-block;
}

.emphasis-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-500), var(--accent-600));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.emphasis-text:hover::after {
    transform: scaleX(1);
}

.key-phrase {
    color: var(--accent-700);
    font-weight: var(--font-semibold);
}

.highlight {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.highlight::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    right: -4px;
    height: 40%;
    background: linear-gradient(135deg, var(--accent-200), var(--accent-300));
    opacity: 0.6;
    z-index: -1;
    transform: skewY(-2deg);
    border-radius: var(--radius-sm);
}

/* ==============================================
   Quote and Citation
   ============================================== */

blockquote {
    border-left: 4px solid var(--primary-400);
    padding: var(--space-4) var(--space-6);
    margin: var(--space-6) 0;
    background: var(--primary-50);
    border-radius: 0 var(--radius-default) var(--radius-default) 0;
}

blockquote p {
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--text-primary);
    margin: 0;
}

/* ==============================================
   Lists - 洗練されたリストスタイル
   ============================================== */

ul, ol {
    margin: 0 0 var(--space-4) 0;
    padding-left: var(--space-6);
}

ul li, ol li {
    margin-bottom: var(--space-2);
    line-height: var(--leading-normal);
    color: var(--text-primary);
}

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

.list-inline {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

/* チェックリスト - Modern Icons */
.checklist {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    position: relative;
    padding-left: var(--space-10);
    margin-bottom: var(--space-4);
    line-height: var(--leading-relaxed);
    font-size: var(--text-lg);
    transition: transform 0.3s ease;
}

.checklist li:hover {
    transform: translateX(4px);
}

.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--accent-600), var(--accent-700));
    color: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
    animation: checkIn 0.4s ease forwards;
}

@keyframes checkIn {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(20deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}


/* ==============================================
   Links - Premium Interactive Design
   ============================================== */

a {
    color: var(--accent-600);
    text-decoration: none;
    position: relative;
    transition: color var(--transition-fast);
    font-weight: var(--font-medium);
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-500), var(--accent-600));
    transition: width 0.3s ease;
}

a:hover {
    color: var(--accent-700);
}

a:hover::after {
    width: 100%;
}

a:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
    border-radius: var(--radius-sm);
}

.link-primary {
    color: var(--primary-600);
}

.link-primary::after {
    background: linear-gradient(90deg, var(--primary-500), var(--primary-600));
}

.link-primary:hover {
    color: var(--primary-700);
}

/* ==============================================
   Special Text Components
   ============================================== */

/* ==============================================
   Mobile Specific
   ============================================== */

.mobile-br {
    display: none;
}

@media (max-width: 768px) {
    .mobile-br {
        display: inline;
    }
    
    /* hero-title, hero-subtitle, hero-message のサイズは個別に定義済み */
    
    .section-title {
        font-size: var(--text-3xl);
    }
    
    h1 {
        font-size: var(--text-4xl);
    }
    
    h2 {
        font-size: var(--text-3xl);
    }
    
    h3 {
        font-size: var(--text-2xl);
    }
    
    .text-lead {
        font-size: var(--text-lg);
    }
    
}

/* ==============================================
   Utility Classes
   ============================================== */

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-justify {
    text-align: justify;
}

.line-height-tight {
    line-height: var(--leading-tight);
}

.line-height-normal {
    line-height: var(--leading-normal);
}

.line-height-relaxed {
    line-height: var(--leading-relaxed);
}

.line-height-loose {
    line-height: var(--leading-loose);
}