/* ====================================
   CSS Variables
   ==================================== */
:root {
    /* Colors - Updated to Blue Theme */
    --color-bg-primary: #FFFFFF;
    --color-bg-secondary: #F5F7FA;  /* 薄い青みがかったグレー */
    --color-bg-accent: #E8F2F7;     /* 薄いブルーグレー */

    /* Text */
    --color-text-primary: #1A1A2E;  /* ダークネイビー */
    --color-text-secondary: #333333;
    --color-text-tertiary: #666666;

    /* Accent Colors (Blue Theme) */
    --color-primary: #2C5F8D;       /* ネイビーブルー - メインアクセント */
    --color-primary-light: #4A7BA7; /* ライトブルー - ホバー時 */
    --color-primary-dark: #1E4466;  /* ダークブルー - 強調時 */
    --color-secondary: #6BA3C9;     /* スカイブルー - サブアクセント */

    /* Borders */
    --color-border-light: #E0E8F0;
    --color-border-accent: #4A7BA7;

    /* Typography */
    --font-en: 'Helvetica Neue', Arial, sans-serif;
    --font-jp: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;

    /* Font Sizes - Desktop */
    --text-hero-main: 100px;
    --text-hero-sub: 50px;
    --text-hero-desc: 40px;
    --text-section-title: 48px;
    --text-h3: 32px;
    --text-body: 18px;
    --text-small: 14px;

    /* Spacing */
    --space-section: 120px;
    --space-card: 40px;

    /* Transitions */
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

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

.logo {
    font-family: var(--font-en);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-primary);
}

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

.nav-link {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    transition: var(--transition-base);
    position: relative;
    color: var(--color-text-primary);
}

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

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

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

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    margin: -10px;
    z-index: 999;
    position: relative;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-text-primary);
    transition: var(--transition-base);
    display: block;
}

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

/* Geometric Decorations - Updated with Colors */
.geometric-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
}

/* Triangle - Large (Top Right) - 正三角形 */
.triangle {
    width: 0;
    height: 0;
    border-left: 86.6px solid transparent;
    border-right: 86.6px solid transparent;
    border-bottom: 150px solid var(--color-primary);
    top: 10%;
    right: 10%;
    transform: rotate(45deg);
    opacity: 0.5;
    animation: floatShape1 6s ease-in-out infinite;
}

/* Square - Large (Bottom Left) */
.square {
    width: 150px;
    height: 150px;
    border: 4px solid var(--color-secondary);
    bottom: 15%;
    left: 10%;
    opacity: 0.5;
    animation: floatShape2 8s ease-in-out infinite;
}

/* Circle - Large (Right Center) */
.circle {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--color-primary-light), transparent);
    border-radius: 50%;
    top: 50%;
    right: 20%;
    opacity: 0.6;
    animation: floatShape3 7s ease-in-out infinite;
}

/* Circle - Small (Top Left) - NEW */
.circle-small {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--color-secondary), transparent);
    border-radius: 50%;
    top: 15%;
    left: 15%;
    opacity: 0.4;
    animation: floatShape4 7.5s ease-in-out infinite;
}

/* Square - Small (Bottom Right) - NEW */
.square-small {
    width: 100px;
    height: 100px;
    border: 3px solid var(--color-primary);
    bottom: 20%;
    right: 15%;
    opacity: 0.4;
    animation: floatShape5 6.5s ease-in-out infinite;
}

@keyframes floatShape1 {
    0%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    50% {
        transform: rotate(45deg) translateY(-20px);
    }
}

@keyframes floatShape2 {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-25px);
    }
}

@keyframes floatShape3 {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

@keyframes floatShape4 {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-18px);
    }
}

@keyframes floatShape5 {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-22px) rotate(5deg);
    }
}

.hero-content {
    text-align: center;
    z-index: 10;
    animation: fadeInUp 1.2s ease;
}

.hero-title {
    font-size: var(--text-hero-main);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.hero-title .highlight {
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: var(--text-hero-desc);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 3rem;
    color: var(--color-text-secondary);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 500;
    color: var(--color-primary);
}

.arrow-down {
    font-size: 24px;
    color: var(--color-primary);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* ====================================
   Section Common Styles
   ==================================== */
.section {
    padding: var(--space-section) 3rem;
    scroll-margin-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: var(--text-section-title);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: var(--text-small);
    font-weight: 500;
    letter-spacing: 5px;
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 4rem;
}

/* ====================================
   About Section
   ==================================== */
.about {
    background: var(--color-bg-accent);
}

.about-lead {
    font-size: var(--text-body);
    font-weight: 300;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
    color: var(--color-text-secondary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-card);
}

.value-card {
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border-light);
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition-base);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(44, 95, 141, 0.15);
    border-color: var(--color-primary);
}

.value-icon {
    font-size: 48px;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.value-card:nth-child(1) .value-icon {
    color: var(--color-primary);
}

.value-card:nth-child(2) .value-icon {
    color: var(--color-secondary);
}

.value-card:nth-child(3) .value-icon {
    color: var(--color-primary-light);
}

.value-card h3 {
    font-size: var(--text-h3);
    font-weight: 700;
    margin-bottom: 1rem;
}

.value-card p {
    font-size: var(--text-body);
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

/* ====================================
   Service Section
   ==================================== */
.service {
    background: var(--color-bg-secondary);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-card);
}

.service-card {
    background: var(--color-bg-primary);
    padding: 3rem 2rem;
    transition: var(--transition-base);
    border-top: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(44, 95, 141, 0.15);
    border-top-color: var(--color-primary);
}

.service-number {
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: var(--text-h3);
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: var(--text-body);
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

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

.company-info {
    max-width: 800px;
    margin: 0 auto;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border-light);
}

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

.info-item dt {
    font-size: var(--text-body);
    font-weight: 700;
}

.info-item dd {
    font-size: var(--text-body);
    font-weight: 400;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

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

.contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-lead {
    font-size: var(--text-body);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: var(--color-text-secondary);
}

.phone-label {
    font-size: var(--text-small);
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--color-text-tertiary);
}

.phone-number {
    font-family: var(--font-en);
    font-size: 54px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    display: block;
    color: var(--color-primary);
    transition: var(--transition-base);
}

.phone-number:hover {
    color: var(--color-primary-light);
}

.contact-note {
    font-size: var(--text-small);
    color: var(--color-text-tertiary);
}

/* ====================================
   Footer
   ==================================== */
.footer {
    background: var(--color-primary-dark);
    color: var(--color-bg-primary);
    padding: 2rem 3rem;
    text-align: center;
}

.copyright {
    font-size: var(--text-small);
    font-weight: 300;
}

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

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

/* ====================================
   Responsive Design
   ==================================== */
@media (max-width: 1024px) {
    :root {
        --text-hero-main: 80px;
        --text-hero-sub: 40px;
        --text-hero-desc: 32px;
        --text-section-title: 40px;
        --space-section: 100px;
    }

    .values-grid,
    .service-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --text-hero-main: 48px;
        --text-hero-sub: 32px;
        --text-hero-desc: 20px;
        --text-section-title: 32px;
        --text-h3: 24px;
        --text-body: 16px;
        --space-section: 80px;
    }

    .header-container {
        padding: 1rem 1.5rem;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 998;
        display: none;
        padding-top: 80px;
        padding-bottom: 2rem;
    }

    nav.active {
        display: block;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        list-style: none;
        margin: 0;
    }

    .nav-list li {
        display: block;
        width: 100%;
        margin: 0;
    }

    .nav-link {
        padding: 1.25rem 1rem;
        border-bottom: 1px solid var(--color-border-light);
        text-align: left;
        width: 100%;
        display: block;
        font-size: 16px;
    }

    .nav-list li:last-child .nav-link {
        border-bottom: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

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

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }

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

    .section {
        padding: var(--space-section) 1.5rem;
    }

    .hero-title {
        font-size: var(--text-hero-main);
    }

    .hero-subtitle {
        font-size: var(--text-hero-desc);
    }

    .info-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .phone-number {
        font-size: 36px;
    }

    .values-grid,
    .service-grid {
        gap: 24px;
    }

    .value-card,
    .service-card {
        padding: 2rem 1.5rem;
    }

    .scroll-indicator {
        bottom: 2rem;
    }

    /* Reduce decoration sizes for mobile */
    .triangle {
        border-left: 60px solid transparent;
        border-right: 60px solid transparent;
        border-bottom: 104px solid var(--color-primary);
        opacity: 0.3;
    }

    .square {
        width: 100px;
        height: 100px;
        opacity: 0.3;
    }

    .circle {
        width: 80px;
        height: 80px;
        opacity: 0.4;
    }

    /* Hide some decorative shapes on mobile */
    .circle-small,
    .square-small {
        display: none;
    }
}

/* ====================================
   Small Smartphones (480px and below)
   ==================================== */
@media (max-width: 480px) {
    :root {
        --text-hero-main: 36px;
        --text-hero-desc: 18px;
        --text-section-title: 28px;
        --text-h3: 20px;
        --text-body: 15px;
        --space-section: 60px;
    }

    .header-container {
        padding: 1rem 1rem;
    }

    .logo {
        font-size: 24px;
    }

    nav {
        padding-top: 72px;
        padding-bottom: 2rem;
    }

    .nav-list {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .nav-link {
        padding: 1rem 0.5rem;
        font-size: 15px;
    }

    .section {
        padding: var(--space-section) 1rem;
    }

    .hero-subtitle {
        font-size: 16px;
        line-height: 1.6;
    }

    .value-card,
    .service-card {
        padding: 1.5rem 1rem;
    }

    .value-icon {
        font-size: 36px;
    }

    .phone-number {
        font-size: 28px;
    }

    .contact-lead {
        font-size: 15px;
    }

    /* Further reduce decoration sizes for small screens */
    .triangle {
        border-left: 43px solid transparent;
        border-right: 43px solid transparent;
        border-bottom: 75px solid var(--color-primary);
        opacity: 0.25;
    }

    .square {
        width: 80px;
        height: 80px;
        opacity: 0.25;
    }

    .circle {
        width: 60px;
        height: 60px;
        opacity: 0.3;
    }
}
