/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
}
.container {
    width: 90%;
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem 0;
}

/* ヘッダー */
.site-header {
    background: #005bbb;
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-header h1 {
    font-size: 1.75rem;
    letter-spacing: 1px;
}

/* ナビゲーション */
.site-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}
.site-nav li {
    position: relative;
}
.site-nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition:
        background 0.3s ease,
        color 0.3s ease;
}
.site-nav a:hover,
.site-nav a.active {
    background: rgba(255, 255, 255, 0.2);
}
.site-nav a.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background: #ffd700;
    border-radius: 1px;
}

/* メイン・セクション共通 */
.site-main {
    padding: 2rem 0;
    background: none;
}
section {
    background: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 会社概要 */
.company-overview dt {
    font-weight: bold;
    width: 150px;
    float: left;
    clear: left;
}
.company-overview dd {
    margin-left: 160px;
    margin-bottom: 1rem;
}
.company-overview ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}
.company-overview ul li {
    background: #f5f5f5;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    text-align: left;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 沿革 */
.history-list {
    list-style: none;
    padding-left: 0;
}
.history-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}
.history-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #005bbb;
}

/* アクセス */
.access address {
    font-style: normal;
    margin-bottom: 1rem;
}
.map-canvas {
    width: 100%;
    height: 300px;
    border: 1px solid #ddd;
}

/* フッター */
.site-footer {
    background: #005bbb;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.875rem;
}

/* インデックス事業内容リスト */
.business-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}
.business-list li {
    background: #f5f5f5;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    text-align: left;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .site-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-top: 0.5rem;
    }
    .site-nav a {
        display: block;
        width: 100%;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }
    body {
        font-size: 1rem;
    }
    h2 {
        font-size: 1.25rem;
    }
    .map-canvas {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }
    .company-overview dt,
    .company-overview dd {
        float: none;
        margin-left: 0;
        width: 100%;
    }
    .company-overview ul,
    .business-list {
        grid-template-columns: 1fr;
    }
}

/* プライバシーポリシーリンクのみ：未訪問／訪問済みともに白 */
.site-footer a[href="privacy.html"]:link,
.site-footer a[href="privacy.html"]:visited {
    color: #ffffff;
    text-decoration: none;
}
.site-footer a[href="privacy.html"]:hover,
.site-footer a[href="privacy.html"]:focus {
    text-decoration: underline;
}

/* プライバシーポリシー セクションのスタイル調整 */
.privacy-policy {
    line-height: 1.8; /* 行間を少し広げる */
    padding-left: 1rem; /* 全体の左インデント調整 */
}
.privacy-policy ul {
    padding-left: 1.5rem; /* リストインデント */
    margin-bottom: 1rem; /* リスト下余白 */
}
.privacy-policy li {
    margin-bottom: 0.5rem; /* 各リスト項目の下余白 */
}
.privacy-policy p {
    margin-bottom: 1rem; /* 段落間の余白 */
}

/* モーダルフォーム用CSS */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.modal-overlay.active {
    display: flex;
}
.modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow-y: auto;
    max-height: 80vh;
    line-height: 1.6;
}
.modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}
#contact-form label {
    display: block;
    margin-bottom: 1rem;
}
#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 0.25rem;
}
#contact-form button[type="submit"] {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #005bbb;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
