
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #55868e;
    color: rgb(240, 240, 240);
    text-align: center;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background-color: (48, 74, 78, 0.7);
    flex-wrap: wrap;
}

.header-left img {
    height: 35px;
}

.header-nav a {
    margin: 0 20px;
    color: rgb(240, 240, 240);
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.header-nav a:hover {
    opacity: 0.3;
}

.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: rgb(240, 240, 240);
}

/* === PC用 hero設定 === */
.hero {
    position: relative;
    width: 100%;
    height: 40vh;
    min-height: 300px;
    overflow: hidden;
}

.hero img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Access の文字（中央表示） */
.hero-logo-centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    max-width: 80%;
    z-index: 1;
}

.hero-logo-centered h1 {
    font-size: 4vw;
    font-weight: bold;
    color: rgb(240, 240, 240);
    margin: 0;
}

.floor-map-section {
    padding: 50px 0;
    display: flex;
    justify-content: center;
    background-color: #55868e;
}

.floor-map {
    margin-top: 50px;
    margin-bottom: 50px;
    margin-right: 50px;
    max-width: 55%;
    height: auto;
}

.fotter-center img {
    width: 70%;
    height: 70%;
    object-fit: cover;
}

.fotter-center div:hover img {
    transform: scale(1.03);
    transition: 0.2s;
}

.footer-contact img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

footer {
    margin: 1rem;
}

footer img {
    width: 120px;
    transform: scale(1.03);
    transition: 0.2s;
}

.footer-left img:hover {
    opacity: 0.7;
}

.footer-nav a {
    margin: 20px 20px;
    color: rgb(240, 240, 240);
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover {
    opacity: 0.7;
}

.footer {
    color: rgb(240, 240, 240);
    font-size: 15px;
}

.footer a {
    color: rgb(240, 240, 240);
}

.navi a {
    margin: 20px 20px;
    color: rgb(240, 240, 240);
    text-decoration: none;
    font-weight: bold;
    font-size: 2rem;
    transition: opacity 0.3s ease;
}

.navi a:hover {
    opacity: 0.7;
}

.navi {
    color: rgb(240, 240, 240);
    font-size: 30px;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .header-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #5e9197;
    }

    .header-nav.active {
        display: flex;
    }

    .header-nav a {
        padding: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .hero {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .hero-logo-centered {
        width: 200px;
        max-width: 70%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .hero-logo-centered h1 {
        font-size: 7vw;
    }

    .floor-map {
        max-width: 90%;
        margin: 30px auto;
    }

    .navi {
        font-size: 1rem;
    }

    .navi a {
        font-size: 1rem;
        margin: 10px;
    }

    .fotter-center img {
        width: 90%;
        height: auto;
    }

    footer {
        margin: 0.5rem;
    }

    .footer-nav a {
        font-size: 0.9rem;
        margin: 10px;
    }

    .footer-left img {
        width: 90px;
    }
}


/* === Footer Navigation Responsive Vertical Layout === */

@media (max-width: 768px) {
  .footer-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-nav a {
    margin: 8px 0;
    font-size: 1rem;
  }
}


@media (max-width: 768px) {
  header {
    position: fixed;
    top: 0;
    width: 100vw;
    left: 0;
    z-index: 1000;
    background-color: rgba(48, 74, 78, 0.7); /* 半透明 */
    padding: 0.6rem 1rem;
  }

  body {
    padding-top: 80px; /* 固定ヘッダー分のスペースを確保 */
    overflow-x: hidden;
  }

  .hamburger {
    color: rgb(240, 240, 240);
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
  }

  .header-nav {
    background-color: rgba(94, 145, 151, 0.95);
    width: 100%;
  }

  html, body {
    overflow-x: hidden;
  }
}
