/* ===================================
   Variables & Reset
   =================================== */
:root {
    /* Colors */
    --color-primary: #1A1A1A;
    --color-secondary: #666666;
    --color-accent-red: #E63946;
    --color-accent-red-hover: #FF4757;
    --color-accent-blue: #004E89;
    --color-white: #FFFFFF;
    --color-light-gray: #F8F9FA;
    --color-border: #E0E0E0;
    
    /* Philosophy Card Colors */
    --color-vision: #004E89;
    --color-mission: #2ECC71;
    --color-passion: #E63946;
    --color-commitment: #95A5A6;
    
    /* Typography */
    --font-primary: 'Noto Sans JP', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* Spacing (REDUCED for compactness) */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Section Padding (REDUCED from 120px to 80px) */
    --section-padding: 80px;
    
    /* Transitions */
    --transition-base: all 0.3s ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-primary);
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* ===================================
   Typography (REDUCED sizes)
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-primary);
}

h1 { font-size: 3rem; }      /* Reduced from 3.5rem */
h2 { font-size: 2.2rem; }    /* Reduced from 2.5rem */
h3 { font-size: 1.8rem; }    /* Reduced from 2rem */
h4 { font-size: 1.4rem; }    /* Reduced from 1.5rem */

p {
    margin-bottom: var(--spacing-md);
    line-height: 1.6;          /* Reduced from 1.8 */
}

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

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

/* ===================================
   Utilities
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--section-padding) 0;
}

.section__title {
    font-size: 2.2rem;         /* Reduced from 2.5rem */
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;       /* Reduced from 60px */
    position: relative;
    display: inline-block;
    width: 100%;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--color-accent-red);
}

.section__description {
    text-align: center;
    font-size: 1rem;           /* Reduced from 1.1rem */
    color: var(--color-secondary);
    max-width: 800px;
    margin: 0 auto 40px;       /* Reduced from 60px */
    line-height: 1.6;          /* Reduced from 1.8 */
}

.hide-mobile {
    display: inline;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 12px 28px;        /* Slightly reduced */
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--color-accent-red);
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
    background: var(--color-accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(230, 57, 70, 0.4);
}

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

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

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===================================
   Header / Navigation
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-base);
}

.header.scroll-header {
    background: rgba(0, 78, 137, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav__logo {
    font-size: 1.4rem;         /* Slightly reduced */
    font-weight: 700;
    font-family: var(--font-secondary);
    letter-spacing: 1px;
    color: var(--color-white);
}

.header.scroll-header .nav__logo {
    color: var(--color-white);
}

.nav__list {
    display: flex;
    gap: var(--spacing-xl);
    list-style: none;
}

.nav__link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-white);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent-red);
    transition: var(--transition-base);
}

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

.nav__toggle,
.nav__close {
    display: none;
}

/* ===================================
   Hero Section (REDUCED height: 100vh → 70vh)
   =================================== */
.hero {
    height: 70vh;              /* REDUCED from 100vh */
    min-height: 500px;         /* REDUCED from 600px */
    background: linear-gradient(135deg, var(--color-accent-blue) 0%, var(--color-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero__container {
    position: relative;
    z-index: 1;
}

.hero__content {
    text-align: center;
    color: var(--color-white);
}

.hero__title {
    font-size: 3rem;           /* Reduced from 3.5rem */
    font-weight: 700;
    margin-bottom: var(--spacing-md);  /* Reduced */
    line-height: 1.3;
}

.hero__description {
    font-size: 1rem;           /* Reduced from 1.1rem */
    margin-bottom: var(--spacing-xl);  /* Reduced */
    opacity: 0.95;
    line-height: 1.6;          /* Reduced from 1.8 */
}

.hero__buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Vision Section
   =================================== */
.vision {
    background: var(--color-light-gray);
    padding: 60px 0;           /* Reduced from 80px */
}

.vision__content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.vision__text {
    font-size: 1.1rem;         /* Slightly reduced */
    line-height: 1.6;          /* Reduced from 1.8 */
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 0;
}

/* ===================================
   Profile Section
   =================================== */
.profile__container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.profile__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-md);  /* Reduced from spacing-2xl */
}

.profile__text {
    flex: 1;
}

.profile__image {
    flex-shrink: 0;
}

.profile__image-placeholder {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-lg);
    background: var(--color-light-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    border: 2px dashed var(--color-border);
}

.profile__image-placeholder i {
    font-size: 3rem;
    color: var(--color-secondary);
}

.profile__image-placeholder p {
    font-size: 1rem;
    color: var(--color-secondary);
    margin: 0;
}

.profile__image-note {
    font-size: 0.85rem;
    color: var(--color-secondary);
    text-align: center;
    margin-top: var(--spacing-sm);
}

.profile__name {
    font-size: 2rem;           /* Slightly reduced */
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.profile__name-en {
    font-family: var(--font-secondary);
    font-size: 1.2rem;         /* Slightly reduced */
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
}

.profile__title {
    font-size: 1.1rem;         /* Slightly reduced */
    color: var(--color-accent-blue);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
}

.profile__info {
    list-style: none;
}

.profile__info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);  /* Reduced */
    padding: var(--spacing-sm);        /* Reduced */
    background: var(--color-light-gray);
    border-radius: var(--radius-sm);
    line-height: 1.5;          /* Reduced */
}

.profile__info-item i {
    color: var(--color-accent-red);
    font-size: 1.1rem;
    margin-top: 2px;
}

/* ===================================
   Philosophy Cards (2x2 GRID)
   =================================== */
.philosophy {
    margin-top: var(--spacing-2xl);
}

.philosophy__title {
    font-size: 1.8rem;         /* Slightly reduced */
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.philosophy__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* 2x2 GRID */
    gap: 20px;                 /* Reduced from 30px */
}

.philosophy__card {
    background: var(--color-white);
    padding: 30px;             /* Reduced from 40px */
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border-top: 5px solid var(--color-border);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 280px;         /* Ensure uniform height */
}

.philosophy__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.philosophy__card--vision {
    border-top-color: var(--color-vision);
}

.philosophy__card--vision:hover {
    border-top-width: 8px;
}

.philosophy__card--mission {
    border-top-color: var(--color-mission);
}

.philosophy__card--mission:hover {
    border-top-width: 8px;
}

.philosophy__card--passion {
    border-top-color: var(--color-passion);
}

.philosophy__card--passion:hover {
    border-top-width: 8px;
}

.philosophy__card--commitment {
    border-top-color: var(--color-commitment);
}

.philosophy__card--commitment:hover {
    border-top-width: 8px;
}

.philosophy__card-icon {
    font-size: 2.5rem;         /* Slightly reduced */
    margin-bottom: var(--spacing-sm);
}

.philosophy__card--vision .philosophy__card-icon { color: var(--color-vision); }
.philosophy__card--mission .philosophy__card-icon { color: var(--color-mission); }
.philosophy__card--passion .philosophy__card-icon { color: var(--color-passion); }
.philosophy__card--commitment .philosophy__card-icon { color: var(--color-commitment); }

.philosophy__card-title {
    font-size: 1.3rem;         /* Slightly reduced */
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.philosophy__card-text {
    font-size: 0.95rem;        /* Slightly reduced */
    line-height: 1.6;          /* Reduced from 1.7 */
    color: var(--color-secondary);
    margin-bottom: 0;
    flex-grow: 1;
}

/* ===================================
   Business Section
   =================================== */
.business {
    background: var(--color-light-gray);
}

.business__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);    /* Reduced from spacing-xl */
    margin-bottom: var(--spacing-xl);
}

.business__card {
    background: var(--color-white);
    padding: 30px;             /* Reduced from 40px */
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    position: relative;
}

.business__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.business__card-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;           /* Reduced from 3.5rem */
    font-weight: 700;
    color: var(--color-accent-red);
    opacity: 0.2;
    font-family: var(--font-secondary);
}

.business__card-icon {
    font-size: 2.5rem;         /* Slightly reduced */
    color: var(--color-accent-blue);
    margin-bottom: var(--spacing-md);
}

.business__card-title {
    font-size: 1.3rem;         /* Slightly reduced */
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.business__card-text {
    font-size: 0.95rem;        /* Slightly reduced */
    line-height: 1.6;          /* Reduced from 1.7 */
    color: var(--color-secondary);
    margin-bottom: 0;
}

.business__info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.business__info-item {
    background: var(--color-white);
    padding: 25px;             /* Reduced from 30px */
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.business__info-item h4 {
    font-size: 1.2rem;         /* Slightly reduced */
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.business__info-item h4 i {
    color: var(--color-accent-red);
}

.business__info-item p {
    font-size: 0.95rem;        /* Slightly reduced */
    color: var(--color-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ===================================
   Contact Section
   =================================== */
.contact__container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-2xl);
    max-width: 1000px;
    margin: 0 auto;
}

.contact__info-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--color-light-gray);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.contact__info-item i {
    font-size: 1.8rem;         /* Slightly reduced */
    color: var(--color-accent-red);
}

.contact__info-item h4 {
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
}

.contact__info-item a {
    color: var(--color-accent-blue);
    font-weight: 600;
}

.contact__info-item a:hover {
    color: var(--color-accent-red);
}

/* Form */
.form__group {
    margin-bottom: var(--spacing-md);  /* Reduced */
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 12px 16px;        /* Slightly reduced */
    font-size: 1rem;
    font-family: var(--font-primary);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    background: var(--color-white);
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--color-accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 78, 137, 0.1);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

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

.footer__text {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
}

.footer__note {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 0;
}

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

/* Tablet */
@media screen and (max-width: 968px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .section {
        padding: 60px 0;       /* Reduced from 80px */
    }
    
    .section__title {
        font-size: 2rem;
        margin-bottom: 30px;   /* Reduced */
    }
    
    .section__description {
        margin-bottom: 30px;   /* Reduced */
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__description {
        font-size: 1rem;
    }
    
    .profile__header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile__image {
        order: -1;
    }
    
    .profile__image-placeholder {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
    
    .philosophy__grid {
        grid-template-columns: repeat(2, 1fr);  /* Maintain 2x2 on tablet */
        gap: 15px;             /* Reduced */
    }
    
    .philosophy__card {
        padding: 25px;         /* Reduced */
        min-height: 250px;
    }
    
    .contact__container {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media screen and (max-width: 576px) {
    :root {
        --section-padding: 50px;  /* Reduced from 60px */
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.3rem; }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .section__title {
        font-size: 1.7rem;
        margin-bottom: 25px;   /* Reduced */
    }
    
    .section__description {
        font-size: 0.95rem;
        margin-bottom: 25px;   /* Reduced */
    }
    
    .hide-mobile {
        display: none;
    }
    
    /* Mobile Navigation */
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--color-primary);
        padding: var(--spacing-2xl) var(--spacing-md);
        transition: right 0.3s ease;
        z-index: 100;
    }
    
    .nav__menu.show-menu {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .nav__link {
        font-size: 1.1rem;
    }
    
    .nav__close {
        display: block;
        position: absolute;
        top: var(--spacing-md);
        right: var(--spacing-md);
        font-size: 1.5rem;
        color: var(--color-white);
        cursor: pointer;
    }
    
    .nav__toggle {
        display: block;
        font-size: 1.5rem;
        color: var(--color-white);
        cursor: pointer;
    }
    
    /* Hero */
    .hero {
        height: 60vh;          /* Further reduced for mobile */
        min-height: 450px;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__description {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-lg);
    }
    
    .hero__buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Profile */
    .profile__header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile__image {
        order: -1;
    }
    
    .profile__image-placeholder {
        width: 180px;
        height: 180px;
    }
    
    .profile__image-placeholder i {
        font-size: 2.5rem;
    }
    
    .profile__name {
        font-size: 1.7rem;
    }
    
    .profile__name-en {
        font-size: 1.1rem;
    }
    
    /* Philosophy Cards - SINGLE COLUMN on mobile */
    .philosophy__grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .philosophy__card {
        padding: 20px;         /* Reduced */
        min-height: auto;
    }
    
    .philosophy__card-icon {
        font-size: 2rem;
    }
    
    .philosophy__card-title {
        font-size: 1.2rem;
    }
    
    .philosophy__card-text {
        font-size: 0.9rem;
    }
    
    /* Business */
    .business__grid {
        grid-template-columns: 1fr;
    }
    
    .business__card {
        padding: 25px;
    }
    
    .business__card-number {
        font-size: 2.5rem;
    }
    
    /* Contact */
    .contact__info-item {
        flex-direction: column;
        text-align: center;
    }
}

/* ===================================
   Animation Classes (for JS)
   =================================== */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}