/*
Theme Name: Fundred Inc. Official
Theme URI: https://fundred.co.jp
Author: Fundred Inc.
Author URI: https://fundred.co.jp
Description: A custom SPA-like theme for Fundred Inc. built with Tailwind CSS.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fundred-theme
*/

/* * 基本的なスタイルはTailwind CSSで行いますが、
 * WordPress固有のクラスやリセットが必要な場合はここに追記します。
 */
body {
    font-family: "Noto Sans JP", sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    overflow-x: hidden; /* 横スクロール防止 */
}

/* Loading Screen */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

.loader-text {
    color: white;
    font-family: "Oswald", sans-serif;
    font-size: 3rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    letter-spacing: 0.1em;
}

/* Custom Utilities */
.glass-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #00A86B;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Page Transitions */
.page-section {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}
.page-section.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile Menu */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
}
#mobile-menu.open {
    transform: translateX(0);
}

/* Snow Monkey Forms Styling */
.snow-monkey-form {
    background-color: #f9fafb;
    padding: 2rem;
    border-radius: 0.5rem;
}

.smf-progress-tracker {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0;
    list-style: none;
}

.smf-progress-tracker__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    max-width: 150px;
}

.smf-progress-tracker__item__number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.smf-progress-tracker__item[aria-current="true"] .smf-progress-tracker__item__number {
    background-color: #00A86B;
    color: white;
}

.smf-progress-tracker__item__text {
    font-size: 0.75rem;
    text-align: center;
    color: #6b7280;
}

.smf-progress-tracker__item[aria-current="true"] .smf-progress-tracker__item__text {
    color: #1a1a1a;
    font-weight: 600;
}

.smf-form {
    margin-bottom: 1.5rem;
}

.smf-item {
    margin-bottom: 1.5rem;
}

.smf-item__col--label {
    margin-bottom: 0.5rem;
}

.smf-item__label__text {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1a1a1a;
}

.smf-item__label__text::after {
    content: " *";
    color: #ef4444;
}

.smf-text-control__control,
.smf-select-control__control,
.smf-textarea-control__control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: white;
}

.smf-text-control__control:focus,
.smf-select-control__control:focus,
.smf-textarea-control__control:focus {
    outline: none;
    border-color: #00A86B;
    box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.1);
}

.smf-select-control {
    position: relative;
}

.smf-select-control__control {
    appearance: none;
    padding-right: 2.5rem;
}

.smf-select-control__toggle::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #6b7280;
    pointer-events: none;
}

.smf-textarea-control__control {
    min-height: 8rem;
    resize: vertical;
}

.smf-action {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.smf-action button[type="submit"] {
    background: #1a1a1a;
    color: white;
    padding: 0.75rem 3rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.smf-action button[type="submit"]:hover {
    background-color: #00A86B;
    transform: translateY(-2px);
}

.smf-system-error-content-ready {
    display: none;
    background-color: #fee2e2;
    color: #991b1b;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-top: 1rem;
    text-align: center;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}