body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 10px 0 0 0; /* padding-top: 10pxと同じ効果 */
    color: #1a2a4c;
    background-color: #f6f6f6;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 20px;
    background-color: #ffffff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    box-sizing: border-box;
}

header .logo img {
    height: 40px;
    width: auto;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
}

nav ul li {
    position: relative;
    margin-left: 20px;
    background-color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav ul li:hover {
    background-color: rgba(26, 42, 76, 0.1);
}

nav ul li a {
    color: #1a2a4c;
    text-decoration: none;
    display: block;
    font-size: 1.1em;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1;
    background-color: #ffffff;
    border: 1px solid rgba(26, 42, 76, 0.1);
    border-radius: 0;
    width: 100vw;
}

.dropdown-content li {
    margin: 0;
    padding: 8px 10px;
}

.dropdown-content li a {
    font-size: 0.9em;
}

.dropdown-content li a:hover {
    background-color: rgba(26, 42, 76, 0.1);
}

.hero {
    height: 450px;
    position: relative;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.catchphrase {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2em;
    text-align: center;
    width: 80%;
    line-height: 1.4;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.about h2, .about p {
    margin-top: 50px;
    text-align: center;
}

.about h2 {
    font-size: 2.0em;
    font-weight: bold;
    margin-bottom: 20px;
}

.about p {
    font-size: 1em;
    font-weight: normal;
    line-height: 1.6;
}

.features {
    display: flex;
    justify-content: space-between;
    padding: 20px 20px;
    background-color: #f6f6f6;
}

.features .feature {
    margin-bottom: 30px;
    margin-right: 15px;
    flex: 1;
}

.features .feature:last-child {
    margin-right: 0;
}

.features .feature img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    min-width: 100px;
}

.features .feature h3, .features .feature p {
    text-align: center;
}

.features .feature h3 a {
    text-decoration: none;
    color: #1a2a4c;
}

.features .feature h3 a:hover {
    text-decoration: underline;
}

.footer {
    padding: 20px 0;
    text-align: center;
    background-color: #ffffff;
}

.productivity-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 20px 0;
}

.productivity-content {
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.google-map iframe {
    width: 100%;
    height: 400px;
    border: none;
    margin-top: 2rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.bar {
    background-color: #1a2a4c;
    height: 3px;
    width: 25px;
}

/* メディアクエリのまとめ */
@media (max-width: 768px) {
   
    header {
        padding-top: 10px; /* この値を調整して、ヘッダの高さを好みに合わせてください。 */
        justify-content: flex-end;   /* ヘッダー内の要素を右端に寄せます */
        padding-right: 20px;         /* ヘッダーの右のパディングを調整します */
        } 

    header .logo {
        margin-right: auto;          /* ロゴを左端に保持します */
    }

    .hero {
        height: auto; /* autoに変更して子要素に高さを依存させる */
    }

    .hero-image img {
        height: 600px; /* 画像の高さを600pxに変更 */
        object-fit: cover; /* 画像が指定した高さを超えないようにする */
    }

    .catchphrase {
        font-size: 1.8em; /* 文言のフォントサイズを調整 */
        /* 必要に応じて他のスタイルも調整 */
    }

    .features {
        flex-direction: column;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #ffffff;
    }

    nav ul li {
        margin: 0;
        border-top: 1px solid #f1f1f1;
    }

    nav ul li:first-child {
        border-top: none;
    }

    .menu-toggle {
        display: flex;
        margin-top: 0px;     /* 必要に応じて上マージンを調整してください */
        order: 2;                    /* これにより、メニューが右端に移動します */
        align-self: center;        /* これにより、メニューがヘッダーの右端に配置されます */
      }

    .productivity-section {
        flex-direction: column;
    }
}

@media screen and (max-width: 480px) {
    .features .feature h3, .features .feature p {
        font-size: 14px;
    }
}
