/* Reset */
html {
    box-sizing: border-box;
    font-size: 16px; /* デフォルトのフォントサイズを指定 */
    scroll-behavior: smooth; /* スクロールをスムーズに */
}
*, *::before, *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

/* フォント設定 */
body {
    font-family: "游ゴシック体 Pr6N R", YuGothic, "Yu Gothic", "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #272727;
    background-color: #F0EEEF;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ナビゲーションメニュー */
.nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: #fff;
    padding: 5rem 2rem;
    transition: transform 0.3s ease;
    transform: translateX(100%);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* メニュー内のInstagramアイコン */
.nav-footer {
    margin-top: auto; /* メニューの一番下に配置 */
    padding-top: 2rem;
    display: flex;
    justify-content: center;
}

.nav-social-link {
    color: #272727;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-social-link:hover {
    color: #4fb6a5;
}

/* Instagramアイコンのサイズ */
.nav-social-link svg {
    width: 36px;
    height: 36px;
}

/* メニューが開いたとき */
.nav-menu.active {
    transform: translateX(0);
}

/* メニューが開いたとき */
.nav-menu.active ~ #tweets-container {
    pointer-events: none;
}

/* PC向けの調整 */
@media (min-width: 1024px) {
    .nav-menu {
        width: 300px; /* 必要最低限の幅に */
        height: auto; /* 必要な分だけ高さを確保 */
        top: 70px; /* ヘッダーの下に配置 */
        right: -320px; /* 初期状態では見えない */
        padding: 2rem;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 10px; /* 画面右端から少し余裕を持たせる */
    }

    .nav-footer {
        padding-top: 1.5rem; /* PCでも適度な余白 */
    }

    .nav-social-link svg {
        width: 40px;
        height: 40px;
    }
}

.nav-list {
    list-style: none;
    padding: 0;
    width: 100%;
    max-width: 300px;
}

.nav-list li {
    margin-bottom: 1.5rem;
}

.nav-link {
    display: block;
    font-size: 1.5rem;
    color: #272727;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #4fb6a5;
}

/* ナビゲーションのフッター */
.nav-footer {
    margin-top: auto;
    padding-top: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.nav-social-link {
    color: #272727;
    transition: color 0.3s ease;
    display: flex;
    justify-content: center;
}

.nav-social-link:hover {
    color: #4fb6a5;
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    z-index: 1000;
    padding: 0 1rem;
}

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

.header-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* ハンバーガーメニュー */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.menu-line {
    width: 100%;
    height: 2px;
    background-color: #272727;
    transition: all 0.3s ease;
    position: absolute;
    left: 0;
}

.menu-line:nth-child(1) {
    top: 0;
}

.menu-line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-line:nth-child(3) {
    bottom: 0;
}

/* メニュー内の閉じるボタン */
.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1200;
}

/* 「ー」マークを表示 */
.menu-toggle.active .menu-line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-line:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Heroセクション */
.hero {
    position: relative;
    width: 100%;
    height: 85vh;
    margin-top: 70px;
    overflow: hidden;
}

.hero-slider {
    display: flex;
    width: 100%;
    height: 90%;
    position: relative;
}

/* PC向けの調整 */
@media (min-width: 1024px) {
    .hero-slider {
        height:80vh; /* PCでは少し高さを抑える */
    }

    .hero-slider picture img {
        max-height: 80vh; /* PCでの高さ調整 */
    }
}

.hero-slider picture {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slider picture img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* 最初の画像を表示 */
.hero-slider picture:first-child {
    opacity: 1;
}

/* ナビゲーションのシンプル化 */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: #ffffff;
    padding: 80px 2rem;
    transition: right 0.3s ease;
    z-index: 1100;
    text-align: center;
}

.nav-menu.active {
    right: 0;
}

.nav-list {
    list-style: none;
    padding: 0;
    width: 100%;
}

.nav-link {
    font-size: 1.4rem;
    color: #272727;
    text-decoration: none;
    display: block;
    padding: 1rem 0;
}

/* PC向けのナビゲーション調整 */
@media (min-width: 1024px) {
    .nav-menu {
        width: 300px;
        height: auto;
        right: -320px;
        padding: 2rem;
        border-radius: 8px;
        box-shadow: none; /* 影を削除 */
    }
    
    .nav-menu.active {
        right: 10px;
    }
}

/* スクロールダウンの位置 */
.scroll {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
}

/* 矢印アニメーション */
.scroll::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-left: 2px solid #272727;
    border-bottom: 2px solid #272727;
    transform: rotate(-45deg);
    left: 50%;
    top: 0;
    margin-left: -10px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        opacity: 0;
        transform: rotate(-45deg) translate(0, 0);
    }
    50% {
        opacity: 1;
        transform: rotate(-45deg) translate(-5px, 5px);
    }
    100% {
        opacity: 0;
        transform: rotate(-45deg) translate(-10px, 10px);
    }
}

/* フェードインアニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* メインコンテンツ */
main {
    padding: 2rem 1rem;
}

/* 各セクションのデザイン */
.section {
    padding: 1rem 1rem;
}

/* 情報のグリッド配置 */
.info-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

/* 情報コンテンツの共通デザイン */
.info-item {
    padding: 1rem;
}

/* セクションタイトル */
.info-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #272727;
    margin-bottom: 0.5rem;
}

/* テキストのスタイル */
.info-item p {
    font-size: 1rem;
    color: #272727;
    line-height: 2.0;
}

/* アクセス情報のマップスタイル */
.map-container {
    margin-top: 2rem;
    height: 300px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* お知らせセクションのレイアウト */
#latest-tweet .info-grid {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) minmax(300px, 2fr); /* 左：テキスト / 右：ツイート */
    gap: 1.5rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* ツイートコンテンツ */
.tweet-content {
    padding: 1.5rem;
    overflow: hidden;
    max-height: 450px;
    display: flex;
    flex-direction: column;
    width: 100%; /* 幅を100%に */
}

/* ツイート埋め込みエリアの調整 */
#tweets-container {
    flex: 1;
    overflow-y: auto;
    height: 100%;
    max-width: 100%; /* 親要素の幅を超えないように */
}

/* PC向けの幅調整 */
@media (min-width: 1024px) {
    #latest-tweet .info-grid {
        grid-template-columns: minmax(300px, 1.2fr) minmax(400px, 2fr); /* PCではツイートエリアを広げる */
        gap: 2rem;
        max-width: 1200px;
    }

    .tweet-content {
        padding: 2rem;
        max-width: 600px; /* ツイートエリアの最大幅を制限 */
    }
}

/* スマホ向けのレイアウト */
@media (max-width: 768px) {
    #latest-tweet .info-grid {
        grid-template-columns: 1fr; /* モバイルでは縦並び */
    }

    .tweet-content {
        max-height: 700px;
        padding: 1rem;
    }
}

/* フッター */
.footer {
    background: #f9fafb;
    padding: 2rem 1rem;
    margin-top: auto;
    text-align: center;
}

/* フッターのコンテンツ配置 */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* SNSアイコンのリンク */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* SNSリンクのデザイン */
.social-link {
    color: #272727;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    color: #4fb6a5;
}

/* SNSアイコン */
.social-icon {
    width: 32px;
    height: 32px;
}

/* 著作権表示 */
.copyright {
    color: #272727;
    font-size: 0.9rem;
    text-align: center;
}

/* PC向けの調整 */
@media (min-width: 768px) {
    .footer {
        padding: 3rem 2rem;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }
}
