/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Zen Maru Gothic', sans-serif; /* Google Fontsで読み込んだフォントを指定 */
    line-height: 1.6;
    color: #333;
    background-color: #fcfaf7; /* 全体の背景色を少しオフホワイトに */
}

/* コンテナ */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.site-header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed; /* ヘッダーを固定 */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #555;
    white-space: nowrap; /* 折り返しを防ぐ */
}

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

.main-nav .nav-list li {
    margin-left: 30px;
}

.main-nav .nav-list a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-nav .nav-list a:hover {
    color: #8a6d4b; /* ホバー色 */
}

/* ハンバーガーメニューアイコン（モバイル用） */
.hamburger-menu {
    display: none; /* デフォルトでは非表示 */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100; /* ナビより手前に */
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #555;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* メインコンテンツのパディング（固定ヘッダー分） */
main {
    padding-top: 70px; /* ヘッダーの高さに合わせて調整 */
}

/* 各セクションの共通スタイル */
.section-padding {
    padding: 80px 20px;
}

.section-bg {
    background-color: #fff;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 2.5em;
    color: #8a6d4b;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #bfa382;
}

.section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #666;
}

/* メインビジュアル / ファーストビュー */

.hero-section {
    /* ★修正: 新しい背景画像を指定★ */
    background-image: url('images/Graduation thesis.png'); 
    background-size: cover; /* 画面全体を覆うように画像を拡大 */
    background-position: center; /* 画像を中央に配置 */
    
    /* 既存のレイアウト設定は残します */
    /* color: #fff; /* 背景が明るい場合はこの行を削除またはコメントアウト */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px); /* 画面の高さいっぱい - ヘッダーの高さ */
    padding: 10px;
    position: relative;
    overflow: hidden;
    padding-bottom: 80px; 
}

/* 既存のタイトルテキストに関するCSSも非表示にするための保険 */
.site-title, .affiliation {
    display: none !important; 
}

.hero-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* コンテナ幅を最大にする */
    height: 100%; /* コンテナ高さを最大にする */
}

.news-section {
    background-color: #fcfaf7;
}

.news-log-items {
    max-width: 800px;
    margin: 40px auto; /* 中央揃え */
}

.news-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
    text-align: left;
}

.news-item:last-child {
    border-bottom: none; /* 最後のお知らせの下線は削除 */
}

.news-date {
    font-size: 1em;
    color: #8a6d4b; /* テーマカラーを使用 */
    font-weight: bold;
    min-width: 120px; /* 日付の幅を固定 */
    flex-shrink: 0; /* 幅を縮めない */
    padding-right: 20px;
}

.news-summary {
    font-size: 1em;
    color: #333;
    line-height: 1.6;
}

/* レスポンシブ対応: スマホでは日付と内容を縦に並べる */
@media (max-width: 600px) {
    .news-item {
        flex-direction: column; /* 縦並びにする */
        padding: 15px 0 20px;
    }
    .news-date {
        margin-bottom: 5px;
        padding-right: 0;
        font-size: 0.9em;
    }
}

/* テキスト表示のためのスタイル調整 */
.site-title {
    font-size: 3em; /* メインタイトルを大きく */
    font-weight: bold;
    color: #8a6d4b; /* 文字色を茶色に変更 */
    margin-bottom: 10px; /* 下の要素との余白 */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3); /* 影を少し薄くして背景とのバランスを調整 */
}

.affiliation {
    font-size: 1.5em; /* 所属情報を調整 */
    color: #8a6d4b; /* 文字色を茶色に変更 */
    margin-bottom: 80px; /* 文字と矢印の間の余白を確保 */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3); /* 影を少し薄くして背景とのバランスを調整 */
}


/* 研究紹介 */
.detail-link {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1em;
　margin-bottom: 50px; /* ★追加★ 矢印が重ならないよう、下部に大きな余白を確保 */
}

.inline-link {
    color: #8a6d4b;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.inline-link:hover {
    color: #bfa382;
}

/* くつろぎの様子 */
.scenes-section {
    padding: 80px 20px;
    text-align: center;
}

.scene-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
}

.scene-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    width: 200px; /* 正方形の幅 */
    height: 200px; /* 正方形の高さ。幅と同じ値にする */
    display: flex; /* 子要素の<img>タグを中央揃えするため */
    justify-content: center;
    align-items: center;
}

.scene-item:hover {
    transform: translateY(-5px);
}

.house-illustration {
    width: 100%;
    height: 100%;
    object-fit: cover; /* アスペクト比を維持しつつ、コンテナ全体を埋める（切り抜きあり） */
}



./* アンケートのお願い */
.survey-section {
    display: flex;
    flex-wrap: wrap; 
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    position: relative;
}

.survey-container {
    display: flex;
    flex-direction: row; /* ★修正★ PCでも横並びを強制 */
    align-items: center; 
    justify-content: center; /* ★修正★ 中央寄せを優先 */
    gap: 30px; /* 要素間の隙間 */
    max-width: 960px; /* コンテナの最大幅 */
    width: 100%;
margin-bottom: 50px; /* ★追加★ 矢印が重ならないよう、下部に大きな余白を確保 */
}

.survey-content {
    flex: 1; /* 余ったスペースを埋める */
    min-width: 300px; 
    width: auto; /* ★修正★ 幅を自動調整に */
    text-align: right; /* ★修正★ ボタンを左に寄せて見せるため、右寄せにする */
    padding-right: 15px; /* ボタンとイラストの間に隙間を確保 */
}

.survey-illustration {
    min-width: 150px; 
    width: auto; /* ★修正★ イラストの幅を自動調整に */
    text-align: left; /* イラストを左寄せに */
    flex-shrink: 0; /* 縮小させない */
}

/* カワウソイラストのサイズ (PC版) */
.survey-illustration .house-illustration {
    max-width: 150px; /* PCでのイラストの最大幅を制限 */
    max-height: 150px; /* PCでのイラストの最大高さを制限 */
    width: auto;
    height: auto;
    margin: 0; /* 余分なマージンを削除 */
    display: block;
}


.button-link {
    display: inline-block;
    background-color: #8a6d4b;
    color: #fff;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 20px;
}

.button-link:hover {
    background-color: #bfa382;
    transform: translateY(-2px);
}

/* アクセス */
.access-section {
    text-align: center;
}

.map-button {
    display: inline-block;
    background-color: #4CAF50; /* 緑系の色 */
    color: #fff;
    padding: 12px 25px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-bottom: 20px;
}

.map-button:hover {
    background-color: #45a049;
}

.address, .operation, .phone, .contact-instagram {
    margin-bottom: 10px;
    color: #666;
}

.instagram-link {
    display: inline-flex; /* アイコンと文字を横並びに */
    align-items: center; /* 垂直方向中央揃え */
    text-decoration: none;
    color: #E1306C; /* Instagramのブランドカラーに近い色 */
    font-weight: bold;
    margin-top: 15px;
}

.instagram-logo {
    width: 30px; /* アイコンのサイズ */
    height: 30px;
    margin-right: 8px; /* アイコンと文字の間隔 */
    vertical-align: middle; /* 垂直方向の配置調整 */
}


/* フッター */
.site-footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/* スクロールダウン矢印 */
.scroll-down-arrow {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #8a6d4b; /* 矢印の枠線色を茶色に変更 */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #8a6d4b; /* 矢印の色を茶色に変更 */
    text-decoration: none;
    transition: transform 0.3s ease;

    /* メインビジュアル内の矢印の位置 */
    position: absolute;
    bottom: 15%; /* ★修正★ 画面の下端から上に15%の位置に移動 */
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
}

.scroll-down-arrow svg {
    width: 24px;
    height: 24px;
    display: block; /* 余白をなくす */
}

.scroll-down-arrow:hover {
    transform: translateX(-50%) translateY(5px);
    border-color: #bfa382; /* ホバー色 */
    color: #bfa382; /* ホバー色 */
}

/* スクロール時のフェードインアニメーション */
.fade-in {
    opacity: 0; /* 最初は透明 */
    transform: translateY(20px); /* 少し下にずらしておく */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* アニメーションの時間と種類 */
}

.fade-in.active {
    opacity: 1; /* active クラスが付いたら不透明に */
    transform: translateY(0); /* 元の位置に戻す */
}


/* レスポンシブデザイン */
@media (max-width: 768px) {
    .main-nav .nav-list {
        display: none; /* デフォルトでナビを非表示 */
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 60px; /* ヘッダーの高さに合わせる */
        left: 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        padding: 10px 0;
        align-items: center;
    }

    .main-nav .nav-list.active {
        display: flex; /* activeクラスで表示 */
    }

    .main-nav .nav-list li {
        margin: 10px 0;
    }

    .hamburger-menu {
        display: block; /* モバイルで表示 */
    }

    /* スマホ表示時のメインビジュアルテキストのサイズ調整 */
    .site-title {
        font-size: 2em; /* スマホでタイトルを調整 */
    }

    .affiliation {
        font-size: 1.2em; /* スマホで所属情報を調整 */
        margin-bottom: 60px; /* スマホ表示時も、余白を増やす */
    }

    .section-title {
        font-size: 2em;
    }

    .section-description {
        font-size: 1em;
    }

   /* アンケートのお願い */
.survey-section {
    display: flex;
    flex-wrap: wrap; 
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    position: relative;
}

.survey-container {
    display: flex;
    flex-direction: row; /* ★修正★ PCでも横並びを強制 */
    align-items: center; 
    justify-content: center; /* ★修正★ 中央寄せを優先 */
    gap: 30px; /* 要素間の隙間 */
    max-width: 960px; /* コンテナの最大幅 */
    width: 100%;
}

.survey-content {
    flex: 1; /* 余ったスペースを埋める */
    min-width: 300px; 
    width: auto; /* ★修正★ 幅を自動調整に */
    text-align: right; /* ★修正★ ボタンを左に寄せて見せるため、右寄せにする */
    padding-right: 15px; /* ボタンとイラストの間に隙間を確保 */
}

.survey-illustration {
    min-width: 150px; 
    width: auto; /* ★修正★ イラストの幅を自動調整に */
    text-align: left; /* イラストを左寄せに */
    flex-shrink: 0; /* 縮小させない */
}

/* カワウソイラストのサイズ (PC版) */
.survey-illustration .house-illustration {
    max-width: 150px; /* PCでのイラストの最大幅を制限 */
    max-height: 150px; /* PCでのイラストの最大高さを制限 */
    width: auto;
    height: auto;
    margin: 0; /* 余分なマージンを削除 */
    display: block;
}