@charset "euc-jp";

/* CSS Document */
/* ===== Layout ===== */
#toc ul {
    position: fixed;
    box-sizing: border-box;
    display: block;
    margin: 0 20px 0 0;
    line-height: 1.6;
    max-width: 260px;
    top: 50%;
    transform: translateY(-50%);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
}

/* ===== Utility Bar ===== */
.utility-bar {
    background-color: #1A2B4A;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 40px;
}

.utility-bar ul {
    display: flex;
    gap: 24px;
}

.utility-bar a {
    color: #CCDDEE;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s;
}

.utility-bar a:hover {
    color: var(--ms-white);
}

article.one-click-shop {
    overflow: hidden;
    margin: 0 auto 0;
    /* padding: 100px 0 0 0; */
}

article .breadcrumb-wrap {
    display: flex;
    gap: 15px;
    width: 1200px;
    margin: 0 auto 30px;
}

@media (max-width: 720px) {

    article .breadcrumb-wrap {
        font-size: clamp(12px, 1.5vw, 16px);
        width: 100%;
    }

    a[class*="btn"] {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* ===== Hero Section ===== */
.hero {
    background: var(--complementary-color-blue-10);
    padding: 124px 0 0;
    overflow: hidden;
    position: relative;
    min-height: 560px;
    width: 100%;
}

.hero .container {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    position: relative;
    z-index: 1;
    width: 1200px;
}

.hero-content {
    flex: 0 0 50%;
    max-width: 520px;
    padding-bottom: 64px;
    padding-top: 16px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 24px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #C8D8EE;
    border-radius: 100px;
    font-size: 13px;
    color: var(--basic-main-color);
    font-weight: 500;
    margin-bottom: 28px;
}

.hero-title {
    font-size: 50px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--basic-main-color);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--ms-text-sub);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: var(--basic-color-red);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
    white-space: nowrap;
}

.btn-hero-primary:hover {
    background-color: var(--basic-color-red);
    transform: translateY(-1px);
    color: #ffffff;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background-color: #1A1A2E;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.1s;
    white-space: nowrap;
}

.btn-hero-secondary:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    color: #ffffff;
}

/* ============================================================
   Hero セクション 入場アニメーション
   対象: .hero-mockup-wrapper（wrapper全体＋img）/ テキスト各要素
   ============================================================ */

/* transition:all との競合を遮断 */
.hero-mockup-wrapper,
.hero-mockup-wrapper img,
.hero-badge,
.hero-title,
.hero-description,
.hero-actions {
    transition: none !important;
}


/* ── キーフレーム ──────────────────────────────────────────── */

/*
 * hero-popup
 * wrapper DIV 全体に適用。
 * scale(0.72) から始まりバウンスしながら等倍に落ち着く
 * ポップアップ感を演出する。
 */
@keyframes hero-popup {
    from {
        opacity: 0;
        transform: scale(0.72) translateY(32px);
    }

    60% {
        opacity: 1;
        transform: scale(1.04) translateY(-8px);
    }

    80% {
        transform: scale(0.98) translateY(3px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/*
 * hero-rise
 * wrapper アニメ完了後に img 単体へ適用。
 * 上下の細かいスプリングで「画像が生き生きと着地する」感を追加。
 */
@keyframes hero-rise {
    from {
        opacity: 0;
        transform: translateY(32px) scale(0.96);
    }

    60% {
        opacity: 1;
        transform: translateY(-6px) scale(1.01);
    }

    80% {
        transform: translateY(3px) scale(0.995);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/*
 * content-fade-up
 * テキスト要素（badge / title / description / actions）共通。
 * 下から上へフェードインするシンプルな演出。
 */
@keyframes content-fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ── 初期状態（アニメ開始前の非表示状態） ──────────────────── */

.hero-mockup-wrapper {
    opacity: 0;
    transform: scale(0.72) translateY(32px);
    transform-origin: center center;
    will-change: transform, opacity;
}

.hero-mockup-wrapper img {
    opacity: 0;
    transform-origin: center center;
    will-change: transform, opacity;
}

.hero-badge,
.hero-title,
.hero-description,
.hero-actions {
    opacity: 0;
}


/* ── アニメーション ─────────────────────────────────────────── */

/*
 * wrapper: 0.3s 遅延でポップアップ開始 (duration: 0.9s)
 * `both` により開始前は from 状態を維持する。
 */
.hero-mockup-wrapper {
    animation: hero-popup 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

/*
 * img: wrapper アニメが概ね完了する 0.9s 付近から開始 (duration: 1.1s)
 * wrapper と img を時間差で動かすことで奥行き感を生む。
 */
.hero-mockup-wrapper img {
    animation: hero-rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

/* テキスト要素 ? 上から順に 0.15s ずつずらして流れる */
.hero-badge,
.hero-title,
.hero-description,
.hero-actions {
    animation: content-fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-badge {
    animation-delay: 0.05s;
}

.hero-title {
    animation-delay: 0.20s;
}

.hero-description {
    animation-delay: 0.35s;
}

.hero-actions {
    animation-delay: 0.50s;
}


/* ── アクセシビリティ: 動き軽減設定への配慮 ─────────────────── */
@media (prefers-reduced-motion: reduce) {

    .hero-mockup-wrapper,
    .hero-mockup-wrapper img,
    .hero-badge,
    .hero-title,
    .hero-description,
    .hero-actions {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ---- Grid ---- */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    overflow: hidden;
}

/* ---- Card ---- */
.problem-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 20px;
    background: var(--complementary-color-blue-5);
    border-radius: 8px;
}

/* ---- Icon box ---- */
.card-icon {
    width: 200px;
    height: 160px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ---- Text ---- */
.card-text h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--basic-main-color);
    line-height: 1.55;
    margin-bottom: 8px;
}

.card-text p {
    font-size: 16px;
    line-height: 1.65;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .problem-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .problem-card {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ---- Layout ---- */
.tab-layout {
    display: flex;
    gap: 24px;
    width: 1150px;
    margin: 40px auto 0;
}

/* ---- Tab list (desktop: vertical column) ---- */
.tab-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 360px;
    flex-shrink: 0;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 14px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color .15s, background .15s;
    width: 100%;
}

.tab-btn:hover {
    background: #f7f7f7;
    border-color: #ccc;
}

.tab-btn.active {
    border: 2px solid var(--basic-main-color);
    box-shadow: 0px 0px 26px 0px #dedede;
    border-radius: 16px;
}

.tab-icon {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    background: var(--complementary-color-blue-10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.tab-btn.active .tab-icon {
    background: #D0E8FF;
}

.tab-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--basic-main-color);
    line-height: 1.3;
}

.tab-sub {
    font-size: 14px;
    color: var(--complementary-color-grey-80);
    line-height: 1.3;
    margin-top: 2px;
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    border-bottom: 1px solid #dce4ee;
    padding: 0 16px;
    background: #f8fafc;
}


.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}

.browser-url {
    margin-left: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

/* ---- Panel ---- */
.panel-wrap {
    flex: 1;
    min-width: 0;
    box-shadow: 0px 0px 26px 0px #dedede;
    border-radius: 16px;
}

.panel {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    background: #fff;
    overflow: hidden;
    display: none;
}

.panel.active {
    display: block;
}

.panel-placeholder {
    position: relative;
    min-height: 310px;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: #fff;
    background: #111827;
}


.panel-placeholder img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-copy {
    position: relative;
    z-index: 1;
    padding: 28px;
}

.panel-placeholder::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.22));
}

.panel-body {
    padding: 24px;
}

.panel-tag {
    font-size: 14px;
    margin-bottom: 4px;
}

.panel-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 14px;
}

.panel-inner {
    display: flex;
    gap: 32px;
}

.feat-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feat-item {
    display: flex;
    gap: 8px;
}

.feat-check {
    display: inline-grid;
}

.feat-name {
    font-size: 16px;
    margin-bottom: 12px;
    line-height: 1;
}

.feat-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.panel-side {
    width: 320px;
    flex-shrink: 0;
    background: var(--complementary-color-blue-5);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.panel-side p {
    font-size: 18px;
    line-height: 1.6;
    text-align: left;
}

.panel-cta {
    display: block;
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background .15s;
}

.panel-cta:hover {
    background: #333;
}

.panel-cta a,
.panel-cta a:hover {
    color: #ffffff !important;
}

/* ---- Responsive: tablet (?720px) ---- */
@media (max-width: 720px) {
    .tab-list {
        width: 180px;
    }

    .tab-sub {
        display: none;
    }

    .panel-side {
        width: 130px;
    }
}

/* ---- Responsive: mobile (?560px) ---- */
@media (max-width: 560px) {

    .wrapper {
        padding: 16px 12px;
    }

    .hero {
        padding: 100px 24px 32px;
    }

    .hero .container {
        width: auto;
        flex-direction: column;
    }

    .hero-content {
        padding-bottom: 16px;
    }


    .hero-title {
        font-size: 36px;
    }

    .hero-actions {
        justify-content: center;
    }

    .card-icon {
        width: 100%;
    }

    .tab-layout {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .tab-label {
        font-size: 13px;
    }

    /* horizontal scrollable tab row */
    .tab-list {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 4px;
        scrollbar-width: none;
        justify-content: space-between;
    }

    .tab-list::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 10px 0;
        flex-shrink: 0;
        text-align: center;
        width: 26%;
        border-radius: 8px;
    }

    .tab-btn.active {
        border: 2px solid var(--basic-main-color);
        box-shadow: 0px 0px 26px 0px #dedede;
        border-radius: 8px;
    }

    .tab-icon {
        width: 54px;
        height: 54px;
        font-size: 16px;
    }

    .tab-sub {
        display: none;
    }

    .feat-name {
        font-size: 14px;
    }

    .feat-desc {
        font-size: 12px;
    }

    .feat-check {
        width: 24px;
    }

    /* panel inner: stack vertically */
    .panel-inner {
        flex-direction: column;
    }

    .panel-side {
        width: 100%;
        flex-direction: column;
        text-align: left;
        gap: 12px;
        padding: 16px;
    }

    .panel-side p {
        flex: 1;
        margin: 0;
        font-size: 14px;
    }

    .panel-cta {
        width: 100%;
        white-space: nowrap;
        flex-shrink: 0;
        text-align: center;
    }

    .panel-cta a {
        text-decoration: none;
    }

    .panel-placeholder {
        height: 130px;
        font-size: 44px;
    }

    .panel-title {
        font-size: 15px;
    }
}

/*==========Section==========*/
.demo-section {
    padding: 80px 0 100px;
    background: #f8fafc;
}

.demo-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.demo-heading {
    text-align: center;
    font-size: 1.9rem;
    font-weight: 700;
    color: #1a2a3a;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.demo-note {
    text-align: center;
    color: #888;
    font-size: 0.82rem;
    margin-bottom: 52px;
}

/* ========== Tab layout ========== */
.demo-tab-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    justify-content: center;
    width: 1150px;
}

/* ========== Tab list (left) ========== */
.demo-tab-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-shrink: 0;
    width: 360px;
}

.demo-tab-btn {
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: border-color 0.18s, box-shadow 0.18s;
    outline: none;
}

.demo-tab-btn:hover {
    border-color: #2389ca;
}

.demo-tab-btn.active {
    border: 2px solid var(--basic-main-color);
    box-shadow: 0px 0px 26px 0px #dedede;
    border-radius: 16px;
}

.demo-tab-icon {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    background: var(--complementary-color-blue-10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.demo-tab-icon svg {
    display: block;
}

.demo-tab-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--basic-main-color);
    line-height: 1.3;
}

.demo-tab-sub {
    font-size: 14px;
    color: var(--complementary-color-grey-80);
    line-height: 1.3;
    margin-top: 8px;
    position: relative;
    margin-left: 20px;
}

.demo-tab-sub::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--basic-color-red);
    border-radius: 50%;
}

.demo-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ========== Panel wrap (right) ========== */
.demo-panel-wrap {
    flex: 1;
    min-width: 0;
}

.demo-panel {
    display: none;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    box-shadow: 0px 0px 26px 0px #dedede;
    border-radius: 10px;
}

.demo-panel.active {
    display: block;
}

/* Browser bar */
.demo-browser-bar {
    background: #f0f4f8;
    padding: 12px 20px;
    border-bottom: 1px solid #dce4ee;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 16px;
}

.demo-browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}


/* Panel body */

.demo-panel-inner {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}



/* ========== Responsive ========== */
@media (max-width: 860px) {
    .demo-tab-layout {
        flex-direction: column;
        width: 100%;
    }

    .demo-tab-list {
        width: 100%;
        gap: 10px;
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 4px;
        scrollbar-width: none;
        justify-content: space-between;
    }

    .demo-tab-btn {
        flex: 1;
        min-width: 200px;
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .demo-tab-sub {
        font-size: 12px;
        color: var(--complementary-color-grey-80);
        line-height: 1.5;
        margin-top: 8px;
        position: relative;
        margin-left: 14px;
    }

    .demo-tab-sub::before {
        left: -11px;
    }

    .demo-panel-inner {
        flex-direction: column;
    }

    .demo-panel-side {
        width: 100%;
    }

    .demo-inner {
        padding: 0 20px;
    }

    .demo-tab-label {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .demo-heading {
        font-size: 1.4rem;
    }

    .demo-panel-body {
        padding: 0;
    }

    .demo-table--products .demo-table-header,
    .demo-table--products .demo-table-row {
        grid-template-columns: 22px 44px 1fr 50px;
    }
}

/* Steps grid */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.step {
    background: var(--complementary-color-blue-5);
    border-radius: 8px;
    padding: 24px 20px 28px;
    position: relative;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.step:hover {
    box-shadow: 0 4px 20px rgba(43, 108, 176, 0.12);
    transform: translateY(-2px);
}

.step__number {
    font-size: 28px;
    color: var(--basic-main-color);
    margin-bottom: 16px;
    font-variant-numeric: tabular-nums;
    position: absolute;
    top: 10px;
    left: 10px;
}

/* Illustration placeholder */
.step__illustration {
    width: 100%;
    background: #ffffff;
    border-radius: 6px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
}

.step__illustration svg {
    opacity: 0.35;
}

.step__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--basic-main-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.step__desc {
    font-size: 14px;
}

/* Connector arrow between steps (desktop only) */
.steps .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -14px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-top: 2px solid var(--complementary-color-grey-50);
    border-right: 2px solid var(--complementary-color-grey-50);
    rotate: 45deg;
    z-index: 1;
}

/* ???? Responsive ???? */

/* 2-column on tablet */
@media (max-width: 900px) {
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .step:not(:last-child)::after {
        display: none;
    }

    /* Add down arrows for 1st and 3rd cards */
    .step:nth-child(1)::after,
    .step:nth-child(3)::after {
        display: block;
        top: auto;
        bottom: -14px;
        right: 50%;
        transform: translateX(50%) rotate(135deg);
    }

    /* 2nd card gets right arrow within its row */
    .step:nth-child(2)::after {
        display: none;
    }
}

/* 1-column on mobile */
@media (max-width: 560px) {
    .section {
        padding: 36px 20px 48px;
    }

    .section__title {
        font-size: 1.25rem;
    }

    .steps {
        gap: 16px;
    }

    .step {
        display: block;
        column-gap: 16px;
        padding: 12px;
    }

    .step__number {
        margin-bottom: 0;
        align-self: start;
        padding-top: 2px;
        font-size: 20px;
        top: 4px;
    }

    .step__illustration {
        display: block;
        padding: 16px;
    }

    .step__title {
        margin-bottom: 6px;
        font-size: 14px;
    }

    .step__desc {
        grid-column: 2;
        grid-row: 2;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .step__desc {
        font-size: 12px;
        line-height: 1.8;
    }
}

.footer-cta {
    background-color: var(--basic-middle-blue);
    width: 100%;
    padding: 80px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 320px;
}

.footer-cta__inner {
    text-align: center;
    max-width: 640px;
}

.footer-cta__title {
    color: #ffffff;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.4;
    margin-bottom: 24px;
}

.footer-cta__description {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 40px;
    opacity: 0.95;
}

.footer-cta__cta {
    display: inline-block;
    background-color: var(--basic-color-red);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 16px 40px;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.footer-cta__cta:hover {
    background-color: var(--basic-color-red-hover);
    transform: translateY(-1px);
}

.footer-cta__cta:active {
    transform: translateY(0);
}