/* ----------------------------------------------------------------
    Main Stylesheet
    Project: OEN-NIN Website
---------------------------------------------------------------- */

:root {
    --primary-color: #003366;
    --secondary-color: #E67E22;
    --text-color: #333333;
    --light-text: #777777;
    --bg-light: #F5F7FA;
    --bg-white: #FFFFFF;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.section {
    padding: 100px 0;
}

.bg-light { background-color: var(--bg-light); }
.bg-primary { background-color: var(--primary-color); }
.text-white { color: white; }
.text-center { text-align: center; }

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.3;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 20px auto 0;
}

.text-left .section-title::after {
    margin: 20px 0 0;
}

.lead {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

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

.site-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo img {
    height: 45px;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.05em;
    line-height: 1;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    font-weight: 500;
    color: var(--primary-color);
}

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

.btn-contact-nav {
    background: var(--primary-color);
    color: white !important;
    padding: 10px 20px;
    border-radius: 4px;
}

.btn-contact-nav:hover {
    background: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: url('../img/main/hp_1.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary { background: var(--secondary-color); color: white; }
.btn-primary:hover { background: #d35400; transform: translateY(-3px); }

.btn-outline { border: 2px solid white; color: white; margin-left: 20px; }
.btn-outline:hover { background: white; color: var(--primary-color); }

.btn-secondary { background: white; color: var(--primary-color); }
.btn-secondary:hover { background: #eee; }

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

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card h3 {
    margin: 20px 0;
    color: var(--primary-color);
}

/* Grid Layouts */
.flex-row { display: flex; flex-wrap: wrap; margin: 0 -15px; align-items: center; }
.flex-col-6 { width: 50%; padding: 0 15px; }

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
}

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

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: 1s all ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Nav Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* Footer */
.site-footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 80px 0 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    padding-bottom: 50px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

.company-name { font-weight: 700; color: white; font-size: 1.2rem; }

.footer-nav-list li { margin-bottom: 10px; }
.footer-nav-list a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid #333;
    padding: 30px 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .flex-col-6 { width: 100%; margin-bottom: 30px; }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .hero-title { font-size: 2.5rem; }
    .site-nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        transition: var(--transition);
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .site-nav.active { right: 0; }
    .nav-list { flex-direction: column; text-align: center; }
    .menu-toggle { display: flex; }
    .features-grid { grid-template-columns: 1fr; }
}

/* Additional Styles */
.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

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

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.placeholder-img {
    width: 100%;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}

/* Form Styles */
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.no-scroll {
    overflow: hidden;
}
