body {
    font-family: sans-serif; /* Basic, readable font */
    color: #fff; /* Default text color is white for dark backgrounds */
    background-color: #1a1a2e; /* Deep purple/dark navy base */
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

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

.section-padding {
    padding: 60px 0;
}

.section-bg--dark {
    background-color: #27273f; /* Slightly lighter dark background for contrast */
}

.section-bg--light-dark {
    background-color: #33334d; /* Another variation of dark for visual interest */
}

.section-title {
    font-size: 2.2em;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
}

.section-title--gold {
    color: #ffd700; /* Gold accent color for specific titles */
    border-bottom: 2px solid #ffd700;
    padding-bottom: 10px;
    display: inline-block;
    margin: 0 auto 40px;
}

.button {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.button--primary {
    background-color: #800020; /* Wine red accent */
    color: #fff;
    border: 1px solid #800020;
}

.button--primary:hover {
    background-color: #a90329;
}

.button--outline {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.button--outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.section-link {
    text-align: center;
    margin-top: 30px;
}

/* Header */
.site-header {
    background-color: #1a1a2e;
    padding: 20px 0;
    position: sticky; /* Optional: make header stick to the top */
    top: 0;
    z-index: 100;
}

.site-header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header__logo a {
    font-family: 'serif'; /* Example: elegant serif font */
    font-size: 1.8em;
    color: #ffd700; /* Gold logo text */
    text-decoration: none;
    font-style: italic; /* Optional: for a flowing script feel */
}

.site-header__nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.site-header__nav li {
    margin-left: 20px;
}

.site-header__nav a {
    color: #f0f0f0; /* Light gray navigation text */
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-header__nav a:hover {
    color: #ffd700; /* Gold hover effect */
}

.site-header__utils {
    display: flex;
    align-items: center;
}

.header-search input[type="text"] {
    width: 150px; /* 検索ボックスの幅を調整 */
    padding: 8px 35px 8px 15px; /* アイコン分の右側パディングを追加 */
    border-radius: 5px;
    border: 1px solid #555;
    background-color: var(--base-light-dark);
    color: var(--light-gray);
    box-sizing: border-box; /* パディングを含んだ幅にする */
}

.header-search input[type="text"]::placeholder {
    color: #888; /* Light gray placeholder text */
}
.header-search button {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
	color:#fff;
    cursor: pointer;
    padding: 0; /* デフォルトのパディングを削除 */
    outline: none; /* フォーカス時のアウトラインを削除 */
}

.header-search button i {
    font-size: 1.2em; /* アイコンのサイズ調整 */
    color: var(--light-gray); /* アイコンの色 */
}

.header-search button:hover i {
    color: var(--primary-pink); /* ホバー時のアイコンの色 */
}

.user-links a {
    color: #ffd700;
    text-decoration: none;
    margin-left: 15px;
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #800020; /* Wine red button border */
    background-color: #800020;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.user-links a:hover {
    background-color: transparent;
    color: #800020;
}

.site-header__menu-toggle {
    display: none; /* Hide for larger screens */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.site-header__menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: transform 0.3s ease;
}

/* Main Visual / Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    height: 500px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero__bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://fu-coupon.com/wp-content/uploads/2025/04/knight.png'); /* Replace with actual image */
    background-size: cover;
    background-position: center;
    filter: brightness(0.6); /* Darken the image slightly */
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__title {
    font-family: 'serif'; /* Elegant明朝体 feel */
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Subtle drop shadow */
}

.hero__subtitle {
    font-size: 1.2em;
    color: #eee;
}

.hero__scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    animation: bounce 1.5s infinite alternate;
}

@keyframes bounce {
    0% { transform: translateY(0) translateX(-50%); }
    100% { transform: translateY(10px) translateX(-50%); }
}

/* Search Area */
.search-area {
    background-color: var(--base-light-dark); /* 背景色を少し濃いめに */
    padding: 40px 0; /* 上下のpaddingを調整 */
}

.main-search {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, auto)); /* 各要素が適切な幅になるように */
    gap: 20px;
    align-items: center; /* 縦方向中央揃え */
}

.search-form__group {
    display: flex;
    flex-direction: column;
}

.search-form__group label {
    color: var(--light-gray);
    margin-bottom: 5px;
    font-size: 0.9em;
}

/* ラジオボタンのカスタムデザイン */
.search-form__checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-form__checkbox-group label {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid #555;
    border-radius: 5px;
    color: var(--light-gray);
    cursor: pointer;
    transition: background-color 0.3s ease;
    -webkit-user-select: none; /* テキスト選択禁止 */
    -moz-user-select: none;
    user-select: none;
}

.search-form__checkbox-group label input[type="radio"] {
    display: none; /* ラジオボタンを非表示にする */
}

.search-form__checkbox-group label input[type="radio"]:checked + span {
    background-color: var(--primary-pink);
    color: #fff;
    border-color: var(--primary-pink);
}

.search-form__checkbox-group label span {
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
}

/* セレクトボックスのスタイリング */
.search-form__group select {
    padding: 10px 15px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: var(--base-light-dark);
    color: var(--light-gray);
    appearance: none; /* デフォルトの矢印を削除 */
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg fill="%23F0F0F0" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
    cursor: pointer;
    flex-grow: 1; /* 親要素に合わせて幅を調整 */
    min-width: 120px; /* 最小幅を設定 */
}

.search-form__group select option {
    background-color: var(--base-dark);
    color: var(--light-gray);
}

.search-form__detail-toggle {
    background-color: transparent;
    color: var(--primary-pink);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.3s ease;
    text-align: center; /* 中央揃え */
}

.search-form__detail-toggle:hover {
    color: var(--accent-pink);
}

.search-form__detail-options {
    margin-top: 20px;
    padding: 15px;
    background-color: #444;
    border-radius: 5px;
    display: none; /* デフォルトで非表示 */
    flex-direction: column;
    gap: 10px;
}

.search-form__detail-options fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.search-form__detail-options legend {
    color: var(--light-gray);
    font-weight: bold;
    margin-bottom: 10px;
}

.search-form__detail-options label {
    color: var(--light-gray);
    display: block;
    margin-bottom: 5px;
}

.search-form__detail-options label input[type="checkbox"] {
    margin-right: 5px;
}

.search-form__submit {
    margin-top: 20px;
    text-align: center;
}

.search-form__submit .button {
    width: 100%; /* ボタンを親要素いっぱいに */
    max-width: 300px; /* 最大幅を設定 */
    margin: 0 auto; /* 中央揃え */
}

/* レスポンシブデザイン (必要に応じて調整) */
@media (max-width: 600px) {
    .main-search {
        grid-template-columns: 1fr; /* 縦 এক列に */
    }
}
/* Featured Coupons */
.coupon-list--horizontal-scroll {
    display: flex;
    overflow-x: auto;
    padding-bottom: 20px;
    gap: 20px;
}

.coupon-card {
    background-color: #222; /* Dark gray coupon card background */
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    width: 300px; /* Adjust card width */
    flex-shrink: 0; /* Prevent shrinking */
}

.coupon-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.coupon-card__image {
    height: 150px; /* Adjust image height */
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.coupon-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8); /* Slightly darken images */
}

.coupon-card__content {
    padding: 15px;
}

.coupon-card__store-name {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.coupon-card__store-info {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.coupon-card__coupon-info {
    background-color: #ffd700; /* Gold coupon background */
    color: #1a1a2e; /* Dark text on gold */
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.coupon-card__coupon-badge {
    background-color: #800020; /* Wine red badge */
    color: #fff;
    padding: 5px 8px;
    border-radius: 3px;
    font-size: 0.8em;
}

.coupon-card__coupon-text {
    font-weight: bold;
    font-size: 1.1em;
}

.coupon-card__store-catch {
    color: #eee;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.coupon-card__expiry {
    color: #888;
    font-size: 0.8em;
}

/* Recommended Stores */
.store-list--grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 20px;
}

.store-card {
    background-color: #222;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.store-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.store-card__image {
    position: relative;
    height: 200px; /* Adjust image height */
}

.store-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darker images */
    transition: transform 0.3s ease-in-out;
}

.store-card__link:hover .store-card__image img {
    transform: scale(1.05);
}

.store-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 15px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.store-card__link:hover .store-card__overlay {
    opacity: 1;
}

.store-card__name {
    font-size: 1.1em;
    margin-bottom: 5px;
}

.store-card__info {
    font-size: 0.9em;
    color: #eee;
}

.store-card__content {
    padding: 15px;
}

.store-card__description {
    color: #eee;
    font-size: 0.9em;
    margin-bottom: 10px;
    line-height: 1.4;
}

.store-card__tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.tag {
    background-color: #333;
    color: #fff;
    padding: 5px 8px;
    border-radius: 3px;
    font-size: 0.8em;
}
.column-list--grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.column-card {
    background-color: #27273f;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.column-card__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.column-card__image {
    height: 180px; /* Adjust image height */
    overflow: hidden;
}

.column-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: transform 0.3s ease-in-out;
}

.column-card__link:hover .column-card__image img {
    transform: scale(1.05);
}

.column-card__content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.column-card__meta {
    color: #888;
    font-size: 0.8em;
    margin-bottom: 10px;
}

.column-card__title {
    font-family: sans-serif; /* Readable gothic-like font */
    font-size: 1.1em;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.column-card__excerpt {
    color: #aaa;
    font-size: 0.9em;
    line-height: 1.5;
    flex-grow: 1; /* Push excerpt to fill remaining space */
}

/* Footer */
.site-footer {
    background-color: #1a1a2e;
    padding: 40px 0;
    color: #f0f0f0;
    text-align: center;
}

.site-footer__widgets {
    /* Add styles for widgets if needed */
}

.site-footer__nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.site-footer__nav li a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer__nav li a:hover {
    color: #ffd700;
}

.site-footer__logo a {
    font-family: 'serif';
    font-size: 1.5em;
    color: #ffd700;
    text-decoration: none;
    font-style: italic;
    margin-bottom: 10px;
    display: block;
}

.site-footer__copyright {
    font-size: 0.8em;
    color: #888;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 980px) {
    .site-header__nav {
        display: none; /* Hide navigation on smaller screens */
        position: absolute;
        top: 100%; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: #1a1a2e;
        padding: 20px;
        text-align: center;
    }

    .site-header__nav.open {
        display: block;
    }

    .site-header__nav ul {
        flex-direction: column;
        align-items: center;
    }

    .site-header__nav li {
        margin: 10px 0;
    }

    .site-header__menu-toggle {
        display: block; /* Show menu toggle on smaller screens */
    }

    .site-header__utils {
        margin-left: auto; /* Push utils to the right */
    }

    .header-search {
        margin-right: 10px;
		position:relative;
    }

    .main-search {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form__group {
        width: 100%;
    }

    .search-form__checkbox-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .coupon-list--horizontal-scroll {
        padding-left: 20px;
        padding-right: 20px;
    }

    .store-list--grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .column-list--grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 600px) {
    .hero {
        height: 400px;
    }

    .hero__title {
        font-size: 2.5em;
    }

    .search-area {
        padding: 40px 0;
    }

    .section-padding {
        padding: 40px 0;
    }
}

/* Responsive Design (修正) */
@media (max-width: 980px) {
    .site-header__container {
        display: flex;
        justify-content: space-between; /* ロゴとユーティリティを左右に配置 */
        align-items: center;
    }

    .site-header__logo a {
        font-size: 1.5em; /* 少し小さく */
    }

    .site-header__nav {
        display: none; /* 初期状態では非表示 */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1a1a2e;
        padding: 20px;
        text-align: center;
    }

    .site-header__nav.open {
        display: block; /* JavaScriptで 'open' クラスが付与されたら表示 */
    }

    .site-header__nav ul {
        flex-direction: column;
        align-items: center;
    }

    .site-header__nav li {
        margin: 15px 0; /* 少し余白を大きく */
    }

    .site-header__utils {
        display: flex;
        align-items: center;
    }

    .header-search {
        margin-right: 10px;
        width: auto; /* 幅を自動調整 */
    }

    .header-search input[type="text"] {
        max-width: 150px; /* 最大幅を設定 */
    }

    .user-links {
        margin-left: 10px;
    }

    .user-links a {
        padding: 8px 10px; /* 少し小さく */
        font-size: 0.9em;
    }

    .site-header__menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
    }

    .site-header__menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin: 5px 0;
        transition: transform 0.3s ease;
    }
}

@media (max-width: 600px) {
    .site-header__logo a {
        font-size: 1.3em; /* さらに小さく */
    }

    .header-search input[type="text"] {
        max-width: 120px;
    }

    .user-links a {
        font-size: 0.8em;
        padding: 5px 8px;
    }
}

.site-header__utils {
    display: flex;
    align-items: center;
}

.user-links {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.user-links a {
    color: #ffd700;
    text-decoration: none;
    margin-left: 10px;
    padding: 8px; /* アイコンに合わせて調整 */
    border-radius: 5px;
    border: 1px solid #800020;
    background-color: #800020;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex; /* アイコンを中央揃えにする場合 */
    align-items: center;
    justify-content: center;
    min-width: 40px; /* アイコンに合わせて最小幅を設定 */
    height: 40px; /* アイコンに合わせて高さを設定 */
}

.user-links a:hover {
    background-color: transparent;
    color: #800020;
}

/* アイコンのスタイル */
.user-links i {
    font-size: 1.2em; /* アイコンサイズ */
}

/* テキストを非表示にするためのクラス */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* スマートフォンサイズでのスタイル */
@media (max-width: 980px) {
    .user-links a span {
        display: none; /* スマートフォンサイズではテキストを非表示 */
    }

    .user-links a {
        padding: 8px; /* アイコン周りの余白を調整 */
        min-width: auto; /* 自動調整 */
        height: auto; /* 自動調整 */
    }

    .user-links {
        margin-left: 5px; /* 少し間隔を狭める */
    }

    .header-search {
        margin-right: 5px; /* 少し間隔を狭める */
    }

    .header-search input[type="text"] {
        max-width: 100px; /* さらに小さく */
    }
}

@media (max-width: 600px) {
    .user-links i {
        font-size: 1em; /* さらに小さく */
    }
}
