/* --- リセットと共通スタイル --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

.section {
    padding: 100px 5%; /* 上下の余白を調整 */
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-size: 36px; /* タイトルのフォントサイズを調整 */
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px; /* タイトル下の余白を調整 */
    letter-spacing: 0.05em; /* 文字間隔を調整 */
}

/* --- ヘッダー --- */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* 影を薄く調整 */
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%; /* 上下の余白を調整 */
}

.logo img {
    height: 40px; /* ロゴの高さを調整 */
    width: auto;
}

/* PCナビゲーション */
.nav-pc ul {
    display: flex;
    gap: 40px; /* リンク間の余白を調整 */
}

.nav-pc a {
    font-weight: 700;
    font-size: 16px; /* フォントサイズを調整 */
    color: #555;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
    letter-spacing: 0.05em; /* 文字間隔を調整 */
}

.nav-pc a:hover {
    color: #8cc63f;
}

/* スマホ用ハンバーガーメニューボタン（PCでは非表示） */
.nav-sp-toggle {
    display: none;
}

/* スマホ用メニュー（PCでは非表示） */
.nav-sp {
    display: none;
}


/* --- メインビジュアル --- */
.main-visual {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    /* margin-top: 80px; ヘッダー固定のため不要 */
}

.main-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-visual-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px; /* フォントサイズを調整 */
    font-weight: 700;
    color: #fff; /* 文字色を白に */
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); /* テキストに影を追加 */
    padding: 0; /* 背景色とパディングを削除 */
    letter-spacing: 0.05em; /* 文字間隔を調整 */
    width: 100%;
    text-align: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px; /* 位置を調整 */
    left: 50%;
    transform: translateX(-50%);
    width: 40px; /* サイズを調整 */
    height: 40px; /* サイズを調整 */
    border: 2px solid #fff; /* ボーダー色を白に */
    border-radius: 50%;
    opacity: 0.8;
    transition: opacity 0.3s;
    background-color: rgba(0, 0, 0, 0.3); /* 背景色を追加 */
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.scroll-indicator a::after {
    content: '';
    position: absolute;
    top: 50%; /* 位置を調整 */
    left: 50%; /* 位置を調整 */
    width: 12px; /* サイズを調整 */
    height: 12px; /* サイズを調整 */
    border-bottom: 2px solid #fff; /* ボーダー色を白に */
    border-right: 2px solid #fff; /* ボーダー色を白に */
    transform: translate(-50%, -75%) rotate(45deg); /* 位置と回転を調整 */
}

/* --- ABOUTセクション --- */
.about-lead {
    font-size: 28px; /* フォントサイズを調整 */
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px; /* 余白を調整 */
    color: #8cc63f;
    letter-spacing: 0.05em; /* 文字間隔を調整 */
}

.about-text {
    text-align: center;
    margin-bottom: 60px; /* 余白を調整 */
    font-size: 16px; /* フォントサイズを調整 */
    line-height: 2; /* 行間を調整 */
    padding: 0 5%; /* 左右の余白を調整 */
}

.about-images {
    display: flex;
    justify-content: center; /* 中央揃え */
    gap: 30px; /* 画像間の余白を調整 */
}

.about-images img {
    width: calc(33.333% - 20px); /* 幅を調整 */
    aspect-ratio: 4/3; /* アスペクト比を調整 */
    object-fit: cover;
    border-radius: 8px; /* 角丸を追加 */
}

/* --- SERVICEセクション --- */
.service {
    background-color: #f7f7f7;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px; /* 余白を調整 */
}

.service-item {
    background-color: #fff;
    border-radius: 12px; /* 角丸を調整 */
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* 影を調整 */
}

.service-image-container {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.service-item:hover .service-image-container img {
    transform: scale(1.05);
}

.service-content {
    padding: 30px; /* パディングを調整 */
}

.service-item-title {
    font-size: 20px; /* フォントサイズを調整 */
    font-weight: 700;
    margin-bottom: 15px; /* 余白を調整 */
    border-left: 4px solid #8cc63f; /* ボーダーの太さを調整 */
    padding-left: 15px; /* パディングを調整 */
    line-height: 1.4; /* 行間を調整 */
}

.service-item-text {
    font-size: 15px; /* フォントサイズを調整 */
    color: #666;
    line-height: 1.8; /* 行間を調整 */
}

/* --- HISTORYセクション --- */
.history {
    /* padding-top: 100px; 共通スタイルで設定済み */
}

.history-list {
    position: relative;
    max-width: 800px; /* 幅を調整 */
    margin: 0 auto;
    padding: 40px 0; /* 上下の余白を追加 */
}

.history-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px; /* 太さを調整 */
    height: 100%;
    background-color: #e0e0e0; /* 色を調整 */
    transform: translateX(-50%);
    border-radius: 2px; /* 角丸を追加 */
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 30px 0; /* 余白を調整 */
}

.history-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.history-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px; /* サイズを調整 */
    height: 16px; /* サイズを調整 */
    background-color: #8cc63f;
    border-radius: 50%;
    border: 3px solid #fff; /* 白い枠線を追加 */
    box-shadow: 0 0 0 2px #8cc63f; /* 外側の影を追加して二重丸のように */
}

.history-year {
    font-weight: 700;
    width: 120px; /* 幅を調整 */
    text-align: center;
    font-size: 18px; /* フォントサイズを調整 */
    color: #8cc63f;
}

.history-description {
    width: calc(50% - 80px); /* 幅を調整 */
    font-size: 16px; /* フォントサイズを調整 */
    line-height: 1.8; /* 行間を調整 */
    background-color: #fff; /* 背景色を追加 */
    padding: 20px; /* パディングを追加 */
    border-radius: 8px; /* 角丸を追加 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* 影を追加 */
}

.history-item:nth-child(odd) .history-description {
    text-align: left; /* 左寄せに変更 */
}

/* --- OFFICEセクション --- */
.office {
    background-color: #f7f7f7;
    /* padding-bottom: 100px; 共通スタイルで設定済み */
}

.office-table {
    width: 100%;
    max-width: 600px; /* 幅を調整 */
    margin: 0 auto;
    border-collapse: collapse;
    background-color: #fff; /* 背景色を追加 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* 影を追加 */
    border-radius: 8px; /* 角丸を追加 */
    overflow: hidden; /* 角丸を適用 */
}

.office-table th, .office-table td {
    padding: 20px 30px; /* パディングを調整 */
    text-align: left;
    font-size: 15px; /* フォントサイズを調整 */
    border-bottom: 1px solid #eee; /* 罫線の色を調整 */
}

.office-table th {
    width: 35%; /* 幅を調整 */
    background-color: #8cc63f; /* 背景色を変更 */
    font-weight: 700;
    color: #fff; /* 文字色を白に */
}

.office-table tr:last-child th,
.office-table tr:last-child td {
    border-bottom: none; /* 最後の行の罫線を削除 */
}

/* --- CONTACTセクション --- */
.contact-text {
    text-align: center;
    line-height: 2.5; /* 行間を調整 */
    font-size: 16px; /* フォントサイズを調整 */
    padding: 0 5%; /* 左右の余白を調整 */
}

.contact-link {
    font-weight: 700;
    color: #8cc63f;
    text-decoration: none; /* 下線を削除 */
    border-bottom: 2px solid #8cc63f; /* 下線を追加 */
    transition: opacity 0.3s, border-color 0.3s;
    padding-bottom: 2px; /* 下線との間隔を調整 */
}

.contact-link:hover {
    opacity: 0.8;
    border-color: transparent; /* ホバー時に下線を透明に */
}

/* --- フッター --- */
.footer {
    text-align: center;
    padding: 20px 0; /* パディングを調整 */
    background-color: #333;
    color: #fff;
}

.footer small {
    font-size: 14px; /* フォントサイズを調整 */
    letter-spacing: 0.05em; /* 文字間隔を調整 */
}

/* =======================================
    スマホ向けレスポンシブデザイン
======================================== */
@media (max-width: 768px) {
    .section {
        padding: 60px 5%;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    /* ヘッダー/ナビゲーション（スマホ） */
    .header {
        /* height: 50px; 自動調整に変更 */
    }

    .header-inner {
        padding: 15px 5%; /* パディングを調整 */
    }

    .nav-pc {
        display: none;
    }

    /* ハンバーガーメニューアイコン（スマホで表示） */
    .nav-sp-toggle {
        display: block;
        width: 30px;
        height: 30px;
        position: relative;
        cursor: pointer;
        z-index: 101;
    }

    .nav-sp-toggle span {
        display: block;
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: #333;
        left: 0;
        transition: transform 0.3s, opacity 0.3s;
    }

    .nav-sp-toggle span:nth-of-type(1) {
        top: 0;
    }
    .nav-sp-toggle span:nth-of-type(2) {
        top: 14px;
    }
    .nav-sp-toggle span:nth-of-type(3) {
        bottom: 0;
    }

    .nav-sp-toggle.is-active span:nth-of-type(1) {
        transform: translateY(14px) rotate(45deg);
    }
    .nav-sp-toggle.is-active span:nth-of-type(2) {
        opacity: 0;
    }
    .nav-sp-toggle.is-active span:nth-of-type(3) {
        transform: translateY(-14px) rotate(-45deg);
    }

    /* スマホメニュー本体（スマホで表示） */
    .nav-sp {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98); /* 背景色を調整 */
        transition: right 0.3s;
        padding-top: 80px;
        text-align: center;
        z-index: 100; /* ヘッダーより前面に */
    }

    .nav-sp.is-open {
        right: 0;
    }

    .nav-sp ul {
        display: flex;
        flex-direction: column;
    }

    .nav-sp li a {
        display: block;
        padding: 20px 0; /* パディングを調整 */
        font-size: 18px;
        font-weight: 700;
        border-bottom: 1px solid #eee;
        color: #333; /* 文字色を調整 */
    }

    /* メインビジュアル */
    .main-visual {
        height: 60vh; /* 高さを調整 */
    }

    .main-visual-text {
        font-size: 26px; /* フォントサイズを調整 */
    }

    .scroll-indicator {
        width: 30px;
        height: 30px;
        bottom: 20px;
    }

    .scroll-indicator a::after {
        width: 10px;
        height: 10px;
    }

    /* ABOUTセクション */
    .about-lead {
        font-size: 24px;
    }

    .about-text {
        font-size: 15px;
        line-height: 1.8;
        margin-bottom: 40px;
    }

    .about-images {
        flex-direction: column;
        gap: 20px;
    }

    .about-images img {
        width: 100%;
        aspect-ratio: 16/9;
    }

    /* SERVICEセクション */
    .service-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-content {
        padding: 20px;
    }

    .service-item-title {
        font-size: 18px;
    }

    /* HISTORYセクション */
    .history-list {
        padding: 20px 0;
    }

    .history-list::before {
        left: 20px; /* タイムラインを左端に */
    }

    .history-item {
        flex-direction: column;
        align-items: flex-start; /* 左寄せ */
        padding: 20px 0 20px 40px; /* 左側に余白を設ける */
    }

    .history-item:nth-child(odd) {
        flex-direction: column;
    }

    .history-item::after {
        left: 20px; /* ドットをタイムライン上に */
        top: 30px; /* 位置を調整 */
        transform: translate(-50%, 0);
    }

    .history-year {
        width: auto;
        margin-bottom: 10px;
        font-size: 16px;
        text-align: left;
    }

    .history-description {
        width: 100%;
        padding: 15px;
        font-size: 15px;
    }

    /* OFFICEセクション */
    .office-table {
        box-shadow: none; /* 影を削除 */
        border-radius: 0; /* 角丸を削除 */
        background-color: transparent; /* 背景色を透明に */
    }

    .office-table th, .office-table td {
        display: block;
        width: 100%;
        padding: 10px 15px;
        border-bottom: none; /* 罫線を削除 */
    }

    .office-table th {
        background-color: transparent; /* 背景色を透明に */
        color: #8cc63f; /* 文字色を変更 */
        padding-bottom: 5px; /* 下の余白を調整 */
    }

    .office-table td {
        padding-top: 0; /* 上の余白を調整 */
        padding-bottom: 20px; /* 下の余白を調整 */
        border-bottom: 1px solid #eee; /* 罫線を追加 */
    }

    .office-table tr:last-child td {
        border-bottom: none;
    }

    /* CONTACTセクション */
    .contact-text {
        font-size: 15px;
        line-height: 2;
    }
}
