/* ========================================
   グローバル設定 / Global Styles
   ======================================== */

:root {
    /* カラーパレット - 医療系の青系 */
    --primary-color: #1e5a8e;
    --primary-dark: #0d3c6b;
    --primary-light: #2d7ac7;
    --secondary-color: #4a90e2;
    --accent-color: #00a8cc;
    
    /* ニュートラルカラー */
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-light: #6a6a6a;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    
    /* グラデーション */
    --gradient-primary: linear-gradient(135deg, #1e5a8e 0%, #2d7ac7 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(30, 90, 142, 0.9) 0%, rgba(45, 122, 199, 0.9) 100%);
    
    /* シャドウ */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    /* タイポグラフィ */
    --font-ja: 'Noto Sans JP', sans-serif;
    --font-en: 'Inter', sans-serif;
    
    /* スペーシング */
    --section-padding: 100px 0;
    --container-max-width: 1200px;
    
    /* トランジション */
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ja);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

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

/* 英語テキスト用フォント */
.en, .en-subtitle, .en-text, .en-small {
    font-family: var(--font-en);
}

/* ========================================
   ロゴスプラッシュスクリーン / Logo Splash Screen
   ======================================== */

.logo-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease-in-out 2.5s forwards;
}

.logo-splash.hidden {
    display: none;
}

.splash-content {
    text-align: center;
    animation: splashZoom 2.5s ease-in-out;
    background: transparent;
}

.splash-logo {
    width: 900px;
    max-width: 90vw;
    height: auto;
    opacity: 0;
    animation: logoFadeIn 1s ease-out 0.3s forwards;
    display: block;
    background: transparent;
}

@keyframes splashZoom {
    0% {
        transform: scale(1.2);
        opacity: 0;
    }
    15% {
        transform: scale(1);
        opacity: 1;
    }
    85% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* ========================================
   ヘッダー / Header
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    background: transparent;
}

.logo img {
    height: 80px;
    width: auto;
    transition: var(--transition-base);
    display: block;
    object-fit: contain;
    object-position: center;
    padding: 0;
    margin: 0;
    background: transparent;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition-base);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition-base);
}

/* ========================================
   ヒーローセクション / Hero Section
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    overflow: hidden;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(74, 144, 226, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 168, 204, 0.3) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 40px 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-title .ja {
    display: block;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 30px;
    opacity: 0.95;
    font-family: var(--font-en);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* アニメーション */
.fade-in {
    animation: fadeInUp 1s ease-out;
}

.fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.fade-in-delay-2 {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.fade-in-delay-3 {
    animation: fadeInUp 1s ease-out 0.9s both;
}

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

/* スクロールインジケーター */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }
}

/* ========================================
   ボタン / Buttons
   ======================================== */

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ========================================
   セクション共通 / Section Common
   ======================================== */

section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.section-title .ja {
    font-size: 2.5rem;
}

.section-title .en {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    font-family: var(--font-en);
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* ========================================
   About Section
   ======================================== */

.about {
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.about-text .en-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.about-description {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-description.en-text {
    color: var(--text-light);
    font-size: 0.95rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-light);
    border-radius: 15px;
    transition: var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.stat-label .en-small {
    font-size: 0.85rem;
    color: var(--text-light);
    display: block;
    margin-top: 5px;
}

/* ========================================
   Services Section
   ======================================== */

.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.service-title-en {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    font-family: var(--font-en);
    font-weight: 400;
}

.service-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ========================================
   Expertise Section
   ======================================== */

.expertise {
    background: var(--bg-white);
}

.expertise-intro {
    text-align: center;
    margin-bottom: 50px;
}

.expertise-lead {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.expertise-card {
    background: var(--bg-light);
    padding: 35px 25px;
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
    transition: var(--transition-base);
}

.expertise-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.expertise-header {
    margin-bottom: 20px;
}

.expertise-header i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.expertise-header h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.expertise-header .en-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 400;
}

.expertise-list {
    list-style: none;
}

.expertise-list li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.expertise-list i {
    color: var(--accent-color);
    margin-top: 5px;
    font-size: 0.85rem;
}

.expertise-specialties {
    background: var(--gradient-primary);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
}

.specialties-title {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.specialties-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.specialty-tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-base);
}

.specialty-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ========================================
   Clients Section
   ======================================== */

.clients {
    background: var(--bg-light);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.client-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.client-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.client-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.client-card .en-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.client-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Contact Section
   ======================================== */

.contact {
    background: var(--bg-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-info .en-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 10px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 8px;
}

.contact-item a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-item .note {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 5px;
    display: block;
}

/* Contact Form */
.contact-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 25px;
}

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

.required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-ja);
    font-size: 1rem;
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 90, 142, 0.1);
}

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

.btn-submit {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 16px;
    font-size: 1.1rem;
}

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

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--primary-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo {
    background: transparent;
    position: relative;
    z-index: 1;
}

.footer-logo img {
    height: 100px;
    margin-bottom: 20px;
    display: block;
    background: transparent;
    position: relative;
    z-index: 2;
}

.footer-tagline {
    font-family: var(--font-en);
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 12px;
    opacity: 0.8;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-note {
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.6;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.7;
}

/* ========================================
   レスポンシブデザイン / Responsive Design
   ======================================== */

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title .ja {
        font-size: 2rem;
    }
    
    .section-title .en {
        font-size: 1.3rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        transition: var(--transition-base);
        padding: 40px 20px;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        padding: 12px 28px;
        font-size: 15px;
    }
    
    .services-grid,
    .expertise-grid,
    .clients-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title .ja {
        font-size: 1.7rem;
    }
    
    .section-title .en {
        font-size: 1.1rem;
    }
    
    .service-card,
    .expertise-card,
    .client-card {
        padding: 30px 20px;
    }
}