@charset "UTF-8";

/* =========================================
   リセット & ベーススタイル
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
   --main-color: #152f52;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333333;
    line-height: 1.8;
    /* 背景色をごく薄い水色（ペールブルー） */
    background-color: #f0f7fc; 
    letter-spacing: 0.03em;
}

::selection {
    background-color: #0f8de1;
    color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: #333333;
}
a:hover {
    color: var(--main-color);
    text-decoration: underline;
}

/* =========================================
   レイアウト
========================================= */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   メインビジュアル
========================================= */
.main-visual {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 450px;
    
    /* 親要素で「窓」を作り、はみ出た背景を隠す */
    clip-path: inset(0);
    z-index: 0;
}

/* 背景画像専用のレイヤーを作って画面に固定する（iPhone実機対応） */
.main-visual::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    
    background-image: url('img/main-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    z-index: -1;
    pointer-events: none;
}

/* =========================================
   ロゴ（ど真ん中に配置）
========================================= */
.mv-logo-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    margin: 0 auto;
    text-align: center;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.logo-link:hover {
    opacity: 0.8;
}

.logo-img {
    width: 400px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* =========================================
   会社概要セクション
========================================= */
.company-profile {
    position: relative;
    z-index: 1;
    background-color: #f0f7fc; /* bodyと同じ背景色を塗って裏の画像を隠す */
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
    letter-spacing: 0.05em;
}

.section-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--main-color);
    margin: 20px auto 0;
}

/* =========================================
   テーブル（会社概要）
========================================= */
.profile-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.profile-table th,
.profile-table td {
    padding: 25px 20px;
    border-bottom: 1px solid #eeeeee;
}

.profile-table th {
    width: 25%;
    text-align: left;
    background-color: #fcfcfc;
    font-weight: 500;
    vertical-align: top;
}

.profile-table td {
    width: 75%;
}

/* =========================================
   事業内容のリストスタイル
========================================= */
.business-list {
    list-style-type: none;
}

.business-list li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 10px;
}

.business-list li:last-child {
    margin-bottom: 0;
}

.business-list li::before {
    content: "・";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

/* =========================================
   フッター
========================================= */
.footer {
    position: relative; 
    z-index: 1;
    background-color: var(--main-color);
    color: #ffffff;
    text-align: center;
    padding: 25px 0;
}

.footer small {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* =========================================
   レスポンシブ対応 (画面幅 768px 以下)
========================================= */
@media screen and (max-width: 768px) {
    /* スマホ用の画像は ::before（背景レイヤー）に対して上書きする */
    .main-visual::before {
        background-image: url('img/main-bg-sp.jpg');
        background-position: center; 
    }
    
    .main-visual {
        height: 100vh;
    }
    
    .mv-logo-container {
        top: 28%;
    }

    .logo-img {
        width: 250px;
    }

    .company-profile {
        padding: 50px 0;
    }
    
    .section-title {
      font-size: 1.5rem;
    }

    .profile-table,
    .profile-table tbody,
    .profile-table tr,
    .profile-table th,
    .profile-table td {
        display: block;
        width: 100%;
    }
    
    .profile-table th {
        padding-bottom: 5px;
        border-bottom: none;
        background-color: transparent;
        padding-top: 25px;
    }
    
    .profile-table td {
        padding-top: 5px;
        padding-bottom: 25px;
    }
    
    .profile-table tr {
        border-bottom: 1px solid #eeeeee;
    }
    .profile-table tr:last-child {
        border-bottom: none;
    }
}