@charset "UTF-8";

/* 基本設定 */
html, body {
    margin: 0;
    padding: 0;
    /* iPhoneのスクロール時のガタつき防止 */
    height: 100%;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: #fff;
    background-color: #000;
}

/* 背景画像エリア */
.bg-container {
    background-image: url('../img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* iPhoneのバーによるズレを防止 */
    min-height: 100dvh;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ブルー系のオーバーレイ（グラデーション）
   ※下部が足りない問題を避けるため、inset:0 + min-height:100dvh */
.overlay {
    background: linear-gradient(135deg, rgba(10, 40, 90, 0.75) 0%, rgba(20, 80, 160, 0.55) 100%);
    position: absolute;
    inset: 0;                 /* top/left/right/bottom をまとめて全面に */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    box-sizing: border-box;

    /* 念のため：縦の最低高を確保（特にiPhone横のバー挙動） */
    min-height: 100dvh;
}

.content-box {
    width: 100%;
    max-width: 600px;
}

/* ロゴ（中央配置＋スマホ左右余白） */
.logo {
    display: flex;
    justify-content: center;
    margin: 0 auto 18px;
    padding: 0 18px;          /* スマホで左右の余白を確保 */
    box-sizing: border-box;
}

.logo picture,
.logo img {
    display: block;           /* 画像の謎の余白（ベースライン）対策 */
}

.logo img {
    width: 100%;
    max-width: 320px;         /* お好みで 260〜340px */
    height: auto;
}

/* 見出し（letter-spacingを詰めて間抜け感を軽減） */
h1 {
    font-size: clamp(2.0rem, 7vw, 3.2rem);
    letter-spacing: 0.04em;   /* 0.15em → 0.04em */
    margin: 16px 0 18px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.4);
}

/* テキスト */
p {
    font-size: clamp(0.95rem, 3vw, 1.2rem);
    line-height: 1.8;
    margin-bottom: 45px;
    font-weight: 500;
}

/* ボタンのコンテナ */
.link-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

/* ボタンのデザイン */
.btn {
    display: block;
    width: 100%;
    max-width: 380px;
    padding: 18px 0;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);         /* ガラスのようなぼかし効果 */
    -webkit-backdrop-filter: blur(8px); /* Safari用 */
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 0.95rem;
    letter-spacing: 0.02em;             /* ボタンも微調整（広がりすぎ防止） */
}

.btn:hover {
    background-color: #fff;
    color: #002855; /* ホバー時は濃い青に */
}

/* iPhone横向き（Landscape）時の特別調整 */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .overlay {
        padding: 24px 16px;
        min-height: 110dvh; /* 背景が下まで足りない現象を強制回避 */
    }

    .logo img {
        max-width: 220px; /* 横向きは少し小さめに */
    }

    h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
        letter-spacing: 0.03em;
    }

    p {
        margin-bottom: 25px;
    }

    .btn {
        padding: 12px 0;
        font-size: 0.85rem;
    }
}

/* アニメーション用 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

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

.delay-1 { transition-delay: 0.3s; }
.delay-2 { transition-delay: 0.6s; }
