/*
 * きかくマルシェ トップ(新)のスタイル。トップ(新)のページだけで読み込む。
 * 方針: 橙が中心(約8割)、薄い紫は、端の差し色(約2割)。明るさを優先。文字は大きめ。JavaScriptなし。
 * 外側の枠: .kc-front(トップ(新)の、いちばん外のグループ)。
 */
.kc-front {
  --kc-orange: #ffa24f;
  --kc-orange-2: #ffb766;
  --kc-peach: #ffb48a;
  --kc-violet: #e3d8fb;
  --kc-violet-deep: #6a4fc4;
  --kc-ink: #2c1d3f;
  --kc-text: #2a2132;
  --kc-muted: #6c6275;
  --kc-line: #e6dfe9;
  --kc-bg-soft: #fff6ec;
  --kc-grad: linear-gradient(110deg, #ffa24f 0%, #ffb766 56%, #ffb48a 78%, #e3d8fb 100%);
  --kc-grad-soft: linear-gradient(110deg, rgba(255,162,79,.24) 0%, rgba(255,183,102,.20) 76%, rgba(201,184,247,.30) 100%);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--kc-text);
}
.kc-front *, .kc-front *::before, .kc-front *::after { box-sizing: border-box; }
.kc-front a { color: var(--kc-ink); text-decoration: none; }
.kc-front a:hover { text-decoration: underline; }
.kc-front h1, .kc-front h2, .kc-front h3, .kc-front p { margin: 0; }
.kc-front img { max-width: 100%; height: auto; display: block; }

/* 区切り(セクション) */
.kc-sec { padding: 40px 20px; max-width: 1280px; margin-inline: auto; }
.kc-sec--tint { max-width: none; background: var(--kc-bg-soft); }
.kc-sec--tint > .kc-inner { max-width: 1280px; margin-inline: auto; }
.kc-sec__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 20px; }
.kc-sec h2 { font-size: 26px; font-weight: 800; line-height: 1.4; color: var(--kc-ink); }
.kc-sec__sub { color: var(--kc-muted); font-size: 15px; margin-top: 2px; }
.kc-more { color: var(--kc-violet-deep) !important; font-weight: 700; font-size: 16px; }

/* ログイン中のあいさつ */
.kc-welcome { background: var(--kc-bg-soft); border-bottom: 1px solid var(--kc-line); padding: 14px 20px; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.kc-welcome b { font-size: 18px; }
.kc-welcome__links { display: flex; gap: 8px; flex-wrap: wrap; }
.kc-welcome__links a { background: #fff; border: 1px solid var(--kc-line); border-radius: 8px; padding: 6px 14px; font-weight: 700; font-size: 15px; }

/* ヒーロー */
.kc-hero { background: var(--kc-grad); color: var(--kc-ink); padding: 56px 20px 48px; }
.kc-hero > .kc-inner { max-width: 1280px; margin-inline: auto; }
.kc-hero__eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.kc-hero h1 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 900; line-height: 1.4; margin-top: 8px; line-break: strict; text-wrap: balance; }
.kc-hero__lead { margin-top: 14px; max-width: 48ch; font-size: 18px; font-weight: 500; }
.kc-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.kc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 10px; font-weight: 700; font-size: 16px; background: var(--kc-ink); color: #fff !important; text-decoration: none !important; }
.kc-btn--light { background: #fff; color: var(--kc-ink) !important; }
.kc-btn--ghost { background: rgba(255,255,255,.35); border: 2px solid var(--kc-ink); color: var(--kc-ink) !important; }
.kc-btn:focus-visible, .kc-front a:focus-visible { outline: 3px solid var(--kc-violet-deep); outline-offset: 2px; }

/* 商品カード */
.kc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 20px; }
.kc-card { display: grid; align-content: start; gap: 8px; min-width: 0; }
.kc-card__media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 10px; background: #f6f3f8; }
.kc-card__img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.kc-badge { position: absolute; top: 8px; left: 8px; background: #c93a00; color: #fff; font-size: 12px; font-weight: 700; padding: 0 10px; border-radius: 4px; line-height: 1.8; }
.kc-badge + .kc-badge { top: 34px; }
.kc-badge--sale { background: #c93a00; }
.kc-badge--outlet { background: var(--kc-violet-deep); }
.kc-badge--pr { left: auto; right: 8px; background: var(--kc-ink); }
.kc-card__name { font-weight: 700; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kc-card__meta { color: var(--kc-muted); font-size: 13px; }
.kc-card__price { font-weight: 800; font-size: 17px; }
.kc-card__price del { color: var(--kc-muted); font-weight: 400; font-size: 14px; }
.kc-card__price ins { text-decoration: none; }
.kc-card--pr .kc-card__media { background: var(--kc-grad-soft); }
.kc-empty { color: var(--kc-muted); }

/* カテゴリの入口 */
.kc-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kc-tile { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1px solid var(--kc-line); border-radius: 12px; padding: 24px 20px; font-weight: 800; font-size: 20px; background: #fff; min-width: 0; }
.kc-tile small { color: var(--kc-muted); font-weight: 400; font-size: 16px; }
.kc-tile:hover { border-color: var(--kc-orange); text-decoration: none !important; }
.kc-chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; font-size: 17px; }
.kc-chips b { color: var(--kc-muted); margin-right: 4px; }
.kc-chips a { border: 1px solid var(--kc-line); border-radius: 99px; padding: 5px 18px; background: #fff; }

/* アウトレット特設 */
.kc-outlet { border-radius: 16px; background: var(--kc-grad-soft); padding: 24px; }
.kc-outlet .kc-sec__head { margin-bottom: 16px; }

/* 広告(PR) */
.kc-sec--ad { padding-block: 0; }
.kc-sec--ad .kc-ads { margin-block: 28px; }
.kc-ads { position: relative; border: 2px dashed var(--kc-violet-deep); border-radius: 12px; padding: 16px 0 14px 14px; }
.kc-ads__pr { position: absolute; top: -12px; right: 14px; background: var(--kc-ink); color: #fff; font-size: 12px; font-weight: 700; padding: 0 10px; border-radius: 4px; line-height: 1.8; }
.kc-ads__row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-right: 14px; padding-bottom: 6px; }
.kc-ads__row a { flex: 0 0 min(80%, 480px); scroll-snap-align: start; display: block; }
.kc-ads__row img { width: 100%; height: auto; border-radius: 8px; }
.kc-ads--logo .kc-ads__row a { flex-basis: 150px; }

/* 2つの入口 */
.kc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.kc-big { border-radius: 14px; padding: 26px; display: grid; gap: 10px; align-content: start; }
.kc-big--a { background: var(--kc-bg-soft); border: 1px solid var(--kc-line); }
.kc-big--b { background: var(--kc-grad); color: var(--kc-ink); }
.kc-big h3 { font-size: 22px; font-weight: 800; }
.kc-big .kc-btn { justify-self: start; }

/* ニュース・お知らせ */
.kc-news, .kc-list { display: grid; }
.kc-news__row, .kc-list__row { display: grid; grid-template-columns: 4.5em 1fr auto; gap: 4px 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--kc-line); }
.kc-list__row { grid-template-columns: 4.5em 1fr; font-size: 18px; line-height: 1.6; }
.kc-news time, .kc-list time { color: var(--kc-muted); font-size: 15px; }
.kc-news__title { font-weight: 700; font-size: 17px; line-height: 1.55; }
.kc-news__src { color: var(--kc-muted); font-size: 13px; white-space: nowrap; }
.kc-news__row:hover .kc-news__title, .kc-list__row:hover span { text-decoration: underline; }

/* 使い方・声 */
.kc-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kc-step { border: 1px solid var(--kc-line); border-radius: 12px; padding: 20px; display: grid; gap: 4px; background: #fff; }
.kc-step { gap: 8px; }
.kc-step b { font-size: 20px; }
.kc-step__no { color: var(--kc-violet-deep); font-weight: 800; font-size: 13px; letter-spacing: .1em; }
.kc-step__link { color: var(--kc-violet-deep) !important; font-weight: 700; }
.kc-voices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kc-voice { margin: 0; border-left: 5px solid var(--kc-violet); padding: 6px 16px; font-size: 16px; }
.kc-voice cite { display: block; color: var(--kc-muted); font-size: 14px; font-style: normal; margin-top: 4px; }

/* 最後の会員登録 */
.kc-final { background: var(--kc-ink); color: #fff; text-align: center; padding: 48px 20px; display: grid; gap: 16px; justify-items: center; }
.kc-final h2 { color: #fff; font-size: 26px; font-weight: 800; }
.kc-final a { color: #fff; text-decoration: underline; }
.kc-final .kc-btn { background: var(--kc-grad); color: var(--kc-ink) !important; text-decoration: none; }

/* 狭い画面(スマホ) */
@media (max-width: 782px) {
  .kc-sec { padding: 32px 16px; }
  .kc-hero { padding: 36px 16px 32px; }
  .kc-hero__lead { font-size: 16px; }
  .kc-grid, .kc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .kc-two, .kc-steps, .kc-voices { grid-template-columns: 1fr; }
  .kc-news__row { grid-template-columns: 1fr; }
  .kc-list__row { grid-template-columns: 1fr; }
  .kc-sec h2 { font-size: 22px; }
  .kc-outlet { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .kc-front * { scroll-behavior: auto !important; } }

/* 2回目の見直し(10/14): 横いっぱいに使う。文字の大きさの整理。 */
.kc-sec, .kc-sec--tint > .kc-inner, .kc-hero > .kc-inner { max-width: 1520px; }
.kc-sec { padding-inline: clamp(16px, 3vw, 48px); }
.kc-front .kc-tile { padding: 26px 22px; }
.kc-front .kc-tile span { font-size: 20px; font-weight: 800; line-height: 1.4; }
.kc-front .kc-tile small { font-size: 14px; }
.kc-front .kc-chips { font-size: 17px; gap: 12px; }
.kc-front .kc-chips b { font-size: 17px; }
.kc-front .kc-chips a { font-size: 17px; padding: 6px 20px; font-weight: 700; }
.kc-front .kc-list__row { font-size: 16px; padding: 18px 0; grid-template-columns: 5em 1fr; }
.kc-front .kc-list__row span { font-size: 16px; font-weight: 700; }
.kc-front .kc-list time { font-size: 14px; }
@media (max-width: 782px) { .kc-front .kc-tile span { font-size: 17px; } .kc-front .kc-chips, .kc-front .kc-chips a, .kc-front .kc-chips b { font-size: 17px; } .kc-front .kc-list__row, .kc-front .kc-list__row span { font-size: 16px; } }

/* カテゴリのタイル: 写真の枠つき(10/14) */
.kc-front .kc-tile { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; padding: 0; overflow: hidden; align-content: start; gap: 0; }
.kc-front .kc-tile__media { display: block; aspect-ratio: 4 / 3; background: var(--kc-grad-soft); overflow: hidden; }
.kc-front .kc-tile__img { width: 100%; height: 100%; object-fit: cover; }
.kc-front .kc-tile__body { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px; }
.kc-front .kc-tile .kc-tile__name { font-size: 18px; font-weight: 800; line-height: 1.4; }
@media (max-width: 782px) { .kc-front .kc-tile .kc-tile__name { font-size: 16px; } .kc-front .kc-tile__body { padding: 10px 12px; } }
.kc-front .kc-hero__lead { font-size: 16px; }

/* カテゴリのタイル: 写真は正方形、全体が見えるように収める(上下・左右に帯)。 */
.kc-front .kc-tile__media { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: #f6f3f8; }
.kc-front .kc-tile__img { width: 100%; height: 100%; max-width: 100%; object-fit: contain; object-position: center; margin: 0 auto; }
.kc-front .kc-tile__media--none { background: var(--kc-grad-soft); }
/* 使い方のアイコン */
.kc-step__icon { width: 56px; height: 56px; border-radius: 14px; background: var(--kc-grad); display: grid; place-items: center; color: var(--kc-ink); margin-bottom: 4px; }
.kc-step__icon svg { width: 30px; height: 30px; }

.kc-front--inline { margin: 8px 0 24px; clear: both; }
/* カテゴリ・商品ページの広告は、小さめ(横300px、横にスクロール) */
.kc-front--inline { margin: 28px 0; }
.kc-front--inline .kc-ads__row a { flex: 0 0 300px; max-width: 80%; }
@media (max-width: 782px) { .kc-front--inline .kc-ads__row a { flex: 0 0 calc(50% - 14px); max-width: none; } }

/* 文字の調整(10/14 その3)と、ニュース・お知らせのアイキャッチ */
.kc-front .kc-tile .kc-tile__name { font-size: 16px; }
.kc-front .kc-chips, .kc-front .kc-chips b, .kc-front .kc-chips a { font-size: 15px; }
.kc-front .kc-news__title { font-size: 15px; }
.kc-front .kc-list__row, .kc-front .kc-list__row span { font-size: 15px; }
.kc-front .kc-list time, .kc-front .kc-news time { font-size: 13px; }
.kc-front .kc-has-thumb { grid-template-columns: 120px 4.5em 1fr auto; align-items: center; }
.kc-front .kc-list__row.kc-has-thumb { grid-template-columns: 120px 4.5em 1fr; }
.kc-front .kc-row__thumb { display: block; width: 120px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: #f6f3f8; }
.kc-front .kc-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 782px) {
  .kc-front .kc-tile .kc-tile__name { font-size: 15px; }
  .kc-front .kc-has-thumb, .kc-front .kc-list__row.kc-has-thumb { grid-template-columns: 96px 1fr; }
  .kc-front .kc-row__thumb { width: 96px; grid-row: span 3; }
  .kc-front .kc-chips, .kc-front .kc-chips b, .kc-front .kc-chips a { font-size: 15px; }
}

/* ニュースの画像は、横長(16:9)。画像がないときの標準の枠は、橙のグラデーション。 */
.kc-front .kc-news__row.kc-has-thumb { grid-template-columns: 176px 4.5em 1fr auto; }
.kc-front .kc-news__row .kc-row__thumb { width: 176px; aspect-ratio: 16 / 9; }
.kc-front .kc-row__thumb--blank { display: grid; place-items: center; background: var(--kc-grad); color: var(--kc-ink); font-weight: 800; font-size: 13px; letter-spacing: .08em; }
@media (max-width: 782px) {
  .kc-front .kc-news__row.kc-has-thumb { grid-template-columns: 112px 1fr; }
  .kc-front .kc-news__row .kc-row__thumb { width: 112px; }
}

/* 出品について(sell-new)の部品: 表・チェックリスト・よくある質問・注記 */
.kc-front .kc-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--kc-line); border-radius: 12px; overflow: hidden; align-self: start; }
.kc-front .kc-table th, .kc-front .kc-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--kc-line); font-size: 16px; line-height: 1.7; }
.kc-front .kc-table tr:last-child th, .kc-front .kc-table tr:last-child td { border-bottom: 0; }
.kc-front .kc-table th { width: 9em; background: var(--kc-bg-soft); font-weight: 800; }
.kc-front .kc-list-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kc-front .kc-list-check li { position: relative; padding-left: 1.6em; line-height: 1.7; font-size: 16px; }
.kc-front .kc-list-check li::before { content: "✓"; position: absolute; left: 0; font-weight: 900; color: var(--kc-violet-deep); }
.kc-front .kc-note { margin-top: 14px; font-size: 15px; color: var(--kc-muted); }
.kc-front .kc-faq { display: grid; gap: 10px; max-width: 960px; }
.kc-front .kc-faq details { border: 1px solid var(--kc-line); border-radius: 12px; background: #fff; padding: 0 18px; }
.kc-front .kc-faq summary { cursor: pointer; padding: 16px 0; font-weight: 800; font-size: 17px; }
.kc-front .kc-faq details[open] summary { border-bottom: 1px solid var(--kc-line); margin-bottom: 12px; }
.kc-front .kc-faq details p { padding-bottom: 16px; line-height: 1.8; font-size: 16px; }
@media (max-width: 782px) { .kc-front .kc-table th { width: 7em; } .kc-front .kc-table th, .kc-front .kc-table td { padding: 12px; font-size: 15px; } }

/* 会員のあいさつの帯・先頭の帯(ヒーロー)の左右の位置を、ほかのセクションとそろえる */
.kc-front .kc-welcome, .kc-front .kc-hero { padding-inline: max(clamp(16px, 3vw, 48px), calc((100% - 1520px) / 2 + clamp(16px, 3vw, 48px))); }
.kc-front .kc-hero > .kc-inner { max-width: none; margin-inline: 0; }

/* 先頭の帯(グラデーション)の背景を、ほかのセクションの文字の幅にそろえる(画面いっぱいに広げない) */
.kc-front .kc-hero { margin: 24px max(clamp(16px, 3vw, 48px), calc((100% - 1520px) / 2 + clamp(16px, 3vw, 48px))) 0; padding: 48px clamp(20px, 3vw, 48px) 44px; border-radius: 18px; }
@media (max-width: 782px) { .kc-front .kc-hero { margin-top: 14px; padding: 30px 18px 28px; border-radius: 14px; } }

/* ヒーロー: 横長の画像(文字入り)+ボタン */
.kc-front .kc-hero--img { padding: 0; overflow: hidden; background: linear-gradient(110deg, #fdeef3 0%, #fff7d6 100%); }
.kc-front .kc-hero--img .kc-hero__img { display: block; width: 100%; height: auto; margin: 0; }
.kc-front .kc-hero--img .kc-cta { margin: 0; padding: 16px clamp(16px, 3vw, 40px) 20px; }
@media (max-width: 782px) { .kc-front .kc-hero--img { padding: 0; } .kc-front .kc-hero--img .kc-cta { padding: 12px 14px 16px; } }

/* 特長(3列×2段)と、使い方のくわしい流れ */
.kc-feats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kc-feats .kc-step span:last-child { font-size: 16px; line-height: 1.7; }
.kc-how { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.kc-how__col { border: 1px solid var(--kc-line); border-radius: 12px; padding: 20px 22px; background: var(--kc-bg-soft); }
.kc-how__col h3 { font-size: 20px; font-weight: 800; margin: 0 0 10px; }
.kc-how ol { list-style: none; counter-reset: kc-how; margin: 0; padding: 0; display: grid; gap: 12px; }
.kc-how li { counter-increment: kc-how; position: relative; padding-left: 40px; display: grid; gap: 2px; }
.kc-how li::before { content: counter(kc-how); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--kc-grad); display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--kc-ink); }
.kc-how li b { font-size: 17px; }
.kc-how li span { font-size: 15px; line-height: 1.7; color: var(--kc-ink); }
@media (max-width: 782px) { .kc-feats, .kc-how { grid-template-columns: 1fr; } }
