/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* ヘッダー */
.site-header {
    background: linear-gradient(to bottom, #0066cc, #0052a3);
    color: white;
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-container h1 {
    font-size: 16px;
    margin: 0;
    font-weight: normal;
}

/* メインコンテンツ */
main {
    margin-top: 60px;
    padding: 20px 0 60px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
}

/* 同意セクション */
.agreement-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f8f8;
    border-left: 4px solid #0066cc;
}

.agreement-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.agreement-label input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
}

.agreement-text {
    font-weight: bold;
    color: #333;
}

/* 注意事項リスト */
.notice-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.notice-list li {
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

/* セクションスタイル */
section {
    margin-bottom: 40px;
}

h2 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #444;
}

/* フォーム要素 */
.form-group {
    margin-bottom: 20px;
}

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

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 5px rgba(0,102,204,0.2);
}

.note {
    font-size: 14px;
    color: #666;
    margin-left: 10px;
}

/* ラジオボタンとチェックボックス */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 10px;
}

/* 質問セクション */
.question {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
}

.question p {
    margin-top: 0;
    font-weight: bold;
}

textarea {
    width: 100%;
    resize: vertical;
    min-height: 80px;
}

/* エラー表示 */
.agreement-section.error {
    border-left-color: #ff4444;
    background-color: #fff8f8;
}

.error-message {
    color: #ff4444;
    font-size: 14px;
    margin-top: 5px;
    margin-left: 28px;
}

.form-group.error input {
    border-color: #ff4444;
}

/* お礼メッセージとボタン */
.form-button {
    text-align: center;
    margin-top: 40px;
}

.thank-you-message {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-weight: bold;
}

button {
    background-color: #0066cc;
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0052a3;
}

/* フッター */
.site-footer {
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding: 20px 0;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.page-top a {
    color: #0066cc;
    text-decoration: none;
    font-size: 12px;
}

.page-top a:hover {
    text-decoration: underline;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-container h1 {
        text-align: center;
    }

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

    button {
        width: 100%;
        max-width: 300px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* サンクス画面 */
.complete-message {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    margin: 30px 0;
}

.complete-message p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.complete-message .button {
    display: inline-block;
    padding: 12px 40px;
    background-color: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.complete-message .button:hover {
    background-color: #0052a3;
}

/* ラジオボタングループの横並び表示 */
.radio-group.horizontal {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;  /* 選択肢間の間隔 */
    margin-top: 0.5rem;
}

.radio-group.horizontal label {
    display: inline-flex;
    align-items: center;
    margin: 0;
    white-space: nowrap;
    font-weight: normal;
}

.radio-group.horizontal input[type="radio"] {
    margin: 0 0.5rem 0 0;  /* ラジオボタンとテキストの間隔 */
}

/* モバイル対応 */
@media (max-width: 768px) {
    .radio-group.horizontal {
        gap: 1rem;
    }
}

/* 説明文のスタイル */
.introduction-text {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
}

.introduction-text p {
    margin: 0 0 10px 0;
    line-height: 1.6;
    color: #333;
}

.introduction-text p:last-child {
    margin-bottom: 0;
}