/*
Theme Name: Sagamihara Cashless
Theme URI: https://zama-cashless.jp/
Author: Sagamihara City
Author URI: https://zama-cashless.jp/
Description: 君津市キャッシュレスキャンペーン用のカスタムテーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sagamihara-cashless
*/

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Navigation */
.main-navigation {
    background: #172a88;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 9999;
}

/* ハンバーガーメニューボタン */
.menu-toggle {
    display: none;
/* 	background: rgba(23, 42, 136, 0.8) */
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    position: relative;
    z-index: 1000;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    display: block;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.main-navigation li:last-child > a {
    border-right: none;
}

.main-navigation a:hover {
    color: #f2ec41;
    background: rgba(255, 255, 255, 0.1);
} 

/* ドロップダウンメニュー */
.main-navigation .has-dropdown > a {
    position: relative;
    padding-right: 2rem;
}

.main-navigation .has-dropdown > a::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #fff;
    transition: transform 0.3s ease;
}

.main-navigation .has-dropdown:hover > a::after,
.main-navigation .has-dropdown.active > a::after {
    transform: translateY(-50%) rotate(180deg);
}

.main-navigation .sub-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background: #172a88;
    min-width: 200px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.main-navigation .has-dropdown:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .sub-menu a {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-navigation .sub-menu li:nth-child(odd) > a {
    background: rgba(255, 255, 255, 0.05);
}

.main-navigation .sub-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f2ec41;
}

/* 共通のコンテンツ幅設定 */
.site-content,
.point-content,
.news-list,
.overview-content,
.conditions-content,
.service-grid,
.user-content,
.campaign-overview .service-grid {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

/* セクションの基本スタイル */
.payment-services,
.point-limit,
.news-section,
.campaign-overview,
.point-conditions {
    padding: 4rem 0;
}

/* セクションタイトル */
.section-title {
    color: #4f4d44;
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 10%;
    height: 3px;
    background: #4f4d44;
}

/* テキストスタイル */
.text-xl-em {
    color: #4f4d44;
    font-size: 1.8rem;
    font-weight: bold;
    display: inline;
    line-height: 1.2;
}

.text-l-em {
    font-size: 1.2rem;
    color: #000;
    font-weight: bold;
    display: inline;
}

.text-m {
    font-size: 1rem;
    color: #333;
}

.text-note {
    font-size: 0.75rem;
    color: #666;
}

.text-navy {
    color: #4f4d44;
}

.text-red {
    color: #CC3341;
}

.text-orange {
    color: #EB5505;
}

.text-em {
    font-weight: bold;
}

/* サービスアイコンのスタイル */
.service-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 2rem;
}

.service-item {
    flex: 0 0 auto;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.service-item img {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
}

/* キャッシュレス決済サービスの背景色 */
.bg-d-pay {
    background-color: #CC3341;
    color: #fff;
    padding: 0.2rem 1rem;
    margin: 0.5rem 0.5rem;
    display: inline-block;
}

.bg-au-pay {
    background-color: #EB5505;
    color: #fff;
    padding: 0.2rem 1rem;
    margin: 0.5rem 0.5rem;
    display: inline-block;
}

.bg-paypay {
    background-color: #FF0033;
    color: #fff;
    padding: 0.2rem 1rem;
    margin: 0.5rem 0.5rem;
    display: inline-block;
}

.bg-r-pay {
    background-color: #BF0000;
    color: #fff;
    padding: 0.2rem 1rem;
    margin: 0.5rem 0.5rem;
    display: inline-block;
}

.bg-aeon-pay {
    background-color: #D40073;
    color: #fff;
    padding: 0.2rem 1rem;
    margin: 0.5rem 0.5rem;
    display: inline-block;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .site-content,
    .point-content,
    .news-list,
    .overview-content,
    .conditions-content,
    .service-grid,
    .campaign-overview .service-grid {
        max-width: 100%;
        padding: 0.5rem;
        margin: 0;
    }

    .service-grid {
        gap: 0.5rem;
    }

    .service-item {
        padding: 0.5rem;
    }

    .service-item img {
        max-height: 100px;
    }

    .campaign-overview .service-item img {
        width: 80px;
        height: 80px;
    }

    /* セクションのパディング調整 */
    .payment-services,
    .point-limit,
    .news-section,
    .campaign-overview,
    .point-conditions {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .text-xl-em {
        font-size: 1.1rem;
    }

    .text-l-em {
        font-size: 0.9rem;
    }

    .condition-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .condition-left,
    .condition-right {
        width: 100%;
        max-width: 100%;
    }

    .condition-right::before {
        display: none;
    }

    .condition-right-main,
    .condition-right-sub {
        width: 100%;
        padding: 0;
        order: 2;
    }

    .condition-right-sub {
        order: 1;
        width: 30%;
        margin-bottom: 1rem;
        text-align: left;
        font-weight: bold;
    }

    .condition-right::after {
        content: '';
        position: absolute;
        top: 10%;
        left: 24%;
        width: 1px;
        height: 80%;
        background-color: #cbd5e0;
    }
}

@media (max-width: 480px) {
    .site-content,
    .point-content,
    .news-list,
    .overview-content,
    .conditions-content,
    .service-grid,
    .campaign-overview .service-grid {
        padding: 0.25rem;
    }

    .service-grid {
        gap: 0.5rem;
    }

    .service-item {
        padding: 0.25rem;
    }

    .service-item img {
        max-height: 80px;
    }

    .campaign-overview .service-item img {
        width: 60px;
        height: 60px;
    }

    /* セクションのパディング調整 */
    .payment-services,
    .point-limit,
    .news-section,
    .campaign-overview,
    .point-conditions {
        padding: 1rem 0;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .text-xl-em {
        font-size: 1rem;
    }

    .text-l-em {
        font-size: 0.85rem;
    }
}

/* セクションの基本スタイル */
.payment-services,
.point-limit,
.news-section,
.campaign-overview,
.point-conditions {
    padding: 4rem 0;
}

/* テキストスタイル */
.text-xl-em {
    color: #4f4d44;
    font-size: 1.8rem;
    font-weight: bold;
    display: inline;
    line-height: 1.2;
}

.text-l-em {
    font-size: 1.2rem;
    color: #000;
    font-weight: bold;
    display: inline;
}

.text-m {
    font-size: 1rem;
    color: #333;
}

.text-note {
    font-size: 0.75rem;
    color: #666;
}

.text-navy {
    color: #4f4d44;
}

.text-red {
    color: #CC3341;
}

.text-orange {
    color: #EB5505;
}

.text-em {
    font-weight: bold;
}

/* レスポンシブ対応のテキストサイズ */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }

    .text-xl-em {
        font-size: 1.1rem;
    }

    .text-l-em {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.3rem;
    }

    .text-xl-em {
        font-size: 1rem;
    }

    .text-l-em {
        font-size: 0.85rem;
    }
}

/* Content */
.site-content {
    max-width: 100%;
    margin: 0 auto;
}

/* Footer */
.site-footer {
    background: #f5f5f5;
    padding: 3rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-contact {
    text-align: center;
    width: 100%;
}

.footer-contact h3 {
    font-size: 1.5rem;
    color: #4f4d44;
    margin-bottom: 2rem;
}

.footer-contact-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.footer-phone {
    font-size: 2.5rem;
    font-weight: bold;
    color: #4f4d44;
}

.footer-phone a {
    color: #4f4d44;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-phone a:hover {
    opacity: 0.8;
}

.footer-info {
    text-align: left;
    font-size: 1rem;
    color: #666;
}

.footer-info p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.footer-copyright {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    margin-top: 2rem;
}

.accent {
    background-color: #f5f5f5;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .footer-contact-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .footer-phone {
        font-size: 2rem;
    }

    .footer-info {
        text-align: center;
    }

    .footer-contact h3 {
        font-size: 1.0rem;
    }
}

/* トップページスタイル */
.site-main {
    padding: 0;
}

/* ヒーローセクション */
.hero-section {
    background: url('assets/images/background.png');
    background-size: 100vw auto;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 1rem 1rem;
    text-align: center;
    margin: 0;
    padding-top: 0;
    position: relative;
    max-height: 500px;
    z-index: 1;
}

.hero-logo {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

/* キャッシュレス決済サービスセクション */
.payment-services {
    padding: 4rem 1rem;
    text-align: center;
}

.service-item h3 {
    font-size: 1.2rem;
    color: #333;
}

/* ポイント付与上限セクション */
.point-limit {
    padding: 4rem 2rem;
    background-color: #fffdf0;
}

.point-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.point-limit-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 2rem;
}

.point-detail {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* お知らせセクション */
.news-section {
    padding: 4rem 1rem;
    background: #fffdf0;
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news-item {
    display: flex;
    align-items: baseline;
    padding: 1rem 0;
    border-bottom: 1px dotted #fffdf0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-right: 1.5rem;
    white-space: nowrap;
}

.news-title {
    font-size: 1.1rem;
    font-weight: normal;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #e8ad3f;
}

.no-news {
    text-align: center;
    color: #666;
    padding: 2rem 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero-logo {
        max-height: 200px;
    }

    .campaign-period {
        padding: 1.5rem;
    }

    .campaign-period h2 {
        font-size: 1rem;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-item {
        flex-direction: column;
    }

    .news-date {
        margin-bottom: 0.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .text-xl-em {
        font-size: 1.1rem;
    }

    .text-l-em {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        max-height: 150px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .text-xl-em {
        font-size: 1rem;
    }

    .text-l-em {
        font-size: 0.85rem;
    }
}

/* キャンペーン概要セクション */
.campaign-overview {
    padding: 2rem 1rem;
    background: #fff;
}

.overview-content {
    max-width: 800px;
    margin: 0 auto;
}

.overview-item {
    display: flex;
    margin: 0 0 1.5rem 0;
    border: 1px solid #dedcd7;
    border-radius: 8px;
    overflow: hidden;
}

.overview-label {
    width: 30%;
    background: #fafaf5;
    color: #4f4d44;
    font-weight: bold;
    padding: 1rem;
    border-right: 1px solid #dedcd7;
    display: flex;
    align-items: center;
    text-align: center;
}

.overview-value {
    width: 70%;
    padding: 1rem;
    background: #fff;
}

/* サービス画像のスタイル */
.service-list {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    padding: 0; 
    background: #fff;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.service-item {
    flex: 0 0 auto;
    width: 75px;
    text-align: center;
    background: none;
    margin: 1rem auto;
    padding: 0;
}

.service-item img {
    width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    display: block;
}

.overview-value .note {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.5rem;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .overview-item {
        flex-direction: column;
    }

    .overview-label,
    .overview-value {
        width: 100%;
    }

    .overview-label {
        border-right: none;
        border-bottom: 1px solid #dedcd7;
    }

    .overview-value .service-list,
    .campaign-overview .service-list {
        justify-content: flex-start;
        gap: 0.5rem;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.5rem 0;
    }

    .overview-value .service-item,
    .campaign-overview .service-item {
        width: 80px;
        margin: 0;
        flex: 0 0 80px;
    }

    .overview-value .service-item img,
    .campaign-overview .service-item img {
        width: 100%;
        height: auto;
        max-height: 80px;
        object-fit: contain;
    }
}

@media screen and (max-width: 480px) {
    .overview-value .service-list,
    .campaign-overview .service-list {
        gap: 0.25rem;
        padding: 0.25rem 0;
    }

    .overview-value .service-item,
    .campaign-overview .service-item {
        width: 70px;
        margin: 0;
        flex: 0 0 70px;
    }

    .overview-value .service-item img,
    .campaign-overview .service-item img {
        max-height: 70px;
    }
}

/* ポイント付与条件セクション */
.point-conditions {
    padding: 4rem 1rem;
    background: #ffffff;
}

.conditions-content {
    max-width: 800px;
    margin: 0 auto;
}

.condition-item {
    width: 100%;
    margin-bottom: 2rem;
}

.condition-item:last-child {
    margin-bottom: 0;
}

.condition-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-block;
}

.condition-item h3.d-pay {
    background-color: #CC3341;
    color: #fff;
    width: 100%;
    text-align: center;
}

.condition-item h3.au-pay {
    background-color: #EB5505;
    color: #fff;
    width: 100%;
    text-align: center;
}

.condition-item h3.paypay {
    background-color: #FF0033;
    color: #fff;    
    width: 100%;
    text-align: center;
}

.condition-item h3.r-pay {
    background-color: #BF0000;
    color: #fff;
    width: 100%;
    text-align: center;
}

.condition-item h3.aeon-pay {
    background-color: #D40073;
    color: #fff;
    width: 100%;
    text-align: center;
}

.condition-item h3.notice {
    background-color: #4f4d44;
    color: #fff;
    width: 100%;
    text-align: center;
    font-size: 1.8rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.condition-content {
    display: flex;
}

.condition-left {
    width: 50%;
    background: #fff5f5;
    margin-right: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: pre-line;
}

.condition-right {
    width: 50%;
    max-width: 50%;
    display: flex;
    position: relative;
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    align-items: center;
    background-color: #f5f5f5;
}

.condition-right::before {
    content: '';
    position: absolute;
    left: 70%;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 1px;
    background-color: #888888;
}

.condition-right-main {
    width: 70%;
    padding-right: 1rem;
    text-align: left;
}

.condition-right-sub {
    width: 30%;
    padding-left: 1rem;
    text-align: center;
}

.condition-item p {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .condition-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .condition-left,
    .condition-right {
        width: 100%;
        max-width: 100%;
    }

    .condition-right::before {
        display: none;
    }

    .condition-right-main,
    .condition-right-sub {
        width: 100%;
        padding: 0;
        order: 2;
    }

    .condition-right-sub {
        order: 1;
        width: 30%;
        margin-bottom: 1rem;
        text-align: left;
        font-weight: bold;
        position: relative;
    }

    .condition-right::after {
        content: '';
        position: absolute;
        top: 10%;
        left: 24%;
        width: 1px;
        height: 80%;
        background-color: #cbd5e0;
    }
}

html {
    scroll-behavior: smooth;
}

/* アンカーリンクのオフセット調整 */
section[id] {
    scroll-margin-top: 80px; /* ヘッダーの高さに応じて調整 */
}

/* プルダウンメニューの修正 */
.main-navigation .has-dropdown > a {
    pointer-events: auto;
}
.main-navigation .sub-menu {
    pointer-events: auto;
}

/* テキストスタイル */
/* 下線スタイル */
.text-underline {
    position: relative;
    display: inline;
    background: linear-gradient(transparent 30%, rgba(255, 215, 0, 0.6) 80%);
    padding-bottom: 0.1em;
}

.text-underline::after {
    display: none;
}

/* 超強調テキスト */
.text-xl-em {
    color: #4f4d44;
    font-size: 1.8rem;
    font-weight: bold;
    display: inline;
    line-height: 1.2;
}

/* 強調テキスト */
.text-l-em {
    font-size: 1.2rem;
    color: #000;
    font-weight: bold;
    display: inline;
}

/* 通常テキスト */
.text-m {
    font-size: 1rem;
    color: #333;
}

/* 注意書きテキスト */
.text-note {
    font-size: 0.75rem;
    color: #666;
}

/* テキストカラー */
.text-navy {
    color: #4f4d44;
}

.text-red {
    color: #CC3341;
}

.text-orange {
    color: #EB5505;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .overview-table {
        display: block;
    }

    .overview-table thead {
        display: none;
    }

    .overview-table tbody {
        display: block;
    }

    .overview-table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e2e8f0;
    }

    .overview-table th,
    .overview-table td {
        display: block;
        width: 100%;
        border: none;
        padding: 0.75rem;
    }

    .overview-table th {
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
    }

    .site-content,
    .point-content,
    .news-list,
    .overview-content,
    .conditions-content,
    .service-grid,
    .campaign-overview .service-grid {
        max-width: 100%;
        padding: 0.5rem;
        margin: 0;
    }
    .campaign-overview .service-list {
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .service-grid {
        gap: 0.5rem;
    }

    .service-item {
        padding: 0.5rem;
    }

    .service-item img {
        max-height: 100px;
    }

    .campaign-overview .service-item img {
        width: 70px;
        height: 70px;
    }

    /* セクションのパディング調整 */
    .payment-services,
    .point-limit,
    .news-section,
    .campaign-overview,
    .point-conditions {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    /* テキストサイズの調整 */
    .text-xl-em {
        font-size: 1.1rem;
    }

    .text-l-em {
        font-size: 0.9rem;
    }

    .text-m {
        font-size: 0.9rem;
    }

    .text-note {
        font-size: 0.7rem;
    }

    .condition-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .condition-left,
    .condition-right {
        width: 100%;
        max-width: 100%;
    }

    .condition-right::before {
        display: none;
    }

    .condition-right-main,
    .condition-right-sub {
        width: 100%;
        padding: 0;
        order: 2;
    }

    .condition-right-sub {
        order: 1;
        width: 30%;
        margin-bottom: 1rem;
        text-align: left;
        font-weight: bold;
    }

    .condition-right::after {
        content: '';
        position: absolute;
        top: 10%;
        left: 24%;
        width: 1px;
        height: 80%;
        background-color: #cbd5e0;
    }
}

@media screen and (max-width: 480px) {
    .site-content,
    .point-content,
    .news-list,
    .overview-content,
    .conditions-content,
    .service-grid,
    .campaign-overview .service-grid {
        padding: 0.25rem;
    }

    .service-grid {
        gap: 0rem;
    }

    .service-item {
        padding: 0.25rem;
    }

    .service-item img {
        max-height: 50px;
    }

    .campaign-overview .service-item img {
        width: 60px;
        height: 60px;
    }

    /* セクションのパディング調整 */
    .payment-services,
    .point-limit,
    .news-section,
    .campaign-overview,
    .point-conditions {
        padding: 1rem 0;
    }

    .section-title {
        font-size: 1.3rem;
    }

    /* テキストサイズの調整 */
    .text-xl-em {
        font-size: 1rem;
    }

    .text-l-em {
        font-size: 0.85rem;
    }

    .text-m {
        font-size: 0.85rem;
    }

    .text-note {
        font-size: 0.65rem;
    }
}

.service-label {
    background: #4f4d44;
    color: #fff;
    width: 100%;
    font-weight: bold;
    padding: 0.3rem 1.5rem;
    border-radius: 30px;
    text-align: center;
    margin: 1rem 0;
    display: inline-block;
}

.service-value {
    margin-bottom: 1.5rem;
}

.service-value .note {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.5rem;
}

/* キャッシュレス決済サービスの背景色 */
.bg-d-pay {
    background-color: #CC3341;
    color: #fff;
    padding: 0.2rem 1rem;
    margin: 0.5rem 0.5rem;
    display: inline-block;
}

.bg-au-pay {
    background-color: #EB5505;
    color: #fff;
    padding: 0.2rem 1rem;
    margin: 0.5rem 0.5rem;
    display: inline-block;
}

.bg-paypay {
    background-color: #FF0033;
    color: #fff;
    padding: 0.2rem 1rem;
    margin: 0.5rem 0.5rem;
    display: inline-block;
}

.bg-r-pay {
    background-color: #BF0000;
    color: #fff;
    padding: 0.2rem 1rem;
    margin: 0.5rem 0.5rem;
    display: inline-block;
}

.bg-aeon-pay {
    background-color: #D40073;
    color: #fff;
    padding: 0.2rem 1rem;
    margin: 0.5rem 0.5rem;
    display: inline-block;
}
/* キャンペーン概要のサービス画像用スタイル（スマートフォン対応） */
@media (max-width: 768px) {
    .overview-value .service-list {
        justify-content: center;
        gap: 0rem;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .overview-value .service-item {
        width: 70px;
        margin: 0;
        padding: 0.5rem;
        flex: 0 0 70px;
    }

    .overview-value .service-item img {
        width: 100%;
        height: 100%;
        max-width: 70px;
        max-height: 70px;
        object-fit: contain;
    }
}

/* スマートフォン用ナビゲーション */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        background: #172a88;
        border-radius: 4px;
        padding: 0.75rem;
        z-index: 10000;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        padding: 4rem 0 0;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .main-navigation.active {
        left: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-navigation a {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        width: 100%;
        text-align: left;
        padding: 1rem;
    }

    .main-navigation .has-dropdown > a::after {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
    }

    .main-navigation .has-dropdown.active > a::after {
        transform: translateY(-50%) rotate(180deg);
    }

    .main-navigation .sub-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .main-navigation .has-dropdown.active > .sub-menu {
        display: block;
    }

    .main-navigation .sub-menu a {
        padding-left: 2rem;
    }

    .main-navigation .sub-menu li:nth-child(odd) > a {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* トップに戻るボタン */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(23, 42, 136, 0.8);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: rgba(23, 42, 136, 0.9);
    transform: translateY(-3px);
}

.back-to-top::before {
    content: '';
    width: 12px;
    height: 12px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: rotate(45deg);
    margin-top: 5px;
}

@media (max-width: 768px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }

    .back-to-top::before {
        width: 10px;
        height: 10px;
    }
}

.point-info {
    margin-bottom: 2rem;
    white-space: pre-line;
    text-align: center;
}

.point-info p {
    margin-bottom: 1rem;
    text-align: left;
}

.point-info ul {
    list-style: disc;
    margin-left: 1.5rem;
    text-align: left;
}

.point-info li {
    margin-bottom: 0.5rem;
    text-align: left;
}

/* FAQアーカイブページのスタイル */
.faq-archive {
    padding: 4rem 0;
}

.faq-filter {
    margin-bottom: 2rem;
}

.filter-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.filter-button {
    padding: 0.5rem 1rem;
    border: 1px solid #4f4d44;
    background: #fff;
    color: #4f4d44;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-button:hover,
.filter-button.active {
    background: #4f4d44;
    color: #fff;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #dedcd7;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 1rem;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #fafaf5;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #4f4d44;
}

.toggle-icon {
    width: 20px;
    height: 20px;
    position: relative;
    transition: transform 0.3s ease;
}

.toggle-icon::before,
.toggle-icon::after {
    content: '';
    position: absolute;
    background: #4f4d44;
    transition: transform 0.3s ease;
}

.toggle-icon::before {
    width: 2px;
    height: 12px;
    top: 4px;
    left: 9px;
}

.toggle-icon::after {
    width: 12px;
    height: 2px;
    top: 9px;
    left: 4px;
}

.faq-item.active .toggle-icon::before {
    transform: rotate(90deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fafaf5;
	/* ↓↓ 以下を追記 ↓↓ */
    word-break: break-all;
    box-sizing: border-box;
}

.faq-item.active .faq-answer {
    padding: 1rem;
    max-height: 1000px;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 480px) {
	.faq-answer p {
    	font-size: 0.9rem;
	}
}

/* カテゴリーフィルターのアニメーション */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item.hidden {
    display: none;
}

@media (max-width: 768px) {
    .faq-archive {
        padding: 2rem 0;
    }

    .filter-categories {
        gap: 0.25rem;
    }

    .filter-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .faq-question h3 {
        font-size: 1rem;
    }
}

/* FAQ一覧へのリンク */
.faq-more {
    text-align: center;
    margin-top: 2rem;
}

.more-link {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #4f4d44;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.more-link:hover {
    background: #e8ad3f;
}

/* 事業者向けページのスタイル */
.page-business {
    padding: 4rem 0;
}

.business-content {
    max-width: 800px;
    margin: 0 auto;
}

.business-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.business-section:last-child {
    margin-bottom: 0;
}

.business-section h2 {
    color: #4f4d44;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.business-section h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem;
    padding: 0.2rem 0.5rem;
    background-color:navy;
}

.business-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.business-list {
    list-style: disc;
    margin: 1rem 0 1rem 1.5rem;
}

.business-list li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.business-note {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #666;
}

.business-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.business-table th,
.business-table td {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
}

.business-table th {
    background: #f8fafc;
    font-weight: bold;
    text-align: left;
}

.business-table tr:nth-child(even) {
    background: #f8fafc;
}

.business-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #4f4d44;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.business-button:hover {
    background:#e8ad3f;
}

.business-flow {
    margin: 2rem 0;
}

.bussiness-service-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.5rem;
}

.bussiness-service-item {
    flex: 0 0 auto;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.bussiness-service-item img {
    width: 100%;
    height: auto;
    max-height: 170px;
    object-fit: contain;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    position: relative;
}

.flow-step:last-child {
    margin-bottom: 0;
}

.flow-number {
    flex: 0 0 40px;
    height: 40px;
    background: #4f4d44;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
}

.flow-content {
    flex: 1;
}

.flow-content h4 {
    color: #4f4d44;
    margin-bottom: 0.5rem;
}

.flow-content p {
    margin: 0;
}

.flow-arrow {
    position: absolute;
    left: 20px;
    top: 40px;
    bottom: -20px;
    width: 2px;
    background: #e2e8f0;
}

.flow-step:last-child .flow-arrow {
    display: none;
}

@media (max-width: 768px) {
    .page-business {
        padding: 2rem 0;
    }

    .business-section {
        padding: 1.5rem;
    }

    .business-section h2 {
        font-size: 1.3rem;
    }

    .business-section h3 {
        font-size: 1.1rem;
    }

    .business-table {
        display: block;
        overflow-x: auto;
    }

    .flow-step {
        flex-direction: column;
    }

    .flow-number {
        margin-bottom: 1rem;
    }

    .flow-arrow {
        left: 20px;
        top: 60px;
    }

    .bussiness-service-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        margin: 2rem 0;
        justify-items: center;
        gap: 1.5rem;
        margin: 1.5rem 0;
    }

    .bussiness-service-item {
        max-width: 250px;
    }

    .bussiness-service-item img {
        max-height: 150px;
    }
}

@media (max-width: 480px) {
    .bussiness-service-grid {
        gap: 1rem;
        margin: 1rem 0;
    }

    .bussiness-service-item {
        max-width: 200px;
    }

    .bussiness-service-item img {
        max-height: 120px;
    }
}

/* スケジュールテーブル */
.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin: 1.5rem 0;
    background: transparent;
}

.schedule-table th,
.schedule-table td {
    padding: 1.2rem;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.schedule-table th {
    width: 15%;
    font-weight: bold;
    text-align: center;
    color: #fff;
    border-radius: 4px;
}

.schedule-table td {
    margin-left: 5px;
    background: #fff;
    border-radius: 4px;
}

.schedule-table tr:nth-child(even) td {
    background: #f8fafc;
}

/* テーブルヘッダー用の背景色 */
.schedule-table th.bg-au-pay {
    background-color: #EB5505;
    display: table-cell;
}

.schedule-table th.bg-d-pay {
    background-color: #CC3341;
    display: table-cell;
}

.schedule-table th.bg-paypay {
    background-color: #FF0033;
    display: table-cell;
}

.schedule-table th.bg-r-pay {
    background-color: #BF0000;
    display: table-cell;
}

@media (max-width: 768px) {
    .schedule-table {
        display: block;
        overflow-x: auto;
        border-spacing: 0 4px;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 0.9rem;
        font-size: 0.9rem;
    }
}

/* 準備テーブル */
.preparation-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin: 1.5rem 0;
    background: transparent;
}

.preparation-table th,
.preparation-table td {
    padding: 1.2rem;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.preparation-table th {
    background-color: #4f4d44;
    color: #fff;
    font-weight: bold;
    text-align: center;
    border-radius: 4px;
}

.preparation-table td {
    background: #fff;
    border-radius: 4px;
    text-align: center;
}

.preparation-table tr:nth-child(even) td {
    background: #f8fafc;
}

@media (max-width: 768px) {
    .preparation-table {
        display: block;
        overflow-x: auto;
        border-spacing: 0 4px;
    }

    .preparation-table th,
    .preparation-table td {
        padding: 0.9rem;
        font-size: 0.9rem;
    }
}

/* 販促物画像と説明 */
.tool-service-container {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    align-items: flex-start;
}

.tool-service-item {
    flex: 0 0 auto;
    text-align: left;
}

.tool-service-item img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tool-service-info {
    flex: 1;
    padding-top: 1rem;
}

.tool-service-info p {
    margin-bottom: 1rem;
}

.tool-service-info p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .tool-service-container {
        flex-direction: column;
        gap: 1.5rem;
        margin: 1.5rem 0;
    }

    .tool-service-item img {
        max-height: 300px;
    }

    .tool-service-info {
        padding-top: 0;
    }
}

@media (max-width: 480px) {
    .tool-service-container {
        gap: 1rem;
        margin: 1rem 0;
    }

    .tool-service-item img {
        max-height: 200px;
    }
}

/* デフォルトページ */
.page-default {
    padding: 4rem 0;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.page-content h1 {
    color: #4f4d44;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.page-content h2 {
    color: #4f4d44;
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #4f4d44;
}

.page-content h3 {
    color: #4f4d44;
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem;
}

.page-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.page-content ul,
.page-content ol {
    margin: 1rem 0 1rem 2rem;
}

.page-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.page-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.page-content th,
.page-content td {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
}

.page-content th {
    background: #f8fafc;
    font-weight: bold;
}

.page-content blockquote {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8fafc;
    border-left: 4px solid #4f4d44;
}

@media (max-width: 768px) {
    .page-default {
        padding: 2rem 0;
    }

    .page-content h1 {
        font-size: 1.5rem;
    }

    .page-content h2 {
        font-size: 1.3rem;
    }

    .page-content h3 {
        font-size: 1.1rem;
    }
} 
/* スクリーンリーダー用テキスト (WordPressのコアにも同様のクラスがある場合があります) */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* 動的に挿入されるプルダウントリガーのスタイル例 */
.js-dynamic-dropdown-trigger {
  cursor: pointer;
  display: inline-block; /* または block, inline-flex などレイアウトに合わせて */
  padding: 0.5em;      /* クリックしやすいように適度な余白を確保 */
  margin-left: 0.5em;  /* リンクテキストとの間に余白 */
  /* vertical-align: middle; */ /* 必要に応じて垂直位置調整 */
}

/* 必要であれば、トリガー内のアイコンのスタイル */
.js-dynamic-dropdown-trigger [aria-hidden="true"] {
  /* 例: font-weight: bold; */
}

/* サブメニューが開いた状態のli.activeに対するスタイルは既存のCSSで定義されている想定 */
/*li.has-dropdown.active > ul.sub-menu {
  display: block;
}*/

.cashless-infomation-session {
    max-width: 480px;
    margin: 0 auto;
    padding: 24px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bg-blue {
    background-color: #172a88;
    color: white;
    text-align: center;
    padding: 5px;
    border-radius: 4px;
    margin: 0;
    font-weight: bold;
}

.btn-shadow-margin {
  margin-bottom: 1.5em;
}

.store-button {
  display: block;
  width: 60%;
  margin: 20px auto; /* 上下の余白と中央揃え */
  padding: 15px;
  background-color: #172a88; /* 背景色 */
  color: white; /* 文字色 */
  text-align: center; /* 文字を中央揃え */
  text-decoration: none; /* リンクの下線を消す */
  border-radius: 10px; /* 角を丸くする */
  font-size: 16px; /* 読みやすいようにフォントサイズを指定 */
  box-sizing: border-box; /* paddingを含めて幅を計算 */
}