@charset "utf-8";

/* ==========================================================================
   1. Modern Base & Reset Style (脱・外部レガシーリセット)
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}
html, body, div, p, ul, li, h1, h2, h3, header, nav, main, footer, input, button {
    margin: 0;
    padding: 0;
}
li { list-style: none; }
a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; vertical-align: bottom; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    background: #fff;
    -webkit-text-size-adjust: 100%;
}

.mb20 { margin-bottom: 20px !important; }
.mb60 { margin-bottom: 60px !important; }

/* 自前描画 矢印アイコン */
.icon-arrow::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-top: 2px solid #61b33a;
    border-right: 2px solid #61b33a;
    transform: rotate(45deg);
    margin-right: 6px;
    vertical-align: middle;
}
.icon-window::before { content: "↗"; display: inline-block; margin-right: 4px; }

/* 共通コンテナ */
#headerInner, #gNavi ul, #breadcrumbInner, #container, #footerInner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. Header & Global Navigation
   ========================================================================== */
#header #headerInner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}
#header h1 { max-width: 363px; }
#header h1 img { display: block; }
#header .tse { margin-left: 20px; flex-grow: 1; max-width: 180px; }
.header-sub { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.lang-nav { display: flex; gap: 15px; }
.lang-nav a, .inquiry a { color: #666; font-size: 12px; }

#gNavi { background-color: #61b33a; }
#gNavi ul { display: flex; }
#gNavi li { flex: 1; border-right: 1px solid #81c261; text-align: center; }
#gNavi li:first-child { border-left: 1px solid #81c261; }
#gNavi li a {
    color: #fff;
    display: block;
    line-height: 50px;
    font-weight: bold;
    font-size: 14px;
}
#gNavi li a.active, #gNavi li a:hover { background: #339911; text-decoration: none; }

/* パンくず */
#breadcrumb { background-color: #f7f7f7; padding: 15px 0; border-bottom: 1px solid #e5e5e5; }
#breadcrumb h1 { font-size: 24px; margin-top: 8px; font-weight: bold; }
#breadcrumb ul li { font-size: 12px; display: inline; color: #666; }

.hStyle02 {
    padding: 4px 0 4px 15px;
    border-left: 6px solid #ff6600;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* ==========================================================================
   3. 店舗検索窓 & GPSボタン
   ========================================================================== */
.search-box { background: #f9f9f9; border: 1px solid #ddd; padding: 20px; border-radius: 6px; }
.search-input-group { display: flex; gap: 10px; }
.search-input-group input { flex: 1; padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 16px; }
.search-input-group button {
    background: #61b33a; color: #fff; border: none; padding: 0 25px;
    border-radius: 4px; font-weight: bold; cursor: pointer; font-size: 15px; min-height: 46px;
}
.search-input-group button:hover { background: #339911; }

.search-results { margin-top: 15px; background: #fff; border: 1px solid #ddd; border-radius: 4px; max-height: 300px; overflow-y: auto; padding: 10px; }
.search-item { padding: 12px 8px; border-bottom: 1px solid #eee; }
.search-item:last-child { border-bottom: none; }
.search-item-name a { font-weight: bold; color: #ff6600; font-size: 15px; display: inline-block; padding: 4px 0; }
.search-item-info { font-size: 12px; color: #666; margin-top: 2px; }

/* ==========================================================================
   4. index.html用：日本地図（ブロックマップ）
   ========================================================================== */
.area-grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.region-kyushu  { grid-column: 1; grid-row: 4; }
.region-shikoku { grid-column: 1; grid-row: 3; }
.region-chugoku { grid-column: 1; grid-row: 2; }
.region-kinki   { grid-column: 2; grid-row: 2; }
.region-hokuriku{ grid-column: 2; grid-row: 1; }
.region-tokai   { grid-column: 3; grid-row: 2; }
.region-koshin  { grid-column: 3; grid-row: 1; }

.regions { border: 1px solid #ddd; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.regions h3 a { background-color: #666; display: block; font-size: 16px; line-height: 48px; color: #fff; text-align: center; font-weight: bold; }
.regions h3 a:hover { background-color: #444; text-decoration: none; }
.prefectures { padding: 15px; }
.prefectures ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.prefectures ul li a, .disabled-pref { display: block; padding: 8px 0; font-size: 13px; }
.disabled-pref { color: #ccc; }

.all-stores-btn-wrap { text-align: center; margin-top: 0; margin-bottom: 25px; }
.btn-all-stores { display: inline-block; border: 1px solid #ccc; padding: 14px 40px; background: #f7f7f7; color: #333; font-weight: bold; border-radius: 4px; min-height: 48px; }
.btn-all-stores:hover { background: #eee; text-decoration: none; }

/* ==========================================================================
   5. index.html用：ブランドカード（大ロゴ）
   ========================================================================== */
.brand-grid { display: flex; gap: 20px; }
.brand-card { flex: 1; border: 1px solid #ddd; display: flex; flex-direction: column; background: #fff; border-radius: 6px; overflow: hidden; }
.brand-logo { height: 149px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 10px; }
.brand-logo a { display: block; max-height: 100%; }
.brand-logo img { max-height: 129px; width: auto; }
.brand-logo a:hover { opacity: 0.8; }
.brand-body { border-top: 1px solid #ddd; background-color: #f7f7f7; padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.brand-name { font-size: 16px; font-weight: bold; margin-bottom: 5px; }
.brand-description { font-size: 13px; color: #666; margin-bottom: 15px; flex-grow: 1; }
.btn-detail { display: block; text-align: center; border: 1px solid #ccc; background: #fff; padding: 12px; font-size: 13px; font-weight: bold; border-radius: 4px; margin-top: auto; }
.btn-detail:hover { background: #eee; text-decoration: none; }

/* ==========================================================================
   6. area.html用：地方名タブ & 都道府県ボタン (脱・Bootstrap＆完全自前化)
   ========================================================================== */
/* 地方名切り替えタブ */
.tabUI {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 4px solid #61b33a;
    margin-bottom: 25px;
    gap: 4px;
}
.tabUI li {
    flex: 1;
    min-width: 90px;
}
.tabUI li a {
    display: block;
    text-align: center;
    line-height: 46px;
    background: #f1f5f9;
    color: #475569;
    font-weight: bold;
    font-size: 15px;
    border-radius: 6px 6px 0 0;
    transition: all 0.2s ease;
}
.tabUI li.active a, .tabUI li a:hover {
    background: #61b33a;
    color: #fff;
    text-decoration: none;
}

/* 都道府県選択ボタンの土台枠 */
.tabUI2 {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 20px;
    margin-bottom: 35px;
    border-radius: 8px;
}
/* ボタンを格納するコンテナ */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
/* 自前実装のボタン共通基本スタイル */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 42px;
}
/* 未選択の標準ボタンの見た目 */
.btn-default {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
}
.btn-default:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    text-decoration: none;
}
/* 選択中のオレンジボタンのアクティブ表現 */
.btn-active {
    background: #ff6600 !important;
    border-color: #ff6600 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   7. area.html用：店舗一覧カード & ミニロゴ & サービスアイコン完全整列
   ========================================================================== */
.storeList {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.store-card-main {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
}
/* DIOやLAMUの小さなロゴマークを綺麗に枠線内に収める設定 */
.store-card-logo {
    width: 110px;
    height: 110px;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    flex-shrink: 0;
}
.store-card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* アスペクト比を維持 */
}
.store-card-info { flex: 1; }
.store-card-info h2.name { font-size: 20px; font-weight: bold; color: #1a202c; margin-bottom: 6px; }
.store-card-info .address { font-size: 13px; color: #4a5568; margin-bottom: 12px; line-height: 1.5; }

/* 17種類のサービスアイコン画像をグリッド整列させる設定 */
.service-icon-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
}
.service-icon-list li {
    width: 71px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}
.service-icon-list li img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* アイコン画像を隙間なくピッタリはめ込む */
}

.store-card-action { flex-shrink: 0; width: 180px; }
.btn-detail-modern {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: #ffffff; color: #0066cc; border: 1px solid #cbd5e1;
    padding: 12px 16px; font-size: 14px; font-weight: bold; border-radius: 6px;
    text-align: center; width: 100%; transition: all 0.2s ease;
}
.btn-detail-modern:hover { background: #f8fafc; border-color: #0066cc; text-decoration: none; }

/* ==========================================================================
   8. Footer
   ========================================================================== */
#footer { background-color: #dddddd; padding: 40px 0; font-size: 12px; line-height: 1.8; }
#footerInner { position: relative; }
.totop { text-align: right; margin-bottom: 20px; }
.totop a { display: inline-block; font-size: 11px; color: #666; text-align: center; }
.totop img { margin-bottom: 5px; }

.utility { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #ccc; }
.bannerArea .title { font-weight: bold; margin-bottom: 10px; }
.bannerArea ul { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; }
.bannerArea ul li a { display: block; }
.bannerArea ul li img { display: block; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.bannerArea ul li a:hover { opacity: 0.8; }

#corporate { max-width: 251px; margin-bottom: 10px; }
#corporate img { display: block; }
#copyright { color: #666; margin-bottom: 10px; }
#explanation { color: #777; line-height: 1.5; }

/* ==========================================================================
   9. スマートフォン表示用レスポンシブ設定 (768px以下)
   ========================================================================== */
@media (max-width: 768px) {
    #header #headerInner { flex-direction: column; align-items: center; gap: 15px; text-align: center; }
    #header h1 { max-width: 280px; }
    #header .tse { margin: 0; max-width: 140px; }
    
    .header-sub { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; border-top: 1px solid #eee; padding-top: 10px; }
    
    #gNavi ul { flex-wrap: wrap; }
    #gNavi li { min-width: 50%; border-bottom: 1px solid #81c261; }
    #gNavi li a { line-height: 45px; font-size: 13px; }
    
    .area-grid-container { grid-template-columns: 1fr; gap: 15px; }
    .regions { grid-column: auto !important; grid-row: auto !important; }
    
    .tabUI li { min-width: 30%; } /* スマホではタブを折り返す */
    .btn { width: 100%; } /* スマホでは県名ボタンを押しやすく全幅に */
    
    .brand-grid { flex-direction: column; gap: 15px; }
    .storeList { flex-direction: column; align-items: stretch; padding: 20px; gap: 16px; }
    .store-card-action { width: 100%; }
    .utility { gap: 10px; }
    #corporate { max-width: 180px; }
}

@media (max-width: 480px) {
    .store-card-main { flex-direction: column; align-items: center; text-align: center; }
    .service-icon-list { justify-content: center; }
}