/* ==============================================
   BASE.CSS - 優先順位の高い共通スタイル
   ============================================== */

/* 最優先：フォント設定 */
@import url('https://fonts.googleapis.com/css2?family=Sawarabi+Mincho:wght@300;400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kosugi+Maru&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;500;600&display=swap');

/* 最優先：リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 最優先：CSS変数システム - レスポンシブデザイン用 */
:root {
    /* フォントスケール - 比率ベースサイズ */
    --font-xs: clamp(0.8rem, 1.8vw, 1rem);
    --font-sm: clamp(1rem, 2.2vw, 1.2rem);
    --font-md: clamp(1.56rem, 2.8vw, 1.95rem);
    --font-lg: clamp(1.5rem, 3.5vw, 2.5rem);
    --font-xl: clamp(2rem, 4.5vw, 3.5rem);
    --font-hero: clamp(1.8rem, 4.5vw, 2.8rem);
    
    /* スペーシングスケール - 比率ベースサイズ */
    --space-xs: clamp(0.5rem, 1vw, 1rem);
    --space-sm: clamp(1rem, 2vw, 2rem);
    --space-md: clamp(2rem, 4vw, 4rem);
    --space-lg: clamp(3rem, 6vw, 6rem);
    --space-xl: clamp(4rem, 8vw, 8rem);
    
    /* レイアウト関連 */
    --main-content-width: clamp(600px, 60vw, 800px);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    
    /* アニメーション関連 */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* 色彩システム */
    --color-primary: #48CAE4;
    --color-secondary: #0077BE;
    --color-text: #2c3e50;
    --color-text-light: #555;
    --color-bg-light: #f5f0e8;
    --color-bg-accent: rgba(173, 216, 230, 0.8);
}

/* 最優先：基本要素スタイル */
body {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-text);
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 優先度高：見出しタグ全体のスタイル */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-weight: 300;
    color: var(--color-text);
}

/* 優先度高：セクションタイトル共通スタイル */
.section-title {
    font-family: 'Sawarabi Mincho', serif;
    font-size: var(--font-lg);
    font-weight: 300;
    color: var(--color-text);
    text-align: center;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    height: auto;
    margin: 0 auto 10px;
    margin-top: 0;
    line-height: 1.26;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.0s var(--transition-slow) 0.2s, 
                transform 1.0s var(--transition-slow) 0.2s,
                font-size var(--transition-normal), 
                height var(--transition-normal);
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 優先度高：装飾的英語ワード */
.section-title-en {
    font-size: var(--font-xs);
    font-weight: 300;
    letter-spacing: 0.4em;
    color: var(--color-bg-accent);
    font-family: 'Noto Sans', sans-serif;
    text-align: center;
    margin: 0.1rem auto var(--space-sm) auto;
    display: block;
    opacity: 0.85;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* 優先度高：特定セクションの英語ワード調整 */
.customer-voice-section .section-title-en {
    color: rgba(173, 216, 230, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.trouble-section .section-title-en {
    margin-bottom: 1rem;
}

/* 優先度高：ビジョンセクションタイトル */
.vision-section-title {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: var(--font-md);
    font-weight: 500;
    color: var(--color-text);
    text-align: center;
    margin: var(--space-sm) 0 var(--space-sm) 0;
    padding: 0 var(--space-xs);
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.vision-section-title .title-text {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.vision-section-title.animate .title-text {
    opacity: 1;
    transform: translateY(0);
}

/* 優先度中：共通ボタンスタイル */
.detail-cta-btn {
    background: #0077BE;
    color: white;
    border: 2px solid #0077BE;
    padding: 1.25rem 2.5rem;
    border-radius: 8px;
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0.5rem;
    text-decoration: none;
    display: inline-block;
}

.detail-cta-btn:hover {
    background: #005a94;
    border-color: #005a94;
    transform: translateY(-2px);
}

/* 電話ボタン専用 */
.detail-cta-btn.phone-btn {
    background: #28a745;
    border-color: #28a745;
}

.detail-cta-btn.phone-btn:hover {
    background: #218838;
    border-color: #218838;
}

/* フォームボタン専用 */
.detail-cta-btn.form-btn {
    background: #0077BE;
    border-color: #0077BE;
}

.detail-cta-btn.form-btn:hover {
    background: #005a94;
    border-color: #005a94;
}

/* 優先度中：共通トランジション */
.transition-smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-slow {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-fade {
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 優先度中：共通アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* 優先度低：レスポンシブユーティリティ */
@media (max-width: 1023px) {
    .section-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    .section-title-en {
        font-size: clamp(0.6rem, 1.5vw, 0.8rem);
        margin-bottom: 1.5rem;
    }
    
    .vision-section-title {
        font-size: clamp(1.2rem, 3vw, 1.5rem);
        margin: 1.5rem 0 1rem 0;
    }
}

/* 1049pxブレークポイント削除: CSS変数var(--font-md)で自動対応 */ 