/* Far-East-AsiaDevelop - グローバルスタイル */

/* =====================================
   カスタムプロパティ（CSS変数）
   ===================================== */
:root {
    /* メインカラー（モノトーン） */
    --color-black: #000000;
    --color-dark: #1a1a1a;
    --color-charcoal: #2d2d2d;
    --color-gray-900: #333333;
    --color-gray-800: #4d4d4d;
    --color-gray-700: #666666;
    --color-gray-600: #808080;
    --color-gray-500: #999999;
    --color-gray-400: #b3b3b3;
    --color-gray-300: #cccccc;
    --color-gray-200: #e6e6e6;
    --color-gray-100: #f2f2f2;
    --color-gray-50: #f8f8f8;
    --color-white: #ffffff;
    
    /* アクセントカラー（パステル） */
    --accent-pink: #ffb3ba;
    --accent-pink-light: rgba(255, 179, 186, 0.2);
    --accent-blue: #a8d5e2;
    --accent-blue-light: rgba(168, 213, 226, 0.2);
    --accent-mint: #b3e5d1;
    --accent-mint-light: rgba(179, 229, 209, 0.2);
    --accent-lavender: #c8b6db;
    --accent-lavender-light: rgba(200, 182, 219, 0.2);
    
    /* グラデーション */
    --gradient-dark: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-blue) 100%);
    --gradient-subtle: linear-gradient(135deg, #f8f8f8 0%, #e6e6e6 100%);
    
    /* トランジション */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* シャドウ */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.18);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.24);
    
    /* 余白 */
    --spacing-section: 80px;
    --spacing-container: 16px;
}

/* =====================================
   ベーススタイル
   ===================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--color-gray-900);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =====================================
   タイポグラフィ
   ===================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-dark);
    letter-spacing: -0.02em;
}

.heading-primary {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
}

.heading-secondary {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.75rem;
}

.heading-tertiary {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
}

/* =====================================
   ボタンスタイル
   ===================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-weight: 500;
    transition: var(--transition-base);
    text-decoration: none;
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.btn-header {
    padding: 8px 20px;
    border-radius: 24px;
    background: var(--color-gray-100);
    color: var(--color-dark);
    font-size: 14px;
    font-weight: 500;
}

.btn-header:hover {
    background: var(--color-gray-200);
}

.btn-header.active {
    background: var(--color-dark);
    color: var(--color-white);
}

.btn-primary {
    background: var(--gradient-dark);
    color: var(--color-white);
    border-radius: 30px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--color-dark);
    border: 2px solid var(--color-dark);
    border-radius: 30px;
}

.btn-secondary:hover {
    background: var(--color-dark);
    color: var(--color-white);
}

.btn-outline-white {
    background: transparent;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    border-radius: 30px;
}

.btn-outline-white:hover {
    background: var(--color-white);
    color: var(--color-dark);
}

/* 事業紹介ボタン（画像背景対応） */
.service-btn {
    width: 100%;
    min-height: 160px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 30px 40px;
    transition: var(--transition-base);
    text-decoration: none;
    background-size: cover;
    background-position: center;
}

.service-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.75) 100%);
    transition: var(--transition-base);
}

.service-btn:hover::before {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.service-btn:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-xl);
}

.service-btn-content {
    position: relative;
    z-index: 1;
    color: #ffffff !important;
    width: 100%;
}

.service-btn-title {
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    color: #ffffff !important;
}

.service-btn-desc {
    opacity: 1;
    line-height: 1.5;
    color: #ffffff !important;
}

/* =====================================
   カード
   ===================================== */
.card {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-base);
    border: 1px solid var(--color-gray-200);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-dark {
    background: var(--color-dark);
    color: var(--color-white);
    border: 1px solid var(--color-charcoal);
}

/* =====================================
   バッジ
   ===================================== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-accent-pink {
    background: var(--accent-pink-light);
    color: var(--accent-pink);
    border: 1px solid var(--accent-pink);
}

.badge-accent-blue {
    background: var(--accent-blue-light);
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
}

.badge-accent-mint {
    background: var(--accent-mint-light);
    color: var(--accent-mint);
    border: 1px solid var(--accent-mint);
}

.badge-dark {
    background: var(--color-dark);
    color: var(--color-white);
}

/* =====================================
   装飾要素
   ===================================== */
.divider {
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    margin: 16px auto 32px;
    border-radius: 2px;
}

.divider-dark {
    background: var(--gradient-dark);
}

/* =====================================
   循環構造図用スタイル
   ===================================== */
.circulation-diagram {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.circulation-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: var(--gradient-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    z-index: 10;
}

.circulation-item {
    position: relative;
    text-align: center;
    padding: 20px;
}

.circulation-icon {
    width: 80px;
    height: 80px;
    background: var(--color-white);
    border: 3px solid var(--color-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: var(--transition-base);
}

.circulation-item:hover .circulation-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* 矢印アニメーション */
@keyframes flow {
    0% { 
        stroke-dashoffset: 100;
    }
    100% { 
        stroke-dashoffset: 0;
    }
}

.circulation-arrow {
    stroke-dasharray: 100;
    animation: flow 3s linear infinite;
}

/* =====================================
   フォーム要素
   ===================================== */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-dark);
    font-weight: 600;
    font-size: 14px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-gray-300);
    border-radius: 8px;
    background: var(--color-white);
    font-size: 16px;
    transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-dark);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* =====================================
   アニメーション
   ===================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-fadeIn {
    animation: fadeIn 0.8s ease-out;
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

.animate-slideInLeft {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slideInRight {
    animation: slideInRight 0.8s ease-out;
}

/* アニメーション遅延 */
.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

.animation-delay-600 {
    animation-delay: 0.6s;
}

/* =====================================
   スクロールアニメーション
   ===================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================
   レスポンシブ調整
   ===================================== */
@media (max-width: 768px) {
    :root {
        --spacing-section: 60px;
        --spacing-container: 16px;
    }
    
    .hide-mobile {
        display: none !important;
    }
    
    .btn-header {
        padding: 6px 16px;
        font-size: 13px;
    }
    
    .service-btn {
        min-height: 140px;
        padding: 20px 24px;
    }
    
    .circulation-center {
        width: 140px;
        height: 140px;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* =====================================
   スムーススクロール用のオフセット
   ===================================== */
.scroll-offset {
    scroll-margin-top: 80px;
}

/* =====================================
   ローディングアニメーション
   ===================================== */
.loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-gray-200);
    border-top-color: var(--color-dark);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =====================================
   アクセシビリティ
   ===================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

*:focus-visible {
    outline: 2px solid var(--color-dark);
    outline-offset: 2px;
}

/* =====================================
   印刷用スタイル
   ===================================== */
@media print {
    body {
        font-size: 12pt;
    }
    
    .no-print {
        display: none !important;
    }
}