

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');



/* 全体共通のスタイル */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* ヘッダー */
.header {
    width: 100%;
    padding: 10px 20px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.header-logo {
    margin-right: 10px;
    height: 40px;
}

.header-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-item a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-item a:hover {
    color: #666;
}

.hamburger-menu {
    display: none; /* デフォルトは非表示 */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.4s;
}

/* ファーストビュー */
.first-view {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px 20px;
    max-width: 1200px; /* コンテンツの最大幅を設定 */
    margin: 0 auto;    /* 中央揃え */
}

.first-view-image,
.first-view-message {
    flex: 1;
}

.first-view-message {
    display: flex;
    justify-content: center;
    align-items: center;
}

.first-view-message p {
    font-size: 1.2rem;
}

/* セカンドビュー */
.second-view {
    padding: 40px 20px;
    background-color: #f4f4f4;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 800px; /* PC表示での最大幅を指定 */
    margin: 0 auto;   /* 中央揃え */
}

.flex-item {
    flex-basis: 100%; /* 常に1列表示 */
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.modal-only-content {
    display: none;
}

.flex-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* モーダル */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 100;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 101;
    overflow-y: auto;

    /* PCでのサイズ設定 (デフォルト) */
    min-width: 60vw;
    min-height: 60vh;
    max-width: 90vw;
    max-height: 90vh;
}

.modal-overlay.is-active,
.modal.is-active {
    display: block;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-content {
    margin-top: 20px;
}

.modal-content h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.modal-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    padding: 0 10px; /* 左右にパディングを追加 */
}

.modal-content img {
    max-width: 80%;
    margin: 15px auto;
    border-radius: 8px;
}

/* レスポンシブデザイン（モバイル対応） */
    @media (max-width: 768px) {
    .header-nav {
        position: relative;
    }
    
    .nav-list {
        display: none; /* モバイルでは非表示 */
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #fff;
        width: 150px;
        border: 1px solid #ddd;
        z-index: 10;
    }

    .nav-list.is-active {
        display: flex;
    }

    .nav-item {
        width: 100%;
        text-align: center;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

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

    .first-view {
        flex-direction: column;
    }
    
    .first-view-image,
    .first-view-message {
        width: 100%;
        padding: 0;
    }

    .modal {
        /* タブレットでのサイズ設定 */
        min-width: 0;
        min-height: 0;
        width: 85vw;
        max-height: 90vh;
    }
}

@media (max-width: 480px) {

    .modal {
        /* スマートフォンでのサイズ設定 */
        width: 95vw;
        max-height: 90vh;
    }
}
