

  :root {
    --primary: #f9be00;
    --primary-dark: #fabe00;
    --primary-light: #fbefd0;
    --primary-bg: #fdf8eb;
    --accent: #c08552;
    --accent-dark: #a06a3a;
    --soft-bg: #fdf8eb;
    --warning: #d4a373;
    --warning-dark: #b88550;
    --danger: #b85a4a;
    --danger-dark: #9a4636;
    --safe: #6b8e6e;
    --safe-dark: #4f7252;
    --text: #4b4948;
    --text-light: #7a6f60;
  }

  .survey_wrapper {
	background: var(--primary-bg);

  }

  .container {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 60px rgba(138, 111, 79, 0.18);
  }

  /* === ヘッダー === */
  .survey_wrapper .hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 50px 30px 60px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
  }
  .survey_wrapper .hero::before, .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
  }
  .survey_wrapper .hero::before { width: 200px; height: 200px; top: -80px; right: -50px; }
  .survey_wrapper .hero::after { width: 150px; height: 150px; bottom: -60px; left: -40px; }
  .survey_wrapper .clinic-name {
    font-size: 12px;
    letter-spacing: 0.2em;
    margin-bottom: 15px;
    opacity: 0.9;
    position: relative;
  }
  .survey_wrapper .clinic-name::before, .survey_wrapper .clinic-name::after {
    content: '—'; margin: 0 12px; opacity: 0.6;
  }
  .survey_wrapper .hero h2 {
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.4;
    position: relative;
    letter-spacing: 0.02em;
  }
  .survey_wrapper .hero .lead {
    font-size: 14px;
    opacity: 0.95;
    position: relative;
  }
  .survey_wrapper .tooth-icon {
    font-size: 50px;
    margin-bottom: 15px;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
  }
  @keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }

  .content { padding: 40px 30px 50px; }

  .intro {
    background: var(--soft-bg);
    padding: 22px 25px;
    border-radius: 12px;
    margin-bottom: 35px;
    font-size: 14px;
    border-left: 4px solid var(--primary);
  }
  .intro strong { color: var(--text); }

  .progress-info {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-light);
    font-size: 13px;
  }
  .progress-bar {
    width: 100%;
    height: 6px;
    background: #ede5d3;
    border-radius: 10px;
    margin-top: 8px;
    overflow: hidden;
  }
  .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    width: 0%;
    transition: width 0.3s ease;
  }

  /* === 質問項目 === */
  .question-list { list-style: none; }
  .question-item {
    background: #fff;
    border: 2px solid #ede5d3;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .question-item:hover {
    border-color: var(--primary-light);
    background: #fdfaf3;
    transform: translateX(4px);
  }
  .question-item.checked {
    border-color: var(--primary);
    background: linear-gradient(135deg, #faf6ed, #f5efe3);
    box-shadow: 0 4px 12px rgba(138, 111, 79, 0.15);
  }
  .question-number {
    background: var(--primary-bg);
    color: var(--primary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.25s;
  }
  .question-item.checked .question-number {
    background: var(--primary);
    color: #fff;
  }
  .checkbox {
    width: 26px; height: 26px;
    border: 2px solid #c8b896;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: all 0.2s;
  }
  .question-item.checked .checkbox {
    background: var(--primary);
    border-color: var(--primary);
  }
  .checkbox::after {
    content: "";
    width: 6px; height: 12px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s;
    margin-top: -3px;
  }
  .question-item.checked .checkbox::after {
    transform: rotate(45deg) scale(1);
  }
  .question-text {
    font-size: 15px;
    flex: 1;
    font-weight: 500;
    line-height: 1.5;
  }

  .submit-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 20px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 35px;
    transition: all 0.2s;
    box-shadow: 0 6px 20px rgba(138, 111, 79, 0.3);
    font-family: inherit;
  }
  .submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(138, 111, 79, 0.4);
  }

  /* === 結果ヘッダー === */
  .result-hero {
    padding: 45px 30px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
  }
  .result-hero::before, .result-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
  }
  .result-hero::before { width: 180px; height: 180px; top: -60px; right: -40px; }
  .result-hero::after { width: 130px; height: 130px; bottom: -50px; left: -30px; }
  .result-hero.safe { background: linear-gradient(135deg, var(--safe), var(--safe-dark)); }
  .result-hero.warning { background: linear-gradient(135deg, var(--warning), var(--warning-dark)); }
  .result-hero.danger { background: linear-gradient(135deg, var(--danger), var(--danger-dark)); }

  .result-icon {
    font-size: 60px;
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
  }
  .result-title {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: 10px;
    position: relative;
  }
  .check-count {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 13px;
    margin-top: 14px;
    backdrop-filter: blur(10px);
    position: relative;
  }
  .check-count strong { font-size: 18px; }

  .result-content { padding: 35px 30px; }
  .result-box {
    background: #fafbfc;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.9;
  }
  .result-box.warning {
    background: #fdf6ec;
    border-left: 5px solid var(--warning);
  }
  .result-box.danger {
    background: #fbeee9;
    border-left: 5px solid var(--danger);
  }
  .result-box.safe {
    background: #edf3ed;
    border-left: 5px solid var(--safe);
  }
  .result-box strong {
    color: var(--text);
    background: linear-gradient(transparent 60%, rgba(192, 133, 82, 0.25) 60%);
    padding: 0 2px;
  }

  /* === 矯正治療カード === */
  .feature-card {
    background: linear-gradient(135deg, #fff 0%, #faf6ed 100%);
    border: 2px solid var(--primary-light);
    border-radius: 14px;
    padding: 25px;
    margin: 25px 0;
    text-align: center;
    position: relative;
  }
  .feature-label {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
  }
  .feature-title {
    font-size: 19px;
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: 10px;
    line-height: 1.4;
  }
  .feature-text {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 18px;
    line-height: 1.7;
  }
  .feature-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    background: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: 30px;
    transition: all 0.2s;
  }
  .feature-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(138, 111, 79, 0.3);
  }

  /* === CTAボタン === */
  .cta-section { margin-top: 30px; }
  .cta-title {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 18px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.08em;
  }
  .cta-title::before, .cta-title::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background: var(--text-light);
    vertical-align: middle;
    margin: 0 12px;
    opacity: 0.4;
  }
  .survey_wrapper .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: calc(100% - 36px);
    padding: 18px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-family: inherit;
  }
  .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  }
  .btn-web {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
  }
  .btn-web-outline {
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary) !important;
  }
  .btn-web-outline:hover {
    background: var(--soft-bg);
  }
  .btn-icon { font-size: 20px; }

  .retake {
    display: block;
    text-align: center;
    margin: 25px auto 0;
    color: var(--text-light);
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    padding: 8px;
  }
  .retake:hover { color: var(--primary); }

  .hidden { display: none; }

  /* === フッター === */
  .footer-info {
    background: #faf6ed;
    padding: 20px 30px;
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
    border-top: 1px solid #ede5d3;
  }
  .footer-info strong { color: var(--primary); }

  /* === スマホ対応 === */
  @media (max-width: 600px) {
    .container { border-radius: 16px; }
    .survey_wrapper .hero { padding: 40px 20px 50px; }
    .survey_wrapper .hero h1 { font-size: 24px; }
    .content { padding: 30px 20px 40px; }
    .result-content { padding: 25px 20px; }
    .result-title { font-size: 21px; }
    .question-item { padding: 16px 18px; gap: 10px; }
    .question-text { font-size: 14px; }
    .survey_wrapper .btn { width: 100%; }
  }

  .fade-in { animation: fadeIn 0.5s ease; }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
