@charset "utf-8";
/* 基本的なリセットと共通設定 (変更なし) */
body {
    font-family: 'Yu Gothic', 'Meiryo', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1000px; /* 最大横幅1000px */
    margin: 0 auto; /* 中央寄せ */
    padding: 0 20px; /* 左右の余白 */
}

/* ヘッダー (変更なし) */
.site-header {
    background-color: #007bff;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.site-header h1 {
    margin: 0;
    font-size: 2.0em;
}

.site-header h1 a {
    color: #fff;
    text-decoration: none;
}

.site-header .tagline {
    font-size: 1.1em;
    margin-top: 5px;
}

/* メインコンテンツ (変更なし) */
.main-content {
    padding-top: 40px;
    padding-bottom: 60px;
}

/* H2の基本スタイル（PC版） */
h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 0; /* 基本的にはリセットしておく */
}

/* トップページのボタン（PC版） */
.top-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    /* PC版では左右のパディングは不要 */
    padding: 0;
}

.button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
    text-align: center;
    min-width: 180px;
    box-sizing: border-box; /* パディングを含めて幅を計算 */
}

.button:hover {
    background-color: #0056b3;
    text-decoration: none;
}

.primary-button {
    background-color: #94d7f3;
}

.primary-button:hover {
    background-color: #0056b3;
}

/* ウェルカムメッセージ (変更なし) */
.welcome-message {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
    margin-top: 0; /* PC版ではマージンなし */
}

.welcome-message p {
    font-size: 1.1em;
    line-height: 1.8;
}

.script-text {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: justify;
    margin-top: 0; /* PC版ではマージンなし */  
}

/* 台本一覧（PC版） */
.script-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}


/* 台本一覧のアイテムのスタイル */
.script-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
    position: relative; /* 子要素の絶対配置の基準にする */
    z-index: 1; /* 後述のリンクとの重なり順のため */
}

.script-item:hover {
    transform: translateY(-5px);
    /* ホバー時にシャドウを強めるなど、視覚的なフィードバックを追加 */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.script-item h3 {
    margin-top: 0;
    font-size: 1.3em;
    border-bottom: 1px dashed #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #333; /* リンクではなくなるので色を調整 */
}

/* ★追加: article全体を覆うリンクのスタイル */
.stretched-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* 他のコンテンツの上に表示されるようにする */
    text-decoration: none; /* リンクの下線をなくす */
    color: transparent; /* リンクのテキストを透明にする */
}

/* ★修正: articleにホバーしたときに、タイトルに装飾を付ける */
.script-item:hover h3 {
    color: #0056b3; /* ホバー時にタイトル色を強調 */
    text-decoration: none; /* ホバー時にタイトルに下線 */
}

.back-to-top {
    text-align: center;
    margin-top: 50px;
}


/* フッター (変更なし) */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
}
/* Googleフォームの埋め込みをレスポンシブにする */
.google-form-container {
    position: relative;
    width: 100%;
    /* フォームのアスペクト比に合わせて高さを調整 (例: 幅640, 高さ800の場合、800/640 = 1.25 = 125%) */
    padding-bottom: 125%; /* アスペクト比を維持するための高さ。フォームの高さ/幅で計算 */
    height: 0;
    overflow: hidden;
    margin-top: 30px; /* フォームの上に少し隙間 */
}

.google-form-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0; /* フォームの枠線を消す */
}


@media (max-width: 768px) {
    /* .container の左右パディングはデフォルト（15px）を維持 */
    .container {
        padding: 0 15px;
    }

    .site-header h1 {
        font-size: 2em;
    }

    /* ★修正点1: Topページの3つのボタンの左右の隙間を確保 */
    /* top-buttons コンテナ自体に左右のpaddingを適用し、中身のボタンを内側に寄せる */
    .top-buttons {
        flex-direction: column; /* ボタンを縦に並べる */
        align-items: center;   /* 縦並びのボタンを中央揃え */
        padding: 0 20px; /* 左右に20pxのパディングを追加 */
        gap: 15px; /* ボタン間の縦の隙間 */
        margin-top: 15px;
        /* margin-left/right は親の padding でカバーするため不要 */
    }

    .button {
        width: 100%; /* スマホではボタンを横幅いっぱいに */
        max-width: 300px; /* ボタンが大きくなりすぎないように最大幅を設定（任意） */
        font-size: 1.1em;
        padding: 12px 20px;
        /* ボタン自身には左右のマージン・パディングは設けない（親要素で調整） */
        margin-left: 0;
        margin-right: 0;
    }

    /* ★修正点2: Topページの「ようこそ、びぶ屋台本堂へ」のセクションの上に隙間を追加 */
    .welcome-message {
        padding: 20px;
        margin-top: 30px; /* 上部に30pxの余白を追加 */
    }

        /* 台本本文全体枠 */
    .script-text {
        padding: 20px;
        margin-top: 30px; /* 上部に30pxの余白を追加 */
    }

    /* ★修正点3: 台本一覧ページ（list.html）の「台本一覧」H2の上に隙間を追加 */
    /* 全体の H2 に適用されるため、必要に応じて調整してください */
    h2 {
        font-size: 1.8em;
        margin-top: 40px; /* 上部に40pxの余白を追加 */
        margin-bottom: 20px; /* 必要であれば下部の余白も調整 */
    }

    /* 台本一覧のリスト自体の調整 (変更なし、または微調整) */
    .script-list {
        grid-template-columns: 1fr; /* スマホでは1列表示 */
        gap: 20px;
        /* 必要であれば、ここでさらに台本リスト自体のマージンを調整 */
        /* margin-top: 20px; /* H2のマージンと合わせて調整 */
    }

    .script-item {
        padding: 20px;
    }

    .back-to-top {
    margin-bottom: 50px;
}

    .google-form-container {
        /* スマートフォンでのフォームのアスペクト比を調整することも可能 */
        padding-bottom: 150%; /* 例えば、縦長にしたい場合 */
    }

}