/* ==========================================================
   ピラニカ ページ用CSS（互換性重視版）
   - CSS変数（var）は使用せず、すべて直接の値で記述
   - flexboxは使用せず、float + clearfixでレイアウト
   - position: sticky は使用せず、static固定（旧エンジン対策）
   ========================================================== */

* {
    box-sizing: border-box;
}
body {
    margin: 0; padding: 0;
    background-color: #111111;
    background-image: url(bodyBg_9Ib.png);
    background-repeat: no-repeat;
    background-position: center top;
    color: #FFFFFF;
    font-family: 'メイリオ', Meiryo, sans-serif;
    font-size: 15px; line-height: 1.8;
}

#container {
    max-width: 960px;
    margin: 0 auto;
    background-color: #202020;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* clearfix（float解除） */
nav#main-nav ul::after,
#contents-wrapper::after,
.info-box::after {
    content: "";
    display: block;
    clear: both;
}

header {
    padding: 20px 20px 0;
}
#header-main h1 {
    font-size: 12px; color: #ff299d; font-weight: normal; margin: 0 0 10px;
}
#header-logo a {
    display: block; width: 100%; max-width: 620px; height: 60px;
    background: url(logo_9Ib.png) no-repeat left center;
    background-size: contain; text-indent: -9999px; overflow: hidden;
}

/* --- ナビゲーション（sticky→static固定） --- */
nav#main-nav {
    background-color: #ff299d;
    position: static;
}
#menu-toggle {
    display: none; padding: 15px; cursor: pointer; color: #000; font-weight: bold;
}
#menu-toggle span.icon {
    display: inline-block; width: 25px; height: 2px; background: #000; position: relative; margin-right: 10px; vertical-align: middle;
}
#menu-toggle span.icon::before, #menu-toggle span.icon::after {
    content: ""; position: absolute; width: 100%; height: 2px; background: #000; left: 0;
}
#menu-toggle span.icon::before {
    top: -8px;
}
#menu-toggle span.icon::after {
    bottom: -8px;
}

/* --- ナビ：flex→float --- */
nav ul {
    list-style: none; margin: 0; padding: 0;
}
nav li {
    float: left;
    border-right: 1px solid #000;
}
nav li a {
    display: block; padding: 15px 20px; color: #000; text-decoration: none; font-weight: bold; text-transform: uppercase;
}
nav li a:hover { background-color: #ff94ce; }

/* --- 2カラム本文：flex→float --- */
#contents-wrapper {
    padding: 30px 20px;
}
main {
    float: left;
    width: 660px;
    padding-right: 20px;
}
aside {
    float: right;
    width: 260px;
}

/* --- メインビジュアル --- */
h2.top-title {
    width: 100%;
    height: 0;
    padding-top: 41.7%;
    background-image: url(img/top_lpgo.gif);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: contain;
    text-indent: -9999px;
    margin: 0 0 30px;
    overflow: hidden;
}

h3 {
    background-color: #ff299d; color: #000; padding: 8px 15px; margin: 30px 0 15px; font-size: 18px;
}
h4 {
    color: #ff299d; font-weight: bold; margin: 15px 0 5px;
}
hr {
    border: none; border-bottom: 1px solid #2d2d2d; margin: 20px 0;
}

/* --- topics：flex→float --- */
.info-box {
    margin-bottom: 20px;
}
.info-photo {
    float: left;
    margin-right: 15px;
}
.info-photo img {
    width: 160px; height: 160px; border: 2px solid #FFF;
}
.info-comment {
    overflow: hidden;
}

.banner-list {
    list-style: none; padding: 0; margin: 0;
}
.banner-list li {
    margin-bottom: 10px;
}
.banner-list a {
    display: block; height: 80px; text-indent: -9999px; background-size: contain !important; background-repeat: no-repeat !important;
}
#banner-schedule {
    background: url(banner_9Ib_01.png);
}
#banner-twitter {
    background: url(banner_9Ib_02.png);
}
#banner-facebook {
    background: url(banner_9Ib_03.png);
}

#associationinfo {
    background-color: #262626; margin-top: 20px; font-size: 14px;
}
#associationinfo h3 {
    background-color: #3e3e3e; color: #ff299d; margin: 0; padding: 10px 15px;
}
#associationinfo p {
    padding: 15px; margin: 0;
}

footer {
    background-color: #111111; padding: 30px 20px; text-align: center; font-size: 13px;
}
a {
    color: #FFF; transition: 0.3s;
}
a:hover {
    color: #ff299d; text-decoration: none;
}

/* --- スマホ表示：float解除 --- */
@media screen and (max-width: 768px) {
    body {
        background-image: none;
    }
    #contents-wrapper {
        padding: 15px;
    }
    main {
        float: none;
        width: 100%;
        padding-right: 0;
    }
    aside {
        float: none;
        width: 100%;
        margin-top: 40px;
        text-align: center;
    }
    #associationinfo h3, #associationinfo p {
        text-align: left;
    }

    #menu-toggle { display: flex; align-items: center; }
    nav ul {
        display: none; background-color: #ff299d;
    }
    nav ul.active { display: block; }
    nav li {
        float: none;
        border-right: none; border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    .info-box {
        text-align: center;
    }
    .info-photo {
        float: none;
        margin: 0 0 15px 0;
    }
    .info-comment {
        overflow: visible;
    }

    h2.top-title {
        padding-top: 41.7%; margin-bottom: 15px;
    }
    .banner-list a {
        margin: 0 auto;
    }
}
