@charset "UTF-8";

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    /* Color Palette - Trust & Safety */
    --primary-color: #0056b3;
    /* Trust Blue */
    --secondary-color: #28a745;
    /* Safety Green */
    --accent-color: #ffc107;
    /* Highlight/Warning Yellow */
    --text-color: #333333;
    /* Standard Dark Gray */
    --bg-color: #f8f9fa;
    /* Light Gray Background */
    --white: #ffffff;
    --dark: #343a40;
    /* Dark Footer/Header */

    /* Fonts */
    --font-main: 'Noto Sans JP', sans-serif;
    /* Clean and standard */
    --font-heading: 'Noto Sans JP', sans-serif;
    /* Bold and reliable */

    /* Spacing */
    --header-height: 80px;
    --section-padding: 80px 0;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

ul,
ol {
    list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.4;
    color: var(--dark);
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1rem;
}

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

/* ==========================================================================
   Layout Utilities
   ========================================================================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 1rem 3rem;
    border-radius: 5px;
    font-weight: bold;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: #218838;
    border-color: #218838;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: white;
    border-radius: 5px;
    font-size: 1.2rem;
}

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

.nav-pc a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    position: relative;
}

.nav-pc a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

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

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 2000;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark);
    margin: 5px 0;
    transition: all 0.3s;
}

/* ==========================================================================
   Mobile Nav
   ========================================================================== */
.nav-sp {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding-top: 100px;
    transition: right 0.4s ease;
    z-index: 1500;
}

.nav-sp.active {
    right: 0;
}

.nav-sp ul {
    text-align: center;
}

.nav-sp li {
    margin: 20px 0;
}

.nav-sp a {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    margin-top: var(--header-height);
    height: 600px;
    background: linear-gradient(rgba(0, 86, 179, 0.8), rgba(0, 86, 179, 0.6)), url('../img/hero.jpg') center/cover no-repeat;
    /* Since we don't have the image, we rely on the gradient primarily. The placeholder url is just semantic. */
    background-color: var(--primary-color);
    /* Fallback */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Services Grid
   ========================================================================== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    border-bottom: 4px solid var(--primary-color);
}

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

.service-icon {
    height: 200px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-color);
}

.service-body {
    padding: 2rem;
    text-align: center;
}

.service-body h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-body p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* ==========================================================================
   Features
   ========================================================================== */
.features-section {
    background-color: var(--white);
}

.features-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.feature-box {
    text-align: center;
    flex: 1 1 250px;
    max-width: 350px;
    padding: 2rem;
    border: 1px solid #eee;
    border-radius: 8px;
}

.feature-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Opening Animation
   ========================================================================== */
.opening {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.opening.hidden {
    opacity: 0;
    visibility: hidden;
}

.opening-logo {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.opening-bar {
    width: 0;
    height: 4px;
    background: var(--secondary-color);
    margin-top: 1rem;
    animation: expandWidth 1s ease-out forwards;
}

@keyframes expandWidth {
    to {
        width: 100%;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--dark);
    color: #adb5bd;
    padding: 4rem 0 0;
}

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

.footer-widget h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-contact li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid #495057;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .nav-pc {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}