
/* ===================== HEADER ===================== */

.header-nav .dropdown > a {
  text-decoration: none;
  color: inherit;
  padding: 0 10px;
}

.header-nav .dropdown-menu {
  border: none;
  border-radius: 0;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  text-align: left;
}

.header-nav .dropdown-item {
  text-align: left !important;
  font-size: 14px;
  padding: 8px 16px;
  padding-left: 1.5rem; 
}
/* ナビゲーション内の要素をすべて左揃えに固定する */
.header-nav {
  display: flex;
  flex-direction: column;    /* 縦並びの場合 */
  align-items: flex-start;   /* 左寄せにする（centerから変更） */
  text-align: left;          /* 文字もすべて左寄せ */
}
.header-nav .dropdown{
width:100%;
}


/* PCなどの大型画面（d-lg-flexが効くサイズ）では横並びに戻す */
@media (min-width: 992px) {
  .header-nav {
    flex-direction: row;
    align-items: center;     /* 横並びの時は上下中央に戻す */
  }
.header-nav .dropdown{
width:auto;
}
}
/* ===================== MAIN SLIDER ===================== */
.main-slider {
    margin-top: 90px;
}

.main-slider .carousel-item {
    height: 85vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.slider-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.carousel-caption-custom {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 60px 80px;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
    color: var(--white);
    text-align: left;
}

.carousel-caption-custom .label {
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #FF6B6B;
}

.carousel-caption-custom h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 16px;
}

.carousel-caption-custom .sub {
    font-size: 13px;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    opacity: 0.9;
}

.btn-slider {
    display: inline-block;
    padding: 12px 32px;
    border: 1px solid var(--white);
    color: var(--white);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.25s;
}

.btn-slider:hover {
    background: var(--white);
    color: var(--black);
}

.carousel-indicators [data-bs-target] {
    width: 30px; height: 2px;
    background: var(--white);
    opacity: 0.5;
    border: none;
}

.carousel-indicators .active { opacity: 1; background: var(--red); }

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 14px; height: 14px;
}

@media (max-width: 767px) {
    .main-slider { margin-top: 76px; }
    .main-slider .carousel-item { height: 60vh; min-height: 360px; }
    .carousel-caption-custom { padding: 30px 24px; }
}

/* 画像を2枚スライド内で表示する */
.cross-fade-container {
  position: relative;
  width: 100%;
  height: auto;
}

.fade-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  animation: crossFade 6s infinite ease-in-out;
}

.fade-img:nth-child(1) {
  position: relative;
  animation-delay: 0s;
}

.fade-img:nth-child(2) {
  animation-delay: 3s;
}

@keyframes crossFade {
  0% { opacity: 0; }
  15% { opacity: 1; } /* ふわっと出る */
  45% { opacity: 1; } /* しばらく表示 */
  60% { opacity: 0; } /* ふわっと消える */
  100% { opacity: 0; }
}
/* ===================== SECTION COMMON ===================== */
.section-title {
    font-family: var(--font-bebas);
    font-size: 2.4rem;
    letter-spacing: 0.12em;
    line-height: 1;
    margin-bottom: 4px;
}

.section-title-eng {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--gray-dark);
    margin-bottom: 32px;
}

.red-bar {
    display: inline-block;
    width: 36px; height: 2px;
    background: var(--red);
    margin-bottom: 12px;
}

.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 60px 0; }

.bg-light-custom { background: var(--gray-light); }

/* ===================== TOPICS ===================== */
.topics-card {
    display: block;
    overflow: hidden;
    border: 1px solid var(--gray-mid);
    transition: box-shadow 0.25s;
}

.topics-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); }

.topics-card:hover .topics-img { transform: scale(1.04); }

.topics-img-wrap {
    overflow: hidden;
    height: 220px;
}

.topics-img {
    width: 100%; height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    display: block;
}

.topics-body {
    padding: 18px 20px 22px;
}

.topics-tag {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    font-size: 9px;
    letter-spacing: 0.15em;
    padding: 3px 10px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.topics-body h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 8px;
}

.topics-body p {
    font-size: 12px;
    color: var(--gray-dark);
    margin: 0;
    line-height: 1.7;
}

/* 最初は5枚目以降を隠す */
.topics-col:nth-child(n+5) {
    display: none;
}

/* JSでこのクラスが付与されたら表示する */
.topics-col.is-visible {
    display: block !important;
    animation: fadeInUp 0.5s ease forwards; /* ふわっと出すアニメーション */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===================== INTRODUCTION ===================== */
.intro-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}

.intro-text-col h3 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 24px;
}

.intro-text-col p {
    font-size: 16px;
    line-height: 2;
    color: #111;
    margin-bottom: 16px;
}

.intro-img {
    width: 100%; height: 100%;
    min-height: 460px;
    object-fit: cover;
    display: block;
}

.btn-red {
    display: inline-block;
    padding: 13px 36px;
    background: var(--red);
    color: var(--white);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: background 0.2s;
    border: none;
}

.btn-red:hover { background: var(--red-dark); color: var(--white); }

.btn-outline-red {
    display: inline-block;
    padding: 12px 34px;
    border: 1px solid var(--red);
    color: var(--red);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.2s;
}

.btn-outline-red:hover { background: var(--red); color: var(--white); }


@media (max-width: 767px) {

    .intro-text-col p {
        font-size: 12px;
    }
}
/* ===================== RANKING ===================== */
.ranking-pad {
    padding: 0 0 40px 0;
}

.ranking-card {
    display: block;
    transition: transform 0.2s;
}

.ranking-card:hover { transform: translateY(-4px); }

.ranking-num {
    position: absolute;
    top: 0; left: 0;
    width: 36px; height: 36px;
    background: var(--black);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-bebas);
    font-size: 1.1rem;
    z-index: 1;
}

.ranking-num.top3 { background: var(--red); }

.ranking-img-wrap {
    position: relative;
    overflow: hidden;
    height: 180px;
    background: var(--gray-light);
}

.ranking-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.ranking-card:hover .ranking-img-wrap img { transform: scale(1.06); }

.ranking-info {
    padding: 12px 0 4px;
}

.ranking-name {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 6px;
    color: var(--black);
}

.ranking-price {
    font-family: var(--font-bebas);
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    color: var(--red);
}

.ranking-price small {
    font-family: var(--font-sans);
    font-size: 10px;
    color: #111;
    font-weight: 300;
}

/* ===================== SUB SLIDER (Style) ===================== */
.sub-slider-wrap {
    position: relative;
}

.style-slide-item {
    padding: 0 8px;
}

.style-card {
    display: block;
    text-align: center;
}

.style-card:hover .style-img { transform: scale(1.05); }

.style-img-wrap {
    overflow: hidden;
    height: 250px;
    margin-bottom: 12px;
    background: var(--gray-light);
}

.style-img {
    width: 100%; height: 100%;
    object-fit: contain;
    transition: transform 0.4s;
}

.style-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--black);
    line-height: 1.4;
}

/* Custom slider controls */
.slider-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    justify-content: center;
}

.slider-btn {
    width: 40px; height: 40px;
    border: 1px solid var(--black);
    background: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.slider-btn:hover { background: var(--black); color: var(--white); }

/* ===================== SERIES & CATEGORY ===================== */
.series-card {
    display: block;
    position: relative;
    overflow: hidden;
    height: 160px;
}

@media (max-width: 767px) {
    .series-card { height: 140px; }
}

.series-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.series-card:hover img { transform: scale(1.06); }

.series-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 100%);
    display: flex;
    align-items: center;
    padding: 0 28px;
}

.series-label {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.series-label span {
    display: block;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.8;
    font-family: var(--font-sans);
    font-weight: 300;
    margin-bottom: 4px;
}

/* ===================== STRENGTHS ===================== */
.strength-card {
    text-align: center;
    padding: 0 0 16px 0; 
    border: 1px solid var(--gray-mid);
    height: 100%;
    transition: box-shadow 0.2s;
    overflow: hidden; /* 画像の角をカードの枠線に合わせるため */
    background: #fff;
}

.strength-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.08); }

.strength-img-wrap {
    width: 100%; /* カードの幅に合わせる */
    height: auto; /* アスペクト比を維持 */
    aspect-ratio: 16 / 9; /* 正方形を維持（モダンブラウザ対応） */
    margin: 0 ; /* 下に余白 */
    overflow: hidden;
    border-radius: 0; /* 丸めを解除 */
}

.strength-img-wrap img {
    width: 80%; 
    height: auto;
    margin:0 auto;
    display: block;
}

/* テキストコンテンツには左右のパディングを適用 */
.strength-num,
.strength-card h5,
.strength-card p {
    padding-left: 24px;
    padding-right: 24px;
}

.strength-num {
    font-family: var(--font-bebas);
    font-size: 3rem;
    color: var(--red);
    line-height: 1;
    margin-bottom: 4px;
    margin-top: 10px; /* 画像下の位置調整 */
}

.strength-card h5 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 12px;
}

.strength-card p {
    font-size: 12px;
    color: var(--gray-dark);
    line-height: 1.8;
    margin: 0;
}

/* ===================== EXPERT ===================== */
.expert-card {
    padding: 8px;
}

.expert-inner {
    background: var(--gray-light);
    padding: 28px 24px;
    text-align: center;
}

.expert-img-wrap {
    width: 90px; height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 2px solid var(--red);
}

.expert-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.expert-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 4px;
}

.expert-store {
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--red);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.expert-bio {
    font-size: 12px;
    color: var(--gray-dark);
    line-height: 1.8;
}


/* ===================== feature ===================== */
.feature-card {
    display: block;
    overflow: hidden;
    border: 1px solid var(--gray-mid);
    transition: box-shadow 0.25s;
    background: #fff;
}

.feature-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); }

.feature-card:hover .feature-img { transform: scale(1.04); }

.feature-img-wrap {
    overflow: hidden;
    height: 220px;
}

.feature-img {
    width: 100%; height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    display: block;
}

.feature-body {
    padding: 18px 20px 22px;
}

.feature-tag {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    font-size: 9px;
    letter-spacing: 0.15em;
    padding: 3px 10px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.feature-body h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 8px;
}

.feature-body p {
    font-size: 12px;
    color: var(--gray-dark);
    margin: 0;
    line-height: 1.7;
}

/* 最初は5枚目以降を隠す */
.feature-col:nth-child(n+5) {
    display: none;
}

/* JSでこのクラスが付与されたら表示する */
.feature-col.is-visible {
    display: block !important;
    animation: fadeInUp 0.5s ease forwards; /* ふわっと出すアニメーション */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================== STORES ===================== */
.store-card {
    border: 1px solid var(--gray-mid);
    overflow: hidden;
}

.store-img-wrap {
    height: 200px;
    overflow: hidden;
}

.store-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.store-card:hover .store-img-wrap img { transform: scale(1.04); }

.store-body {
    padding: 22px 24px;
}

.store-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gray-mid);
}

.store-info-item {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.6;
}

.store-info-item .bi {
    color: var(--red);
    flex-shrink: 0;
    margin-top: 2px;
}

.store-info-label {
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--gray-dark);
    min-width: 60px;
}

/* ===================== FOOTER ===================== */
.site-footer {
    background: var(--black);
    color: #aaa;
    padding: 60px 0 30px;
}

.footer-logo {
    font-family: var(--font-bebas);
    font-size: 2rem;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-logo span { color: var(--red); }

.footer-nav h6 {
    color: var(--white);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-nav ul {
    list-style: none;
    padding: 0; margin: 0;
}

.footer-nav li { margin-bottom: 8px; }

.footer-nav a {
    font-size: 12px;
    color: #949494;
    transition: color 0.2s;
}

.footer-nav a:hover { color: var(--red); }

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 48px;
    padding-top: 24px;
    font-size: 11px;
    color: #666;
}
.footer-bottom span, .footer-bottom a {
  color: #949494; /* これで 4.5:1 をクリアします */
}
/* ===================== SVG PLACEHOLDER IMAGES ===================== */
/* Using inline SVG as placeholders styled with colors */
.placeholder-img {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* ===================== RESPONSIVE ADJUSTMENTS ===================== */
@media (max-width: 991px) {
    .header-nav { display: none; }
    .header-icons a { padding: 12px 0 0; }

    
    #mobileNav.collapse.show {
    display: block !important;
    width: 100%;
    order: 10;                
    padding: 20px 0;          
    background-color: #fff;   
    }

    
    .header-nav {
    display: flex;
    flex-direction: column;   
    align-items: flex-start;  
    gap: 15px;                
    }

    
    .header-nav a {
    font-size: 20px !important;    
    color: #1a1a1a !important;     
    text-decoration: none;        
    width: 100%;                   
    padding: 10px 0;               
    border-bottom: 1px solid #eee; 
    }
    .header-nav a.dropdown-item{
    font-size: 14px !important;    
    }
    
    .header-nav a.text-red {
    color: #e72410 !important;
    }
}

@media (max-width: 767px) {
    .section-pad { padding: 52px 0; }
    .intro-img { min-height: 300px; }
    .series-card { margin-bottom: 12px; }
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.carousel-item.active .carousel-caption-custom > * {
    animation: fadeUp 0.6s ease forwards;
}

.carousel-item.active .carousel-caption-custom .label { animation-delay: 0.1s; }
.carousel-item.active .carousel-caption-custom h2 { animation-delay: 0.2s; }
.carousel-item.active .carousel-caption-custom .sub { animation-delay: 0.3s; }
.carousel-item.active .carousel-caption-custom .btn-slider { animation-delay: 0.4s; }

/* Divider */
.red-divider {
    width: 48px; height: 2px;
    background: var(--red);
    margin: 0 auto 32px;
}

.text-red { color: var(--red) !important; }

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px; height: 44px;
    background: var(--red);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    z-index: 999;
    border: none;
    transition: background 0.2s;
}

.scroll-top:hover { background: var(--red-dark); }

/* Sale badge */
.sale-badge {
    position: absolute;
    top: 8px; right: 8px;
    background: var(--red);
    color: var(--white);
    font-size: 9px;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    font-weight: 500;
}