/* ============================
   リセット・ベース
   ============================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ============================
   レイアウト
   ============================ */
.survey-wrapper {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px 16px 60px;
}

/* ============================
   言語切替
   ============================ */
.lang-switcher {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.lang-icon {
    font-size: 20px;
}

.lang-switcher select {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    width: 130px;
}

.lang-note {
    font-size: 11px;
    color: #999;
    text-align: right;
    margin-top: -16px;
    margin-bottom: 16px;
}

/* ============================
   ロゴ・挨拶
   ============================ */
.survey-logo {
    text-align: center;
    margin-bottom: 20px;
}

.survey-logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.08em;
}

.survey-greeting {
    font-size: 14px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* ============================
   エラーメッセージ
   ============================ */
.survey-error {
    background: #fff0f0;
    border: 1px solid #e74c3c;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.survey-error p {
    color: #e74c3c;
    font-size: 14px;
}

/* ============================
   設問カード
   ============================ */
.survey-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px 20px;
    margin-bottom: 24px;
}

.survey-section {
    margin-bottom: 24px;
}

.survey-question {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* ============================
   バッジ
   ============================ */
.badge-required {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 6px;
}

.badge-multiple {
    display: inline-block;
    background: #888;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 4px;
}

/* ============================
   選択肢（ラジオ・チェックボックス）
   ============================ */
.survey-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 0;
}

.survey-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    border: 1px solid #ccc;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    background: #fff;
}

.survey-option:hover {
    background-color: #f5f5f5;
}

.survey-option.is-selected {
    background-color: #555;
    border-color: #555;
}

.survey-option.is-selected .option-text {
    color: #fff;
}

.survey-option input[type="radio"],
.survey-option input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.option-text {
    font-size: 15px;
    color: #555;
}

/* ============================
   テキストエリア
   ============================ */
.survey-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    line-height: 1.6;
    transition: border-color 0.2s;
}

.survey-textarea:focus {
    outline: none;
    border-color: #999;
}

/* ============================
   送信ボタン
   ============================ */
.survey-submit {
    text-align: center;
    margin-top: 30px;
}

.btn-next {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 16px;
    background: #555;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-next:hover {
    background: #444;
}

/* ============================
   完了画面 - ヘッダー
   ============================ */
.complete-header {
    text-align: center;
    margin-bottom: 24px;
    padding-top: 20px;
}

.complete-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 8px;
}

.complete-meta {
    font-size: 12px;
    color: #888;
}

/* ============================
   Google口コミ誘導
   ============================ */
.google-cta {
    margin-bottom: 30px;
}

.google-cta-bubble {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.cta-character {
    width: 60px;
    height: auto;
}

.google-cta-text {
    font-size: 14px;
    line-height: 1.8;
    background: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    position: relative;
}

.copy-section {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
}

.copy-description {
    font-size: 14px;
    color: #555;
    margin-bottom: 16px;
}

.btn-copy-google {
    display: inline-block;
    width: 100%;
    max-width: 320px;
    padding: 16px 24px;
    background: #333;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 12px;
}

.btn-copy-google:hover {
    background: #222;
}

.copy-note {
    font-size: 12px;
    color: #e74c3c;
    line-height: 1.6;
}

/* ============================
   ガイド - 矢印セクション
   ============================ */
.guide-arrow {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
}

.guide-arrow-text {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.6;
}

.guide-phone-icon {
    width: 80px;
    height: auto;
}

/* ============================
   ガイド - ステップ
   ============================ */
.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.guide-step {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.guide-step-header {
    background: #444;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    text-align: center;
}

.guide-step-image {
    padding: 16px;
    text-align: center;
}

.guide-step-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ============================
   Google口コミ誘導（下部）
   ============================ */
.google-cta-bottom {
    margin-top: 30px;
}

.google-go {
    text-align: center;
    margin-bottom: 20px;
}

.cta-character-go {
    width: 80px;
    height: auto;
    margin-bottom: 8px;
}

.google-go-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* ============================
   レスポンシブ
   ============================ */
@media (max-width: 480px) {
    .survey-wrapper {
        padding: 16px 12px 40px;
    }

    .survey-card {
        padding: 20px 16px;
    }

    .survey-question {
        font-size: 14px;
    }

    .option-text {
        font-size: 14px;
    }

    .complete-title {
        font-size: 20px;
    }
}
