/* top_v2.css - 2026リニューアル（トップ本文）。top_content.css の後に読み込んで上書きする */
:root {
    --tv-navy: #24508f;
    --tv-navy-d: #1b3f73;
    --tv-navy-l: #eef3fa;
    --tv-orange: #e8743b;
    --tv-orange-d: #d2612a;
    --tv-cream: #fbf6f0;
    --tv-text: #2b3240;
    --tv-sub: #5f6b7c;
    --tv-line: #e7ebf1;
    /* 見出しは角ゴシックの太字（以前は丸ゴシック。services.php と揃えた） */
    --tv-round: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

.top-container { margin: 18px auto 0; padding: 0 24px 28px; color: var(--tv-text); }

/* ===== ヒーロースライド（文字入り画像 2400×800 をそのまま表示） ===== */
.tv-hero-slider { position: relative; margin-bottom: 30px; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 1; }
.tv-hero-track { position: absolute; inset: 0; }
.tv-hero {
    position: absolute; inset: 0; display: block;
    opacity: 0; visibility: hidden;
    transition: opacity .8s ease, visibility .8s;
}
/* 前のスライドは不透明のまま下に残し、新しいスライドだけをフェードイン（二重写しにしない） */
.tv-hero.leaving { opacity: 1; visibility: visible; z-index: 1; transition: none; }
.tv-hero.active { opacity: 1; visibility: visible; z-index: 2; }
.tv-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tv-hero-arrow {
    position: absolute; top: 50%; z-index: 3;
    width: 40px; height: 40px; margin-top: -20px;
    border: none; border-radius: 50%;
    background: rgba(255,255,255,0.85); color: var(--tv-navy);
    font-size: 15px; cursor: pointer;
    box-shadow: 0 2px 10px rgba(30,50,90,0.15);
    opacity: 0; transition: opacity .2s, background .15s;
}
.tv-hero-arrow.prev { left: 14px; }
.tv-hero-arrow.next { right: 14px; }
.tv-hero-slider:hover .tv-hero-arrow { opacity: 1; }
.tv-hero-arrow:hover { background: #fff; }
.tv-hero-dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3; display: flex; justify-content: center; gap: 7px; }
.tv-hero-dot { width: 9px; height: 9px; padding: 0; border: none; border-radius: 5px; background: rgba(255,255,255,0.7); box-shadow: 0 0 0 1px rgba(36,80,143,0.25); cursor: pointer; transition: width .25s, background .25s; }
.tv-hero-dot.active { width: 24px; background: var(--tv-orange); box-shadow: none; }
.tv-hero-slider.single .tv-hero-arrow, .tv-hero-slider.single .tv-hero-dots { display: none; }

/* ===== セクション見出し ===== */
.tv-sec-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 0 18px;
    font-family: var(--tv-round);
    font-size: 23px;
    font-weight: 900;
    color: var(--tv-text);
    text-align: center;
    letter-spacing: .04em;
}
.tv-sec-title .num { font-size: 32px; color: var(--tv-orange); margin-right: 1px; }
.tv-sec-title::before,
.tv-sec-title::after {
    content: "";
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background: no-repeat center / contain url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0b43c' stroke-width='2.6' stroke-linecap='round'%3e%3cpath d='M5 4l3 6M12 2v7M19 4l-3 6'/%3e%3c/svg%3e");
}
.tv-sec-title::after { transform: scaleX(-1); }

/* ===== 3つのサービス ===== */
.tv-services { margin-bottom: 30px; }
.tv-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tv-service {
    position: relative;
    display: flex;
    min-height: 150px;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: var(--tv-text);
    border: 1px solid var(--tv-line);
    transition: box-shadow .2s, transform .2s;
}
.tv-service:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(30,50,90,0.12); }
.tv-service-body { position: relative; z-index: 1; width: 60%; padding: 20px 0 20px 22px; }
.tv-service-name { margin: 0 0 8px; font-family: var(--tv-round); font-size: 21px; font-weight: 900; letter-spacing: .03em; }
.tv-service-desc { margin: 0 0 10px; font-size: 13px; font-weight: 700; line-height: 1.6; color: #3c4656; }
.tv-service-note { margin: 0; font-size: 11.5px; line-height: 1.6; color: var(--tv-sub); }
.tv-service-img {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    /* 画像は左側が余白の構図なので、枠を広めに取って右端に合わせる（被写体が文字の近くに来るように） */
    width: 64%;
    background-size: cover;
    background-position: right center;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%);
    mask-image: linear-gradient(to right, transparent 0%, #000 22%);
}
.tv-service-arrow {
    position: absolute;
    right: 14px; bottom: 14px; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-size: 16px; font-weight: 700;
    transition: transform .2s;
}
.tv-service:hover .tv-service-arrow { transform: translateX(3px); }
.tv-service.oem { background: linear-gradient(120deg, #fdf5ee 0%, #f8e9dc 100%); }
.tv-service.oem .tv-service-name, .tv-service.oem .tv-service-arrow { color: var(--tv-orange); }
.tv-service.oem .tv-service-img { background-image: url("img/top/opt/service_oem-900.jpg"); }
.tv-service.rakuichi { background: linear-gradient(120deg, #f2f7fd 0%, #e2ecf9 100%); }
.tv-service.rakuichi .tv-service-name, .tv-service.rakuichi .tv-service-arrow { color: var(--tv-navy); }
.tv-service.rakuichi .tv-service-img { background-image: url("img/top/opt/service_rakuichi-900.jpg"); }
.tv-service.ailabo { background: linear-gradient(120deg, #eff9f6 0%, #dcf1ea 100%); }
.tv-service.ailabo .tv-service-name, .tv-service.ailabo .tv-service-arrow { color: #1d8572; }
.tv-service.ailabo .tv-service-img { background-image: url("img/top/opt/service_ailabo-900.jpg"); }

/* ===== 輸入楽市が選ばれる4つの強み ===== */
.tv-strength {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    padding: 18px 20px;
    background: #f5f8fc;
    border-radius: 14px;
}
.tv-strength-title {
    flex-shrink: 0;
    margin: 0;
    padding: 0 4px 0 10px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.45;
    color: var(--tv-navy-d);
    white-space: nowrap;
}
.tv-strength-title .num { font-size: 34px; font-weight: 900; color: var(--tv-navy); line-height: 1; margin-right: 1px; }
.tv-strength-grid { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tv-strength-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 12px;
    background: #fff;
    border: 1px solid var(--tv-line);
    border-radius: 12px;
}
.tv-strength-icon {
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px;
    border-radius: 50%;
}
.tv-strength-icon.blue { background: #e6eefa; color: var(--tv-navy); }
.tv-strength-icon.yellow { background: #fdf1d8; }
.tv-strength-icon.green { background: #e2f4e8; color: #2f9a55; }
.tv-strength-item > div strong { display: block; margin-bottom: 4px; font-size: 13.5px; font-weight: 800; color: var(--tv-text); white-space: nowrap; }
.tv-strength-item > div span { display: block; font-size: 11.5px; line-height: 1.6; color: var(--tv-sub); white-space: nowrap; }

/* ===== 既存：専用商品ボタン ===== */
.exclusive-link-btn { border-color: var(--tv-navy); border-radius: 999px; }
.exclusive-link-btn.primary { background: var(--tv-navy); }
.exclusive-link-btn.primary:hover { background: var(--tv-navy-d); border-color: var(--tv-navy-d); box-shadow: 0 4px 12px rgba(36,80,143,0.22); }
.exclusive-link-btn.secondary { color: var(--tv-navy); }
.exclusive-link-btn.secondary:hover { background: var(--tv-navy-l); }

/* ===== 1688の人気商品を探す ===== */
.tv-products { scroll-margin-top: 20px; }
.tv-products-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 14px; }
.tv-products-head h2 {
    display: flex; align-items: center; gap: 10px;
    margin: 0;
    font-family: var(--tv-round);
    font-size: 23px; font-weight: 900; color: var(--tv-text);
}
.tv-products-head h2 svg { color: var(--tv-navy); }
.tv-products-head .sub { font-size: 13px; color: var(--tv-sub); }
.tv-more { margin-left: auto; font-size: 13.5px; font-weight: 700; color: var(--tv-navy); text-decoration: none; white-space: nowrap; }
.tv-more:hover { text-decoration: underline; }
.tv-products-box {
    padding: 18px 22px 8px;
    background: #fff;
    border: 1px solid var(--tv-line);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(30,50,90,0.05);
}
.tv-products-box .category-section { margin-bottom: 14px; }
.tv-products-box .category-section.tv-hidden { display: none; }
.tv-products-box .category-title { display: none; }
.tv-products-box .sub-tabs { margin-top: 0; }
/* 横スライドをやめてグリッドで全件表示 */
.tv-products-box .tab-content { min-height: 300px; background: transparent; border-radius: 0; box-shadow: none; overflow: visible; transition: none; }
/* 既存CSSはカルーセルを絶対配置で重ねているため、グリッドでは通常配置にして表示中のタブだけ出す */
.tv-products-box .carousel-container { position: static; display: none; opacity: 1; visibility: visible; pointer-events: auto; transition: none; overflow: visible; }
.tv-products-box .carousel-container.active { display: block; }
.tv-products-box .carousel-wrapper { overflow: visible; }
.tv-products-box .carousel-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; padding: 4px 0 12px; }
.tv-products-box .carousel-btn { display: none !important; }
.tv-products-box .product-card { flex: none; width: auto; cursor: pointer; }
.tv-products-box .product-card img, .tv-products-box .no-image { height: auto; aspect-ratio: 1 / 1; }
.tv-group-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--tv-line); }
.tv-gtab {
    padding: 8px 20px;
    border: 1px solid #dfe4ec;
    border-radius: 999px;
    background: #f5f7fa;
    color: #3c4656;
    font-size: 13.5px; font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.tv-gtab:hover { background: #fff; border-color: var(--tv-navy); color: var(--tv-navy); }
.tv-gtab.active { background: var(--tv-navy); border-color: var(--tv-navy); color: #fff; }

.category-title .ct-en { font-size: 20px; color: var(--tv-text); letter-spacing: .1em; }
.category-title::after { background: var(--tv-orange); }
.tab-btn.active { color: var(--tv-navy); }
.tab-btn.active::after { background: var(--tv-navy); }
.tab-btn.active::before { border-top-color: var(--tv-navy); }
.tab-btn:hover:not(.active) { color: var(--tv-navy); }
.tab-content { background: #f7f9fc; border-radius: 12px; }
.carousel-container { box-shadow: none; border-radius: 12px; }
.product-card { border-radius: 10px; border: 1px solid #edf0f4; box-shadow: 0 1px 4px rgba(30,50,90,0.06); }
.product-card:hover { box-shadow: 0 8px 18px rgba(30,50,90,0.12); }
.price { color: #d9412b; }

/* ===== レスポンシブ ===== */
@media (max-width: 1200px) {
    .tv-service-body { width: 64%; }
    .tv-service-name { font-size: 19px; }
}
@media (max-width: 1100px) {
    .tv-strength { flex-direction: column; align-items: stretch; }
    .tv-strength-title { padding: 0; text-align: center; }
    .tv-strength-title br { display: none; }
    .tv-strength-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .tv-service-grid { grid-template-columns: 1fr; }
    .tv-service-body { width: 60%; }
}
@media (max-width: 768px) {
    .top-container { padding-left: 10px; padding-right: 10px; }
    /* スマホは縦型画像（4:5）を画面の端から端まで表示。
       左右：body の余白 8px ＋ .top-container の余白 10px を打ち消す。
       上：固定ヘッダー分の余白（mobile_top_content.css の padding-top:54px）のうち、ヘッダーとの隙間 32px を詰める */
    .tv-hero-slider { border-radius: 0; margin: -32px -18px 22px; aspect-ratio: 4 / 5; }
    .tv-hero-arrow { display: none; }
    .tv-hero-dots { bottom: 6px; gap: 5px; }
    .tv-hero-dot { width: 6px; height: 6px; }
    .tv-hero-dot.active { width: 16px; }
    .tv-products-box { padding: 12px 10px 4px; }
    .tv-sec-title { font-size: 17px; gap: 8px; }
    .tv-sec-title .num { font-size: 24px; }
    /* サービスカード：幅が狭いので写真を細めにして説明文と重ならないように */
    .tv-service-img { width: 46%; }
    .tv-service-body { width: 64%; padding: 18px 0 18px 18px; }
    .tv-service-desc, .tv-service-note { text-shadow: 0 0 4px rgba(255,255,255,.9); }
    .tv-strength { padding: 14px 10px; }
    .tv-strength-grid { gap: 8px; }
    .tv-strength-item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
    .tv-strength-item > div strong { white-space: normal; }
    .tv-strength-item > div span { white-space: normal; }
    .tv-strength-item > div span br { display: none; }
    .tv-products-box .carousel-track { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .tv-products-head h2 { font-size: 19px; }
    .tv-more { margin-left: 0; }
    .tv-group-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
    .tv-gtab { flex-shrink: 0; padding: 7px 16px; }
}


/* ===== 2026-10 仕上げ：見出し・会員登録・タブ・最後のご案内 ===== */
/* 見出し：左寄せ＋英字ラベル（「1688の人気商品を探す」と揃える） */
.tv-sec-title { justify-content: flex-start; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; font-size: 22px; letter-spacing: .01em; }
.tv-sec-title::before, .tv-sec-title::after { display: none; }
.tv-sec-title small { font-size: 12px; font-weight: 700; letter-spacing: .3em; color: var(--tv-orange); }
.tv-sec-title .num { font-size: 1.3em; }
.tv-products-head h2 { font-size: 22px; }

/* 会員登録のご案内（未ログインのみ） */
.tv-register {
    display: flex; align-items: center; justify-content: space-between; gap: 28px;
    margin: 6px 0 30px; padding: 26px 32px;
    background: linear-gradient(120deg, #fdf6ef 0%, #eef3fa 100%);
    border: 1px solid var(--tv-line); border-radius: 16px;
}
.tv-register { padding: 18px 32px 18px 18px; }
.tv-register-img { display: block; flex-shrink: 0; width: 210px; }
.tv-register-img img { display: block; width: 100%; height: 140px; object-fit: cover; border-radius: 12px; }
.tv-register-text { flex: 0 1 auto; min-width: 0; }
/* 写真・文字・ボタンをひとまとまりにして中央へ（以前は文字の欄が横いっぱいに広がり、ボタンとの間に大きな空白ができていた） */
@media (min-width: 769px) {
    .tv-register { justify-content: center; gap: 44px; }
    .tv-register h2 { font-size: 24px; }
    .tv-register li { font-size: 14px; }
}
.tv-register-label { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .3em; color: var(--tv-orange); }
.tv-register h2 { margin: 0 0 10px; font-size: 22px; font-weight: 900; color: var(--tv-navy-d); }
.tv-register h2 span { color: var(--tv-orange); }
.tv-register ul { margin: 0; padding: 0; list-style: none; }
.tv-register li { position: relative; padding-left: 22px; font-size: 13.5px; color: var(--tv-sub); line-height: 1.9; }
.tv-register li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--tv-navy) url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 12 4 4 8-8'/%3e%3c/svg%3e") center/9px no-repeat; }
.tv-register-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; }
.tv-register-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 34px; border-radius: 999px; background: var(--tv-orange); color: #fff; font-size: 15px; font-weight: 800; text-decoration: none; box-shadow: 0 6px 16px rgba(232,116,59,.28); transition: background .15s, transform .15s; }
.tv-register-btn:hover { background: var(--tv-orange-d); transform: translateY(-1px); }
.tv-register-login { font-size: 13px; color: var(--tv-navy); text-decoration: underline; }

/* 人気商品のカテゴリタブ：1行に収める（入りきらない幅では横スクロール） */
.tv-group-tabs { flex-wrap: nowrap; overflow-x: auto; gap: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tv-group-tabs::-webkit-scrollbar { display: none; }
.tv-gtab { flex-shrink: 0; padding: 7px 15px; font-size: 13px; white-space: nowrap; }

/* 最後のご案内 */
.tv-closing {
    display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
    margin: 36px 0 8px; padding: 30px 36px; border-radius: 16px; background: var(--tv-navy-d); color: #fff;
}
.tv-closing h2 { margin: 0 0 8px; font-size: 21px; font-weight: 900; line-height: 1.55; }
.tv-closing p { margin: 0; font-size: 13.5px; color: rgba(255,255,255,.75); }
.tv-closing-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.tv-closing-btn { display: inline-flex; align-items: center; padding: 13px 28px; border-radius: 999px; font-size: 14.5px; font-weight: 800; text-decoration: none; white-space: nowrap; transition: background .15s; }
.tv-closing-btn.primary { background: var(--tv-orange); color: #fff; }
.tv-closing-btn.primary:hover { background: var(--tv-orange-d); }
.tv-closing-btn.line { border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.tv-closing-btn.line:hover { background: rgba(255,255,255,.1); }

@media (max-width: 768px) {
    .tv-sec-title { font-size: 18px; }
    .tv-register { flex-direction: column; align-items: stretch; padding: 14px 14px 20px; gap: 16px; }
    .tv-register-img { width: 100%; }
    .tv-register-img img { height: 170px; }
    .tv-register h2 { font-size: 18px; }
    .tv-register-btn { justify-content: center; }
    .tv-closing { padding: 22px 18px; }
    .tv-closing h2 { font-size: 17px; }
    .tv-closing-btns { width: 100%; flex-direction: column; }
    .tv-closing-btn { justify-content: center; }
}

/* ===== 会員登録のご案内：背景写真型（2026-10 作り直し）===== */
.tv-register { position: relative; overflow: hidden; justify-content: flex-start !important; align-items: center; gap: 0 !important; min-height: 230px; padding: 30px 40px !important; background: #f6f3ee; }
.tv-register-bg { position: absolute; inset: 0; z-index: 0; }
.tv-register-bg img { width: 100%; height: 100%; object-fit: cover; object-position: right center; display: block; }
/* 文字側を読みやすくする白いかすみ（左から） */
.tv-register::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(253,250,246,.96) 0%, rgba(253,250,246,.86) 38%, rgba(253,250,246,0) 62%); pointer-events: none; }
.tv-register-text, .tv-register-cta { position: relative; z-index: 1; }
.tv-register-text { flex: 0 0 auto !important; width: 100%; max-width: 580px; }
.tv-register-cta { flex-direction: row; align-items: center; gap: 18px; margin-top: 18px; }
.tv-register-inner { position: relative; z-index: 1; }
@media (min-width: 769px) {
    .tv-register { flex-direction: column; align-items: flex-start !important; justify-content: center !important; }
}
@media (max-width: 768px) {
    /* スマホ：写真は上部に帯状（人物の顔が文字に重ならないよう、写真の右側＝人物を見せる） */
    .tv-register { min-height: 0; padding: 172px 18px 22px !important; background: #fdfaf6; }
    .tv-register-bg { bottom: auto; height: 160px; }
    .tv-register-bg img { object-position: 92% 30%; }
    .tv-register::after { display: none; }
    .tv-register-cta { flex-direction: column; align-items: stretch; margin-top: 14px; }
}

/* 会員登録：中央の空白を埋める（文字欄を広げ、ボタンを大きく、特長を追加） */
.tv-register-text { max-width: 720px !important; }
@media (min-width: 1600px) { .tv-register-text { max-width: 860px !important; } .tv-register-row { gap: 48px; } .tv-register-feats span { font-size: 13.5px; padding: 7px 16px; } }
.tv-register-row { display: flex; align-items: center; gap: 28px; }
.tv-register-row ul { flex: 1; min-width: 0; }
.tv-register-row .tv-register-cta { margin-top: 0 !important; flex-direction: column !important; gap: 8px !important; flex-shrink: 0; }
.tv-register-btn { padding: 17px 44px !important; font-size: 17px !important; }
.tv-register-feats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tv-register-feats span { display: inline-flex; align-items: center; gap: 2px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.85); border: 1px solid #e3e8ef; font-size: 12.5px; color: #4a5568; }
.tv-register-feats b { color: #1b3f73; }
.tv-register h2 { font-size: 26px !important; margin-bottom: 14px !important; }
@media (max-width: 1100px) { .tv-register-row { flex-direction: column; align-items: flex-start; gap: 14px; } }
@media (max-width: 768px) {
  .tv-register-row .tv-register-cta { width: 100%; }
  .tv-register-row { align-items: stretch; }
  .tv-register-row .tv-register-cta { align-items: stretch !important; box-sizing: border-box; }
  .tv-register-btn { box-sizing: border-box; justify-content: center; width: 100%; padding: 14px 20px !important; font-size: 16px !important; }
  .tv-register-login { text-align: center; }
  .tv-register h2 { font-size: 19px !important; }
  .tv-register-feats span { font-size: 11.5px; padding: 5px 10px; }
}
