/* ▼▼▼ テーマカラーをここで一括管理なのだ！ ▼▼▼ */
:root {
    --color-primary: #558b2f;       /* メインのずんだグリーン */
    --color-primary-dark: #33691e;  /* ちょっと濃いめのずんだグリーン */
    --color-accent: #fbc02d;       /* アクセントのイエロー */
    --color-text: #4e342e;         /* 温かみのある茶色なのだ！ */
    --color-text-light: #6c757d;
    --color-background: #fdfaf3;   /* 優しいクリーム色 */
    --color-white: #ffffff;
    --color-border: #e0e0e0;
    --font-family-base: "M PLUS Rounded 1c", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Reset and Base Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-family-base); line-height: 1.6; color: var(--color-text); background-color: var(--color-background); font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { margin-top: 1.2em; margin-bottom: 0.6em; font-weight: 600; line-height: 1.3; }
h1 { font-size: 2.2rem; } h2 { font-size: 1.8rem; color: var(--color-text); } h3 { font-size: 1.4rem; color: var(--color-text); }
ul { list-style: none; }

/* Buttons */
.btn { display: inline-block; background-color: var(--color-primary); color: var(--color-white); padding: 10px 20px; border-radius: 5px; font-weight: bold; transition: background-color 0.2s ease-in-out, transform 0.2s ease; border: none; cursor: pointer; }
.btn:hover { background-color: var(--color-primary-dark); color: var(--color-white); text-decoration: none; transform: translateY(-2px); }

/* Header */
header { background-color: var(--color-primary); padding: 10px 0; border-bottom: 3px solid var(--color-primary-dark); position: sticky; top: 0; z-index: 1000; }
.header-content { max-width: 1140px; margin: 0 auto; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; }
.logo-area { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-area .logo-icon { height: 50px; width: auto; }
.logo-area .logo-text-wrapper { display: flex; flex-direction: column; color: var(--color-white); }
.logo-area .main-title { font-size: 1.5rem; font-weight: bold; line-height: 1.1; white-space: nowrap; }
.logo-area .sub-title { font-size: 0.85rem; color: var(--color-background); line-height: 1.2; }

/* Navigation Wrapper */
.navigation-wrapper { display: flex; align-items: center; gap: 20px; }

/* Navigation */
nav ul { display: flex; gap: 8px; }
nav ul li { margin: 0; }
nav ul li a { padding: 8px 10px; color: var(--color-white); font-weight: 500; border-radius: 6px; transition: background-color 0.2s ease; }
nav ul li a:hover, nav ul li a.active { background-color: rgba(255, 255, 255, 0.15); text-decoration: none; }

/* Hamburger Menu */
.hamburger-menu { display: none; }

/* Language Selector */
.language-selector { margin-left: auto; }

/* Custom Select (Language) */
.custom-select-wrapper { position: relative; user-select: none; width: 130px; }
.custom-select-trigger { display: flex; align-items: center; padding: 8px 12px; background-color: var(--color-primary-dark); color: var(--color-white); border: 1px solid var(--color-white); border-radius: 5px; cursor: pointer; gap: 8px; }
.custom-options { position: absolute; top: 100%; left: 0; right: 0; background-color: var(--color-primary-dark); border: 1px solid var(--color-white); border-radius: 5px; margin-top: 4px; overflow: hidden; display: none; z-index: 10; }
.custom-select-wrapper.open .custom-options { display: block; }
.custom-option { display: flex; align-items: center; padding: 10px 12px; color: var(--color-white); cursor: pointer; gap: 8px; transition: background-color 0.2s; }
.custom-option:hover { background-color: var(--color-primary); }
.flag-icon { font-size: 1.2em; }

/* Hero Section (Slideshow) */
.hero { position: relative; width: 100%; height: 60vh; min-height: 300px; overflow: hidden; background-color: #2c3e50; }
.slideshow { width: 100%; height: 100%; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; background-repeat: no-repeat; opacity: 0; transition: opacity 1s ease-in-out; }
.slide.active { opacity: 1; }

/* News Section */
.news { padding: 50px 15px; background-color: var(--color-white); text-align: center; }
.news h2 { margin-top: 0; margin-bottom: 10px; }
.news-subtitle { font-size: 1.1rem; color: var(--color-text-light); margin-bottom: 40px; }
.news-list { max-width: 800px; margin: 0 auto; text-align: left; }
.news-item { display: block; color: var(--color-text); text-decoration: none; transition: background-color 0.2s ease; }
.news-item:hover { background-color: #f8f8f8; }
.news-item-link { display: flex; align-items: center; gap: 15px 20px; padding: 20px 15px; border-bottom: 1px solid #eee; }
.news-date { font-weight: 500; color: var(--color-text-light); flex-shrink: 0; }
.news-category { flex-shrink: 0; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; color: var(--color-white); }
.news-category.info { background-color: #3498db; }
.news-category.diary { background-color: #e67e22; }
.news-category.zunda { background-color: var(--color-primary); }
.news-title { font-weight: bold; flex-grow: 1; margin: 0; }
.news-arrow { font-size: 1.2rem; color: var(--color-text-light); opacity: 0; transition: opacity 0.2s, transform 0.2s; margin-left: auto; }
.news-item:hover .news-arrow { opacity: 1; transform: translateX(5px); }
.news-item-link:hover .news-title { color: var(--color-primary-dark); }

/* Character Section */
.character-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.character-box p { font-size: 1rem; }

.character-box img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero { height: 50vh; }
    .navigation-wrapper { position: fixed; top: 0; right: -100%; width: 300px; height: 100vh; background-color: var(--color-primary-dark); flex-direction: column; padding: 60px 20px 20px; transition: right 0.3s ease-in-out; box-shadow: -5px 0 15px rgba(0,0,0,0.2); }
    .navigation-wrapper.active { right: 0; }
    nav ul { flex-direction: column; width: 100%; gap: 15px; }
    nav ul li a { display: block; padding: 10px; text-align: center; }
    .language-selector { margin-left: 0; margin-top: 20px; }
    .hamburger-menu { display: block; z-index: 1001; background: none; border: none; cursor: pointer; padding: 10px; }
    .hamburger-menu span { display: block; width: 25px; height: 3px; background-color: var(--color-white); margin: 5px 0; transition: all 0.3s ease-in-out; }
    .hamburger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger-menu.active span:nth-child(2) { opacity: 0; }
    .hamburger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
}

@media (max-width: 768px) {
    body { font-size: 15px; }
    h1 { font-size: 1.8rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.2rem; }
    .hero { height: 40vh; }
    .character-list, .cast-grid { grid-template-columns: 1fr; }
    .character-box p { font-size: 1rem; }
    .news-item-link { flex-direction: column; align-items: flex-start; gap: 10px; }
    .news-title { margin-top: 5px; }
    .character-detail-container, .about-block, .about-block.reverse { flex-direction: column; }
}

/* Video Banners Section */
.video-banners {
    padding: 40px 15px;
    text-align: center;
    background-color: var(--color-white);
}
.video-banners h2 {
    margin-top: 0;
    margin-bottom: 30px;
}
.video-banners .banners-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.video-banners .banner {
    display: block;
    max-width: 400px; /* Adjust max-width as needed */
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.video-banners .banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
.video-banners .banner img {
    width: 100%;
    height: auto;
}

/* Character Section Adjustments */
.character-detail-section { max-width: 1000px; margin: 0 auto; background-color: var(--color-white); padding: 30px 40px; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.character-detail-container { display: flex; flex-wrap: wrap; gap: 40px; }
.character-image-gallery { flex: 1; min-width: 300px; }
#main-image { width: 100%; border-radius: 10px; border: 2px solid var(--color-border); margin-bottom: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.thumbnail-container { display: flex; gap: 10px; justify-content: center; }
.thumbnail { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; border: 3px solid var(--color-border); cursor: pointer; transition: all 0.2s ease; }
.thumbnail:hover { transform: scale(1.1); border-color: var(--color-accent); }
.thumbnail.active { border-color: var(--color-primary); transform: scale(1.1); box-shadow: 0 0 10px var(--color-primary); }
.character-info { flex: 1.5; min-width: 300px; }
.character-name { font-size: 2.5rem; color: var(--color-primary-dark); margin-top: 0; margin-bottom: 15px; }
.profile-list { display: grid; grid-template-columns: auto 1fr; gap: 5px 15px; margin: 20px 0; }
.profile-list dt { font-weight: bold; color: var(--color-primary); }
.character-info p { line-height: 1.8; }
.back-button-area { width: 100%; text-align: center; margin-top: 30px; padding-top: 30px; border-top: 1px dashed var(--color-border); }
.back-button-area .btn { padding: 12px 30px; font-size: 1rem; }
.self-introduction-block { background-color: var(--color-background); border-radius: 10px; padding: 30px 40px; margin-top: 40px; border: 2px dashed var(--color-primary); font-family: 'RocknRoll One', sans-serif; text-align: left; line-height: 2.0; }
.self-introduction-block h4 { font-family: var(--font-family-base); font-size: 1.5rem; color: var(--color-primary-dark); margin-top: 0; margin-bottom: 25px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.self-introduction-block p { font-size: 1.1rem; margin-bottom: 1.5em; }
.signature { text-align: right; font-size: 1.2rem !important; font-weight: bold; margin-top: 30px; margin-bottom: 0 !important; }


/* Footer */
footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 30px 15px; /* 縦のpaddingを少し増やす */
    text-align: center;
}
footer p {
    margin: 0 0 15px 0;
}
footer a {
    color: var(--color-white);
    text-decoration: underline;
}
footer a:hover {
    color: var(--color-accent);
    text-decoration: none;
}
.ssl-seal {
    margin-top: 15px;
    display: inline-block; /* 中央揃えのために追加 */
}

/* --- ▼▼▼ Works ページ用スタイル ▼▼▼ --- */
.works-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 15px;
}
.page-title {
    text-align: center;
    margin-bottom: 15px;
}
.page-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    justify-content: center; /* グリッドアイテムを中央揃え */
}
.work-card {
    background-color: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}
.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.work-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.work-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.work-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--color-primary-dark);
}
.work-info p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}
.work-meta {
    font-size: 0.9rem;
    color: var(--color-text-light);
    border-top: 1px solid var(--color-border);
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.work-meta a {
    font-weight: bold;
    color: var(--color-primary);
    text-decoration: underline;
}
.work-meta a:hover {
    color: var(--color-primary-dark);
}

/* --- ▼▼▼ Blog ページ用スタイル ▼▼▼ --- */
.blog-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 15px;
}
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.blog-post-item {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    transition: box-shadow 0.3s ease;
}
.blog-post-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 10px;
}
.post-date {
    font-weight: bold;
}
.post-category {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}
.post-title {
    margin-top: 0;
}
.post-title a {
    color: var(--color-text);
    text-decoration: none;
}
.post-title a:hover {
    color: var(--color-primary-dark);
}
.post-excerpt {
    margin-bottom: 20px;
}
.read-more-btn {
    display: inline-block;
    font-weight: bold;
    color: var(--color-primary);
    text-decoration: underline;
}
.read-more-btn:hover {
    color: var(--color-primary-dark);
}

/* --- ▼▼▼ Article ページ用スタイル ▼▼▼ --- */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 15px;
}
.blog-post-full {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}
.article-title {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 15px;
}
.article-eyecatch {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 30px;
}
.article-content {
    line-height: 1.8;
}
.article-content h3 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
    border-left: 5px solid var(--color-primary);
    padding-left: 15px;
}
.article-content ul, .article-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}
.article-content ul li {
    list-style: disc;
}
.article-content ol li {
    list-style: decimal;
}
.article-share {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    text-align: center;
}
.back-to-blog-link {
    text-align: center;
    margin-top: 40px;
}

/* --- ▼▼▼ About Us ページ用スタイル ▼▼▼ --- */
.about-section {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.about-block {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px dashed var(--color-border);
}
.about-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.about-block.reverse {
    flex-direction: row-reverse;
}
.about-text, .about-image {
    flex: 1;
    min-width: 280px;
}
.about-text.full-width {
    flex-basis: 100%;
}
.about-text.center-text {
    text-align: center;
}
.about-block h3 {
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.about-block p {
    font-size: 1rem;
    line-height: 1.8;
}
.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.activity-list {
    list-style: none;
    padding-left: 0;
}
.activity-list li {
    font-size: 1rem;
    padding: 10px 0;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
}
.activity-list li:last-child {
    border-bottom: none;
}
.activity-list li > span {
    font-size: 0.9em;
    color: #555;
    display: block;
    padding-left: 1.2em;
}
.about-block.final-message {
    text-align: center;
    background: var(--color-background);
    border-radius: 10px;
    padding: 30px;
}
.final-message h3 {
    justify-content: center;
}
.final-message p:last-child {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--color-primary-dark);
}

/* --- ▼▼▼ Cast & Character Detail ページ用スタイル ▼▼▼ --- */
.cast-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 15px;
}
.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.cast-group-title {
    font-size: 1.8rem;
    color: var(--color-primary-dark);
    text-align: center;
    padding: 15px 0;
    margin: 40px 0 20px 0;
    border-top: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    background-color: rgba(85, 139, 47, 0.05);
}
.alliance-title {
    margin-top: 60px; /* 上の要素との間隔を広げる */
}
.character-detail-section {
    max-width: 1000px;
    margin: 40px auto;
    background-color: var(--color-white);
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.character-detail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}
.character-image-gallery {
    flex: 1;
    min-width: 300px;
}
#main-image {
    width: 100%;
    border-radius: 10px;
    border: 2px solid var(--color-border);
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.thumbnail-container {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid var(--color-border);
    cursor: pointer;
    transition: all 0.2s ease;
}
.thumbnail:hover {
    transform: scale(1.1);
    border-color: var(--color-accent);
}
.thumbnail.active {
    border-color: var(--color-primary);
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--color-primary);
}
.character-info {
    flex: 1.5;
    min-width: 300px;
}
.character-name {
    font-size: 2.5rem;
    color: var(--color-primary-dark);
    margin-top: 0;
    margin-bottom: 15px;
}
.profile-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 5px 15px;
    margin: 20px 0;
}
.profile-list dt {
    font-weight: bold;
    color: var(--color-primary);
}
.character-info p {
    line-height: 1.8;
}
.back-button-area {
    width: 100%;
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px dashed var(--color-border);
}
.back-button-area .btn {
    padding: 12px 30px;
    font-size: 1rem;
}
.self-introduction-block {
    background-color: #fdfdfa; /* 少しクリーム色がかった白 */
    background-image: linear-gradient(to bottom, transparent 96%, #e0e0e0 96%);
    background-size: 100% 2.2em;
    background-position-y: 0.4em; /* 文字の位置を微調整 */
    border-radius: 10px;
    padding: 30px 40px;
    margin-top: 40px;
    border: 2px solid #e8e8e8; /* ボーダーを少し太く */
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    font-family: 'RocknRoll One', sans-serif;
    text-align: left;
    line-height: 2.2;
}
.self-introduction-block h4 {
    font-family: var(--font-family-base);
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    margin-top: 0;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.self-introduction-block p {
    font-size: 1.1rem;
    margin-bottom: 1.5em;
}
.signature {
    text-align: right;
    font-size: 1.2rem !important;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 0 !important;
}

/* --- ▼▼▼ FAQ ページ用スタイル ▼▼▼ --- */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 15px;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.faq-item {
    border: 1px solid var(--color-border);
    border-radius: 5px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    background-color: var(--color-white);
    padding: 20px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-answer p {
    margin: 0;
    padding-bottom: 20px;
}
.faq-item.active .faq-answer {
    padding: 0 20px 20px 20px;
    max-height: 300px; /* 十分な高さを確保 */
}
.faq-icon {
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(-135deg);
}

/* --- ▼▼▼ Gallery ページ用スタイル ▼▼▼ --- */
.gallery-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 15px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.gallery-item a {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.gallery-item a:hover img {
    transform: scale(1.05);
}
#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
#modal-content {
    max-width: 90%;
    max-height: 90%;
}
#modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
#modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

/* --- ▼▼▼ Static Pages (Contact, Privacy, etc.) ▼▼▼ --- */
.contact-section, .privacy-policy-section, .terms-section, .sitemap-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 15px;
}
.form-container, .policy-content, .sitemap-content {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 5px rgba(85, 139, 47, 0.3);
}
.required {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-left: 5px;
}
.form-submit {
    text-align: center;
    margin-top: 30px;
}
.contact-notes {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
}
.policy-content h3 {
    margin-top: 30px;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 5px;
}
.sitemap-list ul {
    margin-left: 20px;
}

/* --- ▼▼▼ Error Pages ▼▼▼ --- */
.error-page main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 160px); /* header and footer height */
    text-align: center;
}
.error-content {
    background: var(--color-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.error-code {
    font-size: 6rem;
    color: var(--color-primary);
    margin: 0;
}
.error-content h2 {
    margin-top: 0;
}

/* デスクトップ表示でキャストを3列に調整 */
@media (min-width: 769px) {
    .cast-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}