@charset "UTF-8";

/* =========================================
   1. 全体設定 (Base Styles)
   ========================================= */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8fbfe;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

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

/* =========================================
   2. ヘッダー (Header)
   ========================================= */
header {
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

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

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    gap: 12px;
    z-index: 102;
}

.logo-link img {
    height: 50px;
    display: block;
    mix-blend-mode: multiply;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: bold;
    color: #005aa0;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #005aa0;
    font-weight: bold;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #005aa0;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.btn-contact {
    background: #005aa0;
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 50px;
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0, 90, 160, 0.2);
}

.btn-contact::after { display: none; }

.btn-contact:hover {
    background: #004488;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 90, 160, 0.3);
}

/* スマホ用ハンバーガーメニューボタン */
.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 102;
}

.menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #005aa0;
    margin: 5px 0;
    transition: 0.3s;
}

.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* メニューのオーバーレイ */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.menu-open .menu-overlay {
    opacity: 1;
    visibility: visible;
}


/* =========================================
   3. ヒーローエリア (Hero Section)
   ========================================= */
#hero {
    position: relative;
    background: linear-gradient(-45deg, #002244, #003366, #005aa0, #0077cc);
    background-size: 400% 400%;
    animation: gradientAnim 15s ease infinite;
    
    color: #fff;
    padding-top: 160px;
    padding-bottom: 240px;
    text-align: center;
    overflow: hidden;
    flex-shrink: 0; 
}

@keyframes gradientAnim {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: 0.08em;
    position: relative; 
    z-index: 2;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 1.2s ease-out;
}

#hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    position: relative; 
    z-index: 2;
    animation: fadeInUp 1.2s ease-out 0.3s backwards;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* 波のエフェクト */
#hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 150px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%23f8fbfe' fill-opacity='1' d='M0,192 C480,320 960,64 1440,192 L1440,320 L0,320 Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: 1;
}

/* =========================================
   4. サービスセクション (Services)
   ========================================= */
section { padding: 100px 0; }

#services, #company { flex-shrink: 0; }

.section-title {
    text-align: center;
    color: #005aa0;
    font-size: 2.5rem;
    margin-bottom: 60px;
    letter-spacing: 0.05em;
}

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

.service-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 90, 160, 0.08);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 90, 160, 0.15);
}

.img-wrapper {
    overflow: hidden;
    height: 200px;
}

.card-img-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.service-card:hover .card-img-photo {
    transform: scale(1.1);
}

.card-text { padding: 30px; }

.card-text h3 { 
    color: #005aa0; 
    margin: 0; 
    font-size: 1rem; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 15px; 
}

.card-text h3 span { 
    display: block; 
    font-size: 1.4rem; 
    color: #333; 
    margin-top: 8px; 
}

.card-text p { 
    font-size: 0.95rem; 
    color: #666; 
    margin-top: 15px; 
    line-height: 1.8;
}

/* =========================================
   5. 会社概要 (Company)
   ========================================= */
#company { background: #fff; }
#company { flex-grow: 1; }

.profile-list { 
    max-width: 800px; 
    margin: 0 auto; 
    border-top: 1px solid #eee;
}

.profile-item { 
    display: flex; 
    border-bottom: 1px solid #eee; 
    padding: 25px 0; 
    transition: background-color 0.3s;
}

.profile-item:hover {
    background-color: #fcfcfc;
}

.profile-item dt { 
    width: 30%; 
    font-weight: bold; 
    color: #005aa0; 
    display: flex; 
    align-items: center; 
    padding-left: 10px;
}

/* 点（::before）を削除済み */

.profile-item dd { width: 70%; margin: 0; color: #444; }

/* =========================================
   6. アニメーション設定 (Scroll Fade In)
   ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s cubic-bezier(0.2, 1, 0.3, 1);
}

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

/* =========================================
   7. フッター (Footer)
   ========================================= */
footer { 
    background: #111; 
    color: #aaa; 
    text-align: center; 
    padding: 40px 0; 
    font-size: 0.8rem;
    margin-top: auto; 
    flex-shrink: 0;
}

/* =========================================
   8. レスポンシブ調整 (Mobile)
   ========================================= */
@media (max-width: 768px) {
    #hero h1 { font-size: 2.2rem; }
    #hero p { font-size: 1rem; }
    
    .header-inner { justify-content: space-between; }
    
    .logo-link img { height: 36px; }
    .logo-text { font-size: 0.85rem; }

    .menu-btn { display: block; }

    nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        padding: 80px 30px;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 101;
    }

    .menu-open nav { transform: translateX(0%); }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }
    nav a { font-size: 1.2rem; display: block; width: 100%; border-bottom: 1px solid #eee; padding-bottom: 10px; }
    nav a::after { display: none; }
    
    .btn-contact {
        display: inline-block;
        margin-top: 10px;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .profile-item { display: block; }
    .profile-item dt { width: 100%; margin-bottom: 8px; padding-left: 0; }

    #hero::after { 
        height: 80px;
    }
}