/* 全体の基本設定 */
body {
    margin: 0;
    font-family: sans-serif;
    color: #333;
}
html{
    scroll-behavior: smooth !important;
}

/* ヘッダー */
.header {
    display: flex;
    align-items: center;
    /* 上下中央揃え */
    gap: 20px;
    /* ロゴと文字の間隔 */
    padding: 10px 20px;
    background: #fff;
    border-bottom: none;
}

.logo {
    align-items: center;
    /* 上下中央揃え */
    width: 35%;
    height: auto;
    display: block;
    padding-left: 3vw !important;
    /* ★右端にスペースを作る */
    padding-top: 1vw !important;
    /* ★右端にスペースを作る */
}

/* mv-text を見出しとして左寄せ */
.header .mv-text {
    align-items: center;
    /* 上下中央揃え */
    position: static;
    /* ★絶対配置を解除して通常の横並びへ */
    top: 5%;
    /* 上からの距離 */
    right: 5%;
    /* 右からの距離 */
    text-align: right;
    /* 文字を右揃え */
    color: black;
    /* 文字色 */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    justify-content: flex-end;
    /* ★右寄せになる */
    width: 100%;
    /* 右寄せが効くために必須 */
    padding-right: 3vw;
    /* ★右端にスペースを作る */
}

/* メニュー */
/* Google Fonts（丁寧系の日本語フォント Noto Sans JP） */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* 余白・線を完全に消す */
header.header,
nav.nav {
    margin: 0;
    padding: 0;
    border: none;
}

/* ===============================
   強制横一列メニュー（最強版）
   =============================== */
.nav ul {
    font-family: 'Yu Mincho Demibold';
    display: flex !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    justify-content: right;
    /* left揃え */
    animation: fadeIn 8s ease forwards;
    /* 5秒でフェードイン */
}

.nav li {
    flex-shrink: 0 !important;
    /* 改行させない */
    margin: 0 1rem !important;
    white-space: nowrap !important;
}

.nav a {
    font-size: 1.5vw;
    /* 画面幅の3%で文字サイズを自動調整 */
    color: black;
    text-decoration: none !important;
    white-space: nowrap !important;
}

/* メインビジュアル */
/* .main-visual {

    height: 60vh;
    background: url('main.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #000;
} */
.main-visual2 {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 100vh;
    /* 高さの上限 */
    overflow: hidden;
    object-fit: cover;
    /* セクションを覆う */
    background-image: url('images/IMG_home1.png');
    background-size: cover;
    background-position: center;
    position: relative;
    /* 文字を絶対位置で配置する基準 */
    background-repeat: no-repeat;
    /* 繰り返さない */
    display: flex;
    justify-content: center;
    /* テキスト中央寄せ */
    align-items: center;
    color: white;
    /* テキストを目立たせる */
    text-align: center;
    /* フェードイン用 */
    opacity: 0;
    /* 初期状態は透明 */
    animation: fadeIn 7s ease forwards;
    /* 5秒でフェードイン */
}

/* 背景画像 */
.bg-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    /* セクションを覆う */
    max-height: 100vh;
    /* 高さの上限 */
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


.mv-text span {
    font-size: 2vw;
    /* 画面幅の3%で文字サイズを自動調整 */
    font-family: 'Yu Mincho Demibold';
    display: inline-block;
    /* アニメーションしやすくする */
    opacity: 0;
    /* 初期は透明 */
    transform: scale(0.5);
    /* 少し小さくして始める */
    animation: fadeScale 0.6s forwards;
}

.mv-text span:nth-child(1) {
    animation-delay: 0s;
}

.mv-text span:nth-child(2) {
    animation-delay: 0.2s;
}

.mv-text span:nth-child(3) {
    animation-delay: 0.4s;
}

.mv-text span:nth-child(4) {
    animation-delay: 0.6s;
}

.mv-text span:nth-child(5) {
    animation-delay: 0.8s;
}

.mv-text span:nth-child(6) {
    animation-delay: 1.0s;
}

.mv-text span:nth-child(7) {
    animation-delay: 1.2s;
}

.mv-text span:nth-child(8) {
    animation-delay: 1.4s;
}

.mv-text span:nth-child(9) {
    animation-delay: 1.6s;
}

.mv-text span:nth-child(10) {
    animation-delay: 1.8s;
}

.mv-text span:nth-child(11) {
    animation-delay: 2.0s;
}

.mv-text span:nth-child(12) {
    animation-delay: 2.2s;
}

.mv-text span:nth-child(13) {
    animation-delay: 2.4s;
}

.mv-text span:nth-child(14) {
    animation-delay: 2.6s;
}

/* p の文字も同様に nth-child を追加 */

@keyframes fadeScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}




/* 業務概要 */
.services {
    font-family: 'Yu Mincho Demibold';
    background: #fafafa;
    /* 優しい背景色 */
    padding: 40px 20px;
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    animation: fadeIn 10s ease forwards;
}
.services h2 {
    font-size: 2rem;
    color: #001d3d;
    margin-bottom: 20px;
    border-left: 5px solid gold;
    padding-left: 10px;
}

.service-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.service-box {
    flex: 1 1 calc(33% - 20px);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    min-width: 250px;
}

.service-box h3 {
    margin-top: 0;
    color: #333;
}

/* レスポンシブ：スマホ向け */

.main-visual {
    height: 40vh;
}

.mv-text h1 {
    font-size: 1.6rem;
}

.service-wrapper {
    flex-direction: column;
}

.service-box {
    flex: 1 1 100%;
}

/* ===============================
   会社概要
=============================== */
.company-info {
    font-family: 'Yu Mincho Demibold';
    background: #fafafa;
    /* 優しい背景色 */
    padding: 40px 20px;
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    animation: fadeIn 11s ease forwards;
}

.company-info h2 {
    font-size: 2rem;
    color: #001d3d;
    margin-bottom: 20px;
    border-left: 5px solid gold;
    padding-left: 10px;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table td {
    padding: 10px 8px;
    border: none;
}

.company-table tr td:first-child {
    font-weight: 700;
    color: #000814;
    width: 150px;
}

/* ===============================
   お問い合わせ
=============================== */
.contact {
    font-family: 'Yu Mincho Demibold', sans-serif;
    background: #001d3d;
    /* ネイビー基調 */
    color: #fff;
    padding: 40px 20px;
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: fadeIn 6s ease forwards;
}

.contact h2 {
    font-size: 2rem;
    color: gold;
    margin-bottom: 20px;
    border-left: 5px solid gold;
    padding-left: 10px;
}

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

.contact ul {
    list-style: none;
    padding-left: 0;
}

.contact ul li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* ===============================
   共通アニメーション
=============================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================
   レスポンシブ対応
=============================== */
@media (max-width: 768px) {

    .company-info,
    .contact {
        padding: 30px 15px;
    }

    .company-info h2,
    .contact h2 {
        font-size: 1.6rem;
    }

    .company-table tr td:first-child {
        width: 120px;
    }
}