/*
Theme Name: Trading Company Global
Theme URI: https://example.com/trading-company-global
Author: Antigravity
Author URI: https://example.com
Description: A custom WordPress theme for a global trading company. White base with red accents.
Version: 1.0.0
Text Domain: trading-company
*/

:root {
    --color-primary: #BA0000;
    /* Red from logo */
    --color-secondary: #333333;
    /* Dark Gray text */
    --color-base: #FFFFFF;
    /* White base */
    --color-gray-light: #F5F5F5;
    --font-body: 'Noto Sans JP', 'Roboto', sans-serif;
    --container-width: 1200px;
}

html {
    box-sizing: border-box;
    font-size: 16px;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    font-family: var(--font-body);
    color: var(--color-secondary);
    background-color: var(--color-base);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.8;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-primary);
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.main-navigation a {
    color: var(--color-secondary);
    font-weight: bold;
    font-size: 15px;
}

.lang-switcher {
    justify-content: center;
    display: flex;
    gap: 10px;
    font-size: 14px;
}

.lang-switcher a {
    color: ##333333;
}

.lang-switcher a.active {
    color: var(--color-primary);
    font-weight: bold;
}

/* Utility */
.text-red {
    color: var(--color-primary);
}

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

.mt-4 {
    margin-top: 2rem;
}

.bg-gray {
    background-color: var(--color-gray-light);
}

.d-block {
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: #900;
    border-color: #900;
    opacity: 1;
}

.btn-outline {
    background-color: transparent;
    color: var(--color-secondary);
    border: 1px solid #ccc;
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    opacity: 1;
}

.btn-white {
    background-color: #fff;
    color: var(--color-primary);
}

/* Sections */
.section {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    font-size: 35px;
    margin-bottom: 50px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 15px auto 0;
}

/* Hero Section */
.hero-section {

    background: linear-gradient(135deg, #f9f9f9 0%, #fff 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-left: 60px
    padding-right: 50px;
}

.hero-title {
    font-size: 50px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.hero-visual {
    flex: 1;
    height: 400px;
    background-color: #eee;
    /* Placeholder */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}


/* News Section */
.news-grid {
    display: grid;
    gap: 20px;
}

.news-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    display: flex;
    align-items: start;
}

.news-date {
    font-family: 'Roboto', sans-serif;
    color: #999;
    font-size: 14px;
    min-width: 100px;
}

.news-category {
    font-size: 12px;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 2px;
    margin-right: 15px;
    color: #666;
}

.news-title {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

/* --- 変数定義 --- */
:root {
    --brand-red: #BA0000;
    --text-black: #333333;
}

/* --- ヒーローエリア（タイトル部分） --- */
.ninja-hero {
    background: #ffffff;
    /* 上の余白を大きく取って強調 */
    padding: 120px 20px 40px; 
    text-align: center;
    width: 100%;
}

/* タイトル装飾 */
.hero-title {
    /* clamp関数で画面幅に応じてフォントサイズを滑らかに可変させる */
    font-size: clamp(2rem, 6vw, 4rem); 
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-black);
}

/* サブタイトル（日付など） */
.hero-sub {
    font-size: 1.2rem;
    color: #666;
    letter-spacing: 0.1em;
    font-family: 'Helvetica Neue', Arial, sans-serif; /* 英数字をきれいに見せる */
}

/* アクセントカラーの使用例：日付の前のアイコン等を赤くする場合など */
.hero-sub::before {
    content: ''; 
    display: inline-block;
    width: 20px;
    height: 2px;
    background-color: var(--brand-red);
    vertical-align: middle;
    margin-right: 10px;
}

/* --- コンテンツエリアの調整 --- */

/* アイキャッチ画像のスタイル */
.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* うっすら影をつける */
}

/* 本文の読みやすさ向上 */
.entry-content {
    line-height: 1.8;
    font-size: 1.05rem;
    margin-top: 20px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
}

/* Recruitment Banner */
.recruit-banner {
    background-color: var(--color-primary);
    padding: 60px 0;
    color: #fff;
    text-align: center;
}

.recruit-inner h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.recruit-inner p {
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-inner {
        
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        padding-left: 0;
        margin-bottom: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-direction: row;
        height: auto;
        padding: 10px 0;
        gap: 15px;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Footer Styles */
.site-footer {
    background-color: var(--color-secondary);
    color: #fff;
    padding: 60px 0 20px;
    margin-top: auto;
    text-align:center;
}

.site-footer a {
    color: #fff;
}