/*
Theme Name: GAS_WBCT20260316
Description: Welcart Basic Child Theme (Blue Trust UI)
Author: Tanaka
Template: welcart_basic
Version: 2.0.0
*/

/* =============================================
   CSS Variables
   ============================================= */
:root {
    --ma-dark:    #0a1628;
    --ma-dark2:   #0d1b2a;
    --ma-dark3:   #132035;
    --ma-blue:    #2563eb;
    --ma-cyan:    #38bdf8;
    --ma-amber:   #f59e0b;
    --ma-orange:  #f97316;
    --ma-text:    #334155;
    --ma-muted:   #64748b;
    --ma-light:   #f8fafc;
    --ma-light2:  #f0f4f8;
    --ma-border:  #e2e8f0;
    --ma-white:   #ffffff;
}

/* =============================================
   Base – front page scope
   ============================================= */
.ma-front {
    font-family: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    color: var(--ma-text);
    line-height: 1.7;
}
.ma-front *, .ma-front *::before, .ma-front *::after {
    box-sizing: border-box;
}
.ma-front a {
    text-decoration: none;
}
.ma-front img {
    max-width: 100%;
    display: block;
}

/* =============================================
   Layout
   ============================================= */
.ma-front .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =============================================
   Section Label（FIND BY FEELINGS 等）
   ============================================= */
.ma-front .section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ma-blue);
    padding-top: 10px;
    margin-bottom: 16px;
}
.ma-front .section-label::before {
    content: '';
    display: block;
    width: 32px;
    height: 3px;
    background: var(--ma-blue);
    margin: 0 auto 8px;
}
.ma-front .section-label--light {
    color: #94a3b8;
}
.ma-front .section-label--light::before {
    background: var(--ma-cyan);
}

.ma-front .section-h2 {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}
.ma-front .section-sub {
    color: var(--ma-muted);
    font-size: 15px;
    margin-bottom: 48px;
}

/* =============================================
   Hero
   ============================================= */
.hero {
    background-color: var(--ma-dark);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 80px 24px 90px;
    position: relative;
    overflow: hidden;
}
/* 背景画像がある場合のオーバーレイ（文字を読みやすくする半透明レイヤー） */
.hero.hero--has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.68);
    z-index: 0;
}
.hero.hero--has-image .hero-inner {
    position: relative;
    z-index: 1;
}
.hero::after {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56,189,248,0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 48px;
}
.hero-content { flex: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245,158,11,0.15);
    border: 1px solid rgba(245,158,11,0.4);
    color: var(--ma-amber);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 24px;
}
.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--ma-amber);
    border-radius: 50%;
    animation: ma-blink 1.4s ease-in-out infinite;
}
@keyframes ma-blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero h2 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.3;
    color: var(--ma-white);
    margin-bottom: 8px;
}
.hero h2 .accent { color: var(--ma-cyan); }

.hero-desc {
    color: #94a3b8;
    font-size: 15px;
    max-width: 480px;
    margin: 20px 0 32px;
    line-height: 1.8;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ma-blue);
    color: var(--ma-white);
    font-size: 15px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 16px rgba(37,99,235,0.4);
}
.btn-hero:hover { background: #1d4ed8; transform: translateY(-1px); color: var(--ma-white); }

/* Hero right cards */
.hero-cards {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.hero-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 18px 20px;
    backdrop-filter: blur(4px);
}
.hero-card-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--ma-cyan);
    text-transform: uppercase;
    margin-bottom: 6px;
}
.hero-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ma-white);
    margin-bottom: 4px;
}
.hero-card-meta {
    font-size: 12px;
    color: #64748b;
}
.hero-card-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 8px;
}
.hero-card-tag--blue  { background: rgba(37,99,235,0.2);  color: #60a5fa; }
.hero-card-tag--green { background: rgba(16,185,129,0.2); color: #34d399; }
.hero-card-tag--amber { background: rgba(245,158,11,0.2); color: #fbbf24; }

/* =============================================
   Feelings Section（悩みカード）
   ============================================= */
.section-feelings {
    background: var(--ma-white);
    padding: 80px 24px;
    text-align: center;
}

.cards-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: left;
}
.card {
    background: var(--ma-white);
    border: 1px solid var(--ma-border);
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.12); transform: translateY(-3px); }

.card-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.card-icon-circle--blue   { background: rgba(37,99,235,0.1);  }
.card-icon-circle--purple { background: rgba(139,92,246,0.1); }
.card-icon-circle--cyan   { background: rgba(6,182,212,0.1);  }
.card-icon-circle--amber  { background: rgba(245,158,11,0.1); }

.card-title { font-size: 15px; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.card-desc  { font-size: 13px; color: var(--ma-muted); line-height: 1.7; margin-bottom: 16px; }
.card-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--ma-blue);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}
.card-link:hover { gap: 8px; }

/* =============================================
   By Role Section（階層別）
   ============================================= */
.section-role {
    background: #1e3d72;
    padding: 80px 24px;
    text-align: center;
}
.section-role .section-h2 { color: var(--ma-white); }
.section-role .section-sub { color: #b8cce8; }

.role-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: left;
}
.role-card {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.20);
    border-radius: 12px;
    padding: 28px 22px;
    transition: background 0.2s, transform 0.2s;
}
.role-card:hover { background: rgba(255,255,255,0.18); transform: translateY(-3px); }

.role-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.role-icon-circle--green  { background: rgba(16,185,129,0.15); }
.role-icon-circle--yellow { background: rgba(234,179,8,0.15);  }
.role-icon-circle--pink   { background: rgba(236,72,153,0.15); }
.role-icon-circle--blue   { background: rgba(56,189,248,0.15); }

.role-card-title { font-size: 15px; font-weight: 700; color: var(--ma-white); margin-bottom: 6px; }
.role-card-desc  { font-size: 12px; color: #b8cce8; line-height: 1.6; margin-bottom: 16px; }
.role-card-link {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--ma-cyan);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    transition: gap 0.2s;
}
.role-card-link:hover { gap: 8px; }

/* =============================================
   Bundle & Save Section（セットでお得に）
   ============================================= */
.section-bundle {
    background: var(--ma-light);
    padding: 80px 24px;
    text-align: center;
}
.section-bundle .section-sub strong {
    color: #e53e3e;
    font-weight: 800;
}

.bundle-card {
    display: block;
    max-width: 800px;
    margin: 0 auto;
    background: var(--ma-white);
    border-radius: 16px;
    border: 2px solid var(--ma-amber);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 24px rgba(245,158,11,0.15);
    transition: box-shadow 0.2s, transform 0.2s;
}
.bundle-card:hover {
    box-shadow: 0 8px 40px rgba(245,158,11,0.28);
    transform: translateY(-2px);
}

.bundle-badges {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}
.bundle-badge-pct {
    font-size: 22px;
    font-weight: 800;
    color: var(--ma-white);
    letter-spacing: 0.04em;
}
.bundle-badge-save {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.92);
    background: rgba(0,0,0,0.18);
    padding: 3px 12px;
    border-radius: 20px;
}

.bundle-card-inner {
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 32px;
    text-align: left;
}
.bundle-card-info { flex: 1; }
.bundle-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--ma-amber);
    margin-bottom: 8px;
}
.bundle-name {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.4;
}
.bundle-meta {
    font-size: 12px;
    color: var(--ma-muted);
}

.bundle-pricing {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    text-align: center;
}
.bundle-price-before,
.bundle-price-after {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.bundle-price-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--ma-muted);
    letter-spacing: 0.06em;
}
.bundle-price-before-value {
    font-size: 20px;
    font-weight: 700;
    color: #94a3b8;
    text-decoration: line-through;
    text-decoration-color: #e53e3e;
    text-decoration-thickness: 2px;
}
.bundle-price-arrow {
    font-size: 22px;
    font-weight: 700;
    color: var(--ma-amber);
}
.bundle-price-after-value {
    font-size: 30px;
    font-weight: 800;
    color: #e53e3e;
    line-height: 1.1;
}
.bundle-price-after-tax {
    font-size: 11px;
    color: var(--ma-muted);
}

.bundle-cta-row {
    padding: 16px 32px 20px;
    border-top: 1px solid var(--ma-border);
    text-align: center;
}
.bundle-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ma-orange);
    color: var(--ma-white);
    font-size: 15px;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(249,115,22,0.35);
    transition: background 0.2s;
}
.bundle-card:hover .bundle-cta-btn {
    background: #ea6c10;
}

/* =============================================
   Bundle Cards Grid（3カード横並び）
   ============================================= */

/*
 * auto-fit + minmax で 1枚削除すると残りが自動で均等配置される。
 * 3枚: 3列, 2枚: 2列（1/2幅ずつ）, 1枚: フル幅
 */
.bundle-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.bundle-card-v2 {
    display: flex;
    flex-direction: column;
    background: var(--ma-white);
    border-radius: 14px;
    overflow: hidden;
    /* 上部にヘッダーカラーを反映した柔らかい影 */
    box-shadow:
        0 2px 8px rgba(0,0,0,0.06),
        0 6px 24px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.25s, transform 0.25s;
}
.bundle-card-v2:hover {
    box-shadow:
        0 4px 16px rgba(0,0,0,0.08),
        0 12px 40px rgba(0,0,0,0.14);
    transform: translateY(-4px);
}

/* カードヘッダー（グラデーション帯） */
.bundle-card-v2-head {
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
/* 右側に光の反射を模した装飾レイヤー */
.bundle-card-v2-head::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 140px; height: 100%;
    background: rgba(255,255,255,0.035);
    clip-path: polygon(35% 0, 100% 0, 100% 100%, 0% 100%);
    pointer-events: none;
}

/*
 * 原色ではなく深みのある落ち着いたトーンで統一。
 * 同じネイビー系のファミリーを基盤にしつつ、
 * 各階層ごとに微妙な色温度で差別化する。
 */

/* 新入社員・若手: ディープ オーシャンネイビー */
.bundle-card-v2-head--young {
    background:
        radial-gradient(ellipse at 85% 40%, rgba(96,165,250,0.10) 0%, transparent 60%),
        linear-gradient(135deg, #1e3d6b 0%, #0f2440 100%);
    border-top: 3px solid #4a7fc1;
}

/* チームリーダー: ディープ フォレストスレート */
.bundle-card-v2-head--leader {
    background:
        radial-gradient(ellipse at 85% 40%, rgba(110,231,183,0.08) 0%, transparent 60%),
        linear-gradient(135deg, #1a3f34 0%, #0d2720 100%);
    border-top: 3px solid #3a7a62;
}

/* 管理職・課長: ディープ スレートオーバーン（格調ある紫みの暗色） */
.bundle-card-v2-head--manager {
    background:
        radial-gradient(ellipse at 85% 40%, rgba(167,139,250,0.08) 0%, transparent 60%),
        linear-gradient(135deg, #2e2648 0%, #1c1830 100%);
    border-top: 3px solid #6b5fa0;
}

.bundle-card-v2-pct {
    font-size: 19px;
    font-weight: 800;
    color: rgba(255,255,255,0.96);
    letter-spacing: 0.04em;
}
.bundle-card-v2-save {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 2px 10px;
    border-radius: 20px;
}
.bundle-card-v2-target {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.92);
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.20);
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

/* カード本体 */
.bundle-card-v2-body {
    padding: 22px 22px 16px;
    flex: 1;
}
.bundle-card-v2-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--ma-muted);
    margin-bottom: 8px;
}
.bundle-card-v2-name {
    font-size: clamp(14px, 1.6vw, 17px);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.45;
}
.bundle-card-v2-meta {
    font-size: 12px;
    color: var(--ma-muted);
    margin-bottom: 16px;
}

/* 価格表示 */
.bundle-card-v2-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 0 0;
    border-top: 1px dashed var(--ma-border);
}
.bundle-card-v2-before {
    font-size: 14px;
    font-weight: 700;
    color: #94a3b8;
    text-decoration: line-through;
    text-decoration-color: #e53e3e;
}
.bundle-card-v2-arrow {
    font-size: 14px;
    color: var(--ma-muted);
}
.bundle-card-v2-after {
    font-size: 24px;
    font-weight: 800;
    color: #c0392b;
    line-height: 1;
}
.bundle-card-v2-tax {
    font-size: 11px;
    color: var(--ma-muted);
}

/* CTAフッター */
.bundle-card-v2-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 22px;
    /* 深みのあるウォームアンバー — 原色オレンジより落ち着いた印象 */
    background: #b8621a;
    color: var(--ma-white);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: background 0.2s;
    margin-top: auto;
    border-top: 1px solid rgba(0,0,0,0.08);
}
.bundle-card-v2:hover .bundle-card-v2-cta { background: #9e5214; }

/* =============================================
   Items by Role（階層別カルーセル）
   ============================================= */
.section-items-by-role {
    background: var(--ma-light2);
    padding: 80px 0 80px;
}
.section-items-by-role > .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* セクションヘッダー */
.items-by-role-header {
    text-align: center;
    margin-bottom: 52px;
}

.items-role-group {
    margin-bottom: 52px;
}
.items-role-group:last-child { margin-bottom: 0; }

.items-role-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ma-border);
}
.items-role-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    padding-left: 14px;
    border-left: 4px solid var(--ma-blue);
    line-height: 1.4;
}
.items-role-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--ma-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: gap 0.2s, opacity 0.2s;
}
.items-role-more:hover { gap: 7px; opacity: 0.75; }

/* 横スクロール行 */
.items-swipe-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 10px;
    /* スクロールバーを細く */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.items-swipe-row::-webkit-scrollbar         { height: 4px; }
.items-swipe-row::-webkit-scrollbar-track   { background: transparent; }
.items-swipe-row::-webkit-scrollbar-thumb   { background: #cbd5e1; border-radius: 4px; }

/* 各商品カード */
.item-swipe-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--ma-white);
    border: 1px solid var(--ma-border);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.item-swipe-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.item-swipe-img {
    width: 200px;
    height: 160px;
    overflow: hidden;
    background: var(--ma-light2);
    flex-shrink: 0;
}
.item-swipe-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.item-swipe-card:hover .item-swipe-img img { transform: scale(1.04); }

.item-swipe-name {
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    padding: 10px 12px 4px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.item-swipe-price {
    font-size: 13px;
    font-weight: 700;
    color: #e53e3e;
    padding: 4px 12px 12px;
}

/* =============================================
   Recommend / Products（おすすめ商品）
   ============================================= */
.recommend_area {
    background: var(--ma-white);
    padding: 72px 24px 0;
    text-align: center;
}
.top_featured {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ma-blue);
    padding-top: 10px;
    margin-bottom: 16px;
}
.top_featured::before {
    content: '';
    display: block;
    width: 32px;
    height: 3px;
    background: var(--ma-blue);
    margin: 0 auto 8px;
}
.top_recommend {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0;
}

/* =============================================
   Reviews Section（お客様の声）
   ============================================= */
.section-reviews {
    background: var(--ma-light2);
    padding: 80px 24px;
    text-align: center;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: left;
}
.review-card {
    background: var(--ma-white);
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.review-stars { color: var(--ma-amber); font-size: 16px; margin-bottom: 14px; letter-spacing: 2px; }
.review-text {
    font-size: 14px;
    color: var(--ma-text);
    line-height: 1.8;
    margin-bottom: 20px;
    position: relative;
}
.review-text::before {
    content: '\201C';
    font-size: 48px;
    color: var(--ma-border);
    font-family: Georgia, serif;
    line-height: 1;
    display: block;
    margin-bottom: -8px;
}
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ma-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--ma-white);
    flex-shrink: 0;
}
.review-avatar--b { background: #0891b2; }
.review-avatar--c { background: #7c3aed; }
.review-name { font-size: 13px; font-weight: 700; color: #0f172a; }
.review-role { font-size: 12px; color: #94a3b8; }

/* =============================================
   News Section（新着情報）
   ============================================= */
.section-news {
    background: #243b68;
    padding: 80px 24px;
    text-align: center;
}
/* --light 修飾子は .ma-front の詳細度(0,2,0)に負けるため、
   ニュースセクション内で直接上書きする */
.section-news .section-h2,
.section-news .section-h2--light { color: #ffffff; }
.section-news .section-sub,
.section-news .section-sub--light { color: rgba(255,255,255,0.80); }

/* ページ内の他のダーク背景セクションで使う汎用 --light 系 */
.section-h2--light  { color: var(--ma-white); }
.section-sub--light { color: rgba(255,255,255,0.82); }

.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 40px;
    margin-bottom: 40px;
    text-align: left;
}
.news-item {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    text-decoration: none;
    transition: opacity 0.2s;
}
.news-item:hover { opacity: 0.80; }
.news-item:hover .news-title { color: var(--ma-cyan); }

.news-date {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}
.news-title {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.6;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-more-wrap { text-align: center; }
.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.50);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 11px 28px;
    border-radius: 6px;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-more:hover {
    border-color: var(--ma-cyan);
    color: var(--ma-cyan);
}

/* =============================================
   How To Use（ご購入からご利用まで）
   ============================================= */
.section-howto {
    background: var(--ma-white);
    padding: 80px 24px;
    text-align: center;
}
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    text-align: center;
}
.steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(12.5% + 28px);
    right: calc(12.5% + 28px);
    height: 2px;
    background: repeating-linear-gradient(to right, var(--ma-border) 0, var(--ma-border) 8px, transparent 8px, transparent 16px);
}
.step { position: relative; }
.step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ma-orange);
    color: var(--ma-white);
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 4px 14px rgba(249,115,22,0.35);
    position: relative;
    z-index: 1;
}
.step-title { font-size: 15px; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.step-desc  { font-size: 13px; color: var(--ma-muted); line-height: 1.7; }

/* =============================================
   About Section（マニュアルについて）
   ============================================= */
.hp-about-section {
    background: var(--ma-light);
    padding: 80px 24px;
}
.hp-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.hp-section-header {
    text-align: center;
    margin-bottom: 56px;
}
.hp-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ma-blue);
    padding-top: 10px;
    margin-bottom: 16px;
}
.hp-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 3px;
    background: var(--ma-blue);
    margin: 0 auto 8px;
}
.hp-section-title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    color: #0f172a;
}
.hp-subsection-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--ma-blue);
    border-left: 3px solid var(--ma-blue);
    padding-left: 12px;
    margin: 48px 0 24px;
}

/* マニュアルの特徴 */
.hp-features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.hp-feature-item {
    background: var(--ma-white);
    border-radius: 12px;
    padding: 24px 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.hp-feature-num {
    flex-shrink: 0;
    font-size: 28px;
    font-weight: 800;
    color: #dde6f0;
    line-height: 1;
    min-width: 40px;
}
.hp-feature-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}
.hp-feature-desc {
    font-size: 13px;
    color: var(--ma-muted);
    line-height: 1.75;
}

/* マニュアルの活用方法 */
.hp-usage-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.hp-usage-step {
    background: var(--ma-white);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.hp-usage-step-num {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--ma-orange);
    margin-bottom: 10px;
}
.hp-usage-icon {
    display: block;
    font-size: 28px;
    margin-bottom: 12px;
}
.hp-usage-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}
.hp-usage-desc {
    font-size: 12px;
    color: var(--ma-muted);
    line-height: 1.7;
}

/* 運営会社 */
.hp-company-block {
    background: var(--ma-white);
    border-radius: 12px;
    padding: 36px 40px;
    display: flex;
    gap: 48px;
    align-items: flex-start;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.hp-company-logo-area {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}
.hp-company-logo-mark {
    width: 72px;
    height: 72px;
    background: var(--ma-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    color: var(--ma-cyan);
    line-height: 1.2;
    text-align: center;
}
.hp-company-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--ma-text);
    text-align: center;
    line-height: 1.6;
}
.hp-company-table-wrap { flex: 1; }
.hp-company-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.hp-company-table tr {
    border-bottom: 1px solid var(--ma-border);
}
.hp-company-table th {
    padding: 12px 16px 12px 0;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    vertical-align: top;
    width: 120px;
}
.hp-company-table td {
    padding: 12px 0;
    color: #1e293b;
    line-height: 1.7;
}
.hp-company-table td a {
    color: var(--ma-blue);
    text-decoration: underline;
}

/* =============================================
   Full-width sections（親テーマの 1000px 制約を解除）
   ============================================= */

/*
 * 親テーマ header.php が <div id="main" class="wrapper one-column"> を
 * width:1000px で出力するため、その中のセクションが全幅にならない。
 * トップページ（.home）のみ wrapper を 100% 幅に広げ、
 * 各セクション自身が背景を画面幅いっぱいに広げられるようにする。
 */
.home #main.wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/*
 * front-page.php 内の <div id="primary"> に余分なパディングがある場合も解除
 */
.home #primary.site-content {
    padding: 0;
    margin: 0;
}

/*
 * ma-front 直下のセクションが全幅になるように
 * （念のため main.site-main 自体も幅制限を解除）
 */
.home main.site-main {
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* 子要素のはみ出しを防止 */
}

/* =============================================
   Blog / Single Post — 読みやすさ改善
   ============================================= */

/*
 * フォント: Noto Sans JP を全ページに適用
 * （front-page は .ma-front で既に適用済みのため、
 *   ブログ・固定ページ等のために body レベルで指定）
 */
body {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
                 "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
}

/* ---- 記事タイトル（h1.entry-title） ---- */
.single .entry-title,
.single-post .entry-title {
    font-size: clamp(22px, 3.5vw, 30px);
    font-weight: 700;
    color: #1a2e4a;
    line-height: 1.55;
    letter-spacing: 0.01em;
    margin-bottom: 0.6em;
}

/* ---- 記事メタ情報（日付・カテゴリ） ---- */
.single .entry-meta,
.single-post .entry-meta {
    font-size: 13px;
    color: var(--ma-muted);
    margin-bottom: 2em;
}
.single .entry-meta a,
.single-post .entry-meta a {
    color: var(--ma-blue);
}

/* ---- 記事本文エリア ---- */
.single .entry-content,
.single-post .entry-content {
    font-size: 16.5px;
    line-height: 2.0;
    color: #2d3748;
}

/* 本文段落 */
.single .entry-content p,
.single-post .entry-content p {
    margin-bottom: 1.7em;
    line-height: 2.0;
}

/* ---- h2 見出し ---- */
.single .entry-content h2,
.single-post .entry-content h2 {
    font-size: 1.35em;
    font-weight: 700;
    color: #1a2e4a;
    border-bottom: none;
    border-left: 4px solid var(--ma-blue);
    background: #f0f4f9;
    padding: 10px 16px;
    margin: 2.5em 0 1.1em;
    line-height: 1.55;
    letter-spacing: 0.01em;
}

/* ---- h3 見出し ---- */
.single .entry-content h3,
.single-post .entry-content h3 {
    font-size: 1.15em;
    font-weight: 700;
    color: #1e3a5f;
    border-bottom: 1px solid #c7d8ee;
    border-left: none;
    padding: 0 0 6px 0;
    margin: 2.2em 0 0.9em;
    line-height: 1.55;
}

/* ---- h4 見出し ---- */
.single .entry-content h4,
.single-post .entry-content h4 {
    font-size: 1.05em;
    font-weight: 700;
    color: #334155;
    margin: 1.8em 0 0.7em;
    padding-left: 10px;
    border-left: 3px solid #94a3b8;
    line-height: 1.6;
}

/* ---- リスト ---- */
.single .entry-content ul li,
.single-post .entry-content ul li,
.single .entry-content ol li,
.single-post .entry-content ol li {
    line-height: 1.95;
    margin-bottom: 0.45em;
}

/* ---- テーブル ---- */
.single .entry-content table,
.single-post .entry-content table {
    border-color: #c7d8ee;
    font-size: 0.95em;
}
.single .entry-content th,
.single-post .entry-content th {
    background-color: #e8f0f8;
    color: #1a2e4a;
    border-color: #c7d8ee;
}
.single .entry-content td,
.single-post .entry-content td {
    border-color: #c7d8ee;
}

/* ---- blockquote ---- */
.single .entry-content blockquote,
.single-post .entry-content blockquote {
    border-left: 4px solid #c7d8ee;
    background: #f8fafc;
    padding: 14px 20px;
    margin: 1.8em 0;
    color: var(--ma-muted);
    font-size: 0.95em;
    line-height: 1.9;
}

/* ---- リンク ---- */
.itemname a,
.entry-content a {
    color: var(--ma-blue);
}
.single .entry-content a,
.single-post .entry-content a {
    color: var(--ma-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.single .entry-content a:hover,
.single-post .entry-content a:hover {
    color: #1d4ed8;
}

/* ---- ブログ記事一覧（blog アーカイブ）---- */
.blog #content article {
    padding: 28px 0;
}
.blog .entry-title a {
    color: #1a2e4a;
    font-weight: 700;
    font-size: 1.1em;
    line-height: 1.6;
    text-decoration: none;
}
.blog .entry-title a:hover {
    color: var(--ma-blue);
}
.blog .entry-meta {
    font-size: 13px;
    color: var(--ma-muted);
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
    .cards-4,
    .role-cards,
    .steps,
    .front-il {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps::before { display: none; }
    .hp-usage-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-inner { flex-direction: column; }
    .hero-cards { flex: unset; width: 100%; }
    .reviews-grid { grid-template-columns: 1fr; }
    .hp-features-list { grid-template-columns: 1fr; }
    .hp-company-block { flex-direction: column; gap: 24px; padding: 24px; }
    .bundle-card-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .bundle-pricing {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .news-list { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 620px) {
    .cards-4,
    .role-cards,
    .steps,
    .front-il,
    .hp-usage-steps {
        grid-template-columns: 1fr;
    }
    .hero h2 { font-size: 26px; }
    .recommend_area,
    .front-il { padding-left: 16px; padding-right: 16px; }
    .bundle-badges { padding: 12px 20px; }
    .bundle-badge-pct { font-size: 18px; }
    .bundle-card-inner { padding: 20px; }
    .bundle-cta-row { padding: 14px 20px 18px; }
    .bundle-price-after-value { font-size: 24px; }

    /* Bundle v2 - スマホ */
    .bundle-cards-grid { grid-template-columns: 1fr; }
    .bundle-card-v2-name { font-size: 14px; }

    /* Carousel - スマホ */
    .item-swipe-card { flex: 0 0 160px; }
    .item-swipe-img  { width: 160px; height: 130px; }
    .items-role-title { font-size: 15px; }

    /* Blog - スマホ */
    .single .entry-content,
    .single-post .entry-content {
        font-size: 15.5px;
    }
    .single .entry-title,
    .single-post .entry-title {
        font-size: 20px;
    }
}
