* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    background: #f0f2f5;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    color: #1f2937;
    overflow-x: hidden;
    width: 100%;
}

.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

.sidebar {
    width: 260px;
    background: white;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 9999;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.logo {
    font-size: 1.75em;
    font-weight: 700;
    color: #5ec8d8;
    margin: 0;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 0.875em;
    color: #6b7280;
    margin: 4px 0 0 0;
    font-weight: 500;
}

.catchphrase {
    font-size: 0.75em;
    color: #6b7280;
    margin: 6px 0 0 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    padding: 16px 12px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 4px;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-item:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.nav-item.active {
    background: #eff6ff;
    color: #2563eb;
}

.nav-icon {
    font-size: 1.25em;
    margin-right: 12px;
}

.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 0;
    max-width: calc(100% - 260px);
    position: relative;
}

.content-section {
    display: none;
    padding: 32px 40px;
    min-height: 100vh;
}

.content-section.active {
    display: block;
}

.page-header {
    margin-bottom: 32px;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.page-header-content {
    flex: 1;
}

.page-title {
    font-size: 1.75em;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
    text-align: left;
}

.page-description {
    font-size: 0.95em;
    color: #6b7280;
    margin: 0;
    text-align: left;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 10001;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hamburger-menu span {
    width: 100%;
    height: 2.5px;
    background: #5ec8d8;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.hamburger-menu:active {
    transform: scale(0.95);
}

.hamburger-menu.active {
    opacity: 0;
    pointer-events: none;
}

.sidebar-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10000;
}

.sidebar-close::before,
.sidebar-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 3px;
    background: #6b7280;
    border-radius: 2px;
    transition: background 0.2s;
}

.sidebar-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.sidebar-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.sidebar-close:hover::before,
.sidebar-close:hover::after {
    background: #374151;
}

.sidebar.open .sidebar-close {
    display: block;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.steps-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.steps-bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.steps-bottom .step {
    max-height: none;
    overflow-y: visible;
}

.step {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.step:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.step h2 {
    color: #111827;
    margin: 0 0 16px 0;
    font-size: 1.1em;
    font-weight: 600;
    border-bottom: 2px solid #5ec8d8;
    padding-bottom: 6px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}



.form-group {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-group label {
    display: inline-block;
    margin-bottom: 0;
    color: #374151;
    font-weight: 500;
    font-size: 0.875em;
    letter-spacing: 0.025em;
    min-width: 80px;
    flex-shrink: 0;
}

.form-group input,
.form-group select {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875em;
    background: white;
    transition: all 0.15s;
}

.form-group input:hover,
.form-group select:hover {
    border-color: #9ca3af;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #5ec8d8;
    box-shadow: 0 0 0 3px rgba(94, 200, 216, 0.1);
}

.form-group select:disabled {
    background-color: #f9fafb;
    cursor: not-allowed;
}

.btn-primary {
    background: #5ec8d8;
    color: white;
    border: none;
    padding: 11px 20px;
    font-size: 0.875em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    width: 100%;
    margin-top: 12px;
}

.btn-primary:hover {
    background: #4ab3c3;
    box-shadow: 0 4px 6px -1px rgba(94, 200, 216, 0.3), 0 2px 4px -1px rgba(94, 200, 216, 0.2);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 11px 20px;
    font-size: 0.875em;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    width: 100%;
    margin-top: 8px;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.preview-box {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: none;
    overflow-y: visible;
}

.preview-box h3 {
    color: #111827;
    margin: 0 0 16px 0;
    font-size: 1em;
    font-weight: 600;
}

.preview-box .question-item {
    margin-bottom: 16px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    break-inside: avoid;
    page-break-inside: avoid;
}

.preview-box .question-item:last-child {
    margin-bottom: 0;
}

.preview-box .question-text {
    font-weight: 500;
    color: #111827;
    margin-bottom: 10px;
    font-size: 0.875em;
}

.preview-box .options {
    color: #6b7280;
    font-size: 0.8125em;
    line-height: 1.6;
}

.edit-instruction {
    color: #92400e;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    font-size: 0.8125em;
    line-height: 1.5;
}

.editable-question {
    cursor: pointer;
    padding: 3px;
    border-radius: 4px;
    transition: background 0.2s;
}

.editable-question:hover {
    background: #e3f2fd;
}

.option-wrapper {
    display: inline-flex;
    align-items: center;
    margin: 4px 8px 4px 0;
    gap: 4px;
}

.editable-option {
    display: inline-block;
    cursor: pointer;
    padding: 6px 10px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.95em;
}

.editable-option:hover {
    background: #5ec8d8;
    color: white;
}

.option-btn {
    background: none;
    border: none;
    color: #5ec8d8;
    cursor: pointer;
    font-size: 1em;
    padding: 2px 4px;
    margin: 0;
    transition: all 0.2s;
    font-weight: 600;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-btn:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: scale(1.1);
}

.add-option-btn {
    background: #5ec8d8;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 8px;
    transition: background 0.3s;
}

.add-option-btn:hover {
    background: #4ab3c3;
}

.edit-input {
    width: 100%;
    padding: 8px;
    border: 2px solid #5ec8d8;
    border-radius: 4px;
    font-size: 1em;
    margin-bottom: 8px;
}

.new-option-input {
    margin-top: 8px;
    padding: 8px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    border-left: 3px solid #5ec8d8;
}

.new-option-input .edit-input {
    margin-bottom: 0;
    border: 1px solid #d1d5db;
    padding: 6px 8px;
}

.new-option-input .edit-input:focus {
    border-color: #5ec8d8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(94, 200, 216, 0.1);
}

.edit-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.save-btn, .cancel-btn {
    padding: 6px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s;
}

.save-btn {
    background: #28a745;
    color: white;
}

.save-btn:hover {
    background: #218838;
}

.cancel-btn {
    background: #6c757d;
    color: white;
}

.cancel-btn:hover {
    background: #5a6268;
}

.qr-container {
    text-align: center;
    padding: 32px 24px;
}

.qr-container img {
    max-width: 300px;
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    background: white;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.qr-instruction {
    color: #6b7280;
    margin-bottom: 20px;
    font-size: 0.875em;
    font-weight: 500;
}

.survey-info {
    background: #e8f8fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 5px solid #5ec8d8;
}

.info-text {
    color: #333;
    margin-bottom: 10px;
    line-height: 1.6;
}

.info-text:last-child {
    margin-bottom: 0;
}

.info-text span {
    color: #5ec8d8;
    font-weight: 600;
}

.question-block {
    margin-bottom: 25px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.question-block:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.question-label {
    display: block;
    margin-bottom: 16px;
    color: #111827;
    font-weight: 600;
    font-size: 1.1em;
    border-bottom: 2px solid #5ec8d8;
    padding-bottom: 8px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 52px;
}

.radio-option:hover {
    border-color: #5ec8d8;
    background: #f0fbfd;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px -1px rgba(94, 200, 216, 0.2);
}

.radio-option input[type="radio"] {
    margin-right: 12px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    flex-shrink: 0;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: #5ec8d8;
    background: #e8f8fa;
    box-shadow: 0 0 0 2px rgba(94, 200, 216, 0.1);
}

.radio-option label {
    cursor: pointer;
    flex: 1;
    font-size: 1em;
}

.review-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid #5ec8d8;
}

.review-text {
    color: #333;
    line-height: 1.8;
    font-size: 1.05em;
    margin-bottom: 15px;
    white-space: pre-wrap;
}

.review-info {
    text-align: right;
    color: #666;
    font-size: 0.95em;
}

.success-message {
    text-align: center;
    color: #28a745;
    font-weight: 600;
    margin-top: 15px;
    padding: 12px;
    background: #d4edda;
    border-radius: 8px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #5ec8d8;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    color: white;
    font-size: 1.2em;
}

.coming-soon-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(1px);
}

.coming-soon-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 400px;
    margin: 20px;
}

.coming-soon-icon {
    font-size: 4em;
    margin-bottom: 20px;
    color: #5ec8d8;
}

.coming-soon-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.coming-soon-message {
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.6;
}

.close-coming-soon {
    background: #5ec8d8;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.15s;
}

.close-coming-soon:hover {
    background: #4ab3c3;
}

.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1500;
    backdrop-filter: blur(1px);
}

.confirm-content {
    background: white;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 350px;
    margin: 20px;
}

.confirm-icon {
    font-size: 3em;
    margin-bottom: 16px;
    color: #ef4444;
}

.confirm-title {
    font-size: 1.25em;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.confirm-message {
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.5;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-delete {
    background: #ef4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.15s;
}

.confirm-delete:hover {
    background: #dc2626;
}

.confirm-cancel {
    background: #6b7280;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.15s;
}

.confirm-cancel:hover {
    background: #4b5563;
}

.help-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(1px);
}

.help-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    max-height: 80vh;
    margin: 20px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.help-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8f9fa;
}

.help-title {
    font-size: 1.25em;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.close-help {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #6b7280;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.15s;
}

.close-help:hover {
    background: #e5e7eb;
    color: #111827;
}

.help-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

.help-section {
    margin-bottom: 24px;
}

.help-section:last-child {
    margin-bottom: 0;
}

.help-section h3 {
    font-size: 1.1em;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #5ec8d8;
}

.help-section ol,
.help-section ul {
    margin: 0;
    padding-left: 20px;
}

.help-section li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #374151;
}

.help-section strong {
    color: #5ec8d8;
    font-weight: 600;
}

.faq-item {
    margin-bottom: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #5ec8d8;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item h4 {
    font-size: 1em;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.faq-item p {
    font-size: 0.9em;
    color: #374151;
    margin: 0;
    line-height: 1.5;
}

.loading {
    text-align: center;
    color: #666;
    padding: 20px;
}

.coming-soon-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    padding: 60px 20px;
}

.coming-soon-placeholder .coming-soon-icon {
    font-size: 4em;
    margin-bottom: 20px;
    color: #5ec8d8;
}

.coming-soon-placeholder h2 {
    font-size: 1.5em;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.coming-soon-placeholder p {
    color: #6b7280;
    line-height: 1.6;
}

.help-content-page {
    max-width: 100%;
}

.help-content-page .help-section {
    margin-bottom: 32px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.help-content-page .help-section:last-child {
    margin-bottom: 0;
}

.help-content-page .help-section h3 {
    font-size: 1.2em;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #5ec8d8;
    text-align: left;
}

.help-content-page .help-section ol,
.help-content-page .help-section ul {
    margin: 0;
    padding-left: 24px;
    text-align: left;
}

.help-content-page .help-section li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #374151;
    text-align: left;
}

.help-content-page .help-section strong {
    color: #5ec8d8;
    font-weight: 600;
}

.help-content-page .faq-item {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #5ec8d8;
    text-align: left;
}

.help-content-page .faq-item:last-child {
    margin-bottom: 0;
}

.help-content-page .faq-item h4 {
    font-size: 1em;
    font-weight: 600;
    color: #111827;
    margin: 0 0 10px 0;
    line-height: 1.5;
    text-align: left;
}

.help-content-page .faq-item p {
    font-size: 0.95em;
    color: #374151;
    margin: 0;
    line-height: 1.6;
    text-align: left;
}

@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .content-right {
        position: static;
    }
}

/* タブレット用 (1024px以下) */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 9999;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        max-width: 100%;
        padding: 0;
    }
    
    .content-section {
        padding: 80px 24px 24px 24px;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .page-title {
        font-size: 1.5em;
    }
    
    .steps-container {
        gap: 16px;
    }
    
    .steps-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .step {
        padding: 20px;
    }
}

/* タブレット用 (768px以下) */
@media (max-width: 768px) {
    .content-section {
        padding: 80px 20px 20px 20px;
    }
    
    .page-title {
        font-size: 1.25em;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .steps-container {
        gap: 12px;
    }
    
    .steps-top {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .step {
        padding: 16px;
    }
    
    .step h2 {
        font-size: 1.1em;
    }
    
    .preview-box {
        gap: 12px;
    }
    
    .qr-container {
        padding: 15px;
    }
    
    .qr-container img {
        max-width: 100%;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 16px;
        font-size: 0.95em;
    }
    
    .help-content-page .help-section {
        padding: 20px;
    }
    
    .question-block {
        padding: 20px;
    }
    
    .survey-info {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .app-container {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .content-section {
        padding: 80px 16px 16px 16px;
    }
    
    .page-header {
        margin-bottom: 20px;
    }
    
    .page-title {
        font-size: 1.1em;
        word-break: break-word;
    }
    
    .page-description {
        font-size: 0.85em;
        word-break: break-word;
    }
    
    .hamburger-menu {
        display: flex;
        top: 12px;
        left: 12px;
    }
    
    .question-block {
        padding: 18px;
        margin-bottom: 16px;
    }
    
    .question-label {
        font-size: 1em;
    }
    
    .radio-option {
        padding: 14px;
    }
    
    .survey-info {
        padding: 14px;
        margin-bottom: 20px;
    }
    
    .steps-container {
        gap: 12px;
        width: 100%;
    }
    
    .steps-top {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }
    
    .step {
        padding: 16px;
        margin-bottom: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .step h2 {
        font-size: 1.1em;
        margin-bottom: 16px;
        word-break: break-word;
    }
    
    .form-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
    }
    
    .form-group label {
        font-size: 0.95em;
        margin-bottom: 0;
        min-width: auto;
    }
    
    .form-group input,
    .form-group select {
        font-size: 16px;
        padding: 12px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .option-wrapper {
        margin: 6px 0;
        width: 100%;
    }
    
    .editable-option {
        font-size: 0.9em;
        padding: 8px 10px;
        word-break: break-word;
    }
    
    .option-btn {
        padding: 6px 8px;
        font-size: 0.95em;
    }
    
    .question-block {
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .question-label {
        font-size: 1em;
        word-break: break-word;
    }
    
    .radio-option {
        padding: 12px;
        min-height: 44px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .radio-option input[type="radio"] {
        width: 20px;
        height: 20px;
    }
    
    .radio-option label {
        font-size: 0.95em;
        word-break: break-word;
    }
    
    .preview-box {
        gap: 12px;
        padding: 16px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .question-item {
        padding: 12px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .question-text {
        font-size: 0.9em;
        margin-bottom: 8px;
        word-break: break-word;
    }
    
    .options {
        font-size: 0.85em;
        line-height: 1.4;
        word-break: break-word;
    }
    
    .review-box {
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .review-text {
        font-size: 1em;
        line-height: 1.7;
        word-break: break-word;
    }
    
    .survey-info {
        padding: 16px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .info-text {
        font-size: 0.9em;
        word-break: break-word;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        box-sizing: border-box;
    }
    
    .help-content {
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
        margin: 20px;
    }
    
    .coming-soon-content {
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
        margin: 20px;
    }
    
    .confirm-content {
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
        margin: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-conversion {
        grid-column: span 1;
    }
}

.stats-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.stat-conversion {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-conversion .stat-title {
    color: rgba(255, 255, 255, 0.9);
}

.stat-conversion .stat-value {
    color: white;
}

.stat-conversion .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.stat-icon {
    font-size: 3em;
    text-align: center;
    margin-bottom: 16px;
}

.stat-content {
    text-align: center;
}

.stat-title {
    font-size: 0.9em;
    color: #6b7280;
    margin-bottom: 12px;
    font-weight: 500;
}

.stat-value {
    font-size: 3em;
    font-weight: 700;
    color: #5ec8d8;
    margin: 0;
    line-height: 1;
}

.stat-label {
    font-size: 1.2em;
    color: #6b7280;
    margin-top: 8px;
}

.stats-info {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stats-date {
    font-size: 0.95em;
    color: #4b5563;
    margin: 8px 0;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.stats-date:last-child {
    border-bottom: none;
}

.stats-date span {
    color: #5ec8d8;
    font-weight: 600;
}

/* 複数選択用のスタイル */
.checkbox-option {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 52px;
}

.checkbox-option:hover {
    border-color: #5ec8d8;
    background: #f0fbfd;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px -1px rgba(94, 200, 216, 0.2);
}

.checkbox-option input[type="checkbox"] {
    margin-right: 12px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-option:has(input[type="checkbox"]:checked) {
    border-color: #5ec8d8;
    background: #e8f8fa;
    box-shadow: 0 0 0 2px rgba(94, 200, 216, 0.1);
}

.checkbox-option label {
    cursor: pointer;
    flex: 1;
    font-size: 1em;
}

/* ローディング表示 */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    padding: 40px 20px;
}

.loading-content {
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.loading-content .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #5ec8d8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content p {
    font-size: 1.1em;
    color: #6b7280;
    margin-bottom: 30px;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5ec8d8, #4ab3c3);
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease;
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.loading-steps .step {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    color: #9ca3af;
    background-color: #f3f4f6;
    transition: all 0.3s ease;
}

.loading-steps .step.active {
    color: #5ec8d8;
    background-color: #e8f8fa;
    font-weight: 500;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .checkbox-option {
        padding: 14px;
    }
    
    .checkbox-option input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }
    
    .checkbox-option label {
        font-size: 0.95em;
    }
    
    .loading-container {
        min-height: 250px;
        padding: 30px 15px;
    }
    
    .loading-content .spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
    
    .loading-content p {
        font-size: 1em;
        margin-bottom: 25px;
    }
    
    .loading-steps .step {
        font-size: 0.85em;
        padding: 6px 12px;
    }
}

