@charset "UTF-8";

/* ==================================================
   Sub Page Common (Hero & Breadcrumb)
================================================== */
.page-hero {
    position: relative;
    height: 300px;
    padding-top: 90px; /* 共通ヘッダーの高さ分 */
}

.page-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
}

.page-hero__inner {
    height: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.page-title {
    font-size: 36px;
    color: var(--text-main);
    letter-spacing: 0.1em;
}

/* ページ内ナビゲーション */
.page-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.page-nav__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 200px;
    height: 50px;
    border: 1px solid var(--green);
    color: var(--green);
    background-color: #fff;
    font-weight: bold;
    transition: 0.3s;
}

.page-nav__item:hover {
    background-color: var(--green);
    color: #fff;
}

.arrow-down {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-bottom: 4px;
}

/* ==================================================
   Company Page: 会社概要テーブル
================================================== */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

/* 前任の方の色分けを維持しつつ、目に優しいトーンに */
.info-table.table-okamura th { background-color: #faecea; }
.info-table.table-toko th { background-color: #eaf4ef; }
.info-table.table-related th { background-color: #e8ebf3; }

.info-table th,
.info-table td {
    padding: 25px 20px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.info-table tr:first-child th,
.info-table tr:first-child td {
    border-top: 1px solid #ddd;
}

.info-table th {
    width: 25%;
    font-weight: normal;
}

/* ==================================================
   Company Page: 拠点情報・マップ（構造を完全維持）
================================================== */
.map-area {
    position: relative;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.map-image-wrapper {
    position: relative;
    width: 100%;
}

.map-bg-img {
    width: 100%;
    height: auto;
    display: block;
}

/* クリックできる地図上のピン */
.map-pin {
    position: absolute;
    display: flex;
    gap: 8px;
}
.map-pin span.num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
}
.map-pin span.text {
    font-weight: bold;
}

.map-pin:hover {
    opacity: 0.8;
}

/* 共通カラー変数に紐付け */
.bg-primary { background-color: var(--blue); }
.bg-orange { background-color: #e65a28; }
.bg-green { background-color: var(--green); }

/* リスト全体のコンテナを地図と同じ幅にして中央寄せ */
.location-list {
    max-width: 600px;
    margin: 0 auto;
}

/* リストアイテム */
.location-item {
    display: flex;
    gap: 20px;
    scroll-margin-top: 110px; /* ヘッダーの高さ(90px) + 少し余裕 */
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.location-item__badge span {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.location-item__info {
    flex-grow: 1;
}

.location-item__name {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 700;
}

.location-item__address {
    font-size: 15px;
    margin-bottom: 10px;
}

/* ▼ マップリンクとアイコンの装飾 ▼ */
.map-link {
    color: var(--blue);
    margin-left: 10px;
    font-size: 14px;
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* SVGデータを使って外部リンクアイコンを生成 */
.icon-link {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004098' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ▼ 丸ポチの削除と余白調整 ▼ */
.location-item__contact {
    font-size: 15px;
    color: #555;
    list-style: none; /* デフォルトの丸ポチを消す */
    padding-left: 0;  /* 丸ポチ分の余白を消す */
}

.location-item__contact li {
    margin-bottom: 5px;
}

/* ==================================================
   スマホ用レスポンシブ設定
================================================== */
@media screen and (max-width: 768px) {
    .page-hero {
        height: 250px;
        padding-top: 70px;
    }
    
    .page-title {
        font-size: 28px;
    }

    .page-nav {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .page-nav__item {
        width: 100%;
    }

    /* ▼ テーブルのSP対応（色を残すように修正） ▼ */
    .info-table th,
    .info-table td {
        padding: 12px 8px;
    }
    .info-table th {
        width: 40%;
    }
    .info-table td {
        
    }

    /* マップ・拠点のSP対応 */
    .location-item {
        flex-direction: column;
        gap: 15px;
        scroll-margin-top: 90px;
    }
    .map-pin {
        gap: 2px;
    }
    .map-pin span.num {
        width: 16px;
        height: 16px;
        font-size: 9px;
    }
    .map-pin span.text {
        font-size: 9px;
    }
    .location-item__name {
        font-size: 16px;
    }
    .location-item__address,
    .location-item__contact {
        font-size: 14px;
    }
}