
/* === Base Reset === */
* {
    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 === */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 1.5rem;
    background-color: #55868e;
    flex-wrap: wrap;
    height:auto;
}


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

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

.header-left-nav a {

    color: rgb(240, 240, 240);
    text-decoration: none;
    font-weight: 680;
    font-size: 0.8rem;
    transition: opacity 0.3s ease;
}

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


.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);
}



/* === Hero Section === */
.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;
}

.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;
}

/* === Content Section === */
main {
    padding: 20px;
    text-align: center;
}

.section {
    max-width: 700px;
    margin: auto;
    line-height: 2;
}

h2 {
    margin-top: 40px;
    border-top: 1px solid #ccc;
    padding-top: 20px;
    font-size: 2rem;
    font-weight: 300;
}

h3 {
    color: #fc8a0d;
    margin-top: 20px;
}

ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.content-image {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    display: block;
    border-radius: 8px;
}

.memo {
    font-size: 12px;
}

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

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

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);
}

/* === Responsive === */
@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%;
    }

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

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

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

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

    footer {
        margin: 0.5rem;
    }

    .content-image {
        width: 90%;
    }
}


@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;
  }
}



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

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