/* =============================================
   1. ホームページ全体の基本設定（既存のスタイルを維持）
   ============================================= */
body {
    font-family: "Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Meiryo", sans-serif;
    color: #333333;
    margin: 0;
    padding: 0;
}

.baton_flame {
    width: 100%;
}

.main_block {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.main_block h2 {
    text-align: center;
    font-size: 25px;
    margin-top: 3em;
    margin-bottom: 1.5em;
}

.main_block p {
    font-size: 16px;
    line-height: 1.7;
    text-align: justify;
    margin-bottom: 3em;
}

.main_block img {
    width: 100%;
}

.flex_box {
    display: block;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.flex_box_inner {
    width: 100%;
    margin: 15px 0;
}

.main_block .caption {
    font-size: 15px;
    color: #333333;
    margin-top: 5px;
    text-align: left;
    letter-spacing: 0.1em;
}

.main_block .caption .brand-name {
    font-size: 20px;
    font-weight: bold;
    display: block;
    text-align: center;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* =============================================
   2. ロゴアニメーション部分（パッと出る演出）
   ============================================= */

/* 背景スライド：シュッと速めに動く設定 */
@keyframes slideReveal {
    0% { transform: skewX(-30deg) scaleX(0); }
    100% { transform: skewX(-30deg) scaleX(1.5); }
}

/* ロゴ出現：フェードではなく瞬時に表示 */
@keyframes logoPop {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* 全画面の白い外枠 */
.p-anima-3.c-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
    margin-bottom: 50px;
}

/* 中央の黒ボックス */
.logo-wrapper {
    position: relative;
    width: 280px; 
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: transparent;
}

/* ボックス内を走る黒い板 */
.logo-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: -20%;
    width: 140%;
    height: 100%;
    background-color: #333;
    z-index: 1;
    transform-origin: left top;
    transform: skewX(-30deg) scaleX(0);
    animation: slideReveal 1s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
    animation-delay: 0.3s;
}

/* ロゴ画像：パッと出す設定 */
.logo-white {
    position: relative;
    z-index: 2;
    width: 200px;
    height: auto;
    display: block;
    opacity: 0; /* 最初は消しておく */
    
    animation: logoPop 0.1s linear forwards;
    animation-delay: 1.0s; 
}

/* =============================================
   3. スマホ用の調整
   ============================================= */
@media screen and (max-width: 640px) {
    .p-anima-3.c-btn { height: 80vh; }
    .logo-wrapper { width: 220px; height: 100px; }
    .logo-white { width: 150px; }
}