* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 80px; /* ヘッダーの高さに合わせて調整 */
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #f0f4f8, #ffffff);
    color: #333;
    line-height: 1.6;
    text-align: center;
}

header {
    width: 100%; /* ヘッダーの幅を100%に */
    position: fixed; /* ヘッダーを固定 */
    top: 0; /* ページの上部に固定 */
    z-index: 1000; /* 他の要素の上に表示 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
}

.header-top {
    color: #003e82;
    background-color: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

header h1 {
    font-size: 30px;
    letter-spacing: 2px;
}

header a {
    text-decoration: none;
    color: inherit;
}

.header-bottom {
    background-color: #003e82;
    display: flex; 
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px 0;
    height: 40px; /* ヘッダーの高さを明確に指定 */
}

.header-logo {
    font-size: 20px; /* 文字のサイズ */
    font-weight: bold; /* 太字にする */
    color: white; /* 文字の中身を白に */
    text-transform: lowercase; /* すべて小文字に変換 */
    text-align: center; /* 中央揃え */
    -webkit-text-stroke: 2px #003e82; /* アウトラインの色と太さ */
    padding-right: 5px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #f0a500;
}

.section {
    padding: 50px 0;
}

.greet {
    background-image: url(../img/image01.png);
    background-size: cover;
    margin-top: 88px; 
}

.with-shape {
    background-color: rgba(255, 255, 255, .5); /* 白背景に透過 */
    color: #333; /* 黒系の文字色 */
    padding: 15px;  
    /* width: 60%; */
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 軽い影 */
    display: inline-block; /* 背景を文字幅に合わせる */
    max-width: 90%; /* 最大幅設定 */
    line-height: 1.6; /* 読みやすい行間 */  
}

.container {
    width: 80%;
    margin: 0 auto;
    text-align: center;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #003c8f;
    position: relative;
}

h2::after {
    content: '';
    width: 80px;
    height: 3px;
    background-color: #f58220;
    position: absolute;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
}

p {
    font-size: 1.2em;
    margin-bottom: 10px;
}

ul {
    list-style: none;
    padding-left: 0;
    text-align: left;
    margin: 0 auto;
    display: inline-block;
}

ul li {
    font-size: 1.1em;
    padding-left: 1em;
    position: relative;
}

.container ul li::before {
    /* content: "✔"; */
    color: #f58220;
    position: absolute;
    left: 0;
    font-size: 1.5em;
}

.services {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.service-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(33% - 20px);
    max-width: calc(33% - 8px);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-box:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.service-box h4 i {
    color: #f58220;
    margin-right: 10px;
    font-size: 1.2em;
}

.service-box h4 {
    font-size: 1.5em;
    color: #003c8f;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.service-box p {
    font-size: 1em;
    color: #555;
    line-height: 1.5;
}

.map-wrapper {
    position: relative;
    padding-bottom: 40%; /* 高さを調整 */
    height: 0;
    overflow: hidden;
    max-width: 800px; /* 最大幅 */
    margin: 0 auto; /* 中央寄せ */
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

form label span {
    color: #fff;
    margin-left: 5px;
    background-color: #ff3f05;
    border-radius: 4px;
    font-size: .8em;
    padding: 1px 4px;
}

form label .any {
    color: #fff;
    margin-left: 5px;
    background-color: #555;
    border-radius: 4px;
    font-size: .8em;
    padding: 1px 4px;
}

form input, form textarea {
    padding: 10px;
    margin-bottom: 20px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 1.1em;
    width: 100%;
    max-width: 600px;
}

.radio-group {
    display: flex; /* 横並びにする */
    gap: 15px;
    margin-bottom: 20px;
}

.radio-item {
    display: flex;
    align-items: center; /* 垂直方向を中央揃え */ 
    gap: 3px;
    margin-right: 10px;
}

.radio-item input {
    margin: 0;
    width: 20px;
    display: inline-block; /* ラジオボタンをインラインブロックに設定 */
}

.radio-item label {
    white-space: nowrap;
    display: inline-block; /* ラベルもインラインブロックに設定 */
    vertical-align: middle; /* ラベルとラジオボタンを垂直に揃える */
    line-height: normal; /* 行間を調整 */  
    /* width: auto; */
}

form p {
    color: red; 
    margin-top: 10px;
    /* background-color: #ffc0cb; */
    padding: 8px;
    border-radius: 8px;
}

form button {
    background-color: #f58220;
    color: white;
    padding: 8px 80px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #d46a1a;
}

footer {
    background-color: #003c8f;
    color: white;
    padding: 20px 0;
    margin-top: 40px;
}

.section.company {
    margin-top: 100px;
}

/* * ===================================
 * ハンバーガーメニューのスタイル
 * ===================================
*/

/* PC表示ではハンバーガーメニューを非表示に */
.hamburger-menu {
    display: none;
    cursor: pointer;
}

.menu {
    display: flex;
    flex-direction: row;
}

.menu ul {
    display: flex;
    gap: 15px;
}

/* * ===================================
 * レスポンシブ設定 (768px以下)
 * ===================================
*/
@media (max-width: 768px) {

    .header-top {
        align-items: center; /* センター揃え */
        height: 48px;
    }

    .header-logo {
        font-size: 16px;
    }

    header h1 {
        font-size: 22px;
    }

    /* --- ハンバーガーメニューの表示設定 --- */
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 35px;
        height: 25px;
        position: absolute; /* header-bottom内での絶対位置指定 */
        z-index: 1001; /* メニューより手前に表示 */
    }

    /* 3本線のスタイル */
    .hamburger-menu span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: white;
        border-radius: 3px;
        transition: all 0.4s ease-in-out;
        transform-origin: center center; /* 変形の基点を中央に設定 */
    }

    /* --- ハンバーガーメニューがactiveの時のスタイル (×印) --- */
    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(12px) rotate(45deg);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: translateY(-5px) rotate(-45deg);
    }

    /* --- ナビゲーションメニューの表示設定 --- */
    .menu {
        display: none; /* デフォルトで非表示 */
        flex-direction: column;
        position: absolute;
        top: 88px; /* ヘッダー全体の高さに合わせる */
        right: 0;
        background-color: #003e82;
        width: 100%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .menu ul {
        flex-direction: column;
        gap: 10px;
        margin: 0;
        padding: 10px;
    }

    .menu.active {
        display: flex; /* activeクラスが付いたらメニューを表示 */
    }

    p{
        font-size: 0.8em;
    }

    .service-box {
      flex: 1 1 calc(100% - 20px);
      max-width: calc(100% - 20px);
    }

    .service-box {
      font-size: 0.8em;
      padding: 14px;
    }
        
    .map-wrapper {
        padding-bottom: 60%; /* 高さを調整 */
    }
}