/* Step Form Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --transition-base: all 0.2s ease;
    --accent: #ffc107;
    --primary: #2196f3;
    --text-link: #0066cc;
    --form-bg: #f7f7f7;
    --form-border: #eaeaea;
    --slide-duration: 0.4s;
}

/* Reset some WordPress specific styles that might interfere */
.entry-content {
    margin: 0;
    padding: 0;
}

.entry-content>* {
    margin-bottom: 0;
}

/* Container styles */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 15px 20px;
    padding-bottom: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.store-name {
    text-align: center;
    margin: 20px 0;
    font-size: 24px;
}

.store-info {}

.intro-text p {
    margin-top: 0px;
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.6;
    color: #505050;
    text-align: center;
}

.step-container {
    position: relative;
    overflow: visible;
    min-height: 100px;
    height: auto;
    transition: height var(--slide-duration);
    width: 100%;
}

/* Step box styles */
.step-box {
    position: absolute;
    width: 100%;
    left: 0;
    background-color: #fff;
    padding: 10px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    opacity: 0;
    transition: transform var(--slide-duration), opacity var(--slide-duration);
    transform: translateX(100%);
    height: auto;
    pointer-events: none;
    box-sizing: border-box;
}

.no-transition {
    transition: none !important;
    animation: none !important;
    transform: none !important;
}

.step-box.no-transition.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
    pointer-events: auto;
    z-index: 2;
}

.step-box.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
    pointer-events: auto;
    position: relative;
}

.step-box.prev {
    opacity: 0;
    transform: translateX(-100%);
    z-index: 1;
}

.step-box.next {
    opacity: 0;
    transform: translateX(100%);
    z-index: 1;
}

/* Form group styles */
.form-group {
    background-color: var(--form-bg);
    border: 1px solid var(--form-border);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    width: 100%;
    box-sizing: border-box;
}

/* Star rating styles */
.rating-label,
.scene-label {
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 600;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    width: 100%;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    color: #ddd;
    font-size: 36px;
    padding: 0 10px;
    cursor: pointer;
    transition: var(--transition-base);
}

.star-rating input[type="radio"]:checked~label,
.star-rating input[type="radio"]:checked~label~label,
.star-rating label:hover,
.star-rating label:hover~label {
    color: var(--accent);
    transform: scale(1.1);
}

/* Scene selection styles */
.scene-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scene-text {
   margin-top: 2px;
}

.scene-option {
    padding: 12px;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    background-color: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
}

.scene-option.selected {
    background-color: #e3f2fd;
    border: 2px solid #2196f3;
}

/* Point selection styles */
.points-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.points-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.point-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.point-option {
    padding: 12px;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    background-color: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
}

.point-option.selected {
    background-color: #e3f2fd;
    border: 2px solid #2196f3;
}

/* Navigation styles */
.nav-links {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    padding: 10px 0;
}

.nav-link {
    color: var(--text-link);
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
}

/* Button styles */
.generate-btn, .next-btn {
    background-color: #2196f3;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin: 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    max-width: 100%;
    transition: background-color 0.3s, transform 0.2s;
}

.next-btn {
    width: 50%;
}

.generate-btn:disabled, .next-btn:disabled {
    background-color: #b0bec5;
    cursor: not-allowed;
    transform: none;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    width: 100%;
}

.action-btn {
    flex: 1;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 22.5px;
    padding: 12px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.post-btn {
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.2s;
}

.regenerate-btn {
    background-color: #ff9800;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-bottom: 15px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.2s;
}

/* Step indicator styles */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 6px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.step-dot {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background-color: #ddd;
    transition: background-color 0.3s ease;
}

.step-dot.active {
    background-color: #2196f3;
}

/* Loading overlay styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Error message styles */
.error-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.error-message.show {
    opacity: 1;
}

.error-message p {
    color: #dc3545;
    font-size: 16px;
    margin: 0;
    line-height: 1.4;
}

/* Summary styles */
.selection-summary {
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
    font-size: 16px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.selection-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.star-display {
    color: var(--accent);
    font-size: 20px;
}

/* Review text styles */
.review-text {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    height: 200px;
    overflow-y: auto;
    text-align: left;
    margin-bottom: 10px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.copy-message {
    background-color: #e3f2fd;
    color: #0d47a1;
    padding: 8px;
    border-radius: 5px;
    font-size: 12px;
    margin-bottom: 10px;
    border: 1px solid #bbdefb;
}

/* reCAPTCHA中央揃え */
.recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

/* 制限表示の改善 */
.limit-notice {
    color: #666;
    font-size: 0.85rem;
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center; /* 追加 */
    gap: 4px;
}

.limit-notice .material-icons {
    font-size: 1rem;
    vertical-align: middle;
    margin-top: 1px;
}

/* Material Icons styling */
.material-icons {
    font-size: 20px;
    vertical-align: middle;
    margin-top: -3px;
    margin-right: 8px;
}

.icon-left {
    margin-right: 8px;
    vertical-align: middle;
}

/* Result title styles */
.result-title {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 10px;
    border: 2px solid #4caf50;
}

/* Post description styles */
.post-description {
    color: #666666;
    font-size: 12px;
    line-height: 1.4;
    margin: 0px 0 15px;
    text-align: center;
}

.post-description p {
    margin: 0 0 4px;
}
