/*
Theme Name: SNSYS Theme
Theme URI: https://example.com/snsys-theme
Author: Your Name
Author URI: https://example.com/
Description: SNS採用単価シミュレーションのためのカスタムWordPressテーマ。
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-theme, snsys, one-column
Text Domain: snsystheme
*/

:root {
    --primary: #0078d4;
    --primary-dark: #006cbe;
    --primary-light: #e6f0f9;
    --accent: #ff4081;
    --accent-dark: #e6337a;
    --warning: #ffd700;
    --warning-light: #fff9e6;
    --text: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --border: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: #f0f8ff;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><rect width="40" height="40" fill="none" stroke="%23e0e0e0" stroke-width="0.5"/></svg>');
    background-repeat: repeat;
    background-size: 40px 40px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.highlight {
    color: var(--primary);
    font-weight: 700;
}

.accent {
    color: var(--accent);
    font-weight: 700;
}

.line-through {
    text-decoration: line-through;
}

.underline {
    text-decoration: underline;
}

/* Header */
.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--primary);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 80px;
    height: auto; /* Added for maintaining aspect ratio */
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
    text-decoration: none; /* Ensure links styled as buttons don't have underlines */
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-large {
    padding: 16px 24px;
    font-size: 18px;
    border-radius: 9999px;
    max-width: 400px;
    width: 100%;
    margin: 24px auto; /* For centering if it's a block or flex item itself */
    display: flex; /* Ensures icon and text align well */
}


.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary-light);
}

/* Main Content */
.main {
    padding: 40px 0;
}

.hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto; /* Added bottom margin */
    padding: 40px 20px;
    background-color: var(--white);
    border: 2px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 24px;
}

/* Case Studies */
.case-studies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.case-card {
    background-color: var(--white);
    padding: 16px;
    border-radius: 8px;
    border: 2px solid var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.case-card img {
    width: 100%;
    object-fit: cover;
    margin-bottom: 12px;
    border-radius: 4px;
    max-height: 200px;
}

.case-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.check-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
    margin-right: 8px;
    flex-shrink: 0;
}

.case-company {
    font-weight: 700;
    font-size: 16px;
}

.case-text {
    font-size: 14px;
    margin-bottom: 5px;
}
.case-text:last-child {
    margin-bottom: 0;
}


/* Callout */
.callout {
    background-color: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 16px;
    margin-bottom: 24px;
    border-radius: 0 4px 4px 0;
}

.callout-text {
    font-size: 18px;
    font-weight: 500;
}

/* Intro Text */
.intro-text {
    margin-bottom: 24px;
}

.intro-text p {
    font-size: 18px;
    margin-bottom: 16px;
    line-height: 1.8;
}

/* Icons for buttons */
.clock-icon, .chevron-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.clock-icon {
    margin-right: 8px;
}

.chevron-icon {
    margin-left: 8px;
}

/* Promo Box */
.promo-box {
    background-color: var(--warning-light);
    border: 1px solid var(--warning);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.promo-title {
    font-weight: 500;
    margin-bottom: 4px;
}

/* Diagnostic Form */
.diagnostic-form { /* This is the main section containing the diagnostic tool */
    max-width: 800px;
    margin: 0 auto;
    padding-top: 20px;
}

.hidden {
    display: none !important;
}

.progress-container {
    margin-bottom: 24px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.progress-step, .progress-percent {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
}

.progress-bar {
    height: 8px;
    background-color: var(--primary-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-indicator {
    height: 100%;
    background-color: var(--primary);
    transition: width 0.5s ease;
}

.step-container {
    background-color: var(--white);
    border: 2px solid var(--primary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}


.step-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 16px 24px;
    text-align: center;
}

.step-title {
    font-size: 22px;
    margin-bottom: 4px;
}

.step-description {
    opacity: 0.9;
    font-size: 14px;
}

.step-content {
    padding: 24px;
}

.step-footer {
    display: flex;
    justify-content: space-between;
    padding: 0 24px 24px;
    gap: 10px;
}

.step-footer.center-button {
    justify-content: center;
}


/* Form Elements */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-select, .form-input, .form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
    background-color: #fff;
}
.form-textarea {
    min-height: 100px;
    resize: vertical;
}


.form-select:focus, .form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.15);
}

.radio-group, .checkbox-group {
    display: grid;
    gap: 12px;
}

.radio-group.cost-options,
.checkbox-group {
     grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}


.radio-option, .checkbox-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
}

.radio-option:hover, .checkbox-option:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
}

.radio-option input[type="radio"]:checked + span,
.checkbox-option input[type="checkbox"]:checked + span {
    font-weight: 500;
    color: var(--primary);
}


.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
    margin-right: 12px;
    accent-color: var(--primary);
    transform: scale(1.1);
    flex-shrink: 0;
}


/* Results */
.results-container {
    text-align: center;
}

.results-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px solid var(--primary);
}
.results-icon svg {
    color: var(--primary);
}

.results-box {
    background-color: var(--primary-light);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--primary);
    margin-bottom: 24px;
    text-align: left;
}

.results-box p {
    margin-bottom: 12px;
}
.results-box p:last-child {
    margin-bottom: 0;
}

.results-highlight {
    background-color: var(--primary);
    color: var(--white);
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
}

/* Footer */
.footer {
    background-color: var(--white);
    border-top: 1px solid var(--primary);
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.footer-logo {
    text-align: center;
}

.logo-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.target-icon {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.logo-simple-text {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary);
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 24px;
}

.footer-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.footer-link:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.footer-copyright {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 20px;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    .hero-subtitle {
        font-size: 24px;
    }
    .case-studies {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-content {
        flex-direction: row;
        align-items: flex-start;
    }
    .footer-logo {
        text-align: left;
    }
    .logo-simple {
        justify-content: flex-start;
    }
}

@media (min-width: 1024px) {
    .case-studies {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* WordPress specific classes */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* Contact Form 7 Specific Styling */
#cf7-step-content-area .wpcf7-form {
    /* Add any specific styles for the CF7 form within this step */
}
#cf7-step-content-area .wpcf7-form p {
    margin-bottom: 12px; /* Consistent spacing for CF7 fields */
}
#cf7-step-content-area .wpcf7-form label { /* Style CF7 labels if needed */
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
}
#cf7-step-content-area .wpcf7-form input[type="text"],
#cf7-step-content-area .wpcf7-form input[type="email"],
#cf7-step-content-area .wpcf7-form input[type="tel"],
#cf7-step-content-area .wpcf7-form textarea,
#cf7-step-content-area .wpcf7-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    margin-bottom: 8px; /* Space below input field */
}
#cf7-step-content-area .wpcf7-form input[type="text"]:focus,
#cf7-step-content-area .wpcf7-form input[type="email"]:focus,
#cf7-step-content-area .wpcf7-form input[type="tel"]:focus,
#cf7-step-content-area .wpcf7-form textarea:focus,
#cf7-step-content-area .wpcf7-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.15);
}

#cf7-step-content-area .wpcf7-form .wpcf7-list-item { /* For radio/checkbox items */
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}
#cf7-step-content-area .wpcf7-form .wpcf7-list-item-label {
    margin-left: 6px;
}


#cf7-step-content-area .wpcf7-form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
    background-color: var(--primary);
    color: var(--white);
    width: auto;
}
#cf7-step-content-area .wpcf7-form input[type="submit"]:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.cf7-footer {
    display: flex;
    justify-content: center;
    padding: 10px 24px 24px;
}

.mt-4 { margin-top: 1rem; } /* Utility class used in JS generated HTML */
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; } /* Used for spacing around CF7 intro boxes */