body {
    font-family: "Yusei Magic", sans-serif;
    font-weight: 400;
    font-style: normal;
    margin: 0;
    padding: 0;
    background-color: transparent; /* 背景はglobal-background-carouselが担当 */
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100vw;
    position: relative;
    /* 以前のグラデーション背景はglobal-background-carouselに任せるので削除 */
}

/* 画面全体の背景カルーセルを定義 (トップページでも使用) */
#global-background-carousel {
    position: fixed; /* 画面に固定 */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2; /* 他のコンテンツの下に配置 */
    background-color: black; /* 画像がフェードアウトしたときの背景色 */
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover; /* 画像が要素全体を覆うように */
    background-position: center; /* 画像を中央に配置 */
    opacity: 0; /* デフォルトは非表示 */
    transition: opacity 1.5s ease-in-out; /* クロスフェードのアニメーション */
}

.carousel-image.active {
    opacity: 1; /* activeクラスで表示 */
}

#top-container {
    width: 100%;
    max-width: 1200px; /* コンテナの最大幅 */
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    color: white; /* 全体的に白文字に */
    z-index: 1; /* 背景の上に表示 */
    background-color: rgba(0, 0, 0, 0.5); /* コンテンツの背景を半透明の黒に */
    border-radius: 10px; /* 少し角丸に */
    box-shadow: 0 0 20px rgba(0,0,0,0.6); /* 影を濃くして浮き上がらせる */
    margin-top: 40px; /* 上からの余白 */
    margin-bottom: 40px;
}

header {
    margin-bottom: 40px;
}

#top-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.5));
}

h1 {
    font-size: 2.8em;
    color: #FFD700;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

h2 {
    font-size: 2em;
    color: #FFECB3;
    margin-top: 40px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.intro-text {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

hr {
    border: none;
    border-top: 2px dashed rgba(255,255,255,0.5);
    margin: 40px auto;
    width: 60%;
}

.highlight {
    font-weight: bold;
    color: #FF4500;
    background-color: rgba(255,255,0,0.3);
    padding: 2px 5px;
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(255,255,0,0.5);
}

#card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.card {
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 25px;
    width: 300px;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation-fill-mode: forwards;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.card h3 {
    font-size: 1.6em;
    color: #CCEEFF;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.card p {
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #E0E0E0;
}

.card-button {
    display: inline-block;
    background-color: rgba(255, 165, 0, 0.8);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid rgba(255, 165, 0, 0.9);
}

.card-button:hover {
    background-color: rgba(255, 140, 0, 1);
    transform: translateY(-2px);
}

/* カードのフェードインアニメーション */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-delay-1 {
    animation: fadeInSlideUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.fade-in-delay-2 {
    animation: fadeInSlideUp 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

.fade-in-delay-3 {
    animation: fadeInSlideUp 0.8s ease-out forwards;
    animation-delay: 0.6s;
}
/* シェアボタン */
.share-buttons {
    margin-top: 50px;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.share-buttons h3 {
    margin-bottom: 20px;
    color: #00ffff;
}

.share-button {
    background-color: #333;
    color: white;
    border: none;
    padding: 12px 20px;
    margin: 0 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}
/* 個別のシェアボタンはJavaScriptで背景画像を設定するか、アイコンフォントを使用 */
.share-button.facebook { background-color: #3b5998; }
.share-button.facebook:hover { background-color: #2d4373; }
.share-button.twitter { background-color: #00acee; }
.share-button.twitter:hover { background-color: #0088bb; }
.share-button.line { background-color: #00b900; }
.share-button.line:hover { background-color: #009900; }
.logo_shikatakashi img{
    text-align: center;
    width:200px;
}
/* レスポンシブ対応 */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.6em;
    }
    .intro-text {
        font-size: 1em;
    }
    .card {
        width: 80%;
    }
    #top-logo {
        max-width: 200px;
    }
    #top-container {
        padding: 10px;
    }
}

