* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    background: #eeeeee;
    color: #333;
    line-height: 1.7;
}

/* ヘッダー */
.site-header {
    width: 100%;
}

.header-url {
    background: #c9e500;
    color: #000;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    padding: 18px 10px;
}

.header-main {
    background: #ffffff;
    border-bottom: 6px solid #c9e500;
    position: relative;
    text-align: center;
    padding: 15px 20px;
}

.header-logo {
    text-align: center;
}

.header-logo img {
    display: inline-block;
    width: 100%;
    max-width: 420px;
    height: auto;
}

.header-top-button {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.top-btn {
    display: inline-block;
    background: #90b000;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 22px;
    border-radius: 3px;
}

.top-btn:hover {
    background: #708a00;
}

.top-btn:visited {
    color: #fff;
}

/* お問い合わせ画像ボタン */
.contact-banner {
    display: block;
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    text-align: center;
}

.contact-banner img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
}

/* フォーム全体 */
.form-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

h1 {
    text-align: center;
    color: #006633;
    font-size: 42px;
    margin: 0 0 20px;
}

.form-group {
    margin-bottom: 28px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
    width: 100%;
    max-width: 100%;
    padding: 13px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    background: #fff;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #90b000;
    box-shadow: 0 0 0 3px rgba(144,176,0,.18);
}

.checkbox-label {
    display: block;
    font-weight: normal;
    margin: 10px 0;
    line-height: 1.6;
    cursor: pointer;
}

.checkbox-label input {
    margin-right: 8px;
    transform: scale(1.1);
}

.required {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    background: #d90000;
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    vertical-align: middle;
}

.note {
    margin: 6px 0;
    font-size: 14px;
    color: #666;
}

/* エラー */
.error-box {
    margin-bottom: 25px;
    padding: 18px 20px;
    background: #fff0f0;
    border: 1px solid #e60000;
    color: #d00000;
    border-radius: 8px;
}

.error-box ul {
    margin: 0;
    padding-left: 20px;
}

/* 確認画面 */
.confirm-box {
    border-top: 1px solid #ddd;
}

.confirm-box h2 {
    margin: 0;
    padding: 18px 0 6px;
    font-size: 17px;
    color: #006633;
    border-bottom: 1px solid #eee;
}

.confirm-box p {
    margin: 0;
    padding: 12px 0 18px;
}

/* ボタン */
.submit-btn,
.back-btn,
.home-link {
    display: inline-block;
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.submit-btn,
.home-link {
    background: #0a7d2b;
    color: #fff;
}

.submit-btn:hover,
.home-link:hover {
    background: #086422;
}

.back-btn {
    background: #777;
    color: #fff;
}

.back-btn:hover {
    background: #555;
}

.button-area {
    display: flex;
    gap: 16px;
    margin-top: 30px;
}

.button-area .submit-btn,
.button-area .back-btn {
    width: 50%;
}

/* 完了画面 */
.complete {
    text-align: center;
}

.complete-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.complete-links .home-link {
    width: auto;
    min-width: 180px;
}

.top-link {
    background: #666;
}

.top-link:hover {
    background: #444;
}

/* タブレット */
@media screen and (max-width: 768px) {
    .header-url {
        font-size: 18px;
        padding: 12px;
    }

    .header-main {
        padding: 12px;
    }

    .header-logo img {
        max-width: 240px;
    }

    .header-top-button {
        right: 10px;
    }

    .top-btn {
        padding: 10px 14px;
        font-size: 14px;
    }

    .contact-banner {
        max-width: 95%;
        margin: 20px auto;
    }

    .form-wrapper {
        margin: 15px;
        padding: 20px;
    }

    h1 {
        font-size: 28px;
    }

    .button-area {
        flex-direction: column;
    }

    .button-area .submit-btn,
    .button-area .back-btn {
        width: 100%;
    }

    .complete-links {
        flex-direction: column;
    }

    .complete-links .home-link {
        width: 100%;
    }
}

/* スマホ */
@media screen and (max-width: 480px) {
    .header-url {
        font-size: 16px;
        padding: 10px;
    }

    .header-main {
        padding: 10px;
    }

    .header-logo img {
        max-width: 180px;
    }

    .header-top-button {
        right: 8px;
    }

    .top-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .contact-banner {
        max-width: 100%;
        margin: 15px auto;
        padding: 0 10px;
    }

    .form-wrapper {
        margin: 10px;
        padding: 15px;
    }

    h1 {
        font-size: 24px;
    }

    .required {
        margin-left: 0;
        margin-top: 4px;
    }

    .note {
        font-size: 13px;
    }

    .submit-btn,
    .back-btn,
    .home-link {
        font-size: 15px;
        padding: 13px 18px;
    }
}