/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ===== BRAND TOKENS ===== */
:root {
    --brand-primary: #E45827; /* Orange */
    --brand-blue-green: #0F7A83;
    --brand-navy: #151F40;
    --brand-beige: #EADBBB;
    --brand-white: #FFFFFF;
    --brand-black: #000000;
}

body {
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    font-weight: 400;
    color: #333333;
    background-color: #ffffff;
    /* Scroll-driven cosmic gradient (subtle) using brand tokens */
    background-image: linear-gradient(
        180deg,
        rgba(228, 88, 39, calc(var(--scroll, 0) * 0.08)) 0%, /* --brand-primary */
        rgba(15, 122, 131, calc(var(--scroll, 0) * 0.05)) 40%, /* --brand-blue-green */
        rgba(234, 219, 187, calc(var(--scroll, 0) * 0.03)) 70%, /* --brand-beige */
        rgba(228, 88, 39, 0) 100%
    );
    background-attachment: fixed;
}

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

/* ===== TYPOGRAPHY ===== */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
}

p {
    font-size: 1rem;
    color: #666666;
    margin-bottom: 1rem;
    font-weight: 400;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 300;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: #333333;
    color: white;
    outline: none;
}

.btn-primary:hover {
    background-color: #2a2a2a;
}

.btn-secondary {
    background-color: transparent;
    color: #333333;
    border-color: #333333;
    outline: none;
}

.btn-secondary:hover {
    background-color: rgba(224, 100, 56, 0.08);
    color: #E06438;
}

/* ===== SECTION STYLES ===== */
.section-header {
    text-align: left;
    margin-bottom: 4rem;
}

.section-title {
    font-weight: 300;
    color: #333333;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: #333333;
    margin-top: 1rem;
}

.section-description {
    color: #666666;
    font-size: 1rem;
    font-weight: 300;
    margin: 1.5rem 0 0 0;
    line-height: 1.6;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    display: block;
    text-decoration: none;
}

.logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-menu a:hover {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #FF6B35 50%, var(--brand-primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333333;
    transition: all 0.3s ease;
}

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

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: transparent;
    padding-top: 70px;
}

/* Hero CTA: hover with cosmic gradient background and border */
.hero .btn-primary {
    background: linear-gradient(135deg, #333333 0%, #333333 100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero .btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #FF6B35 25%, #FF8E53 50%, #FFB366 75%, var(--brand-primary) 100%);
    border-color: var(--brand-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(224, 100, 56, 0.3);
    transform: translateY(-1px);
}

/* Hero Secondary CTA: hover with cosmic gradient background and border */
.hero .btn-secondary {
    background: linear-gradient(135deg, transparent 0%, transparent 100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero .btn-secondary:hover {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #FF6B35 25%, #FF8E53 50%, #FFB366 75%, var(--brand-primary) 100%);
    border-color: var(--brand-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(224, 100, 56, 0.3);
    transform: translateY(-1px);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.hero-logo-img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

.hero-content {
    text-align: left;
}

.hero-title {
    margin-bottom: 2rem;
    color: #333333;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #666666;
    font-weight: 300;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ===== STATEMENT SECTION ===== */
.statement {
    padding: 6rem 0;
    background-color: transparent;
    position: relative;
}

.statement-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding: 3rem 2rem;
    border-left: 4px solid #333333;
    background-color: #f8f9fa;
}

.statement-content::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 3rem;
    color: rgba(51, 51, 51, 0.2);
    font-family: serif;
    line-height: 1;
}

.statement-content p {
    font-size: 1.1rem;
    line-height: 2;
    color: #333333;
    font-weight: 300;
    margin: 0;
    font-style: italic;
    letter-spacing: 0.3px;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 6rem 0;
    background-color: transparent;
}

.about-content {
    display: block;
}

.about-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.info-item h3 {
    color: #333333;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.about-description p {
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
    color: #555555;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 6rem 0;
    background-color: transparent;
}

.services-grid {
    display: block;
}

.service-card {
    padding: 2rem 0;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    margin-bottom: 2rem;
}

.service-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.service-icon {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.service-card h3 {
    color: #333333;
    margin-bottom: 1rem;
    font-weight: 400;
    font-size: 1.2rem;
}

.service-card p {
    margin: 0;
    line-height: 1.8;
    color: #555555;
    font-size: 0.95rem;
}

/* ===== MEMBERS SECTION ===== */
.members {
    padding: 6rem 0;
    background-color: transparent;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.member-card {
    text-align: left;
}

.member-photo {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-info h3 {
    color: #333333;
    margin-bottom: 0.3rem;
    font-weight: 400;
    font-size: 1.1rem;
}

.member-role {
    color: #666666;
    font-weight: 300;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.member-description {
    margin: 0;
    line-height: 1.8;
    font-size: 0.9rem;
    color: #555555;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 6rem 0;
    background-color: transparent;
}

.contact-content {
    text-align: left;
}

.contact-description {
    font-size: 1rem;
    margin-bottom: 3rem;
    color: #555555;
    line-height: 1.8;
}

.contact-details {
    display: block;
}

.contact-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item h3 {
    color: #333333;
    margin-bottom: 0.5rem;
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item a {
    color: #333333;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #000000;
}

/* ===== FOOTER ===== */
.footer {
    background-color: transparent;
    color: #333333;
    padding: 4rem 0 2rem;
    border-top: 1px solid #f0f0f0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo-img {
    height: 24px;
    width: auto;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: #666666;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 300;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav a {
    color: #666666;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 300;
    position: relative;
}

.footer-nav a:hover {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #FF6B35 50%, var(--brand-primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}


.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #f0f0f0;
}

.footer-bottom p {
    color: #999999;
    margin: 0;
    font-size: 0.8rem;
    font-weight: 300;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    /* Hero section */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-logo-img {
        max-height: 200px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    /* About section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Services grid */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Members grid */
    .members-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Contact details */
    .contact-details {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-nav ul {
        justify-content: center;
    }
    
}

@media (max-width: 1024px) and (min-width: 769px) {
    /* Tablet view - 2 columns for members */
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero-container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .service-card,
    .member-card,
    .contact-item {
        padding: 1.5rem;
    }
    
    /* Statement section mobile adjustments */
    .statement-content {
        padding: 2rem 1.5rem;
        margin: 0 20px;
    }
    
    .statement-content::before {
        font-size: 2rem;
        top: 0.5rem;
        left: 0.5rem;
    }
    
    .statement-content p {
        font-size: 1rem;
        line-height: 1.8;
        letter-spacing: 0.2px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .btn, .nav-menu a, .footer-nav a {
        transition: none !important;
    }
}

/* ===== FOCUS STYLES ===== */
/* クリック時の枠線は表示しないが、キーボード操作では表示する */
a:focus,
button:focus,
.btn:focus {
    outline: none;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .nav-toggle,
    .footer-social {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
}