/* 変数の定義 */
:root {
    --main-color: #00c8c8;
    /* メインカラー（シアン系） */
    --dark-bg: #121212;
    /* ダークモードの背景色 */
    --dark-surface: #1e1e1e;
    /* コンテンツエリアの背景色 */
    --dark-text: #e0e0e0;
    /* テキスト色 */
    --dark-sub-text: #a0a0a0;
    /* サブテキスト色 */
    --border-color: #333333;
}

/* 基本設定 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ORおおみや鉄道のフォントと背景色を考慮した基本設定 */
body {
    font-family: 'Noto Sans JP', sans-serif, 'Arial', sans-serif; /* Noto Sans JPを追加 */
    background-color: #1a1a1a; /* ORおおみや鉄道の背景色 */
    color: var(--dark-text);
    line-height: 1.6;
    padding-top: 80px;
    /* ヘッダーの高さ分、本文をずらす */
}

.container { /* ORおおみや鉄道用 */
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    color: var(--main-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 1. ヘッダー (おおみやチャンネルのスタイル) */
header {
    background-color: var(--dark-surface);
    color: var(--dark-text);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    /* ORおおみや鉄道のロゴもこのサイズに統一 */
    height: 40px; 
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5em;
    color: var(--main-color);
}

.global-nav ul {
    list-style: none;
    display: flex;
}

.global-nav li {
    margin-left: 20px;
}

.global-nav a {
    color: var(--dark-text);
    padding: 5px 10px;
    transition: color 0.3s;
}

.global-nav a:hover {
    color: var(--main-color);
    text-decoration: none;
}

/* AdSense広告枠（ヘッダー下）- おおみやチャンネル用 */
.ad-banner {
    width: 100%;
    text-align: center;
    background-color: #0d0d0d;
    padding: 5px 0;
    font-size: 0.8em;
    color: var(--dark-sub-text);
}

/* メインコンテンツ */
main {
    /* ORおおみや鉄道は.containerを使うが、既存のメインページ用設定を保持 */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0; /* ORおおみや鉄道のセクションpaddingに任せる */
}

h2 {
    /* 既存のおおみやチャンネル用設定 */
    color: var(--main-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}
/* ORおおみや鉄道用h2の上書き */
section h2 { 
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--main-color);
    border-bottom: none; /* ORおおみや鉄道のスタイルに合わせる */
    padding-bottom: 0;
}


/* 2. メインビジュアル - おおみやチャンネル用 */
.hero {
    text-align: center;
    margin-bottom: 40px;
}
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    margin: 20px 0;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid var(--main-color);
}
.catchphrase {
    font-size: 1.2em;
    color: var(--dark-sub-text);
    margin-top: 15px;
}


/* --- ORおおみや鉄道専用セクションのスタイル --- */

/* Hero Section */
#home.hero {
    background-color: #36454F; /* ダークトーンの背景色を設定 */
    color: #fff;
    text-align: center;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 0; /* 既存のmarginをリセット */
}

/* 会社のロゴを背景に大きく表示する擬似要素 */
.hero::before {
    content: ''; 
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; 
    height: 100%; 
    background-image: url('logo_background.png'); 
    background-size: contain; 
    background-repeat: no-repeat; 
    background-position: center; 
    opacity: 1.0; 
    z-index: 1; 
    pointer-events: none; 
}
.hero::after { 
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); 
    z-index: 2; 
}

.hero-content {
    position: relative;
    z-index: 3; 
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #fff;
    border-bottom: none; /* ORおおみや鉄道のスタイルに合わせる */
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

/* ボタン */
.btn {
    display: inline-block;
    background-color: #00c8c8; 
    color: #1a1a1a; 
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #003232; 
}

/* Section Styles */
section {
    padding: 4rem 0;
}

section:nth-of-type(odd) {
    background-color: #222222; 
}

#about .content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

#about .content-wrapper p {
    max-width: 800px;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    background-color: #282828; 
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3); 
    text-align: center;
    transition: transform 0.3s;
}

.service-item h3 {
    color: #00c8c8; 
    font-size: 1.5rem;
    margin-top: 0;
}

.service-item p {
    color: #e0e0e0;
}

/* サービスリンクのスタイル */
.service-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-link .service-item {
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-link:hover .service-item {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* --- おおみやチャンネル専用のスタイル (一部ORおおみや鉄道と重複) --- */

/* 3. コンテンツへの誘導ボタン */
.content-nav {
    margin-bottom: 20px;
}

.buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* 横長の大きなボタンのスタイル */
.nav-button {
    background-color: var(--dark-surface);
    color: var(--dark-text);
    border: 2px solid var(--main-color);
    padding: 25px 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 8px;
    font-size: 1.3em;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.nav-button:hover {
    background-color: #004a4a;
    transform: translateY(-3px);
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 200, 200, 0.3);
}

/* アイコンボックスのスタイル */
.icon-box {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background-color: var(--main-color);
    border-radius: 4px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.button-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* フォントアイコン用 */
.icon-box i {
    font-size: 30px;
    color: var(--dark-bg);
}

.category-number {
    font-size: 1.5em;
    color: var(--main-color);
    margin-right: 20px;
}

.category-title {
    flex-grow: 1;
    text-align: left;
}

/* AdSense広告枠（ボタンの間）- おおみやチャンネル用 */
.ad-box {
    background-color: #0d0d0d;
    border: 1px dashed var(--dark-sub-text);
    text-align: center;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-sub-text);
    font-size: 0.9em;
    border-radius: 4px;
    grid-column: span 2;
}

/* プライバシーポリシーの各項目（カード）のスタイル (必要な場合のために残す) */
.privacy-policy .card {
    background-color: var(--dark-surface);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--main-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
/* トップへ戻るボタン用（buttons-gridを1カラム表示にする）*/
.privacy-policy + .content-nav .buttons-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto 40px auto;
}


/* 5. フッター */
footer {
    background-color: var(--dark-surface);
    color: var(--dark-sub-text);
    border-top: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
    font-size: 0.9em;
}

.footer-content nav a {
    color: var(--dark-sub-text);
    margin: 0 10px;
}

.footer-content nav a:hover {
    color: var(--main-color);
}


/* レスポンシブデザイン（モバイル対応） */
@media (max-width: 768px) {
    /* ヘッダー */
    body {
        padding-top: 110px;
    }

    .header-content {
        flex-direction: column;
        padding: 10px;
    }

    .logo {
        margin-bottom: 10px;
    }

    .global-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    .global-nav li {
        margin: 5px 10px;
    }

    .logo h1 {
        font-size: 1.2em;
    }

    /* ORおおみや鉄道 */
    .hero h2 {
        font-size: 2rem;
    }
    section h2 {
        font-size: 2rem;
    }
    
    /* おおみやチャンネル用ボタン */
    .buttons-grid {
        grid-template-columns: 1fr;
    }

    .ad-box {
        grid-column: span 1;
    }

    .icon-box {
        width: 40px;
        height: 40px;
        min-width: 40px;
        margin-right: 15px;
    }

    .icon-box i {
        font-size: 20px;
    }

    .category-number {
        font-size: 1.2em;
        margin-right: 15px;
    }

    .category-title {
        font-size: 1em;
    }
    
    /* モバイルでのプライバシーポリシー調整 */
    .privacy-policy .card {
        padding: 15px;
    }
    .privacy-policy + .content-nav .buttons-grid {
        max-width: 100%;
    }
}