* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

/* ===== ヘッダー ===== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    backdrop-filter: blur(10px);
    z-index: 1003;
    transition: backdrop-filter 0.3s ease;
}

.open .site-header {
    backdrop-filter: none;
}

.header-inner {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 24px;
}

.header-left,
.header-center,
.header-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-left { justify-content: flex-start; }
.header-right { justify-content: flex-end; }

.header-left img {
    height: 100px;
}

.header-center {
    justify-content: center;
    text-align: center;
}

.header-center a{
    text-decoration: none;
}

.header-center h1 {
    font-size: 50px;
    font-weight: 600;
    color: #222;
}

/* ===== ハンバーガー ===== */

.toggle-btn {
    position: relative;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background: #c3e2ee;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1003;
}

.toggle-btn span {
    position: absolute;
    left: 50%;
    width: 28px;
    height: 3px;
    background: #222;
    border-radius: 3px;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.toggle-btn span:nth-child(1){ top:16px;}
.toggle-btn span:nth-child(2){ top:24px;width:22px;}
.toggle-btn span:nth-child(3){ top:32px;width:16px;}

.toggle-btn.open span{
    top:50%;
    width:28px;
}

.toggle-btn.open span:nth-child(1){
    transform:translate(-50%,-50%) rotate(45deg);
}
.toggle-btn.open span:nth-child(2){
    opacity:0;
}
.toggle-btn.open span:nth-child(3){
    transform:translate(-50%,-50%) rotate(-45deg);
}

/* ===== ナビ ===== */

#navArea{
    position:relative;
    z-index:1001;
}

nav{
    position:fixed;
    top:0;
    right:-300px;
    width:300px;
    height:100vh;
    background:#c3e2ee;
    box-shadow:-5px 0 15px rgba(0,0,0,0.1);
    transition:0.4s ease;
    z-index:1002;
}

.open nav{ right:0; }

nav .inner{
    padding:100px 30px 30px;
}

nav ul{ list-style:none;}
nav li{ margin:10px 0;}

nav a{
    display:block;
    padding:14px 20px;
    text-decoration:none;
    color:#222;
    border-radius:8px;
    transition:0.3s;
}

nav a:hover{
    background:rgba(0,0,0,0.05);
    transform:translateX(6px);
}

/* ===== マスク ===== */

#mask{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.4);
    display:none;
    z-index:1001;
}

.open #mask{ display:block; }

/* ===== フォーム ===== */

.form-content{
    margin-top:150px;
    margin-left:10%;
    margin-right:10%;
}

.form-content h2{
    text-align:end;
    margin-bottom:30px;
    border-bottom:4px dotted black;
}

.contact-form-container{
    border-radius:12px;
    overflow:hidden;
}

.contactForm-sentence{
    padding:30px;
    text-align:center;
}

.contactForm-sentence p{
    font-size:18px;
    font-weight:500;
}

form{ padding:40px;}

.form-group{ margin-bottom:25px;}

label{
    display:block;
    margin-bottom:8px;
    color:#333;
    font-weight:600;
    font-size:14px;
}

.required{
    color:#e74c3c;
    margin-left:4px;
}

input[type="text"],
input[type="email"],
textarea{
    width:100%;
    padding:12px 15px;
    border:2px solid #e0e0e0;
    border-radius:8px;
    font-size:15px;
    transition:0.3s;
}

input:focus,
textarea:focus{
    outline:none;
    border-color:#e74c3c;
}

textarea{
    resize:vertical;
    min-height:120px;
}

/* ===== ラジオ ===== */

.radio-group{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.radio-option{
    display:flex;
    align-items:center;
    padding:12px;
    border:2px solid #e0e0e0;
    border-radius:8px;
    cursor:pointer;
    transition:0.3s;
}

.radio-option:hover{
    border-color:#e74c3c;
    background:white;
}

.radio-option.selected{
    border-color:#e74c3c;
    background:#f0f3ff;
}

.radio-option input{
    margin-right:10px;
    width:18px;
    height:18px;
}

.radio-option label{
    margin:0;
    flex:1;
}

select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    cursor: pointer;
    transition: 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

select:focus {
    outline: none;
    border-color: #e74c3c;
}

/* ===== 送信ボタン ===== */

button[type="submit"]{
    width:100%;
    padding:15px;
    background:#4FC3F7;
    color:white;
    border:none;
    border-radius:8px;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:0.2s;
}

button[type="submit"]:hover{
    transform:translateY(-2px);
    box-shadow:0 5px 20px #4FC3F7;
}

button[type="submit"]:disabled{
    background:#ccc;
    cursor:not-allowed;
}

/* ===== モーダル ===== */

.modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.5);
    z-index:1000;
    justify-content:center;
    align-items:center;
}

.modal.show{ display:flex;}

.modal-content{
    background:white;
    padding:40px;
    border-radius:12px;
    text-align:center;
    max-width:400px;
    box-shadow:0 10px 40px rgba(0,0,0,0.2);
    animation:slideIn .3s ease;
}

@keyframes slideIn{
    from{ transform:translateY(-50px); opacity:0;}
    to{ transform:translateY(0); opacity:1;}
}

#closeModal{
    margin-top:20px;
    padding:12px 30px;
    background:#4FC3F7;
    color:white;
    border:none;
    border-radius:8px;
    cursor:pointer;
}

/* ===== 星評価 ===== */

.stars{
    font-size:28px;
    cursor:pointer;
    user-select:none;
}

.star{ color:#ddd;}
.star.filled{ color:gold;}

/* ===== ユーティリティ ===== */

.hidden{ display:none; }

/* ===== スマホ ===== */

@media (max-width:768px){

    .site-header{ height:80px;}

    .header-left img{ height:60px;}
    .header-center h1{ font-size:15px;}

    nav{
        right:auto;
        left:0;
        top:-100vh;
        width:100%;
        transition:top .5s;
    }

    .open nav{ top:0;}

    .toggle-btn{
        width:45px;
        height:45px;
    }

    nav .inner{ padding-top:100px;}

    nav ul li{
        transform:translateY(20px);
    }

    nav a:hover{
        transform:translateY(5px);
    }

    .form-content{
        margin-left:5%;
        margin-right:5%;
    }
}
