/* ==========================================
   🔧 基本共通設定
   ========================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    line-height: 1.7;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: 0.05em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #778087;
}

.bg-light {
    background-color: #f8f9fa;
}

.text-center {
    text-align: center;
}

/* ==========================================
   🏢 ヘッダー
   ========================================== */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    color: #778087;
    font-weight: bold;
    letter-spacing: 0.03em;
}

.hamburger {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: bold;
    font-size: 1rem;
    color: #444;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #778087;
}

/* ==========================================
   🚀 メインビジュアル（動画背景対応）
   ========================================== */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    background-color: #778087;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
}

.hero-content h2 {
    /* 💡 768px以上の「る」が1文字落ちる現象を防ぐため、PCでの文字サイズを2.2remへ調整し改行時バランスを整えています */
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: bold;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
    display: inline-block;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.95;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   📦 グリッドレイアウト（カード共通）
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.044);
    border-top: 4px solid #778087;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.service-card h3 {
    color: #778087;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: bold;
}

.service-card p {
    font-size: 0.95rem;
    color: #555;
    text-align: justify;
}

.service-card strong {
    color: #333;
    background: linear-gradient(transparent 70%, #e2e5e7 70%);
}

/* ==========================================
   📊 会社概要
   ========================================== */
.profile-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.profile-table th,
.profile-table td {
    padding: 22px 25px;
    border-bottom: 1px solid #eee;
}

.profile-table th {
    width: 25%;
    text-align: left;
    background-color: #fcfcfc;
    color: #778087;
    font-weight: bold;
}

.profile-table td {
    color: #444;
}

/* ==========================================
   🕰️ 会社沿革
   ========================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #778087;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: #fff;
    border: 3px solid #778087;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-item:nth-child(even)::after {
    left: -8px;
}

.timeline-date {
    font-size: 1.1rem;
    font-weight: bold;
    color: #778087;
    margin-bottom: 5px;
}

.timeline-content {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    display: inline-block;
    text-align: left;
    max-width: 100%;
}

.timeline-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #333;
}

.timeline-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* ==========================================
   ✉️ お問い合わせフォーム
   ========================================== */
.form-intro {
    margin-bottom: 40px;
    color: #555;
}

.contact-form {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #444;
    font-size: 0.95rem;
}

.required {
    background-color: #e57373;
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    color: #333;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fdfdfd;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #778087;
    box-shadow: 0 0 0 3px rgba(119, 128, 135, 0.15);
    background-color: #fff;
}

.form-submit {
    text-align: center;
    margin-top: 35px;
}

.submit-btn {
    background-color: #778087;
    color: #fff;
    border: none;
    padding: 16px 50px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(119, 128, 135, 0.3);
}

.submit-btn:hover {
    background-color: #5c646b;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(119, 128, 135, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ==========================================
   🔲 フッター
   ========================================== */
footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* ==========================================
   ✨ アニメーション設定
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h2 {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-content p {
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

/* ==========================================
   📱 スマホ・タブレット用レスポンシブ (max-width: 768px)
   ========================================== */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.7rem;
        margin-bottom: 35px;
    }

    .header-container {
        height: 65px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .hamburger {
        display: block;
        background: none;
        border: none;
        width: 30px;
        height: 24px;
        position: relative;
        z-index: 120;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: #333;
        transition: transform 0.3s, opacity 0.3s, top 0.3s, bottom 0.3s;
    }

    .hamburger span:nth-child(1) {
        top: 0;
    }

    .hamburger span:nth-child(2) {
        top: 11px;
    }

    .hamburger span:nth-child(3) {
        bottom: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(11px) rotate(-45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-11px) rotate(45deg);
    }

    /* 💡 スマホメニュー背景：半透明グレーバック＆高級感あるぼかし加工 */
    .nav-menu {
        position: fixed;
        top: 65px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 65px);
        background-color: rgba(30, 33, 35, 0.88);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 110;
        transition: left 0.3s ease;
        padding-top: 60px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu.active .nav-links li {
        animation: fadeInUp 0.4s ease forwards;
    }

    .nav-menu.active .nav-links li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-menu.active .nav-links li:nth-child(2) {
        animation-delay: 0.2s;
    }

    .nav-menu.active .nav-links li:nth-child(3) {
        animation-delay: 0.3s;
    }

    .nav-menu.active .nav-links li:nth-child(4) {
        animation-delay: 0.4s;
    }

    .nav-menu.active .nav-links li:nth-child(5) {
        animation-delay: 0.5s;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 35px;
    }

    .nav-links li {
        margin: 0;
        opacity: 0;
    }

    /* 💡 メニュー内リンク：背景色に合わせて視認性の高い白文字に最適化 */
    .nav-links a {
        font-size: 1.3rem;
        color: #fff;
        display: block;
        letter-spacing: 0.05em;
        transition: opacity 0.2s;
    }

    .nav-links a:hover {
        opacity: 0.7;
        color: #fff;
    }

    .hero {
        height: 400px;
    }

    .hero-content h2 {
        font-size: 1.45rem;
        /* スマホ画面で最適なバランスで2行に収まるサイズ */
        line-height: 1.6;
        white-space: normal;
    }

    .hero-content p {
        font-size: 0.95rem;
        white-space: normal;
        line-height: 1.6;
    }

    .profile-table tr {
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid #eee;
    }

    .profile-table th,
    .profile-table td {
        width: 100% !important;
        padding: 12px 20px;
        border: none;
    }

    .profile-table th {
        background-color: transparent;
        color: #778087;
        padding-top: 18px;
        padding-bottom: 2px;
    }

    .profile-table td {
        padding-bottom: 18px;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: left !important;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::after,
    .timeline-item:nth-child(even)::after {
        left: 24px;
    }

    .contact-form {
        padding: 25px 20px;
    }

    .timeline-content {
        max-width: 100%;
    }

    .submit-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }
}