body {
    font-family: 'ヒラギノ角ゴ ProN W3', Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #F7F5EC;
}

header {
    background-color: rgba(255, 0, 0, 0);
    color: #707070;
    padding: 10px;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo {
    position: absolute;
    top: 20px;
    left: 35px;
    width: 56px;
    height: 72px;
}

.pc-nav {
    font-size: 20px;
    position: absolute;
    top: 32px;
    right: 155px; /* 右端から155pxに配置 */
}

.pc-nav a {
    margin-right: 20px;
    color: #707070;
    text-decoration: none;
}

/* 既存のスタイル */

.top-box {
    border-radius: 14px;
    overflow: hidden;
    margin: 0 35px 35px; /* 上部0px、左端35px、右端35px、下部35pxのマージン */
}

.top-box img {
    width: 300px;
    height: 650px;
    display: block;
}

.fixed-box {
    position: fixed;
    top: 0;
    right: 0;
    width: 120px;
    height: 100%;
    background-color: #E2F0F1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fixed-box-text {
    color: #004A4C;
    font-size: 20px;
    font-family: 'ヒラギノ角ゴ ProN W3', Arial, sans-serif;
    transform-origin: top left;
    transform: rotate(90deg) translateY(-100%); /* 時計回りに90度回転し、Y軸方向に100%移動 */
    position: absolute;
    left: 7px;
    top: 14px;
    white-space: nowrap;
}

#top-image-container {
    position: relative;
}

#top-image {
    width: calc(100% - 155px); /* 画面幅から右側の固定ボックス（120px）と余白（35px）を引いた幅 */
    margin-right: 35px; /* 右端の余白（35px） */
}


footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    width: 100%;
}

.sp-nav {
    display: none;
 }

.sp-box {
    display: none;
}

@media screen and (max-width: 450px) {
    .pc-nav {
        display: none;
     }

     .sp-nav {
        z-index: 1;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        display: block;
        width: 100%;
        background: rgba(0, 0, 0, .8);
        transition: all .2s ease-in-out;
        opacity: 0;
        transform: translateY(-100%);
     }

     .sp-nav ul {
        list-style: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
     }
     .sp-nav li {
        margin: 0;
        padding: 0;
     }
     .sp-nav li span {
        font-size: 15px;
        color: #fff;
     }
     .sp-nav li a, .sp-nav li span {
        display: block;
        padding: 20px 0;
     }

     a:visited { /*アクセスしたことのあるリンク*/
        color:#ff0000;
        }

     .sp-nav .close {
        position: relative;
        padding-left: 20px;
     }
     /*バツ印線1*/
     .sp-nav .close::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        display: block;
        width: 16px;
        height: 1px;
        background: #fff;
        transform: rotate( 45deg );
     }
     /*バツ印線2*/
     .sp-nav .close::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        display: block;
        width: 16px;
        height: 1px;
        background: #fff;
        transform: rotate( -45deg );
     }

     #logo {
        position: absolute;
        top: 30px;
        left: 15px;
        width: 35px;
        height: auto;
    }

     #hamburger {
        position: relative;
        display: block;
        width: 30px;
        height: 25px;
        margin: 0 0 0 auto;
     }
    
     #hamburger span {
        position: absolute;
        top: 50%;
        left: 0;
        display: block;
        width: 100%;
        height: 2px;
        background-color: #707070;
        transform: translateY(-50%);
     }

     #hamburger::before {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #707070;
     }
     #hamburger::after {
        content: '';
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 70%;
        height: 2px;
        background-color: #707070;
     }

     .top-box {
     display: none;
     }

     .sp-box {
     display: block;
     margin: 0 35px 35px;
     width: 300px;
     height: auto;
     }

     #sp-image {
        width: 100%;
        height: auto; /* アスペクト比を維持しつつ横幅いっぱいに表示 */
    }

     .fixed-box {
     display: none;
    }

    .toggle {
        transform: translateY( 0 );
        opacity: 1;
     }

     .main-visual {
        padding: 0 4%;
     }

     h2 {
        line-height: 1.6;
        text-align: center;
     }
}