﻿@charset "utf-8";

/* ==========================================
   1. base
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
}

/* ==========================================
   2. サイト全体フレームワーク
   ========================================== */
form#form1 {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    width: 100%;
}

.site-container {
    max-width: 1050px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    background-color: #fff;
    
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}

.site-header {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    flex-shrink: 0;
}

.main-layout {
    margin-top: 15px;
    padding: 0 10px;
    flex: 1 0 auto;
}

.site-footer {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    flex-shrink: 0;
}

.site-container-full {
    max-width: 100% !important;
}

.main-layout-single {
    width: 100%;
}

.main-layout-single .main-content {
    width: 100%;
}

/* ==========================================
   3. 共通フォーム・入力パーツ
   ========================================== */
.form-control {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 3px;
    color: #444;
}

.btn-action {
    padding: 8px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
}

.btn-submit {
    background-color: #507CD1;
    color: #fff;
}

.btn-clear {
    background-color: #e0e0e0;
    color: #333;
}

/* ==========================================
   4. 共通ナビゲーションボタンパーツ
   ========================================== */
.page-nav-section {
    margin-bottom: 15px;
}

.nav-button-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
    background-color: #f0f4f8;
    color: #2461BF;
    border: 1px solid #A1B9C8;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.btn-nav:hover {
    background-color: #2461BF;
    color: #ffffff;
    border-color: #2461BF;
    text-decoration: none;
}

.btn-nav-top {
    background-color: #eef3fc;
}

.nav-icon {
    margin-right: 6px;
}

/* ==========================================
   5. 共通広告ユニット枠
   ========================================== */
.ad-container {
    text-align: center;
    overflow: hidden;
    width: 100%;
    margin-bottom: 15px;
    background: transparent;
}

/* 広告が入らなかった場合は非表示 */
.ad-container:has(ins[data-ad-status="unfilled"]) {
    display: none !important;
}

 /* デバッグ用：薄いグレーの背景&&高さ 
.ad-container {
    min-height: 250px!important;
    background-color: #f0f0f0;
}*/

/* ==========================================
   6. レスポンシブ共通ルール (768px以下)
   ========================================== */
@media screen and (max-width: 768px) {
    .main-layout {
        margin-top: 15px;
        padding: 0 10px;
    }
    
    .pc-only {
        display: none !important;
    }
}
@media screen and (min-width: 769px) {
    .sp-only {
        display: none !important;
    }
}