/*
Theme Name: TASAKI PHARMA - Warm & Trustworthy
Description: 医療貿易会社向けの温かみのあるコーポレートテーマ
Version: 1.0
Author: Your Name
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;600;700&display=swap');

:root {
    /* 温かみのあるカラーパレット */
    --primary-color: #159dc2;
    /* 明るい青 - 信頼感と安心感 */
    --secondary-color: #E67D47;
    /* 温かいオレンジ - 親しみやすさ */
    --accent-color: #4FC3E3;
    /* 明るいスカイブルー - 爽やかさ */
    --warm-beige: #F7F3F0;
    /* 温かいベージュ */
    --soft-gray: #F8F9FA;
    /* ソフトグレー */
    --text-dark: #2D3436;
    /* 温かみのあるダークグレー */
    --text-light: #636E72;
    /* ミディアムグレー */
    --white: #ffffff;

    /* 温かみのあるグラデーション */
    --gradient-primary: linear-gradient(135deg, #159dc2 0%, #2BB0D6 100%);
    --gradient-secondary: linear-gradient(135deg, #E67D47 0%, #F2994A 100%);
    --gradient-accent: linear-gradient(135deg, #4FC3E3 0%, #74D9F5 100%);
    --gradient-warm: linear-gradient(135deg, #F7F3F0 0%, #FFFFFF 100%);

    /* 影の調整（より柔らかく） */
    --shadow-soft: 0 4px 20px rgba(21, 157, 194, 0.08);
    --shadow-medium: 0 8px 30px rgba(21, 157, 194, 0.12);
    --shadow-strong: 0 15px 40px rgba(21, 157, 194, 0.15);
}

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

body {
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: var(--white);
}

/* カスタムスクロールバー - より温かく */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--warm-beige);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ローディングアニメーション */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

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

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--warm-beige);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* パーティクル背景 - より控えめに */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0;
    }

    50% {
        transform: translateY(-80px) rotate(180deg);
        opacity: 0.6;
    }
}

/* ヘッダー - より優しい印象 */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(21, 157, 194, 0.08);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

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

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

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

/* ヒーローセクション - 温かみのあるデザイン */
.hero {
        background-image: url('<?php echo get_template_directory_uri(); ?>/images/hero-bg.jpg');
            background-size: cover;
            background-position: center center;
            background-repeat: no-repeat;
            background-attachment: fixed;
    min-height: 100vh; 
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="150" cy="50" r="25" fill="rgba(21,157,194,0.05)"/><circle cx="180" cy="140" r="20" fill="rgba(230,125,71,0.08)"/><circle cx="160" cy="90" r="15" fill="rgba(79,195,227,0.06)"/><circle cx="40" cy="180" r="18" fill="rgba(21,157,194,0.04)"/></svg>') no-repeat;
    background-size: cover;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 2;
}

.hero-text {
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.jp-h1,
.en-h1,
.zh-h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    padding: 2rem 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(46, 125, 86, 0.1);
    box-shadow: var(--shadow-soft);
    color: white;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--text-light);
    line-height: 1.7;
}

.hero-icons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.icon-box {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(21, 157, 194, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.icon-box:hover {
    transform: translateY(-8px);
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-soft);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

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

.hero-visual {
    position: relative;
}

.hero-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(46, 125, 86, 0.1);
    border-radius: 25px;
    padding: 3rem;
    text-align: center;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-medium);
}

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

.hero-card-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: block;
}

.hero-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* スタッツセクション - 温かみのある統計表示 */
.stats {
    padding: 5rem 0;
    background: var(--gradient-warm);
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid rgba(21, 157, 194, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(21, 157, 194, 0.25);
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(21, 157, 194, 0.35);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ニュースセクション - より親しみやすく */
.news {
    padding: 6rem 0;
    background: #FFFFFF;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    border: 1px solid rgba(21, 157, 194, 0.08);
    position: relative;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.news-card-content {
    padding: 2rem;
}

.news-date {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    gap: 1rem;
    color: var(--secondary-color);
}

/* 会社概要セクション - より親しみやすく */
.about {
    padding: 6rem 0;
    background: var(--gradient-warm);
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.3;
    color: var(--text-dark);
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    border: 1px solid rgba(21, 157, 194, 0.1);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.about-visual {
    position: relative;
}

.about-image {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(21, 157, 194, 0.1);
    border-radius: 25px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all 0.4s ease;
}

.about-image:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.company-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
    transition: all 0.4s ease;
}

.image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-color);
}

/* 事業内容セクション - より温かく親しみやすく */
.service-section {
    margin-bottom: 5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(21, 157, 194, 0.08);
}

.service-main-card {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-icon-large {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(21, 157, 194, 0.25);
    flex-shrink: 0;
}

.service-main-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.service-main-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: rgba(21, 157, 194, 0.08);
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.service-note i {
    color: var(--primary-color);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.service-note span {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.5;
}

/* フローチャート - より親しみやすく */
.flow-chart {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
}

.flow-chart h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.flow-chart h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.flow-steps {
    display: flex;
    align-items: top;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 120px;
}

.flow-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    margin-bottom: 0.8rem;
    box-shadow: 0 5px 15px rgba(21, 157, 194, 0.25);
    transition: all 0.3s ease;
}

.flow-step:hover .flow-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(21, 157, 194, 0.35);
}

.flow-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

.flow-arrow {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin: 0 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* お問い合わせセクション - より親しみやすく */
.contact {
    padding: 6rem 0;
    background: var(--gradient-warm);
    color: var(--text-dark);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-form {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(46, 125, 86, 0.1);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: var(--shadow-medium);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(21, 157, 194, 0.15);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(21, 157, 194, 0.1);
}

.submit-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

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

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    border: 1px solid rgba(21, 157, 194, 0.1);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

/* フッター - より温かく */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

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

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
    padding-left: 0.5rem;
}

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

/* アニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 言語切替メニュー */
.language-switcher {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(21, 157, 194, 0.1);
    padding: 0.5rem 0;
    position: fixed;
    top: 80px;
    width: 100%;
    z-index: 999;
}

.language-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.language-links a {
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.lang-home {
    color: var(--text-light);
    background: rgba(21, 157, 194, 0.1);
}

.lang-home:hover {
    background: rgba(21, 157, 194, 0.15);
    color: var(--primary-color);
}

.lang-active {
    background: var(--primary-color);
    color: white;
}

.lang-link {
    color: var(--text-dark);
    background: rgba(0, 0, 0, 0.05);
}

.lang-link:hover {
    background: rgba(21, 157, 194, 0.1);
    color: var(--primary-color);
}

/* ロゴ画像とハンバーガーメニュー */
.logo-image {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-open {
    overflow: hidden;
}

/* レスポンシブ対応 */
@media (min-width: 769px) {
    .nav-menu {
        display: flex;
        list-style: none;
        gap: 2.5rem;
        position: static;
        background: transparent;
        backdrop-filter: none;
        border: none;
        padding: 0;
        margin: 0;
        width: auto;
        height: auto;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
    }

    .hamburger {
        display: none;
    }

    .nav-overlay {
        display: none;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-left: 1px solid rgba(21, 157, 194, 0.1);
        padding: 6rem 2rem 2rem;
        margin: 0;
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0;
        z-index: 1001;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: -10px 0 30px rgba(21, 157, 194, 0.1);
    }

    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid rgba(21, 157, 194, 0.1);
        transform: translateX(50px);
        opacity: 0;
        animation: slideInItems 0.4s ease forwards;
    }

    .nav-menu.active li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-menu.active li:nth-child(2) {
        animation-delay: 0.15s;
    }

    .nav-menu.active li:nth-child(3) {
        animation-delay: 0.2s;
    }

    .nav-menu.active li:nth-child(4) {
        animation-delay: 0.25s;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 1.2rem 0;
        color: var(--text-dark);
        text-decoration: none;
        font-weight: 500;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        border-radius: 8px;
        position: relative;
    }

    .nav-menu a:hover {
        color: var(--primary-color);
        padding-left: 1rem;
        background: rgba(21, 157, 194, 0.05);
    }

    .nav-menu a::after {
        display: none;
    }

    .container {
        padding: 0 1rem;
    }

    .jp-h1,
    .en-h1,
    .zh-h1 {
        font-size: 2.5rem;
        padding: 1.5rem 2rem;
    }

    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .flow-steps {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 1rem 0.8rem;
        align-items: center;
        justify-items: center;
        max-width: 100%;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 1rem;
    }
}

@keyframes slideInItems {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .service-icon-large {
        display: none;
    }

    .nav-menu {
        width: 260px;
        padding: 5rem 1.5rem 2rem;
    }

    .nav-menu a {
        font-size: 1rem;
        padding: 1rem 0;
    }

    .logo-image {
        height: 40px;
    }

    .hamburger {
        width: 25px;
        height: 25px;
    }

    .hamburger-line {
        height: 2px;
    }

    .hamburger.active .hamburger-line:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .hamburger.active .hamburger-line:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }
}

/* ヒーローセクション背景画像設定 */

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

.hero::before {
    background: linear-gradient(135deg, #F7F3F0 0%, #FFFFFF 50%, #F0F8F5 100%);
    z-index: -1;
}