/* ========================================
   リセット & 基本設定
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラーパレット - 信頼感とスタイリッシュさを表現 */
    --color-primary: #1a1a2e;
    --color-secondary: #0f3460;
    --color-accent: #16213e;
    --color-highlight: #e94560;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #ffffff;
    --color-bg-light: #f8f9fa;
    --color-border: #e0e0e0;
    
    /* タイポグラフィ */
    --font-primary: 'Noto Sans JP', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    
    /* スペーシング */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* トランジション */
    --transition: all 0.3s ease;
}

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

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

* {
    font-family: var(--font-primary);
}

h1, h2, h3, h4, h5, h6,
button,
.nav-link,
.btn {
    font-family: var(--font-secondary);
}

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

.pc-only {
    display: inline;
}

@media (max-width: 768px) {
    .pc-only {
        display: none;
    }
}

/* ========================================
   ヘッダー
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    backdrop-filter: none;
    box-shadow: none;
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.logo a {
    display: block;
    position: relative;
    height: 32px;
}

.logo img {
    height: 32px;
    width: auto;
    transition: opacity 0.3s ease;
    display: block;
}

.logo-white {
    opacity: 1;
}

.logo-navy {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.header.scrolled .logo-white {
    opacity: 0;
}

.header.scrolled .logo-navy {
    opacity: 1;
}

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

.nav-link {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.05em;
    position: relative;
    transition: var(--transition);
}

.header.scrolled .nav-link {
    color: var(--color-text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.header.scrolled .nav-link::after {
    background-color: var(--color-highlight);
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.header.scrolled .nav-link:hover {
    color: var(--color-highlight);
}

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

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

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    transition: var(--transition);
}

.header.scrolled .menu-toggle span {
    background-color: var(--color-primary);
}

/* ========================================
   ヒーローセクション
======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(135deg, rgba(26, 26, 46, 0.70) 0%, rgba(15, 52, 96, 0.70) 100%),
        url('../images/hero-bg-tokyo-night-hq.jpg') center center / cover no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(233, 69, 96, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(22, 33, 62, 0.3) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(233, 69, 96, 0.05) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-title-main {
    font-family: var(--font-secondary);
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    display: block;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 4px 20px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-cta {
    animation: fadeInUp 1.5s ease 0.3s backwards;
}

.btn {
    display: inline-block;
    padding: 1rem 3rem;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    letter-spacing: 0.05em;
}

.btn-primary {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    background-size: 200% 200%;
    background-position: left;
    color: white;
    border: none;
    transition: background-position 0.5s ease;
}

.btn-primary:hover {
    background-position: right;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    animation: fadeIn 2s ease 1s backwards;
    z-index: 10;
    transition: opacity 0.5s ease;
}

@media (max-height: 700px) {
    .scroll-indicator {
        display: none;
    }
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, white, transparent);
    margin-top: 1rem;
    animation: scrollLine 2s ease-in-out infinite;
}

/* ========================================
   セクション共通
======================================== */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-label {
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--color-text-light);
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.section-title-carrack {
    font-family: var(--font-secondary);
    color: #1a3a5c;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #5a67d8, #6b46c1);
}

/* ========================================
   Aboutセクション
======================================== */
.about {
    background-color: var(--color-bg-light);
    padding-top: calc(var(--spacing-xl) + 2rem);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
}

.about-heading {
    font-family: var(--font-secondary);
    font-size: clamp(1.4rem, 2.8vw, 1.8rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.about-description {
    font-size: 1rem;
    line-height: 2;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ========================================
   Serviceセクション
======================================== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--color-highlight);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--color-highlight), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    line-height: 1.3;
}

.service-card-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

/* ========================================
   Companyセクション
======================================== */
.company {
    background-color: var(--color-bg-light);
}

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

.company-table {
    width: 100%;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

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

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

.company-table th,
.company-table td {
    padding: 1.5rem 2rem;
    text-align: left;
}

.company-table th {
    width: 200px;
    font-weight: 700;
    color: var(--color-primary);
    background-color: var(--color-bg-light);
}

.company-table td {
    color: var(--color-text);
    line-height: 1.8;
}

/* ========================================
   フッター
======================================== */
.footer {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: 2rem 0;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    opacity: 0.9;
    letter-spacing: 0.05em;
    margin: 0;
}

/* ========================================
   アニメーション
======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* ========================================
   レスポンシブ対応
======================================== */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    /* ヘッダー */
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(255, 255, 255, 0.98);
        transition: left 0.3s ease;
        backdrop-filter: blur(10px);
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        gap: 2rem;
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* ヒーロー */
    .hero {
        min-height: 500px;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    /* About */
    .about {
        padding-top: var(--spacing-xl);
    }
    
    .about-text {
        text-align: left;
    }
    
    .about-description {
        text-align: left;
    }
    
    /* サービス */
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* 会社情報 */
    .company-table th,
    .company-table td {
        padding: 1rem;
        display: block;
        width: 100%;
    }
    
    .company-table th {
        padding-bottom: 0.5rem;
        background-color: transparent;
        font-size: 0.875rem;
    }
    
    .company-table td {
        padding-top: 0;
        padding-bottom: 1.5rem;
    }
    

}

@media (max-width: 480px) {
    .hero-content {
        text-align: left;
    }
    
    .hero-title {
        text-align: center;
    }
    
    .hero-title-main {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
        letter-spacing: 0.05em;
        white-space: normal;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        text-align: left;
    }
    
    .hero-cta {
        text-align: center;
    }
    
    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }
}
