/* ========================================================================
   Base Styles & Variables
   - 基本スタイルと変数
   - index_style.txtをベースに、CSS変数によるカラー管理を採用
   ======================================================================== */
:root {
    --text-color-dark: #2f2e2e;
    --text-color-light: #ffffff;
    --text-color-gray: #605e5e;
    --accent-color-1: #7dd1d1;
    --accent-color-2: #837c99;
    --accent-color-3: #f09e9a;
    --bg-color-light: #ffffff;
    --bg-color-gray: #f7fafc; /* outline_styleから追加 */
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--bg-color-light);
    color: #333;
    line-height: 1.7;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

p,
span,
a,
div {
    font-weight: normal;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

hr {
    border: none;
    height: 1px;
    background-color: #d1d5db; /* outline_styleから流用 */
    margin: 30px 0;
}


/* ========================================================================
   Utility Classes
   - 汎用ユーティリティクラス
   - outline_style.txtから導入し、柔軟なスタイリングを可能に
   ======================================================================== */
.font-light {
    font-weight: 300;
}

.font-normal {
    font-weight: 400;
}

.font-bold {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.text-justify {
    text-align: justify;
}


/* ========================================================================
   Layout & Containers
   - レイアウトとコンテナ
   - 両ファイルのコンテナを保持し、使い分け可能に
   ======================================================================== */
/* index_style.txt由来の汎用コンテナ */
.container {
    max-width: 1024px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* outline_style.txt由来のメインコンテンツ用コンテナ */
.main-content-container {
    max-width: 896px;
    margin-left: auto;
    margin-right: auto;
    padding: 5rem 1rem;
    background-color: var(--bg-color-light);
}

.grid-container {
    display: grid;
    gap: 30px;
    align-items: start;
}


/* ========================================================================
   Header
   - ヘッダー
   - 両ファイルで共通のスタイルを統合
   ======================================================================== */
header {
    background-color: #fff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    /* .containerをヘッダー内でも適用 */
    max-width: 1024px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.logo img {
    height: 2.5rem;
    width: auto;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    justify-content: center;
}

nav a {
    color: #a0a09f;
    font-size: 13px;
    font-weight: 300;
    text-decoration: none;
}

nav a:hover,
.nav-current a {
    color: #1f2937;
}

.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-links img {
    height: 1.5rem;
    width: auto;
}


/* ========================================================================
   Footer
   - フッター
   - 両ファイルで共通のスタイルを統合
   ======================================================================== */
footer {
    background-color: #fff;
    color: var(--text-color-dark);
    padding: 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile first */
    gap: 20px;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--text-color-dark);
    border-bottom: 1px solid var(--text-color-dark);
}

.footer-column {
    padding: 0 10px;
}

.footer-title {
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: bold;
}

.footer-text {
    font-size: 11px;
    line-height: 1.7;
}

.footer-email {
    color: var(--accent-color-1);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
}

.footer-logo {
    width: 112px;
    margin: 0 auto 15px;
}

.copyright {
    font-size: 12px;
}


/* ========================================================================
   Page-Specific Sections from index_style.txt
   - トップページ用のセクションスタイル
   ======================================================================== */
.section {
    padding: 80px 20px;
    text-align: center;
}

.section-light {
    background-color: var(--bg-color-light);
    color: var(--text-color-dark);
}

.section-title {
    font-size: 31px;
    text-align: left;
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 0.05em;
    color: var(--text-color-dark);
}

.section-subtitle {
    font-size: 22px;
    text-align: left;
    margin-bottom: 20px;
    font-weight: normal;
    color: var(--text-color-gray);
}

/* Hero Section */
.hero-section {
    padding: 80px 20px;
    text-align: center;
}

.hero-logo-main {
    width: 100%;
    max-width: 884px;
    margin: 0 auto 20px;
}

.hero-title {
    font-size: 31px;
    color: #605e5e;
    font-weight: normal;
    text-align: center;
    margin-bottom: 2rem; /* outline_styleから適用 */
}

.hero-button {
    display: inline-block;
    margin-top: 25px;
    padding: 10px 30px;
    border: 1px solid var(--accent-color-1);
    color: var(--accent-color-1);
    font-weight: bold;
    transition: all 0.2s ease;
}

.hero-button:hover {
    background-color: var(--accent-color-1);
    color: #fff;
}

/* Intro Section */
.intro-section {
    background-image: url('https://placehold.co/1200x600/E2E8F0/A0AEC0?text=Background+Image');
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    position: relative;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
}

.intro-grid {
    grid-template-columns: 1fr;
    text-align: left;
    position: relative;
    z-index: 1;
}

.intro-description {
    font-size: 14px;
    color: var(--text-color-gray);
    max-width: 780px;
}

/* Workshop / Tours / Conference Sections */
/* ... (index_style.txtから他の詳細なセクションスタイルをここにコピー) ... */
/* Workshop Section */
.workshop-section {
    position: relative;
    background-image: url('https://placehold.co/1200x800/2D3748/E2E8F0?text=Workshop+BG');
    background-size: cover;
    background-position: center;
    color: #fff;
}
.workshop-overlay {
    background-color: rgba(88, 146, 146, 0.85);
    padding: 60px 20px;
}
/* ... workshop-columnなどの詳細スタイル ... */


/* ========================================================================
   Content-Specific Sections from outline_style.txt
   - 概要ページ用のコンテンツスタイル
   ======================================================================== */
main {
    background-color: var(--bg-color-gray);
}

.main-content-container section {
    margin-bottom: 3rem;
}

.main-content-container h2 {
    font-size: 1.25rem;
    font-weight: 300;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.main-content-container p {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.625;
    font-weight: 300;
}

.profile-section {
    display: flex;
    flex-direction: column; /* Mobile first */
    align-items: flex-start;
    gap: 1.5rem;
}

.profile-section img {
    width: 11rem;
    height: 11rem;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-section h3 {
    font-weight: 700;
    font-size: 0.875rem;
    color: #374151;
}

.profile-section p {
    font-size: 0.75rem;
    color: #4b5563;
    font-weight: 300;
}

.profile-section .title {
    margin-bottom: 0.5rem;
}

.summary-section p {
    line-height: 2;
}

.summary-section span {
    display: inline-block;
    width: 7rem;
}


/* ========================================================================
   Responsive Styles
   - レスポンシブ設定
   - 両ファイルのブレークポイントを統合・整理
   ======================================================================== */

/* Tablet & Desktop */
@media (min-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-column {
        border-right: 1px solid var(--text-color-dark);
    }
    .footer-column:last-child {
        border-right: none;
    }
    .profile-section {
        flex-direction: row; /* 768px以上で横並びに */
    }
}

/* For larger screens and general adjustments */
@media (max-width: 1024px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        height: auto;
        padding-top: 15px;
        padding-bottom: 15px;
    }
    .intro-grid,
    .workshop-grid,
    .tours-conference-section,
    .exhibition-section .grid-container {
        grid-template-columns: 1fr;
    }

    .exhibition-details {
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding-right: 0;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    /* フッターを1カラムにする設定 (Mobile-firstのため、ここでは不要になる場合があります) */
    .footer-grid {
        /* 768px未満ではデフォルトの1カラムになる */
    }
    .footer-column {
       border-right: none;
       border-bottom: 1px solid var(--text-color-dark);
       padding-bottom: 20px;
    }
     .footer-column:last-child {
        border-bottom: none;
        padding-bottom: 0;
     }

}
