body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    background: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 1rem;
    font-size: 0.95rem;
}

main {
    padding: 2rem 1rem;
    text-align: center;
}

h1 {
    color:black;
    margin-bottom: 1rem;
}


/* メイン内容
----------------------------------------------------------- */
.section {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

/* ========== 背景帯（共通） ========== */
.section::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%; /* 背景の高さ（画像の半分） */
    z-index: 1;
}

/* sectionごとに色を指定 */
.section:nth-of-type(1)::before { background-color: #00aeef; } /* シアン */
.section:nth-of-type(2)::before { background-color: #ec008c; } /* マゼンタ */
.section:nth-of-type(3)::before { background-color: #fff200; } /* イエロー */
.section:nth-of-type(4)::before { background-color: #000000; } /* ブラック */

/* コンテナ要素
----------------------------------------------------------- */
.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* ========== 画像 ========== */
.image-box {
    width: 100%;
    position: relative;
}

.image-box img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

/* ========== テキストボックス ========== */
.text-box {
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 20px;
    width: 90%;
    max-width: 400px;
}

.text-box h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.text-box p {
    font-size: 0.9rem;
    color: #555;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 20px;
    border: 1px solid #000;
    color: #000;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background-color: #000;
    color: #fff;
}

/* ========== PCレイアウト（768px以上） ========== */
@media (min-width: 768px) {
    .container {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    }

    .section:nth-child(even) .container {
    flex-direction: row-reverse; /* 偶数番だけ反転 */
    }

    .image-box {
    flex: 1;
    max-width: 700px;
    }

    .text-box {
    position: relative;
    margin-top: 0;
    margin-left: -80px;
    z-index: 3;
    }

    /* 偶数セクションは反対側に重ねる */
    .section:nth-child(even) .text-box {
    margin-left: 0;
    margin-right: -80px;
    }
}

/* access要素
----------------------------------------------------------- */
.access{
    text-align: center;
    margin: 30px 0 15px 0;
    font-size: 2rem;
    font-weight: bold;
}

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

.text-align iframe{
    width: 85%;
    height: 400px;
    padding-bottom: 30px;
}

@media screen and (min-width :768px) {
    .access{
    font-size: 2.5rem;
    margin-bottom: 20px;
    }
}

@media screen and (min-width :990px) {
    .access{
    font-size: 3rem;
    margin-bottom: 30px;
    }
}

