/* ===== Font Policy Compliance ===== */
body {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Heading Styles - FONT_POLICY */
h1 {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 0.5em;
}

h2 {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 0.5em;
    color: #0066cc;
}

h3 {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 0.5em;
}

h4, h5, h6 {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
    font-weight: 600;
}

/* Navigation - FONT_POLICY */
header.navbar {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
    font-weight: bold;
    font-size: 20px;
}

nav a {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
    font-weight: 500;
}

/* Breadcrumb - FONT_POLICY */
.breadcrumb {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
    font-size: 14px;
    color: #4b5563;
}

.breadcrumb a {
    color: #0066cc;
    text-decoration: none;
}

/* Footer - FONT_POLICY */
footer {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
    color: white;
}

footer h3 {
    font-weight: 600;
    margin-bottom: 1em;
}

footer a {
    color: #9ca3af;
    text-decoration: none;
}

/* Links - FONT_POLICY */
a {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* カスタムカラーテーマ */
:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --secondary: #3b82f6;
    --accent: #f59e0b;
    --neutral: #374151;
    --light: #f9fafb;
}

/* ナビゲーション透明効果 */
.nav-transparent {
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-scrolled {
    background: rgba(255, 255, 255, 0.00);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* グラデーション背景 */
.gradient-bg {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

/* カード効果 */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* セクション間のスペーシング */
.section-padding {
    padding: 6rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }
}

/* ヒーローセクション カルーセル機能 */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.hero-background.active {
    opacity: 1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(30, 64, 175, 0.8) 0%,
        rgba(59, 130, 246, 0.6) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.hero-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.05em;
}

.slide-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 0.8rem;
    z-index: 10;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.indicator-dot.active {
    background: white;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* タブレット・iPad対応 */
@media (max-width: 1024px) {
    .hero-background {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }
}

@media (max-width: 768px) {
    .hero-background {
        background-attachment: scroll;
        background-size: cover;
    }

    .slide-indicator {
        bottom: 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.875rem;
        line-height: 1.4;
    }
}

/* iPhone SE (375px) 対応 */
@media (max-width: 384px) {
    .hero-title {
        font-size: 1.25rem;
        line-height: 1.25;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.8125rem;
        line-height: 1.35;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-background {
        transition: opacity 0.5s ease;
    }
}

/* モーダルアニメーション */
.modal-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

.modal-content {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.modal-content.show {
    opacity: 1;
    transform: scale(1);
}

/* モーダルが非表示の時は完全に隠す */
.modal-hidden {
    visibility: hidden;
    opacity: 0;
}

.modal-visible {
    visibility: visible;
}

/* アニメーション無効化ユーザーへの対応 */
@media (prefers-reduced-motion: reduce) {
    .modal-overlay,
    .modal-content {
        transition: none !important;
    }

    .modal-overlay.show {
        opacity: 1;
    }

    .modal-content.show {
        opacity: 1;
        transform: scale(1);
    }
}
