/* --- 基本設定 --- */
:root {
    --primary-color: #D32F2F;
    --secondary-color: #FBC02D;
    --text-color: #333333;
    --bg-color: #fdfdfa;
    --font-serif: "游明朝体", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "MS PMincho", serif;
    --font-sans: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-serif);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s;
}
a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

h1, h2, h3 {
    font-weight: normal;
}

/* =================================================================== */
/* --- ヘッダー & ナビゲーション (PC) --- */
/* =================================================================== */

.header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--text-color);
}

.logo img {
    height: 40px;
    margin-right: 15px;
}

.logo h1 {
    font-size: 1.2rem;
    margin: 0;
}

.global-nav > ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.global-nav li a {
    display: block;
    padding: 10px 15px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-color);
}

.global-nav li.has-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
    list-style: none;
    min-width: 220px;
    z-index: 100;
}

.dropdown-menu li a {
    padding: 12px 20px;
    white-space: nowrap;
    font-size: 0.85rem;
}

.nav-toggle, .submenu-toggle {
    display: none;
}


/* --- 各ページ共通スタイル --- */
.hero {
position: relative;
color: white;
text-align: center;
height: 60vh;
min-height: 300px;
display: flex;
align-items: center;
justify-content: center;
}
.hero-image {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
filter: brightness(0.6);
z-index: -1;
}
.hero-message h2 {
font-size: 2.8rem;
margin-bottom: 10px;
text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}
.hero-message p {
font-size: 1.2rem;
font-family: var(--font-sans);
opacity: 0.9;
text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}
.introduction {
background-color: #fff;
padding: 60px 0;
text-align: center;
}
.introduction h2 {
font-size: 2rem;
margin-bottom: 40px;
}
.intro-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
}
.intro-card {
text-align: left;
border: 1px solid #eee;
padding-bottom: 20px;
display: flex;
flex-direction: column;
}
.intro-card img {
width: 100%;
height: 200px;
object-fit: cover;
}
.intro-card h3 {
font-size: 1.3rem;
padding: 0 20px;
margin-top: 20px;
}
.intro-card p {
padding: 0 20px;
font-size: 0.9rem;
flex-grow: 1;
}
.card-link {
display: inline-block;
margin-top: 10px;
padding: 0 20px;
font-family: var(--font-sans);
font-weight: bold;
}
/* --- 下層ページ用の共通スタイル --- */
.page-hero {
position: relative;
color: white;
text-align: center;
padding: 80px 0;
min-height: 200px;
background-size: cover;
background-position: center;
display: flex;
align-items: center;
justify-content: center;
}
.page-hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
}
.page-hero .container {
position: relative;
z-index: 1;
}
.page-hero h1 {
font-size: 2.5rem;
margin: 0;
}
.page-hero p {
font-size: 1.1rem;
font-family: var(--font-sans);
margin-top: 10px;
opacity: 0.9;
}
.content-area {
padding: 60px 0;
}
.content-section {
margin-bottom: 50px;
}
.content-section h2, .content-section h3 {
font-size: 1.8rem;
text-align: center;
margin-bottom: 30px;
}
.content-section strong {
font-weight: bold;
color: var(--primary-color);
}
.text-center-block {
text-align: center;
max-width: 800px;
margin-left: auto;
margin-right: auto;
}
.highlighted-section {
background-color: #fff;
border: 1px solid #eee;
padding: 30px 40px;
border-radius: 8px;
margin-top: 50px;
margin-bottom: 50px;
}
.highlighted-section h2 {
font-size: 1.6rem;
margin-top: 0;
}
.content-section dl {
margin-top: 20px;
}
.content-section dt {
font-weight: bold;
}
.content-section dd {
margin-left: 0;
padding-left: 1.2em;
text-indent: -1.2em;
}
.content-section dd::before {
content: 'A. ';
font-weight: bold;
}


/* --- フッター --- */
.footer {
    background-color: var(--text-color);
    color: #ccc;
    padding: 40px 0;
    text-align: center;
}
.footer p { margin: 5px 0; font-size: 0.9rem; }
.footer .ramen { font-size: 1.5rem; color: var(--secondary-color); margin: 20px 0; font-family: var(--font-serif); }
.footer small { display: block; margin-top: 20px; font-size: 0.8rem; color: #888; }

/* =================================================================== */
/* --- レスポンシブ対応 (768px以下) --- */
/* =================================================================== */
@media (max-width: 768px) {

    /* --- ハンバーガーメニュー全体 --- */
    .nav-toggle {
        display: block;
        position: relative;
        width: 30px;
        height: 24px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 100;
    }
    .nav-toggle span { display: block; position: absolute; left: 0; width: 100%; height: 2px; background-color: var(--text-color); transition: all 0.3s; }
    .nav-toggle span:nth-child(1) { top: 0; }
    .nav-toggle span:nth-child(2) { top: 11px; }
    .nav-toggle span:nth-child(3) { top: 22px; }
    .nav-toggle.is-active span:nth-child(1) { top: 11px; transform: rotate(45deg); }
    .nav-toggle.is-active span:nth-child(2) { opacity: 0; }
    .nav-toggle.is-active span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

    /* --- ナビゲーションパネル --- */
    .global-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(5px);
        visibility: hidden;
        opacity: 0;
        transition: visibility 0.3s, opacity 0.3s;
        overflow-y: auto;
    }
    .global-nav.is-active {
        visibility: visible;
        opacity: 1;
    }

    /* --- メニュー項目のリスト --- */
    .global-nav > ul {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 100%;
        padding: 80px 0;
        box-sizing: border-box;
    }
    .global-nav > ul > li {
        width: 100%;
        border-bottom: 1px solid #eee;
        position: relative;
    }
    .global-nav > ul > li:first-child {
        border-top: 1px solid #eee;
    }

    /* --- 親メニューのリンク --- */
    .global-nav li a {
        font-size: 1.1rem;
        padding: 20px;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
    .has-dropdown > a {
        padding-right: 60px;
        text-align: left;
        padding-left: 30px;
    }

    /* --- サブメニュー開閉ボタン --- */
    .submenu-toggle {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        width: 60px;
        height: 100%;
        background: none;
        border: none;
        cursor: pointer;
    }
    .submenu-toggle::before {
        content: '+';
        font-size: 2rem;
        color: var(--text-color);
        font-weight: 300;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    li.is-open > .submenu-toggle::before {
        content: '−';
    }

    /* --- サブメニューのリスト --- */
    .dropdown-menu {
        display: block;
        position: static;
        background-color: #f8f8f4;
        border: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        min-width: auto;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    }
    li.is-open > .dropdown-menu {
        max-height: 500px;
        padding: 10px 0;
    }
    .dropdown-menu li {
        border-top: 1px dotted #ddd;
    }
    .dropdown-menu li:first-child {
        border-top: none;
    }
    .dropdown-menu li a {
        padding: 10px 20px 10px 40px;
        font-size: 1rem;
        text-align: left;
    }
    
    /* (その他のスマホ用スタイル) */
    .logo h1 { font-size: 1rem; }
    .hero-message h2, .page-hero h1 { font-size: 2rem; }
}

/* =================================================================== */
/* --- 超小型スクリーン向け調整 (400px以下) --- */
/* =================================================================== */
@media (max-width: 400px) {
    .logo h1 { font-size: 0.8rem; white-space: nowrap; }
    .logo img { height: 32px; margin-right: 8px; }
}

/* =================================================================== */
/* --- PCでのホバー効果（769px以上） --- */
/* =================================================================== */
@media (min-width: 769px) {    
    .global-nav li.has-dropdown:hover > .dropdown-menu {
        display: block;
    }
}