/* ---------------------------------------
  基本設定 & リセット
--------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* スマホでの横揺れ防止 */
}

/* 共通コンテナ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 20px;
}

/* ---------------------------------------
  ヘッダー（レスポンシブ対応）
--------------------------------------- */
header {
    width: 100%;
    padding: 20px 30px; /* 少しコンパクトに調整 */
    position: fixed;    /* 画面上部に固定 */
    top: 0;
    left: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1000;      /* メニューより前面に */
    transition: background-color 0.3s;
}

/* メニューが開いている時のヘッダー背景（必要に応じて） */
header.menu-open {
    background-color: transparent; 
}

/* PCナビゲーション */
header ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

header ul li a {
    text-decoration: none;
    color: #000;
    font-family: "Afacad", sans-serif;
    font-size: 24px;
    letter-spacing: 0.1em;
    font-weight: 500;
    transition: opacity 0.3s;
}

/* スマホ用ハンバーガーアイコン */
.menu-icon {
display: none; /* PCでは非表示 */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 18px;
    cursor: pointer;
    z-index: 1100; /* ナビゲーションメニュー(z-index: 1000)より上に配置 */
    position: relative;
}

.menu-icon span {
display: block;
    width: 100%;
    height: 1px;
    background-color: #333; /* 白背景セクション用 */
    transition: all 0.3s ease;
}

/* ダークセクション（MISSION等）にいる時のアイコン色調整（必要であれば） */
.dark-section-active .menu-icon span {
    background-color: #fff;
}

/* ×印への変化 */
.menu-icon.active span {
    background-color: #333 !important; /* メニューが開いた時は黒（白背景想定） */
}
.menu-icon.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.menu-icon.active span:nth-child(2) {
    opacity: 0;
}
.menu-icon.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ---------------------------------------
  メインビジュアル
--------------------------------------- */
.main-visual {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center; /* 上下中央 */
    justify-content: center; /* 左右中央 */
    background-color: #fff;
    position: relative; /* 子要素の基準点に */
    overflow: hidden;
}

.logo-area {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.main-logo {
    width: 450px;
    max-width: 80%; /* スマホで画面からはみ出さないよう調整 */
    height: auto;
    /* absoluteによるズレを防ぐため、マージン等は指定しない */
}

/* ---------------------------------------
  セクション共通
--------------------------------------- */
h2 {
    font-family: "Afacad", sans-serif;
    font-size: 48px;
    letter-spacing: 0.3em;
    margin-bottom: 60px;
    text-align: center;
    font-weight: 600;
}

.catchphrase {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 0.1em;
    line-height: 1.4;
}

/* ---------------------------------------
  MISSION (Dark Section)
--------------------------------------- */
.dark-section {
    background-color: #0d121d;
    color: #fff;
}

.text-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.text-content p {
    margin-bottom: 25px;
    font-size: 15px;
    opacity: 0.9;
}

/* ---------------------------------------
  MESSAGE (White Section)
--------------------------------------- */
.flex-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
}

.image-box { flex: 1; text-align: right; }
.image-box img { width: 100%; max-width: 350px; opacity: 0.8; }
.text-box { flex: 1; }
.text-box h2, .text-box .catchphrase { text-align: left; }

/* ---------------------------------------
  SERVICE
--------------------------------------- */
.service-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
}

.service-circle {
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

/* ---------------------------------------
  COMPANY
--------------------------------------- */
.company-layout {
    display: flex;
    gap: 60px;
}

.map-area { flex: 1.2; }
.map-area img { width: 100%; height: auto; border: 1px solid #eee; }
.info-area { flex: 1; }

.info-area table { width: 100%; border-collapse: collapse; }
.info-area th, .info-area td {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 14px;
}
.info-area th { width: 30%; font-weight: 400; color: #888; }

/* ---------------------------------------
  FOOTER
--------------------------------------- */
footer {
    background-color: #0d121d;
    padding: 80px 50px;
    color: #fff;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo img { height: 35px; }

.footer-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.1em;
}

/* ---------------------------------------
  スマートフォン・タブレット用調整
--------------------------------------- */
@media (max-width: 850px) {
    /* ヘッダー */
    header { padding: 20px 24px; }
    header ul { display: none; } /* 通常のナビを隠す */
    .menu-icon { display: flex; } /* ハンバーガーを表示 */
    .main-visual {
        /* スマホでヘッダー分だけロゴが下がるのを防ぐため、明示的に100vhを確保 */
        height: 100vh;
    }
.main-logo {
        width: 320px; /* SPデザインのサイズ感に調整 */
        max-width: 70%;
    }
    .container { padding: 60px 20px; }

    /* タイポグラフィ調整 */
    h2 { font-size: 32px; margin-bottom: 40px; }
    .catchphrase { font-size: 18px; text-align: left; }

    /* MISSION: 左寄せに変更 */
    .text-content { text-align: left; }
    .text-content p { font-size: 14px; line-height: 2; }

    /* 各セクションを縦並びに */
    .flex-row, .service-content, .company-layout {
        flex-direction: column;
        gap: 40px;
    }

    /* MESSAGE */
    .image-box { text-align: center; order: -1; }
    .text-box h2 { text-align: center;}
    .text-box .catchphrase { text-align: left; }

    /* SERVICE */
    .service-circle { margin: 0 auto; width: 240px; height: 240px; }
    .service-description h3 { font-size: 18px; text-align: left; }

    /* COMPANY: テーブルを縦並びに */
    .info-area th, .info-area td {
        display: block;
        width: 100%;
        padding: 10px 0;
        border-bottom: none;
    }
    .info-area th { color: #888; padding-bottom: 0; }
    .info-area td { border-bottom: 1px solid #eee; padding-bottom: 15px; }

    /* FOOTER */
    .footer-container {
        flex-direction: column;
        gap: 40px;
    }
    .footer-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .sp_none
    {
    display: none;
    }
}

/* --- ハンバーガーアイコンのアニメーション設定 --- */
.menu-icon span {
    transition: all 0.3s ease;
}

.menu-icon.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.menu-icon.active span:nth-child(2) {
    opacity: 0;
}
.menu-icon.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* --- スマホ用メニューの表示設定 --- */
@media (max-width: 850px) {
.nav-menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        z-index: 1000; /* アイコン(1100)のすぐ下 */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        margin: 20px 0;
    }

    .nav-menu li a {
        font-size: 28px; /* スマホで見やすいよう大きく */
        color: #000;
    }

    /* アイコンは常に最前面に */
    .menu-icon {
        display: flex;
        z-index: 2000;
    }
}