@charset "utf-8";
/* CSS Document */

    /* --- 基本設定 --- */
    :root {
        --primary-color: #4CAF50; /* コケの色 */
        --secondary-color: #8BC34A;
        --text-color: #333;
        --container-bg: #ffffff;
        --border-color: #e0e0e0;
    }

    html {
        background-image: url('img/back2.png');
        background-repeat: repeat;
        background-attachment: fixed;
        background-size: auto;
        background-color: burlywood;
    }

    body {
        margin: 0;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        color: var(--text-color);
        line-height: 1.7;
        background-color: transparent;

        
    }

    /* --- 全体を囲むコンテナ（モバイル幅固定） --- */
    .container {
        max-width: 580px;
        margin: 0 auto;
        background-color: rgba(255, 255, 255, 0.8);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
        min-height: 100vh;
    }

    /* --- ヘッダーとナビゲーション --- */
    .header {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(5px);
        padding: 15px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--border-color);
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .header .logo img {
        max-height: 40px;
        display: block;
    }

    .nav-toggle {
        display: block;
        width: 30px;
        height: 24px;
        position: relative;
        cursor: pointer;
        border: none;
        background: transparent;
    }

    .nav-toggle span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: var(--primary-color);
        border-radius: 3px;
        left: 0;
        transition: all 0.3s ease;
    }

    .nav-toggle span:nth-child(1) { top: 0; }
    .nav-toggle span:nth-child(2) { top: 10px; }
    .nav-toggle span:nth-child(3) { top: 20px; }
    
    body.nav-open .nav-toggle span:nth-child(1) { top: 10px; transform: rotate(135deg); }
    body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; left: -30px; }
    body.nav-open .nav-toggle span:nth-child(3) { top: 10px; transform: rotate(-135deg); }

    .main-nav {
        display: none;
        position: fixed;
        top: 72px; /* ヘッダーの高さ */
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(5px);
        z-index: 999;
        overflow-y: auto;
    }

    body.nav-open .main-nav {
        display: block;
    }

    .main-nav ul {
        list-style: none;
        padding: 20px;
        margin: 0;
    }

    .main-nav li a {
        display: block;
        padding: 15px;
        text-decoration: none;
        color: var(--text-color);
        font-weight: bold;
        border-bottom: 1px solid var(--border-color);
        transition: background-color 0.2s;
    }
    .main-nav li a:hover {
        background-color: #f0f2f5;
    }
    .main-nav li a font {
        font-size: 0.9em !important;
    }

    /* --- コンテンツセクション --- */
    main {
        padding: 25px;
    }
    
    section {
        padding-top: 72px;
        margin-top: -72px;
    }

    h2, h3, h4 {
        color: var(--primary-color);
        border-bottom: 2px solid var(--secondary-color);
        padding-bottom: 10px;
        margin-top: 1.5em;
        margin-bottom: 1em;
    }
    
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.4em; }
    h4 { font-size: 1.2em; border-bottom: none; }

    img, iframe {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        display: block;
    }
    
    figure {
        margin: 0 0 1em 0;
        padding: 0;
    }

    /* ★修正点: モダンな中央寄せ */
    .content-center {
        text-align: center;
    }
    .content-center img, .content-center iframe {
        margin-inline: auto; /* margin-left: auto; margin-right: auto; の現代的な書き方 */
    }

    /* --- カード型レイアウト --- */
    .card {
        background: var(--container-bg);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        overflow: hidden;
    }
    .card h3 {
        margin-top: 0;
    }
    .card img {
        margin-bottom: 15px;
    }
    
    /* --- ギャラリー・グリッド --- */
    .grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        align-items: center;
    }
    .grid img {
        width: 100%;
        object-fit: cover;
    }

    /* --- ヒーローセクション（スライダー部分） --- */
    #home .ps_container {
        border: 1px solid var(--border-color);
        padding: 5px;
        border-radius: 12px;
        position: relative;
        margin-bottom: 20px;
    }

    /* ★修正点: お知らせリストのスクロール */
    #information .info-scroll {
        max-height: 200px;
        overflow-y: auto;
        padding-right: 15px; /* スクロールバーのスペース */
    }
    #information dt {
        font-weight: bold;
        color: var(--secondary-color);
        margin-top: 15px;
    }
    #information dd {
        margin-left: 0;
        padding-left: 10px;
        border-left: 3px solid var(--border-color);
        padding-bottom: 10px;
    }

    /* ★修正点: SNSセクションのデザイン刷新 */
    #social {
        background-color: #f0f2f5;
        border-radius: 12px;
        padding: 20px;
        margin-top: 25px;
    }
    #social h4 {
        text-align: center;
        border-bottom: none;
        margin-top: 0;
        margin-bottom: 20px;
    }
    .social-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .social-button {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 12px;
        border-radius: 8px;
        color: white;
        text-decoration: none;
        font-weight: bold;
        font-size: 1em;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    .social-button svg {
        flex-shrink: 0; /* アイコンが潰れないように */
    }
    .social-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }
    .social-button.x {
        background-color: #000000;
    }
    .social-button.instagram {
        background: #d6249f;
        background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
    }
    .social-button.tiktok {
    background-color: #000000;
}

.footer-sociallink {
    display: flex
;
    justify-content: space-evenly;
    padding: 10px;
}

    /* --- 埋め込み動画のレスポンシブ対応 --- */
    .video-wrapper {
        position: relative;
        padding-bottom: 56.25%; /* 16:9 */
        height: 0;
        overflow: hidden;
        margin: 20px 0;
        border-radius: 8px;
    }
    .video-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    /* --- フッター --- */
    .footer {
        text-align: center;
        padding: 25px;
        font-size: 0.8em;
        color: #777;
        border-top: 1px solid var(--border-color);
        background-color: #f0f2f5;
    }
    .footer a {
        color: #555;
        text-decoration: none;
    }

    /* --- トップ画像 --- */
    #top-image {
        margin-bottom: 20px;
    }
    #top-image img {
        width: 100%;
        border-radius: 0;
    }

    ul.marc {
        list-style: '✅';
        padding-left: 20px;
    }
    
	        /* 応募ボタン用の簡易スタイル */
        .apply-button {
            display: block;
            width: 80%;
            max-width: 300px;
            margin: 20px auto;
            padding: 15px;
            background-color: #4CAF50; /* KOKEくんらしい緑色 */
            color: white;
            text-align: center;
            text-decoration: none;
            border-radius: 8px;
            font-weight: bold;
            font-size: 1.2em;
            transition: background-color 0.3s;
        }
        .apply-button:hover {
            background-color: #45a049;
        }