
/* --- Variables --- */
:root {
    --main-dark: #0f172a;
    --text-color: #333;
    --white: #ffffff;
    --gray-bg: #f8f8f8;
    --accent: #fff;
}

/* --- Base --- */
body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    color: var(--text-color);
    line-height: 1.8;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
}

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

ul { list-style: none; padding: 0; }
a { text-decoration: none; color: inherit; }

/* --- Header --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    /* position: absolute; */
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    /* z-index: 10; */
    z-index: 100;
    font-family: "Afacad";
    transition: background-color 0.3s ease; /* スクロール時の色変化用（お好みで） */
    background-color: rgba(255, 255, 255, 0.8);
}

.header-logo a img {
    width: 120px; /* PCロゴサイズ */
    height: auto;
}

.hamburger-menu {
    display: none; /* 基本は隠す */
}

.header-nav ul {
    display: flex;
    gap: 70px;
}

.header-nav a {
    font-size: 2.4rem;
    font-weight: 600;
}

/* --- Hero --- */
.hero {
    height: 100vh;
    background-color: #Fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.hero-video {
    /* width: 100%; */
    /* height: 100%; */
    margin-top: 140px;
    object-fit: cover;
}

/* --- Responsive (SmartPhone) --- */
@media screen and (max-width: 768px) {
    .header {
        padding: 15px 20px; /* スマホは余白を狭める */
    }

    .header-logo a img {
        width: 80px; /* スマホ用ロゴサイズ */
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        z-index: 20;
    }

    .hamburger-menu span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--main-dark); /* ロゴの色に合わせて調整してください */
        transition: 0.3s;
    }

    /* スマホ版ではナビゲーションを隠す（デザイン通り） */
    .header-nav {
        display: none;
    }

    .hero {
        height: 100vh; /* スマホは全画面表示にすることで没入感をアップ */
    }

    .hero-video {
        height: 50%;
    }

    .container {
        padding: 40px 20px; /* セクション余白をスマホ向けに調整 */
    }
}

/* --- Mission --- */
.section-title {font-family: "Afacad"; font-size: 4.8rem; margin-bottom: 40px; font-weight: 500;}
.mission-catch { font-size: 2.4rem; margin-bottom: 30px; font-weight: 500;}
.mission-text { font-size: 1.4rem; color: #555; }

/* --- Service --- */
.service {
    background-color: var(--main-dark);
    color: var(--white);
}

.section-title-white {font-family: "Afacad"; font-size: 2.4rem; margin-bottom: 20px; font-weight: 500;}
.service-intro { font-size: 1.4rem; margin-bottom: 60px; }

.service-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.service-item {
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 250px;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    margin-left: -5.0rem;
}

.service-item:hover { background: rgba(255,255,255,0.1); }
.service-cat {font-family: "Afacad"; font-size: 1.6rem; margin-bottom: 10px; }
.service-item h4 { font-size: 2.4rem; margin: 0; }
.plus { font-size: 2.4rem; }

/* --- Responsive (SmartPhone) --- */
@media screen and (max-width: 768px) {
    /* --- Mission スマホ対応 --- */
    .section-title {
        font-size: 3.2rem; /* タイトルを少し小さく */
        margin-bottom: 24px;
    }
    .mission-catch {
        font-size: 2.0rem;
        line-height: 1.5;
    }
    .mission-text {
        font-size: 1.4rem;
        text-align: justify; /* 文章の端を揃える */
    }

    /* --- Service スマホ対応 --- */
    .service-grid {
        flex-direction: column; /* 縦並びに変更 */
        gap: 16px;
    }

    .service-item {
        /* デザイン画像に基づき、円形から角丸長方形に変更 */
        width: 100%; 
        height: auto;
        min-height: 120px;
        border-radius: 8px; /* 角丸 */
        margin-left: 0; /* PC版の重なりを解除 */
        padding: 24px;
        flex-direction: row; /* 横並びにして左右に配置 */
        justify-content: space-between;
        align-items: center;
        background: rgba(255, 255, 255, 0.05); /* わずかに背景色をつける */
    }

    .service-cat-group { /* テキストを左にまとめる用（必要に応じてHTML調整） */
        text-align: left;
    }

    .service-item h4 {
        font-size: 2.0rem;
    }

    .service-cat {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }
}

/* --- ABOUT US: 中央寄せとレイアウト --- */
.about {
    background-color: var(--white);
}

/* 見出しのみを中央寄せにする */
.about .section-title {
    text-align: center;
    width: 100%;
    display: block;
    margin-bottom: 6.0rem;
}

.about-content {
    display: flex;
    align-items: flex-start; /* 上揃え */
    justify-content: center;
    gap: 0; /* 背景と画像を密着させるため */
    position: relative;
}

/* 左側のグレー背景のテキストボックス */
.about-info {
    flex: 0 0 70.0rem; /* 幅を550pxに固定 */
    background-color: #f5f5f5; /* デザインに近い薄いグレー */
    padding: 6.0rem 4.0rem 8.0rem 6.0rem;
    position: relative;
    z-index: 2;
    margin-top: 4.0rem; /* 画像より少し下げるデザインの場合 */
}

.about-info dl {
    display: grid;
    grid-template-columns: 10.0rem 1fr;
    gap: 2.0rem 0;
    font-size: 1.4rem;
    line-height: 1.6;
}

.about-info dt {
    font-weight: bold;
    color: #333;
}

.about-info dd {
    margin: 0;
    color: #555;
}

/* VIEW ALL ボタン：右下に配置 */
.btn-view {
    position: absolute;
    bottom: 0;
    right: 0;
    transform: translate(0, 50%); /* ボックスの右下に半分はみ出す配置 */
    background: var(--main-dark);
    color: white;
    padding: 1.5rem 4.0rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 2.0rem;
    transition: opacity 0.3s;
}

.btn-view:hover {
    opacity: 0.9;
}

/* 右側の画像 */
.about-image {
    flex: 0 0 45.0rem; /* 幅450px */
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: 60.0rem; /* 高さを固定してビル群を強調 */
    object-fit: cover;
    display: block;
}

/* --- Responsive (SmartPhone) --- */
@media screen and (max-width: 768px) {
    
    /* --- ABOUT US スマホ対応 --- */
    .about .section-title {
        margin-bottom: 4.0rem; /* 余白を少し詰める */
    }

    .about-content {
        flex-direction: column; /* 縦並びに変更 */
        align-items: stretch;
    }

    /* 左側のテキストボックス（スマホでは上側に配置） */
    .about-info {
        flex: none; /* 固定幅を解除 */
        width: 100%;
        margin-top: 0; /* PC版のズレを解消 */
        padding: 4.0rem 2.0rem 6.0rem 2.0rem; /* 左右余白をスマホサイズに */
    }

    .about-info dl {
        grid-template-columns: 1fr; /* 項目を1列（縦並び）に変更 */
        gap: 1.5rem 0;
    }

    .about-info dt {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        color: #888; /* 項目名を少し薄くして見やすく */
    }

    .about-info dd {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    /* VIEW ALL ボタン */
    .btn-view {
        position: relative; /* 絶対配置を解除してボックスの下に配置 */
        transform: none;
        width: 100%; /* 横幅いっぱいにしてタップしやすく */
        justify-content: center;
        margin-top: 2.0rem;
    }

    /* 右側の画像（スマホでは下側に配置） */
    .about-image {
        flex: none;
        width: 100%;
        order: 2; /* HTMLの並び順に関わらず下に配置 */
    }

    .about-image img {
        height: 25.0rem; /* スマホでは高さを抑える */
        margin-top: 2.0rem;
    }
}

/* --- RECRUIT --- */
.recruit {
    padding: 10.0rem 0 15.0rem;
    background-color: var(--white);
    overflow: hidden; /* 画像がはみ出す場合の保険 */
}

.recruit-container {
    position: relative;
    max-width: 110.0rem;
    height: 60.0rem; /* セクションの高さを確保 */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

/* 中央テキスト */
.recruit-center {
    text-align: center;
    z-index: 5;
}

.recruit-center .section-title {
    font-size: 4.8rem;
    font-family: "Afacad";
    margin-bottom: 2.0rem;
    letter-spacing: 0.1em;
}

.recruit-sub {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 2.0rem;
}

.plus-icon {
    font-size: 2.0rem;
    display: block;
}

/* 画像共通設定 */
.recruit-img {
    position: absolute;
    width: 28.6rem; /* 286px */
    height: 20.0rem; /* 200px */
    box-shadow: 1.0rem 1.0rem 0px rgba(0, 0, 0, 0.05); /* 軽い影をつける場合 */
}

.recruit-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 各画像の位置調整 (Figmaの配置に合わせて微調整してください) */
.img-top-left {
    top: 5.0rem;
    left: 5.0rem;
}

.img-top-right {
    top: 0;
    right: 0;
}

.img-bottom-left {
    bottom: -1rem;
    left: 10.0rem;
}

.img-bottom-right {
    bottom: -3rem;
    right: 15.0rem;
}

/* ホバー演出（お好みで） */
.recruit-img:hover {
    transform: translateY(-0.5rem);
    transition: transform 0.3s ease;
}

/* --- Responsive (SmartPhone) --- */
@media screen and (max-width: 768px) {

    /* --- RECRUIT スマホ対応 --- */
    .recruit {
        padding: 6.0rem 0 8.0rem; /* 上下の余白をスマホ用に調整 */
    }

    .recruit-container {
        flex-direction: column; /* 縦並びに変更 */
        height: auto; /* 固定高さを解除 */
        padding: 0 20px;
    }

    /* 中央テキスト */
    .recruit-center {
        order: 2; /* 画像の間に挟むため、順番を中間に設定 */
        margin: 4.0rem 0;
        width: 100%;
    }

    .recruit-center .section-title {
        font-size: 3.6rem; /* スマホサイズに縮小 */
    }

    /* 画像の共通設定リセット */
    .recruit-img {
        position: relative; /* 絶対配置を解除 */
        width: 48%; /* 横に2枚並べるサイズ */
        height: 12.0rem; /* スマホでの高さを指定 */
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        box-shadow: 0.5rem 0.5rem 0px rgba(0, 0, 0, 0.05); /* 影を小さく */
    }

    /* スマホ用の画像コンテナ（必要に応じてHTMLにdivを追加してください） */
    /* もしHTMLを変えたくない場合は、containerをflex-wrapさせます */
    .recruit-container {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row; /* 横並び混合 */
        justify-content: space-between;
        align-items: center;
    }

    /* 画像の並び順（iPhoneデザイン再現） */
    .img-top-left, .img-top-right {
        order: 1; /* テキストより上に配置 */
        margin-bottom: 1.5rem;
    }

    .img-bottom-left, .img-bottom-right {
        order: 3; /* テキストより下に配置 */
    }
}

/* --- Footer --- */
.footer {
    background-color: var(--main-dark);
    color: white;
    padding: 80px 50px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch; 
    max-width: 110.0rem;
    margin: 0 auto;
    /* 高さをある程度確保すると、下寄せが際立ちます */
    min-height: 25.0rem;
}

.footer-logo {font-family: "Afacad"; font-size: 4.8rem; font-weight: bold; margin-top: auto; line-height: 1; /* 余計な下余白を消すため */}
.footer-links p { font-size: 1rem; color: #888; margin-bottom: 20px; }
.footer-links ul li { margin-bottom: 10px; font-size: 1.4rem; }

.contact-box {
    background: #000;
    padding: 30px;
    text-align: left;
}
.contact-box p { font-size:2.4rem;}
.contact-box .small { font-size: 1rem; color: #ccc; margin-bottom: 15px; }
.contact-box img { width: 100%; max-width: 200px; }

/* --- Responsive (SmartPhone) --- */
@media screen and (max-width: 768px) {

    /* --- Footer / Contact スマホ対応 --- */
    .footer {
        padding: 60px 20px; /* 余白をスマホ用に調整 */
    }

    .footer-container {
        flex-direction: column; /* 縦並びに変更 */
        min-height: auto; /* PC版の高さ固定を解除 */
        gap: 40px;
    }

    /* CONTACT BOX を一番上に持ってくる */
    .footer-contact {
        order: -1; /* コンテナ内で一番上に配置 */
        width: 100%;
    }

    .contact-box {
        padding: 30px 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .contact-box p {
        font-size: 2.0rem; /* スマホ向けに微調整 */
    }

    .contact-box img {
        max-width: 100%; /* ボックス幅に合わせる */
        height: auto;
        margin-top: 15px;
    }

    /* ロゴとコピーライト */
    .footer-logo {
        font-size: 3.6rem;
        margin-top: 0; /* 下寄せを解除 */
        order: 2; /* リンクの後に配置 */
    }

    /* コンテンツリンク */
    .footer-links {
        order: 1; /* ロゴより上に配置 */
    }

    .footer-links ul {
        display: grid;
        grid-template-columns: 1fr 1fr; /* リンクを2列に並べてコンパクトに */
        gap: 10px;
    }

    .copyright {
        margin-top: 20px;
        font-size: 1.0rem;
    }
}