/*
Theme Name: Spring Foam
Theme URI: https://j-break.co.jp
Author: J-BREAK Co., Ltd.
Author URI: https://j-break.co.jp
Description: Spring Foam corporate website theme with video background, multi-language support, and modern animations. Features full-screen hero video with BGM control, 1-column layout, and responsive design for desktop, tablet, and mobile devices.
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: springfoam
Tags: one-column, custom-colors, custom-menu, featured-images, full-width-template, multilingual, responsive-layout, translation-ready
*/

/* ===== CSS Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #00B050;
    --dark-green: #0a2e1a;
    --light-bg: #f9fdf9;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--white);
}

body.lang-ja {
    font-family: 'Noto Sans JP', sans-serif;
}

body.lang-fr {
    font-family: 'Inter', sans-serif;
}

body.lang-en {
    font-family: 'Inter', sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== Custom Cursor ===== */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-green);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, opacity 0.3s;
}

.cursor-dot.hover {
    width: 16px;
    height: 16px;
    background: var(--primary-green);
}

.cursor-outline.hover {
    width: 60px;
    height: 60px;
    opacity: 0.5;
}

/* ===== Leaf Particles ===== */
.leaf-particles {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.leaf {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary-green);
    border-radius: 50% 0;
    opacity: 0.3;
    animation: float-up 15s infinite ease-in-out;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(720deg);
        opacity: 0;
    }
}

/* ===== Header ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

#header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 176, 80, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-green);
}

.language-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-btn {
    background: none;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.lang-btn img {
    height: 20px;
    width: auto;
}

.lang-btn.active {
    border-color: var(--primary-green);
    background: rgba(0, 176, 80, 0.05);
}

.lang-btn:hover {
    background: rgba(0, 176, 80, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--primary-green);
    transition: var(--transition);
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
}

/* ===== Section Indicator ===== */
.section-indicator {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary-green);
    background: transparent;
    transition: var(--transition);
    cursor: pointer;
}

.indicator-dot.active {
    background: var(--primary-green);
    transform: scale(1.3);
}

.indicator-dot:hover {
    background: rgba(0, 176, 80, 0.5);
    transform: scale(1.2);
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 176, 80, 0.3);
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--dark-green);
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 176, 80, 0.4);
}

/* ===== BGM Control Button ===== */
.bgm-control {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 176, 80, 0.3);
    z-index: 900;
}

.bgm-control:hover {
    background: var(--dark-green);
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 176, 80, 0.4);
}

.bgm-control.muted {
    background: var(--text-gray);
}

.bgm-control.muted:hover {
    background: var(--text-dark);
}

/* ===== Hero Section ===== */
.hero {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.hero-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* ===== Sections ===== */
.section {
    padding: 120px 0;
    position: relative;
    background: var(--white);
    opacity: 1;
    transform: none;
}

/* ===== Section Divider (subtle) ===== */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 176, 80, 0.1), transparent);
    margin: 80px auto;
    max-width: 600px;
}

/* ===== Section Title ===== */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.title-image {
    display: inline-block;
    max-width: 350px;
    height: auto;
}

/* ===== Section Subtitle ===== */
.section-subtitle {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle p {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-gray);
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== Section Image (individual) ===== */
.section-image {
    text-align: center;
    margin: 50px 0;
}

.section-image img {
    max-width: 300px;
    margin: 0 auto;
    display: inline-block;
}

/* ===== Section Text ===== */
.section-text {
    font-size: 18px;
    line-height: 1.9;
    color: var(--text-gray);
    max-width: 800px;
    margin: 50px auto;
    text-align: left;
}

/* ===== Scroll Reveal は廃止 ===== */

/* ===== Hover Effects ===== */
.hover-float {
    transition: var(--transition);
}

.hover-float:hover {
    transform: translateY(-10px);
    filter: drop-shadow(0 10px 20px rgba(0, 176, 80, 0.2));
}

.tree-illustration {
    transition: var(--transition);
}

.tree-illustration.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* ===== Company Section ===== */
.company {
    background: var(--light-bg);
}

.company-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 80px;
}

.company-single {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 600px;
    margin: 0 auto;
}

.company-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.company-item p {
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.8;
}

.company-item a {
    color: var(--primary-green);
    transition: var(--transition);
}

.company-item a:hover {
    text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-green);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer p {
    font-size: 14px;
    opacity: 0.8;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .header-content {
        padding: 15px 30px;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
        align-items: flex-start;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .section-indicator {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .header-content {
        padding: 12px 20px;
    }
    
    .logo img {
        height: 32px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .section-subtitle {
        margin-bottom: 40px;
    }
    
    .section-subtitle p {
        font-size: 18px;
    }
    
    .title-image {
        max-width: 280px;
    }
    
    .section-text {
        font-size: 16px;
    }
    
    .section-image img {
        max-width: 250px;
    }
    
    .company-single {
        gap: 40px;
    }
    
    .company-title {
        font-size: 32px;
        margin-bottom: 50px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        right: 20px;
        bottom: 20px;
    }
    
    .bgm-control {
        width: 45px;
        height: 45px;
        right: 80px;
        bottom: 20px;
    }
    
    .cursor-dot,
    .cursor-outline {
        display: none;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 0;
    }
    
    .section-subtitle p {
        font-size: 16px;
    }
    
    .section-text {
        font-size: 15px;
    }
    
    .section-image img {
        max-width: 200px;
    }
    
    .company-item h3 {
        font-size: 14px;
    }
    
    .company-item p {
        font-size: 16px;
    }
    
    .language-switcher {
        gap: 5px;
    }
    
    .lang-btn {
        padding: 4px 8px;
    }
    
    .lang-btn img {
        height: 16px;
    }
}
