/* ==========================================
   CSS Variables
   ========================================== */
:root {
    /* Colors */
    --primary-color: #2d5016;
    --primary-dark: #1a3009;
    --primary-light: #4a7a2c;
    --secondary-color: #8fbc5a;
    --accent-color: #d4a574;
    --text-dark: #1a1a1a;
    --text-light: #4a4a4a;
    --text-white: #ffffff;
    --bg-light: #f9faf8;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    
    /* Typography */
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-serif: 'Noto Serif JP', serif;
    
    /* Spacing */
    --section-padding: 80px;
    --container-max-width: 1200px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* ==========================================
   Base Styles
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

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

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2px;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 1px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

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

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

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: zoomIn 20s ease-in-out infinite alternate;
}

@keyframes zoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.8) 0%, rgba(45, 80, 22, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-white);
    animation: fadeInUp 1s ease-out;
}

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

.badges {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

.badge i {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--text-white);
    color: var(--text-white);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--text-white);
    color: var(--text-white);
}

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-white);
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.scroll-line {
    width: 2px;
    height: 50px;
    background-color: var(--text-white);
    margin-top: 10px;
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0%, 100% {
        opacity: 0;
        transform: translateY(-20px);
    }
    50% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Section Styles
   ========================================== */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ==========================================
   Philosophy Section
   ========================================== */
.philosophy {
    background-color: var(--bg-light);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.philosophy-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.philosophy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.philosophy-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 2rem;
}

.philosophy-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.philosophy-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ==========================================
   About Section
   ========================================== */
.about-table-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.about-table {
    width: 100%;
    border-collapse: collapse;
}

.about-table tr {
    border-bottom: 1px solid var(--border-color);
}

.about-table tr:last-child {
    border-bottom: none;
}

.about-table th {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 20px;
    text-align: left;
    font-weight: 600;
    width: 30%;
}

.about-table td {
    padding: 20px;
    color: var(--text-dark);
}

/* ==========================================
   Business Section
   ========================================== */
.business {
    position: relative;
    color: var(--text-white);
}

.business-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.business-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.9) 0%, rgba(74, 122, 44, 0.85) 100%);
}

.business .container {
    position: relative;
    z-index: 2;
}

.business .section-title,
.business .section-subtitle {
    color: var(--text-white);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.business-card {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.business-card:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.business-number {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
    font-family: var(--font-serif);
}

.business-unit {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 300;
}

.business-label {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.business-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.business-summary {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.business-summary p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.business-summary strong {
    font-size: 1.3rem;
    display: block;
    margin-bottom: 10px;
}

/* ==========================================
   Commitment Section
   ========================================== */
.commitment {
    background-color: var(--bg-light);
}

.commitment-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.commitment-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.commitment-item:nth-child(even) {
    direction: rtl;
}

.commitment-item:nth-child(even) .commitment-content {
    direction: ltr;
}

.commitment-image-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
}

.commitment-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.2), transparent);
}

.commitment-image-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.commitment-item:hover .commitment-image-wrapper img {
    transform: scale(1.05);
}

.commitment-content {
    padding: 20px;
}

.commitment-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    opacity: 0.3;
    font-family: var(--font-serif);
    margin-bottom: 10px;
}

.commitment-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.commitment-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-light);
}

/* ==========================================
   Achievements Section
   ========================================== */
.achievements-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.achievement-main {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-white);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.achievement-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--accent-color);
}

.achievement-main h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.achievement-award {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.achievement-date {
    font-size: 1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.achievement-description {
    font-size: 1.05rem;
    line-height: 1.8;
}

.achievements-list {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.achievements-list h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 600;
}

.achievements-list ul {
    list-style: none;
}

.achievements-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.achievements-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.achievements-list li i {
    color: var(--secondary-color);
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.achievements-list strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.achievements-list span {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact {
    background-color: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-details p {
    color: var(--text-light);
    line-height: 1.8;
}

.contact-details a {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-details a:hover {
    color: var(--primary-light);
}

.access-info {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.access-info h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 600;
}

.access-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.access-item:last-child {
    margin-bottom: 0;
}

.access-item i {
    width: 40px;
    height: 40px;
    background-color: var(--bg-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.access-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.access-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background-color: var(--primary-dark);
    color: var(--text-white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.footer-info p {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-address {
    margin-top: 20px;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ==========================================
   Back to Top Button
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* ==========================================
   Scroll Animations
   ========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   Responsive Design
   ========================================== */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --section-padding: 60px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .commitment-item {
        grid-template-columns: 1fr;
    }
    
    .commitment-item:nth-child(even) {
        direction: ltr;
    }
    
    .achievements-content {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 40px;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-white);
        transition: var(--transition);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 30px;
    }
    
    .nav-list li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link {
        display: block;
        padding: 20px 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero {
        height: 100vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-description br {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .badges {
        flex-direction: column;
        gap: 10px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .philosophy-grid,
    .business-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-table th,
    .about-table td {
        display: block;
        width: 100%;
        padding: 15px;
    }
    
    .about-table th {
        border-bottom: none;
    }
    
    .commitment-image-wrapper img {
        height: 300px;
    }
    
    .achievement-main {
        padding: 30px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .business-number {
        font-size: 3rem;
    }
    
    .commitment-content h3 {
        font-size: 1.4rem;
    }
}