/* 基本スタイル */
:root {
    --primary-color: #0056b3;
    --text-color: #333;
    --bg-color: #f5f5f5;
    --card-bg: #fff;
    --border-color: #ddd;
    --label-color: #666;
    --subtitle-color: #cc0000;
    --sat-color: #0056b3;
    --sun-color: #cc0000;
}

/* ヘッダーロゴ画像 */
.header-logo {
    max-height: 60px;
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

h1 .header-logo,
.site-name .header-logo {
    display: inline-block;
    vertical-align: middle;
}

/* 検索ボックス */
.search-box {
    margin-bottom: 20px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-sizing: border-box;
    background: #fff;
    color: var(--text-color);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.search-box input::placeholder {
    color: #aaa;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--label-color);
    font-size: 1.1rem;
    pointer-events: none;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: #fff;
    border-bottom: 2px solid var(--border-color);
    padding: 40px 20px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
}

/* トップページのヘッダーサブテキスト（.site-nameには適用しない） */
header p:not(.site-name) {
    margin: 10px 0 0;
    color: var(--label-color);
}

/* 店舗・ガイドページのヘッダーサイト名リンク */
.site-name {
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
}

.site-name a {
    color: inherit;
    text-decoration: none;
}

.site-name a:hover {
    text-decoration: underline;
}

/* 店舗・ガイドページの記事タイトル（h1） */
.main-content h1 {
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 30px;
    font-size: 1.6rem;
}

h2 {
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 30px;
}

.main-content h3 {
    margin-top: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

/* ショップリスト・カード */
.shop-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.shop-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
    min-width: 0;
}

.shop-card-main {
    display: flex;
}

.shop-image {
    width: 200px;
    min-width: 200px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    align-self: flex-start;
}

.shop-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dummy-img {
    text-align: center;
    color: #999;
    font-weight: bold;
}

.shop-details {
    padding: 20px 20px 5px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-wrap: break-word;
    word-wrap: break-word;
    min-width: 0;
}

.shop-card-footer {
    padding: 0 20px 20px 20px;
}

.shop-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 5px;
    display: block;
}

.shop-subtitle {
    font-size: 0.9rem;
    color: var(--subtitle-color);
    font-weight: bold;
    margin-bottom: 12px;
}

.shop-title:hover {
    text-decoration: underline;
}

/* 料金グリッド */
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    row-gap: 1px;
    column-gap: 4px;
    background: #f9f9f9;
    padding: 6px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.price-item {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.label {
    color: var(--label-color);
    width: 140px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    white-space: normal;
    flex-shrink: 0;
    margin-right: 8px;
}

.label i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
    margin-right: 6px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* 店舗情報のテーブル */
.shop-info-table-wrapper {
    list-style: none !important;
    margin-bottom: 15px;
    margin-left: 0;
    padding-left: 0;
}

.shop-info-table {
    width: 300px;
    max-width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
}

.shop-info-table th {
    width: 50px;
    background-color: #f9f9f9;
    border: 1px solid var(--border-color);
    padding: 8px;
    text-align: center;
    font-weight: bold;
}

.shop-info-table td {
    border: 1px solid var(--border-color);
    padding: 8px;
    text-align: left;
}

/* 注文例 */
.price-tag {
    display: inline-block;
    white-space: nowrap;
}

.order-sublist {
    list-style-type: none;
    padding-left: 0.5em;
    margin: 5px 0 0 0;
}
.order-sublist li {
    position: relative;
    padding-left: 1em;
}
.order-sublist li::before {
    content: "-";
    position: absolute;
    left: 0;
}

/* 写真リスト */
.photo-list {
    list-style: none !important;
    margin-top: 15px;
    margin-left: 0;
    padding-left: 0;
}

.photo-list img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    display: block;
}

/* 免責事項 */
.disclaimer {
    font-size: 0.8rem;
    color: #666;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px dashed #ccc;
}

/* タグ */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    background: #eef6ff;
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid #d0e4ff;
    cursor: pointer;
}

.tag:hover {
    background: var(--primary-color);
    color: #fff;
}

.tag-active {
    background: var(--primary-color);
    color: #fff;
}

#active-tag-banner {
    display: none;
    align-items: center;
    gap: 12px;
    background: #eef6ff;
    border: 1px solid #d0e4ff;
    border-radius: 6px;
    padding: 10px 16px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.clear-filter-btn {
    padding: 4px 12px;
    background: #fff;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
}

.clear-filter-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* 日付エリア */
.dates {
    margin-top: auto;
    display: flex;
    justify-content: flex-end; 
    flex-wrap: wrap; 
    gap: 4px 15px; 
    font-size: 0.8rem;
    color: #888;
}

.dates span {
    white-space: nowrap; 
    margin-left: 0 !important; 
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
}

.page-btn {
    padding: 12px 24px;
    background: #fff;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

.page-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: #fff;
}

.page-btn:disabled {
    border-color: #ccc;
    color: #ccc;
    cursor: not-allowed;
}

.page-info {
    font-size: 0.9rem;
    color: #666;
}

footer {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 0.9rem;
}

footer p {
    margin: 0;
}

/* 2カラムレイアウト */
.layout-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start;
}

.main-content {
    min-width: 0;
}

/* サイドバー共通 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 18px;
}

.widget-title {
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0 0 14px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f0fb;
    display: flex;
    align-items: center;
    gap: 6px;
}

.widget-title i {
    font-size: 1.1rem;
}

/* エリアリスト */
.area-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.area-list li a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 7px 8px;
    border-radius: 5px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.88rem;
    transition: background 0.15s, color 0.15s;
}

.area-list li a:hover {
    background: #eef6ff;
    color: var(--primary-color);
}

.area-list li a i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* タグクラウド（サイドバー内） */
.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* コラムウィジェット */
.column-text {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.7;
    margin: 0 0 10px 0;
}

.column-text:last-child {
    margin-bottom: 0;
}

.widget-column {
    background: #fffbf0;
    border-color: #f5e6b0;
}

.widget-column .widget-title {
    color: #a07800;
    border-bottom-color: #f5e6b0;
}

/* このサイトについてウィジェット */
.widget-about {
    background: #f0f7ff;
    border-color: #cce0ff;
}

.widget-about .widget-title {
    color: var(--primary-color);
    border-bottom-color: #cce0ff;
}

/* はじめての方へウィジェット */
.widget-guide {
    background: #f0fff4;
    border-color: #b2e6c8;
}

.widget-guide .widget-title {
    color: #1a7a40;
    border-bottom-color: #b2e6c8;
}

.guide-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.guide-list li a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 7px 8px;
    border-radius: 5px;
    color: #1a7a40;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: bold;
    transition: background 0.15s, color 0.15s;
}

.guide-list li a:hover {
    background: #d4f5e2;
}

.guide-list li a i {
    font-size: 1rem;
    flex-shrink: 0;
}

.about-stats {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.stat-item {
    flex: 1;
    text-align: center;
    background: #fff;
    border-radius: 6px;
    padding: 10px 4px;
    border: 1px solid #cce0ff;
}

.stat-num {
    display: block;
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.72rem;
    color: #666;
}

/* 各項目の見方リンク（検索ボックス上） */
.howto-link {
    margin: 0 0 10px 0;
    font-size: 0.88rem;
}
.howto-link a {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.howto-link a:hover {
    text-decoration: underline;
}

/* 共有ボタンエリア */
.share-buttons-area {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}
.share-label {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--label-color);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s, transform 0.1s;
    cursor: pointer;
}
.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.share-btn:active { transform: translateY(0); }
.share-btn i { font-size: 1.1rem; }
.share-x        { background: #000; }
.share-facebook { background: #1877f2; }
.share-line     { background: #06c755; }
.share-instagram{ background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.share-bluesky  { background: #0085ff; }
.share-threads  { background: #101010; }
.share-copy     { background: #555; }
.share-copy.copied { background: #2a9d5c; }

/* ===== スマホ対応 ===== */
@media (max-width: 850px) {
    .layout-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .shop-card-main {
        flex-direction: column;
    }
    
    .shop-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }
    
    .price-grid {
        grid-template-columns: 1fr;
    }

}