/*
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: var(--ma-dark);
    padding: 80px 24px 90px;
    position: relative;
    overflow: hidden;
}
.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;
}
.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 h1 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.3;
    color: var(--ma-white);
    margin-bottom: 8px;
}
.hero h1 .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: var(--ma-dark2);
    padding: 80px 24px;
    text-align: center;
}
.section-role .section-h2 { color: var(--ma-white); }
.section-role .section-sub { color: #64748b; }

.role-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: left;
}
.role-card {
    background: var(--ma-dark3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 28px 22px;
    transition: background 0.2s, transform 0.2s;
}
.role-card:hover { background: #1a2f4a; 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: #64748b; 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; }

/* =============================================
   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;
}

.front-il {
    background: var(--ma-white);
    padding: 40px 24px 80px;
    max-width: 1148px;  /* 1100 + 24*2 */
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.front-il article {
    background: var(--ma-white);
    border: 1px solid var(--ma-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}
.front-il article:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.12); transform: translateY(-3px); }

.front-il .itemimg {
    position: relative;
    overflow: hidden;
    padding-bottom: 100%; /* 1:1 aspect ratio */
    height: 0;
    background: #f0f4f8;
}
.front-il .itemimg a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.front-il .itemimg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.front-il article:hover .itemimg img { transform: scale(1.03); }

.front-il .itemname {
    padding: 14px 16px 0;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.5;
}
.front-il .itemname a { color: inherit; }
.front-il .itemname a:hover { color: var(--ma-blue); }

.front-il .itemprice {
    padding: 6px 16px 4px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ma-blue);
}
.front-il .itemsoldout {
    padding: 0 16px 14px;
}

/* =============================================
   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; }

/* =============================================
   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; /* 子要素のはみ出しを防止 */
}

/* =============================================
   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; }
}

@media (max-width: 620px) {
    .cards-4,
    .role-cards,
    .steps,
    .front-il,
    .hp-usage-steps {
        grid-template-columns: 1fr;
    }
    .hero h1 { font-size: 26px; }
    .recommend_area,
    .front-il { padding-left: 16px; padding-right: 16px; }
}
