/* ======================================= */
/* 1. リセットと共通スタイル (モバイルファースト) */
/* ======================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
    font-size: 16px;
    overflow-x: hidden !important; 
    overflow-y: scroll;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

img {
    height: auto;
}

li {
    list-style: none;
}

/* 共通セクションスタイル */
section {
    padding: 40px 20px;
    text-align: center;
}


h2 {
    font-size: 24px;
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
    display: inline-block;
    padding-bottom: 5px;
}

button {
    margin: 1.25rem 0;
    border: none;
}

.color_main {
    color: #c0a060;
}

.staff-nameColor {
    color: #979797;
}

  .hidden {
        display: none!important;
    }

.cta-button {
    display: block;
    width: 100%;
    padding: 25px;
    margin: 10px 0;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s;
}

.cta-button.primary {
    background-color: #c0a060; /* ゴールド系 */
    color: #fff;
    border: none;
}

.cta-button.secondary {
    background-color: #eee;
    color: #333;
    border: 1px solid #ccc;
}

figure img {
    max-width: 100%;
    margin: auto;
    margin-bottom: 10px;
    border-radius: 10px;
}

 .flex-container .caption {
    margin-left: 1.25rem;
    }



#shopNews .news_slider {
    width: 100%;
    height: auto; 
    padding: 0 50px; 
    box-sizing: border-box;
}

#shopNews p {
    height: 120px;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}


.swiper-pagination-a,
.swiper-pagination-b {
    margin-top: 1rem;
    height: 5px !important;
    background: rgba(0, 0, 0, 0.25);
    position: relative; 
    }
    
    .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background: #c0a060 !important; 
}


/* ---------------------------------------------------- */
/* 0.5. 金相場ティッカー スタイル (CSSループ) */
/* ---------------------------------------------------- */
       /* ティッカー全体のラッパー */
        .gold-ticker-wrapper {
            /* 100%の幅に設定 */
            width: 100%; 
            /* 画面いっぱいに広げる */
            overflow: hidden; 
            /* 背景色と装飾 */
            background-color: #ffcc00; /* ゴールドっぽい色 */
            color: #333;
            padding: 8px 0;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            position: relative;
        }

        /* ---------------------------------------------------- */
        /* アニメーション定義 */
        /* ---------------------------------------------------- */

        /* 実際のスクロールを行う要素 */
        .gold-ticker {
            display: flex; 
            width: max-content; 
            will-change: transform; 
            animation: scroll-left 20s linear infinite;
            animation-play-state: running;
        }
        
        /* ホバーで一時停止 */
        .gold-ticker:hover {
            animation-play-state: paused;
            cursor: pointer;
        }

        /* キーフレーム：左への移動 */
        @keyframes scroll-left {
            0% { 
                transform: translateX(0); 
            }
            100% { 
                transform: translateX(-25%); 
            }
        }

        /* ---------------------------------------------------- */
        /* 個別アイテムとテキストのスタイル */
        /* ---------------------------------------------------- */
        .ticker-item {
            /* === 修正: ここから固定幅指定 (width: 33.333vw) を削除しました === */
            /* 縮小しないようにする（重要） */
            flex-shrink: 0; 
            /* テキストの折り返しを防ぐ */
            white-space: nowrap; 
            /* ティッカーアイテム間の余白 */
            padding-right: 40px; 
            /* テキストを中央寄せ */
            text-align: center; 
        }

        .gold-price {
            font-size: 1.1rem;
            font-weight: 700;
            color: #4a4a4a;
            display: block; /* small要素をブロック化して装飾しやすくする */
        }
        
        .gold-price::before {
            content: "💰"; /* アイコンを追加して目立たせる */
            margin-right: 5px;
        }

        /* ---------------------------------------------------- */


/* ======================================= */
/* 2. ヘッダーとナビゲーション (スマホ特化) */
/* ======================================= */
#header {
    background-color: #1a1a1a;
    color: #fff;
    padding: 10px 20px;
    position: sticky; 
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    display: block;
    margin: auto;
    max-width: 100px;
}

.logo a {
    font-size: 20px;
    font-weight: bold;
}



.menu-button {
    background-color: #c0a060;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    z-index: 1001;
}


#gnav {
    display: block;
    position: fixed;
    top: 60px; 
    right: -100%; 
    width: 80%; 
    max-width: 300px; 
    height: 100%;
    background-color: #1a1a1a;
    color: #fff;
    transition: right 0.3s ease-in-out;
    z-index: 999;
    padding-top: 20px;
    text-align: left;
    overflow-y: auto; 
}

#gnav ul {
    list-style: none;
    padding: 0;
}

#gnav li a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #444;
}


#body.is-open #gnav {
    right: 0; 
}


#body.is-open {
    overflow: hidden;
}

#body.is-open .fixed-cta {
    display: none;
}


.fixed-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #e74c3c;
    color: #fff;
    text-align: center;
    padding: 15px;
    z-index: 100;
    font-weight: bold;
}

/* ======================================= */
/* 3. 各セクションのスタイル (スマホ向け) */
/* ======================================= */

/* ヒーローエリア */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); 
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../img/reference_tenpo02.jpg");
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: brightness(0.8);
}

.catchphrase {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.main-cta-area {
    margin-top: 20px;
}

.swiper-pagination {
    top:50px;
}


.trust-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.trust-item {
    flex-basis: 45%;
}

.trust-item .number {
    font-size: 110px;
    color: #c0a060;
    font-weight: bold;
}

.dot_line {
    border-top: 2px dashed #c0a060;
    margin: auto;
    width: 80%;
}

.staff_icon img {
    margin: 5% 0;
    width: 100%;
    border: 6px solid #c0a060;
    border-radius: 50%;
}


.service-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-list h3 {
    color: #c0a060;
}

.cta-button {
    padding: 20px;
}



.cta-button.link-detail {
    background-color: #c0a060;
    color: #fff;
    border: none;
}

.store-callout img {
    max-width: 100%;
}


.cta-button.shopabout {
    background-color: #c0a060; 
    color: #fff;
    border: none;
}


.result-list li {
    list-style: none;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    text-align: left;
    max-width: 400px; /* リストの幅を制限 */
    margin: 0 auto;
}


.cta-button.shoplink-detail {
    background-color: #c0a060; /* ゴールド系 */
    color: #fff;
    border: none;
}



/* ======================================= */
/*  WPのブログ記事swiper.css */
/* ======================================= */

#newkaitoriPost,
#latest-posts {
    overflow: hidden;
}

.post-date {
    display: inline-block; 
    padding: 4px 12px;
    margin: 10px 5px 0;
    background-color: #f0f0f0; 
    color: #333;
    font-size: 13px;
    font-weight: 5;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.post-tag:hover {
    background-color: #ddd;
    color: #000;
    text-decoration: none;
}

#newkaitoriPost h3,
#latest-posts h3,
#newkaitoriPost p,
#latest-posts p{
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; 
    max-width: 100%; 
    text-overflow: ellipsis;
}

#postslideshow-container,
#postslideshow-container2 {
    overflow: visible !important;
}

#postslideshow-container .swiper-slide,
#postslideshow-container2 .swiper-slide {
        width: 80% !important; 
    }


/* ======================================= */
/* 4. フッター */
/* ======================================= */
#footer {
    background-color: #333;
    color: #ccc;
    padding: 30px 20px 80px; 
    text-align: center;
}

.footer-nav {
    display: none;
}

.footer-banner img{
    margin: 8px 0;
}

.nap-info {
    margin-top: 20px;
}

.nap-info p {
    margin-bottom: 5px;
}

#footer small {
    display: block;
    margin-top: 20px;
}

/* ======================================= */
/* 5. メディアクエリ（タブレット以上） */
/* ======================================= */
@media (min-width: 768px) {
    section.hero {
        width: 100%;
    }
    
    section {
        width: 1000px;
    }
    
    button {
    margin: 1.25rem auto 0;
    border: none;
    display: block;
}
    
    
    figure {
        margin: auto;
        max-width: 400px;
    }
    
    
    .center {
    text-align: center!important;
    }
    

    .header-inner {
        max-width: 1000px;
        margin: 0 auto;
    }

    .menu-button {
        display: none;
    }

    #gnav {
        
        display: block;
        position: static; 
        width: auto;
        max-width: 100%;
        height: auto;
        background-color: transparent;
        color: #fff;
        padding-top: 0;
        z-index: auto;
    }

    #gnav ul {
        display: flex;
        list-style: none;
    }

    #gnav li a {
        padding: 10px 15px;
        display: block;
        font-size: 14px;
        border-bottom: none;
    }
    
    main {
        margin: auto;
    }
    
    .flex-container {
        display: flex;
        justify-content: space-between;
        text-align: left!important;
    }
    
    .flex-container figure {
    margin: auto;
    width: 100%; 
}
    
    
    .container {
        margin: auto;
        
    }


    .fixed-cta {
        display: none;
    }


    section {
        margin: auto;
        padding: 80px 40px;
    }


    .trust-list {
        justify-content: center;
        gap: 40px;
    }
    
    .trust-item {
        flex-basis: 25%;
    }

    .dot_line {
        border-top: 2px dashed #c0a060;
        margin: auto;
        width: 50%;
    }

    .staff_icon img {
        margin: 5% 0;
        max-width: 35%;
        border: 8px solid #c0a060;
        border-radius: 50%;
    }

    
    .service-list {
        flex-direction: row;
        justify-content: space-between;
        margin: 0 auto;
    }

    .service-list figure {
        margin: auto;
        width: 300px;
        overflow: hidden;
    }

    .service-list figure img {
        width: 100%;
        height: 158px;
        object-fit: cover;
    }


    .cta-button.shopabout,
    .cta-button.shoplink-detail{
        margin: 1.25rem auto;
        width: 50%;
    }

    
/* ======================================= */
/* WPのブログ記事のswiper.css */
/* ======================================= */
    #newkaitoriPost h3,
    #latest-posts h3,
    #newkaitoriPost p,
    #latest-posts p{
    padding: 0;
    } 
    
    
    #postslideshow-container,
    #postslideshow-container2 {
    overflow: hidden!important; 
    max-width: 1000px; 
    width: 100%; 
    margin-left: auto;
    margin-right: auto;
}
    
    #postslideshow-container .swiper-slide,
    #postslideshow-container2 .swiper-slide {
        width: 30% !important; 
    }
    
   .responsive-slider-container {
        display: flex; 
       flex-wrap: wrap; 
        overflow-x: visible;
    }

    .swiper-slide {
        width: calc(50% - 10px);
        flex-shrink: 0; 
        height: auto; 
        margin-bottom: 30px; 
    }
   
    
    /* フッター */
    #footer {
        padding-bottom: 30px;
    }

    .footer-inner {
        display: flex;
        justify-content: space-around;
    }

    .footer-nav {
        display: block;
    }

    .footer-banner {
        display: grid;
    }
    
    .footer-banner img {
        margin-bottom: 1.25rem;
        max-width: 250px;
    }

    .footer-nav li {
        padding: 0.5rem;
    }
    
    .nap-info {
        display: flex;
        justify-content: space-between;
        margin: auto;
        width: 700px;
        font-size: 10px;
    }
}
