/*
    ===========================================
      サイト共通のスタイルシート (v4)
    ===========================================
*/

/* --- 基本スタイル --- */
body {
    margin: 0;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}
a {
    text-decoration: none;
    color: #3361A6;
}
a:hover {
    text-decoration: underline;
}

/* ★★★ 変更箇所 ★★★ */
/* --- ヘッダー --- */
.site-header {
    background-color: rgba(255, 255, 255, 0.95); /* 少し透明にして、下のコンテンツが透けるように */
    backdrop-filter: blur(10px); /* すりガラス効果（モダンなブラウザのみ対応） */
    /* 左右の余白はpaddingで指定し、幅は100%にする */
    padding: 15px 5%; 
    width: 90%; /* 幅は90%のまま */

    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    left: 0;
    z-index: 900;

/* box-sizingを追加して、paddingを含めて幅を計算するようにする */
box-sizing: border-box; 
width: 100%;
}
/* ★★★★★★★★★★★★ */

.site-logo a {
    display: flex;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}
.site-logo img {
    width: 50px;
    height: auto;
    margin-right: 15px;
}
.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 25px;
}
.main-nav a {
    font-weight: bold;
    font-size: 1em;
    text-decoration: none;
}

/* --- メインビジュアル (ヒーローセクション) --- */
.hero {
    background-image: url('images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero h1 {
    font-size: 3em;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}
.hero .cta-button {
    display: inline-block;
    background-color: #D92E26;
    color: white;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}
.hero .cta-button:hover {
    background-color: #b0241e;
    text-decoration: none;
}

/* --- セクション共通スタイル --- */
.section {
    padding: 60px 0;
    text-align: center;
}
.section-title {
    font-size: 2.2em;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 60px;
    height: 4px;
    background-color: #3361A6;
}

/* (以降のスタイルは変更なし) */
.features-grid { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.feature-item { background-color: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); width: 280px; text-align: left; }
.feature-item h3 { font-size: 1.5em; margin-top: 0; color: #3361A6; }
.news-list { list-style: none; padding: 0; max-width: 800px; margin: 0 auto; text-align: left; }
.news-list li { background-color: #fff; padding: 15px 20px; border-bottom: 1px solid #e0e0e0; }
.news-list li:first-child { border-top-left-radius: 8px; border-top-right-radius: 8px; }
.news-list li:last-child { border-bottom: none; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; }
.news-date { font-weight: bold; color: #666; margin-right: 15px; }
.site-footer { background-color: #333; color: #ccc; text-align: center; padding: 20px; font-size: 0.9em; }
.offer-list-button { position: relative; font-weight: bold; font-size: 0.9em; cursor: pointer; padding: 8px 12px; border: 1px solid #ccc; border-radius: 6px; transition: all 0.2s; margin-left: 20px; }
.offer-list-button:hover { background-color: #e9ecef; }
.offer-list-count { position: absolute; top: -8px; right: -8px; background-color: #D92E26; color: white; border-radius: 50%; width: 20px; height: 20px; display: flex; justify-content: center; align-items: center; font-size: 0.8em; font-weight: bold; }
.side-panel-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 999; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.side-panel-overlay.is-visible { opacity: 1; visibility: visible; }
.side-panel { position: fixed; top: 0; right: -100%; width: 100%; max-width: 450px; height: 100%; background-color: #fff; box-shadow: -5px 0 25px rgba(0,0,0,0.2); z-index: 1000; display: flex; flex-direction: column; transition: right 0.4s ease-out; }
.side-panel.is-visible { right: 0; }
.side-panel-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid #eee; }
.side-panel-header h3 { margin: 0; font-size: 1.4em; }
.side-panel-close-btn { background: none; border: none; font-size: 2em; cursor: pointer; color: #888; }
.side-panel-close-btn:hover { color: #333; }
.side-panel-body { padding: 20px; overflow-y: auto; flex-grow: 1; }
.side-panel-footer { padding: 20px; border-top: 1px solid #eee; }
.offer-list-item { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; }
.offer-list-item:last-child { border-bottom: none; }
.offer-list-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; margin-right: 15px; }
.offer-list-item-info { flex-grow: 1; }
.offer-list-item-name { font-weight: bold; }
.offer-list-item-price { font-size: 0.9em; color: #555; }
.offer-list-item-remove { background: none; border: none; font-size: 1.5em; color: #aaa; cursor: pointer; padding: 5px; }
.offer-list-item-remove:hover { color: #D92E26; }
#offer-list-panel .submit-btn { width: 100%; padding: 15px; font-size: 1.1em; font-weight: bold; color: white; border: none; border-radius: 6px; cursor: pointer; background-color: #D92E26; transition: background-color 0.3s; }
#offer-list-panel .submit-btn:hover { background-color: #b0241e; }
#offer-list-panel .submit-btn:disabled { background-color: #ccc; cursor: not-allowed; }