@charset "UTF-8";

/* =========================================
   リセット & ベーススタイル
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
   --main-color: #1460cc;
}

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: 1000px;
    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: 20%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    margin: 0 auto;
    text-align: left;
}

.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;
}

/* =========================================
   各セクション共通（追従型 Flexbox レイアウト）
========================================= */
.concept-section,
.company-profile,
.contact-section {
    position: relative;
    z-index: 1;
    background-color: #f0f7fc; 
    padding: 100px 0;
}

/* .container を左右分割にする */
.concept-section .container,
.company-profile .container,
.contact-section .container {
    display: flex;
    align-items: flex-start; /* これがないとstickyが効かない */
    justify-content: space-between;
    gap: 40px;
}

/* 左側のタイトル（スクロール追従） */
.section-title {
    width: 25%;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    /* 追従設定 */
    position: sticky;
    top: 100px;
}

.section-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--main-color);
    margin-top: 20px;
}

/* 右側のコンテンツ共通設定 */
.concept-content,
.profile-table,
.contact-content {
    width: 75%;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border-radius: 8px; /* 少し角を丸くしてモダンに */
}

/* =========================================
   CONCEPT セクション
========================================= */
.concept-content {
    padding: 60px 50px;
}

.concept-catch {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 25px;
}

/* =========================================
   テーブル（会社概要）
========================================= */
.profile-table {
    border-collapse: collapse;
    overflow: hidden; /* 角丸を適用するため */
}

.profile-table th,
.profile-table td {
    padding: 30px;
    border-bottom: 1px solid #eeeeee;
}

.profile-table tr:last-child th,
.profile-table tr:last-child td {
    border-bottom: none;
}

.profile-table th {
    width: 28%;
    text-align: left;
    background-color: #fcfcfc;
    font-weight: 500;
    vertical-align: top;
}

.profile-table td {
    width: 72%;
}

/* =========================================
   事業内容のリストスタイル
========================================= */
.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;
}

/* =========================================
   CONTACT セクション
========================================= */
.contact-content {
    padding: 60px 50px;
    text-align: center;
}

.contact-text {
    margin-bottom: 30px;
    line-height: 2;
}

.contact-btn {
    display: inline-block;
    background-color: var(--main-color);
    color: #ffffff;
    padding: 18px 60px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 40px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: #ffffff;
    text-decoration: none;
}

/* =========================================
   フッター
========================================= */
.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) {
    /* メインビジュアルのスマホ用画像 */
    .main-visual::before {
        background-image: url('img/main-bg-sp.jpg');
    }
    .main-visual {
        height: 100vh;
    }
    .mv-logo-container {
        top: 28%;
    }
    .logo-img {
        width: 250px;
    }

    /* 各セクションの余白調整とFlexbox解除（縦積みに戻す） */
    .concept-section,
    .company-profile,
    .contact-section {
        padding: 60px 0;
    }
    .concept-section .container,
    .company-profile .container,
    .contact-section .container {
        display: block;
    }

    /* タイトルの追従解除・上部配置 */
    .section-title {
        width: 100%;
        position: static;
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    /* 右側コンテンツを幅100%に */
    .concept-content,
    .profile-table,
    .contact-content {
        width: 100%;
    }

    /* スマホ用の内側余白調整 */
    .concept-content,
    .contact-content {
        padding: 40px 20px;
    }
    .concept-catch {
        font-size: 1.25rem;
    }

    /* テーブルのスマホ表示調整（ブロック化） */
    .profile-table th,
    .profile-table td {
        display: block;
        width: 100%;
        padding: 20px;
    }
    .profile-table th {
        padding-bottom: 5px;
        border-bottom: none;
        background-color: transparent;
    }
    .profile-table td {
        padding-top: 5px;
    }
    
    .contact-text {
      text-align: left;
    }
    .contact-text br {
      display: none;
    }
    
}