/**
 * Young Bush Theme - Main Stylesheet
 * ベーススタイル・リセット・共通要素
 * 
 * @package YoungBush
 * @version 1.0.0
 */

/* ========================================
   1. CSS Variables & Reset
======================================== */
:root {
    --primary-color: #275d46;
    --secondary-color: #022b22;
    --accent-color: #569578;
    --main-green: #275d46;
    --dark-green: #022b22;
    --light-green: #569578;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray-light: #f8f9fa;
    --gray: #6c757d;
    --gray-medium: #e9ecef;
    --dark-gray: #343a40;
    --gray-dark: #495057;
    --text-primary: #212529;
    --text-secondary: #6c757d;
}

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

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--dark-gray);
    overflow-x: hidden;
}

/* ========================================
   2. Typography Base
======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: clamp(36px, 6vw, 56px);
    color: var(--secondary-color);
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

p {
    line-height: 1.8;
}

a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* ========================================
   3. Layout Base
======================================== */
main {
    padding-top: 0px;
    min-height: calc(100vh - 80px);
}

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

section {
    padding: 80px 0;
}

/* ========================================
   4. Common Classes
======================================== */
.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

/* ========================================
   5. Animations
======================================== */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.3; 
    }
    50% { 
        transform: scale(1.1); 
        opacity: 0.5; 
    }
}

@keyframes particleFloat {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
    }
    33% { 
        transform: translate(30px, -30px) scale(1.1); 
    }
    66% { 
        transform: translate(-20px, 20px) scale(0.9); 
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease forwards;
}

/* ========================================
   6. Utility Classes
======================================== */
.text-center {
    text-align: center;
}

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

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

.mt-0 { margin-top: 0; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }

.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }

.pt-0 { padding-top: 0; }
.pt-20 { padding-top: 20px; }
.pt-40 { padding-top: 40px; }
.pt-60 { padding-top: 60px; }

.pb-0 { padding-bottom: 0; }
.pb-20 { padding-bottom: 20px; }
.pb-40 { padding-bottom: 40px; }
.pb-60 { padding-bottom: 60px; }

/* ========================================
   7. Responsive Base
======================================== */
@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 40px 0;
    }
}
/* ========================================
   Hero Sections - Universal Styles
   Added: $(date +%Y-%m-%d)
   ======================================== */

/* Pattern 1: class ending with -hero */
[class$="-hero"] h1 {
    color: #ffffff !important;
}

[class$="-hero"] .hero-lead,
[class$="-hero"] p {
    color: #ffffff !important;
    opacity: 0.95;
}

/* Pattern 2: class named hero */
.hero h1 {
    color: #ffffff !important;
}

.hero .hero-lead,
.hero p {
    color: #ffffff !important;
    opacity: 0.95;
}

/* Pattern 3: hero-content class */
.hero-content h1 {
    color: #ffffff !important;
}

.hero-content .hero-lead,
.hero-content p {
    color: #ffffff !important;
    opacity: 0.95;
}

/* Ensure hero sections have correct background */
[class$="-hero"],
.hero {
    /* Only set color if background is not already set */
    color: #ffffff;
}

/* ========================================
   Admin Bar Fix
======================================== */
body.admin-bar header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar header {
        top: 46px;
    }
}

/* Main content padding adjustment */
main#main {
    padding-top: 0;
}

body.admin-bar main#main {
    padding-top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar main#main {
        padding-top: 46px;
    }
}

/* Hero section fix for company page */
.hero,
.page-header.hero {
    margin-top: 80px !important;
}

body.admin-bar .hero,
body.admin-bar .page-header.hero {
    margin-top: 112px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .hero,
    body.admin-bar .page-header.hero {
        margin-top: 126px !important;
    }
}
/* ===== Global page title style ===== */
.page-header.hero .page-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.3;
  margin: 0;
  color: var(--text-primary);
}
