/* ========================================
   事業部ページ共通スタイル
   ======================================== */

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

:root {
    --pink-primary: #e91e63;
    --pink-light: #fce4ec;
    --pink-dark: #c2185b;
    --green-primary: #4caf50;
    --green-light: #e8f5e9;
    --green-dark: #388e3c;
    --marine-primary: #00bcd4;
    --marine-light: #e0f7fa;
    --marine-dark: #0097a7;
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #999;
    --bg-light: #f8f9fc;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: white;
}

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

/* ========================================
   ヘッダー（各事業部のテーマカラー背景）
   ======================================== */

.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

/* 百均事業部ヘッダー配色 */
.header.hyaku-yen {
    background: linear-gradient(135deg, #fce4ec 0%, #fce4ec 100%);
}

.header.hyaku-yen .logo-text h1,
.header.hyaku-yen .nav a {
    color: var(--text-primary);
}

.header.hyaku-yen .tagline {
    color: var(--text-secondary);
}

.header.hyaku-yen .brand-name {
    color: #0066ff;
}

.header.hyaku-yen .nav a:hover {
    background: rgba(233, 30, 99, 0.1);
    color: #e91e63;
}

/* 製造針事業部ヘッダー配色 */
.header.sewing-pins {
    background: linear-gradient(135deg, #e8f5e9 0%, #e8f5e9 100%);
}

.header.sewing-pins .logo-text h1,
.header.sewing-pins .nav a {
    color: var(--text-primary);
}

.header.sewing-pins .tagline {
    color: var(--text-secondary);
}

.header.sewing-pins .brand-name {
    color: #0066ff;
}

.header.sewing-pins .nav a:hover {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

/* 貿易事業部ヘッダー配色 */
.header.trading {
    background: linear-gradient(135deg, #e0f7fa 0%, #e0f7fa 100%);
}

.header.trading .logo-text h1,
.header.trading .nav a {
    color: var(--text-primary);
}

.header.trading .tagline {
    color: var(--text-secondary);
}

.header.trading .brand-name {
    color: #0066ff;
}

.header.trading .nav a:hover {
    background: rgba(0, 188, 212, 0.1);
    color: #00bcd4;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-crown {
    height: 50px;
    width: auto;
}

.logo-text h1 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.logo-text .tagline {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 5px 0 0 0;
}

.logo-text .brand-name {
    font-weight: 700;
    color: #0066ff;
}

.nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.nav a {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 5px;
    color: var(--text-primary);
}

.nav a:hover {
    background: rgba(0, 102, 255, 0.1);
    color: #0066ff;
}

/* ヘッダーアクション */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-access {
    padding: 8px 15px;
    background: #0066ff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-access:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.language-switcher i {
    color: #0066ff;
}

.language-switcher select {
    padding: 0;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
}

/* ========================================
   ヒーローセクション
   ======================================== */

.hero-section {
    padding: 100px 0 60px;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 35px, currentColor 35px, currentColor 36px),
        repeating-linear-gradient(90deg, transparent, transparent 35px, currentColor 35px, currentColor 36px);
    z-index: 1;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-section .subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.hero-section .description {
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* ========================================
   セクション共通
   ======================================== */

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* ========================================
   カードグリッド
   ======================================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: center;
}

/* ========================================
   CTAセクション
   ======================================== */

.cta-section {
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, currentColor 10px, currentColor 11px);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.95);
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    border: 2px solid white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ========================================
   フッター
   ======================================== */

.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
}

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

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer p,
.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s;
}

.footer a:hover {
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ========================================
   レスポンシブ対応
   ======================================== */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .nav a {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    .hero-section {
        padding: 80px 0 40px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cta-section h2 {
        font-size: 1.6rem;
    }
}
