/* css/style.css */

/* --- Base Styles & Variables --- */
:root {
    --main-color: #FFFFFF;
    --accent-color: #76bbd1;
    --light-gray-color: #f0f2f5;
    --text-color: #333333;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Noto Sans JP', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--main-color);
    line-height: 1.8;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1120px;
    margin: 0 auto;
}

.sp-only { display: none; }

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: box-shadow 0.3s ease;
}
.header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo a {
    display: flex;
    align-items: center;
}
.header-right-wrapper {
    display: flex;
    align-items: center;
}
.global-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.global-nav li {
    margin-left: 30px;
}
.global-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 5px;
    white-space: nowrap;
}
.global-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}
.global-nav a:hover::after {
    width: 100%;
}

.hamburger-menu { display: none; }

/* --- Hero Section (Slideshow) --- */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #333;
}
.hero-slideshow {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}
/* ★ MODIFICATION: Simplified for GSAP control */
.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    /* GSAP will control opacity and transform, so no transitions or animations here */
    opacity: 0;
}
.hero-overlay {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--main-color);
    text-shadow: 0 2px 15px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease 0.8s forwards;
}
.main-catchphrase {
    font-family: var(--heading-font);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin: 0;
}
.sub-catchphrase {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-top: 1rem;
    font-weight: 300;
    opacity: 0;
    animation: fadeInUp 1.2s ease 1.2s forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Content Sections --- */
.content-section { padding: 100px 0; }
.section-title { font-family: var(--heading-font); font-size: clamp(1.8rem, 4vw, 3rem); text-align: center; margin-bottom: 60px; position: relative; padding-bottom: 15px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background-color: var(--accent-color); }
.bg-light-gray { background-color: var(--light-gray-color); }

/* --- Greeting & Company Sections --- */
.greeting-container { display: flex; align-items: center; gap: 5%; }
.greeting-text { flex: 1; }
.greeting-lead { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.greeting-signature { text-align: left; margin-top: 1.5rem; font-size: 1.1rem; }
.company-profile-table { max-width: 800px; margin: 0 auto; background-color: var(--main-color); border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; }
.company-profile-table dl { display: flex; margin: 0; border-bottom: 1px solid #e0e0e0; }
.company-profile-table dl:last-child { border-bottom: none; }
.company-profile-table dt { flex-basis: 30%; padding: 20px; font-weight: 700; background-color: var(--light-gray-color); }
.company-profile-table dd { flex-basis: 70%; padding: 20px; margin: 0; }

/* --- Service Section --- */
.service-cards-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background-color: var(--main-color); padding: 30px; border-radius: 8px; text-align: center; box-shadow: 0 5px 25px rgba(0,0,0,0.07); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 12px 35px rgba(0,0,0,0.1); }
.service-card-icon { width: 60px; height: 60px; margin: 0 auto 20px; background-color: var(--accent-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.service-card-icon svg { width: 30px; height: 30px; color: var(--main-color); stroke-width: 1.5; }
.service-card-title { font-family: var(--heading-font); font-size: 1.5rem; margin-bottom: 15px; }

/* --- Access Section --- */
.access-map-container { width: 100%; height: 450px; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 25px rgba(0,0,0,0.1); }
.access-map-container iframe { width: 100%; height: 100%; border: 0; }
.access-info { text-align: center; margin-top: 30px; }
.access-info p { margin-bottom: 1em; }
.access-info strong { font-size: 1.1rem; }

/* --- Contact Section & General Button Styles --- */
.contact-content { text-align: center; max-width: 700px; margin: 0 auto; }
.contact-content p { font-size: 1.1rem; margin-bottom: 40px; }
.contact-buttons { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 15px 40px; border-radius: 50px; text-decoration: none; font-weight: 700; transition: all 0.3s ease; border: 2px solid transparent; }
.btn-primary { background-color: var(--accent-color); color: var(--main-color); border-color: var(--accent-color); box-shadow: 0 4px 15px rgba(118, 187, 209, 0.4); }
.btn-primary:hover { background-color: #5aa6bf; border-color: #5aa6bf; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(118, 187, 209, 0.5); }

/* --- Footer --- */
.footer { background-color: var(--text-color); color: #a0a0a0; padding: 40px 0; }
.footer-container { display: flex; justify-content: space-between; align-items: center; }
.footer-logo { font-family: var(--heading-font); font-size: 20px; font-weight: 700; color: var(--main-color); }

/* --- GSAP Animation Initial State --- */
.anim-item { opacity: 0; transform: translateY(40px); }

/* --- Responsive Styles --- */
@media (max-width: 1100px) { .global-nav li { margin-left: 20px; } }
@media (max-width: 960px) {
    .global-nav { display: none; position: absolute; top: 90px; left: 0; width: 100%; background-color: var(--main-color); box-shadow: 0 5px 10px rgba(0,0,0,0.05); }
    .global-nav.is-open { display: block; }
    .global-nav ul { flex-direction: column; align-items: stretch; }
    .global-nav li { margin: 0; width: 100%; text-align: center; }
    .global-nav a { display: block; padding: 15px; border-bottom: 1px solid var(--light-gray-color); }
    .global-nav a::after { display: none; }
    .hamburger-menu { display: block; width: 30px; height: 22px; position: relative; cursor: pointer; background: none; border: none; padding: 0; margin-left: 20px; }
    .hamburger-menu span { display: block; position: absolute; left: 0; width: 100%; height: 3px; background-color: var(--text-color); transition: all 0.3s ease-in-out; border-radius: 3px; }
    .hamburger-menu span:nth-child(1) { top: 0; }
    .hamburger-menu span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .hamburger-menu span:nth-child(3) { bottom: 0; }
    .hamburger-menu.is-active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
    .hamburger-menu.is-active span:nth-child(2) { opacity: 0; }
    .hamburger-menu.is-active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }
}
@media (max-width: 768px) {
    .sp-only { display: block; }
    .greeting-container { flex-direction: column; }
    .company-profile-table dl { flex-direction: column; }
    .company-profile-table dt, .company-profile-table dd { flex-basis: auto; }
    .company-profile-table dt { border-bottom: 1px solid #e0e0e0; }
    .contact-buttons { flex-direction: column; }
    .footer-container { flex-direction: column; gap: 15px; }
}
