@charset "UTF-8";

/* --- Base Settings --- */
:root {
    --bg-color: #faf9f6;
    --text-color: #2b2b2b;
    --accent-rust: #c25e00; /* ヴィンテージオレンジ */
    --accent-dark: #1a1a1a; /* チャコールグレー */
    --font-head: 'Oswald', sans-serif;
    --font-body: 'Lora', serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    margin: 0;
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    display: flex; 
    flex-direction: column; 
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--accent-dark);
    margin-top: 0;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; }
video { max-width: 100%; display: block; }

/* --- Navigation --- */
nav {
    box-sizing: border-box;
}
.t-nav {
    position: absolute; top: 0; left: 0; width: 100%; z-index: 100;
    padding: 20px 5%; transition: 0.4s ease;
}
.nav-container {
    display: flex; justify-content: space-between; align-items: center;
}
.logo {
    font-family: var(--font-head); font-size: 1.8rem; font-weight: 700;
    letter-spacing: 0.15em; color: #fff; padding: 5px 0; z-index: 101;
    width: 200px;
}
.menu a {
    font-family: var(--font-head); font-size: 1.2rem; color: #fff;
    margin-left: 30px; letter-spacing: 0.1em; position: relative;
}
.menu a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 1px;
    background: var(--accent-rust); transition: 0.3s;
}
.menu a:hover::after { width: 100%; }

/* Scroll & Static State */
.t-nav.scrolled, .t-nav.scrolled-static {
    background: #fff; position: fixed; box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}
.t-nav.scrolled .logo, .t-nav.scrolled-static .logo,
.t-nav.scrolled .menu a, .t-nav.scrolled-static .menu a {
    color: var(--accent-dark);
}
.t-nav.scrolled .mobile-toggle span, .t-nav.scrolled-static .mobile-toggle span {
    background: var(--accent-dark);
}
.t-nav .logo-nomal { display: none; }
.t-nav .logo-white { display: block; }
.t-nav.scrolled .logo-nomal { display: block; }
.t-nav.scrolled .logo-white { display: none; }

/* --- Mobile Menu (Hamburger) --- */
.mobile-toggle {
    display: none; cursor: pointer; flex-direction: column; gap: 6px; z-index: 101;
}
.mobile-toggle span {
    display: block; width: 30px; height: 2px; background: #fff; transition: 0.3s;
}
.mobile-menu-overlay {
    position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
    background: var(--accent-dark); z-index: 999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}
.mobile-menu-overlay.active { right: 0; }
.mobile-menu-close {
    position: absolute; top: 30px; right: 30px; font-size: 3rem; color: #fff; cursor: pointer;
}
.mobile-menu-links a {
    display: block; font-family: var(--font-head); font-size: 2rem;
    color: #fff; margin: 20px 0; text-align: center; opacity: 0; transform: translateY(20px);
    transition: 0.4s;
}
/* メニューが開いたときのアニメーション */
.mobile-menu-overlay.active .mobile-menu-links a {
    opacity: 1; transform: translateY(0);
}
.mobile-menu-overlay.active .mobile-menu-links a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-menu-links a:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-menu-links a:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-overlay.active .mobile-menu-links a:nth-child(4) { transition-delay: 0.4s; }

/* Responsive Control */
@media (max-width: 768px) {
    .desktop-only { display: none; }
    .mobile-toggle { display: flex; }
}

.section-head { text-align: center; margin-bottom: 60px; }
.section-head h2 { font-size: 2.5rem; display: inline-block; position: relative; }
.section-head h2::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 50px; height: 3px; background: var(--accent-rust); }
.btn-rust { display: inline-block; padding: 15px 40px; background: var(--accent-rust); color: #fff; font-family: var(--font-head); font-weight: 600; border-radius: 2px; }
.btn-rust:hover { background: #a04e00; }

/* ローディングオーバーレイの基本設定 */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* サイトの背景色に合わせる (例: ポートフォリオは黒系、旅は白系) */
    background-color: #fff; 
    z-index: 99999; /* 最前面に配置 */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}
/* 読み込み完了時のスタイル */
#loading-overlay.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* クリックを透過させる */
}
.loading-content {
    text-align: center;
}
.loading-text {
    margin-top: 20px;
    font-family: 'Montserrat', sans-serif; /* サイトのフォントに合わせる */
    font-weight: 600;
    letter-spacing: 0.1em;
    /* テキスト色もサイトに合わせる */
    color: #333;
}
/* オーバーレイを空のグラデーションに */
#loading-overlay {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}
#loading-overlay .loading-text {
    color: #333;
    margin-top: 50px; /* テキスト位置調整 */
}

/* ローダーコンテナ */
.travel-loader {
    width: 200px;
    height: 100px;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}

/* 飛行機ラッパー（右へ移動する箱） */
.plane-wrapper {
    position: absolute;
    top: 50%;
    left: -40px;
    /* 飛行機自体の移動アニメーション */
    animation: planeFly 2.5s linear infinite;
    z-index: 10;
    width: 40px; /* サイズを固定して基準点を作る */
    height: 40px;
}

/* 飛行機アイコン */
.plane-icon {
    font-size: 36px;
    color: #fff;
    /* 右上がり */
    transform: rotate(10deg);
    text-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2; /* 雲より手前に表示 */
}

/* 飛行機雲（後ろへ流れる） */
.contrail {
    position: absolute;
    top: 55%;         /* 飛行機の高さに合わせる */
    right: 25px;      /* 飛行機のお尻（左側）あたりに配置 */
    height: 4px;
    background: rgba(255,255,255,0.6);
    border-radius: 4px;
    z-index: 1;       /* 飛行機より奥 */
    
    /* ★ここが修正点：右端（飛行機側）を起点に左へ伸びる */
    transform-origin: right center;
    transform: translateY(-50%);
    
    /* 雲が伸びるアニメーション */
    animation: contrailTrail 2.5s linear infinite;
}

/* 雲（背景）の設定は変更なし */
.cloud {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    opacity: 0.7;
}
.cloud::before, .cloud::after {
    content: '';
    position: absolute;
    background: #fff;
    border-radius: 50%;
}
.cloud1 {
    width: 60px; height: 60px;
    top: 10px; left: 120%;
    animation: cloudMove 4s linear infinite;
}
.cloud1::before { width: 40px; height: 40px; top: -20px; left: 30px; }
.cloud1::after { width: 50px; height: 50px; top: 10px; left: 50px; }

.cloud2 {
    width: 40px; height: 40px;
    top: 60px; left: 120%;
    opacity: 0.5;
    animation: cloudMove 6s linear infinite 1s;
    transform: scale(0.8);
}
.cloud2::before { width: 30px; height: 30px; top: -15px; left: 20px; }
.percent-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800; /* 太く元気に */
    color: #fff; /* 空背景に映える白 */
    text-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 雲のような影 */
    margin-top: 10px;
    margin-bottom: 0;
    position: relative;
    z-index: 20;
}
/* 下のLoading...テキスト */
.loading-text {
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.1em;
    opacity: 0.9;
    position: relative;
    z-index: 20;
}
/* --- アニメーション定義 --- */
/* 飛行機が左から右へ飛ぶ */
@keyframes planeFly {
    0% { left: -50px; transform: translateY(0); }
    25% { transform: translateY(-5px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(5px); }
    100% { left: 110%; transform: translateY(0); }
}

/* 飛行機雲が後ろ（左）に伸びて消える */
@keyframes contrailTrail {
    0% {
        width: 0;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    80% {
        width: 100px; /* 後ろに長く伸びる */
        opacity: 0.8;
    }
    100% {
        width: 120px;
        opacity: 0;
    }
}
@keyframes cloudMove {
    0% { left: 110%; }
    100% { left: -30%; }
}

/* --- Footer --- */
footer {
    background: #1a1a1a;
    color: #888;
    padding: 60px 20px;
    text-align: center;
    font-family: var(--font-head);
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    text-transform: uppercase;
}

