/* --- 基本設定 --- */
:root {
    --primary-color: #6a0dad; /* 紫系 (Wixサイトのアクセントカラー参考) */
    --primary-hover-color: #8334c9;
    --secondary-color: #4a0072;
    --text-color: #e0e0e0;
    --bg-color: #1a1a1a; /* 暗い背景 */
    --bg-color-light: #2a2a2a; /* やや明るい背景 */
    --border-color: #444;
    --white-color: #ffffff;
    --black-color: #000000;

    --font-primary: 'Montserrat', 'Noto Sans JP', sans-serif;
    --font-secondary: 'Noto Sans JP', sans-serif;

    --header-height: 70px;
    --container-width: 1140px;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* ベースフォントサイズ */
}

body {
    font-family: var(--font-secondary);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    padding-top: var(--header-height);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--white-color);
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; line-height: 1.2; }
h2.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}
h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

h3 { font-size: 1.5rem; color: var(--primary-color); }
p { margin-bottom: 1rem; font-weight: 300; }
a { color: var(--primary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--primary-hover-color); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.section-padding {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-primary);
    font-weight: bold;
    text-transform: uppercase;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--primary-hover-color);
    border-color: var(--primary-hover-color);
    transform: translateY(-3px);
}

/* --- ヘッダー --- */
.site-header {
    background-color: rgba(26, 26, 26, 0.9); /* 少し透過 */
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.site-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.site-logo:hover {
    color: var(--primary-color);
}

.main-nav .nav-menu {
    display: flex;
}

.main-nav .nav-menu li {
    margin-left: 30px;
}

.main-nav .nav-link {
    color: var(--text-color);
    font-weight: 400;
    padding: 5px 0;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* --- ヒーローセクション --- */
.hero-section {
    height: calc(100vh - var(--header-height));
    min-height: 500px;
    background: url('https://via.placeholder.com/1920x1080/333333/FFFFFF?text=Hero+Background+Image') no-repeat center center/cover; /* プレースホルダー。実際の画像に差し替え */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6); /* 背景画像の暗さ調整 */
}
.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeIn 1.5s ease-out;
}
.hero-content h1 {
    font-size: calc(2.5rem + 2vw); /* レスポンシブなフォントサイズ */
    margin-bottom: 1.5rem;
    color: var(--white-color);
}
.hero-content p {
    font-size: calc(1rem + 0.5vw);
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-color);
    font-weight: 300;
}

/* --- タイムラインセクション --- */
.timeline-section {
    background-color: var(--bg-color-light);
}
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline-container::after { /* 縦のライン */
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    z-index: 0;
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    background-color: transparent;
    width: 50%;
    opacity: 0; /* 初期状態は非表示 (JSで表示) */
    transform: translateY(50px); /* 初期状態は下にずらす (JSで表示) */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.timeline-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 左側のアイテム */
.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 60px; /* ドットとのスペース */
    text-align: right;
}
/* 右側のアイテム */
.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 60px; /* ドットとのスペース */
}

.timeline-dot {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--bg-color);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 30px;
    z-index: 1;
}
.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px; /* 縦ラインの中央に */
}
.timeline-item:nth-child(even) .timeline-dot {
    left: -10px; /* 縦ラインの中央に */
}

.timeline-date {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}
.timeline-item:nth-child(odd) .timeline-date {
    text-align: right;
}
.timeline-item:nth-child(even) .timeline-date {
    text-align: left;
}

.timeline-content {
    padding: 20px;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    position: relative;
}
.timeline-content h3 {
    margin-top: 0;
    font-size: 1.3rem;
}
.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
}
.timeline-image {
    margin-top: 15px;
    border-radius: calc(var(--border-radius) / 2);
    max-width: 100%;
}


/* --- コンタクトセクション --- */
.contact-section {
    text-align: center;
}
.contact-message {
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 2.5rem;
}
.contact-details p {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}
.contact-details p strong {
    color: var(--white-color);
}
.social-links {
    margin-top: 2.5rem;
}
.social-links a {
    display: inline-block;
    margin: 0 15px;
    transition: transform 0.3s ease;
}
.social-links a img {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* アイコンが丸い場合 */
}
.social-links a:hover {
    transform: scale(1.15);
}


/* --- フッター --- */
.site-footer {
    background-color: var(--black-color);
    color: var(--text-color);
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
}
.site-footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* --- アニメーション --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- レスポンシブ対応 --- */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2.section-title { font-size: 2rem; }
    .hero-content h1 { font-size: calc(2rem + 2vw); }
    .hero-content p { font-size: calc(0.9rem + 0.5vw); }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    .section-padding { padding: 60px 0; }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: -100%; /* 初期状態は画面外 */
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease-in-out;
        padding-top: 20px; /* メニューアイテムが上部に寄りすぎないように */
    }
    .main-nav.is-open {
        left: 0;
    }
    .main-nav .nav-menu {
        flex-direction: column;
        align-items: center;
    }
    .main-nav .nav-menu li {
        margin: 20px 0;
    }
    .main-nav .nav-link {
        font-size: 1.2rem;
    }
    .hamburger-menu {
        display: block;
        z-index: 1001; /* ナビゲーションメニューより手前に */
    }
    .hamburger-menu.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-menu.is-active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* タイムライン調整 */
    .timeline-container::after {
        left: 30px; /* 左端に寄せる */
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px; /* ドットとコンテンツの間隔 */
        padding-right: 15px;
        left: 0 !important; /* even/oddのleft指定を上書き */
        text-align: left !important; /* even/oddのtext-align指定を上書き */
    }
    .timeline-item:nth-child(odd) {
        padding-right: 15px; /* 右側のパディングも統一 */
    }
    .timeline-dot {
        left: 20px !important; /* even/oddのleft/right指定を上書き */
    }
     .timeline-item:nth-child(odd) .timeline-date,
     .timeline-item:nth-child(even) .timeline-date {
        text-align: left;
    }

    .hero-content h1 { font-size: calc(1.8rem + 2vw); }
    .hero-content p { font-size: calc(0.8rem + 0.5vw); }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    .site-logo { font-size: 1.5rem; }
    h1 { font-size: 2rem; }
    h2.section-title { font-size: 1.8rem; }
    .hero-content h1 { font-size: calc(1.6rem + 2vw); }
    .btn { padding: 10px 20px; font-size: 0.9rem; }

    /* タイムラインのドットと日付の調整 */
    .timeline-container::after {
        left: 20px;
    }
     .timeline-item {
        padding-left: 50px;
    }
    .timeline-dot {
        left: 10px !important;
        width: 16px;
        height: 16px;
        border-width: 3px;
    }
}