/*
Theme Name: Fashion Media MVP
Description: Japanese fashion-media prototype theme for coordinate and product posts.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: fashion-media-theme
*/

:root {
    --fm-ink: #1A1A1A;
    --fm-paper: #F5F5F0;
    --fm-accent: #E4007F;
    --fm-muted: #808080;
    --fm-line: #deded8;
    --fm-white: #fff;
    --fm-width: 1180px;
    --fm-font-body: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --fm-font-heading: "Noto Serif JP", "Yu Mincho", serif;
    --fm-font-label: "Jost", "Noto Sans JP", sans-serif;
    --fm-font-logo: "Cormorant Garamond", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--fm-ink);
    background: var(--fm-white);
    font-family: var(--fm-font-body);
    font-size: 16px;
    line-height: 1.75;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--fm-accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 3px solid var(--fm-accent);
    outline-offset: 3px;
}
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
/* 見出しは明朝、英字のラベル・メニュー・ブランド名は Jost */
h1, h2, h3 { font-family: var(--fm-font-heading); font-weight: 600; }
.fm-container { width: min(calc(100% - 2.5rem), var(--fm-width)); margin-inline: auto; }
.fm-skip-link {
    position: absolute;
    z-index: 100;
    left: .75rem;
    top: .75rem;
    padding: .65rem 1rem;
    transform: translateY(-160%);
    color: var(--fm-white);
    background: var(--fm-ink);
}
.fm-skip-link:focus { transform: translateY(0); color: var(--fm-white); }
.fm-site-header { background: var(--fm-white); }
.fm-header-inner { padding-block: 1.6rem 1.1rem; }
.fm-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.fm-brand-row { justify-content: center; text-align: center; }
.fm-site-brand { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.fm-site-title { margin: 0; font-family: var(--fm-font-logo); font-size: clamp(3.25rem, 6vw, 4rem); font-style: italic; font-weight: 600; line-height: 1; }
.fm-site-title a { text-decoration: none; }
.fm-site-title a:hover { color: inherit; }
.fm-site-description { margin: .55rem 0 0; color: var(--fm-muted); font-size: .75rem; letter-spacing: .08em; }
.custom-logo { width: auto; max-height: 72px; }
.fm-nav-bar { position: sticky; top: 0; z-index: 50; border-top: 1px solid var(--fm-line); border-bottom: 1px solid var(--fm-line); background: var(--fm-white); }
.admin-bar .fm-nav-bar { top: 32px; }
.fm-nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .45rem 2.2rem;
    margin: 0;
    padding: .8rem 0;
    list-style: none;
}
.fm-nav__list a { display: inline-block; padding: .15rem 0; font-family: var(--fm-font-label); font-size: .82rem; font-weight: 500; letter-spacing: .16em; text-decoration: none; text-transform: uppercase; }
.fm-nav__list a.is-current { color: var(--fm-accent); }
/* 英字の下に日本語を小さく添える */
.fm-nav--archive .fm-nav__list a { display: flex; flex-direction: column; align-items: center; line-height: 1.3; }
.fm-nav__jp { color: var(--fm-muted); font-family: var(--fm-font-body); font-size: .62rem; font-weight: 400; letter-spacing: .08em; }
.fm-nav__en + .fm-nav__jp { margin-top: .1rem; }
.fm-nav__list a.is-current .fm-nav__jp, .fm-nav__list a:hover .fm-nav__jp { color: var(--fm-accent); }
.fm-nav--custom .fm-nav__list { padding-top: 0; }
html { scroll-padding-top: 4rem; }
.fm-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .2rem .45rem; margin: 0; padding: .75rem 0 0; list-style: none; color: var(--fm-muted); font-size: .78rem; line-height: 1.5; }
.fm-breadcrumbs li { min-width: 0; }
.fm-breadcrumbs li + li::before { content: ">"; margin-right: .45rem; color: var(--fm-line); }
.fm-breadcrumbs a { color: var(--fm-muted); text-decoration: none; }
.fm-breadcrumbs a:hover { color: var(--fm-accent); text-decoration: underline; }
.fm-home, .fm-archive, .fm-single, .fm-page, .fm-index { padding-block: clamp(2rem, 5vw, 4.5rem); }
.fm-archive, .fm-single, .fm-page, .fm-index { padding-top: clamp(1.25rem, 3vw, 2.5rem); }
/* トップ：PC は「今日のコーデ」を幅いっぱいにし、その下を「季節｜新着・シーン」の2列にする */
.fm-home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: auto auto 1fr; grid-template-areas: "hero hero" "seasons new" "seasons scenes"; gap: 0 clamp(2rem, 4.5vw, 3.5rem); }
.fm-home-grid > * { min-width: 0; }
/* トップの最初の 2 行（誰のための何のサイトか） */
.fm-home-lead { margin: 0 0 clamp(1.75rem, 4vw, 2.5rem); padding: 0 0 clamp(1.25rem, 3vw, 1.75rem); border-bottom: 1px solid var(--fm-line); text-align: center; }
.fm-home-lead__main { margin: 0; font-family: var(--fm-font-heading); font-size: clamp(1.05rem, 2.4vw, 1.35rem); font-weight: 600; line-height: 1.7; letter-spacing: .04em; word-break: auto-phrase; text-wrap: balance; }
.fm-home-lead__sub { margin: .5rem 0 0; color: var(--fm-muted); font-size: .82rem; line-height: 1.8; word-break: auto-phrase; text-wrap: balance; }
.fm-hero { grid-area: hero; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.fm-home-new { grid-area: new; }
.fm-home-seasons { grid-area: seasons; }
.fm-home-scenes { grid-area: scenes; align-self: start; }
.fm-eyebrow { margin: 0 0 .35rem; color: var(--fm-accent); font-family: var(--fm-font-label); font-size: .75rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
.fm-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.fm-section-heading h1, .fm-section-heading h2 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.4rem); line-height: 1.3; }
.fm-section-heading h1 { font-size: clamp(1.6rem, 3vw, 1.9rem); }
.fm-section-heading > a { flex: 0 0 auto; font-size: .9rem; }
.fm-more-link, .fm-section-heading > .fm-more-link { font-family: var(--fm-font-label); font-size: .75rem; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.fm-hero-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); overflow: hidden; background: var(--fm-paper); }
.fm-hero-card__media { height: 520px; background: #f1f0ea; }
.fm-hero-card__media a, .fm-card__media a { display: block; width: 100%; height: 100%; }
/* 全身コーデが切れないよう、画像全体を収める */
.fm-hero-card__media img { width: 100%; height: 100%; object-fit: contain; }
.fm-image-placeholder { display: grid; min-height: 220px; place-items: center; color: #666; background: #e9e9e3; font-size: .9rem; }
.fm-hero-card__body { align-self: center; padding: clamp(1.4rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 3rem); }
.fm-hero-card__body h2 { margin: .25rem 0 .6rem; font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.5; }
.fm-hero-card__body h2 a { text-decoration: none; }
.fm-card-date { color: var(--fm-muted); font-size: .82rem; }
.fm-pr { display: inline-block; margin-left: .5rem; padding: 0 .4rem; border: 1px solid var(--fm-muted); border-radius: 3px; color: var(--fm-muted); font-size: .65rem; font-weight: 600; letter-spacing: .05em; line-height: 1.5; vertical-align: .1em; }
/* 固定ページの本文で、広い画面と狭い画面で出すものを分ける（例：プライバシーポリシーの表を、スマホでは箇条書きにする） */
.fm-only-narrow { display: none; }
@media (max-width: 620px) {
    .fm-only-wide { display: none; }
    .fm-only-narrow { display: block; }
}
/* 「PR」はタップで広告ポリシーへ。リンクでも見た目は変えず、下線だけ付けない */
a.fm-pr { text-decoration: none; }
a.fm-pr:hover, a.fm-pr:focus-visible { border-color: var(--fm-ink); color: var(--fm-ink); }
.fm-hero-card__excerpt { margin: .8rem 0 0; color: #4d4d4d; }
/* トップの「今日のコーデ」のカルーセル：横に 1 枚ずつ送る。指で横に送れて、絵の端の矢印と下の短い線でも動かせる */
.fm-hero-carousel__viewport { position: relative; }
.fm-hero-carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.fm-hero-carousel__track::-webkit-scrollbar { display: none; }
.fm-hero-carousel__slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.fm-hero-carousel__arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 2.4rem; height: 3.4rem; padding: 0 0 .25rem; border: 0; background: rgba(255, 255, 255, .82); color: var(--fm-ink); font-family: var(--fm-font-heading); font-size: 1.9rem; line-height: 1; cursor: pointer; transform: translateY(-50%); transition: background .2s; }
.fm-hero-carousel__arrow[hidden] { display: none; }
.fm-hero-carousel__arrow:hover, .fm-hero-carousel__arrow:focus-visible { background: var(--fm-white); }
.fm-hero-carousel__arrow--prev { left: 0; }
.fm-hero-carousel__arrow--next { right: 0; }
.fm-hero-carousel__nav { display: flex; justify-content: center; gap: .35rem; margin-top: .9rem; }
.fm-hero-carousel__nav[hidden] { display: none; }
/* 短い線は細く見せ、押せる範囲は上下に広くとる */
.fm-hero-carousel__dot { position: relative; width: 1.9rem; height: 1.25rem; padding: 0; border: 0; background: none; cursor: pointer; }
.fm-hero-carousel__dot::before { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background: #cfcfc8; transform: translateY(-50%); transition: background .2s; }
.fm-hero-carousel__dot[aria-current="true"]::before { background: var(--fm-ink); }
/* 「最新の記事」をゆっくり消して再表示する（動きを減らす設定の閲覧者には動かさない） */
.fm-hero-card__label { animation: fm-label-fade 4s ease-in-out infinite; }
@keyframes fm-label-fade {
    0%, 60% { opacity: 1; }
    75%, 80% { opacity: 0; }
    100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .fm-hero-card__label { animation: none; }
}
/* コーデ記事のカードは、縦長の全身コーデが切れないよう 4:5 の枠に画像全体を収める（PC 3列・スマホ 2列） */
.fm-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.fm-card {
    min-width: 0;
    background: var(--fm-white);
}
.fm-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--fm-paper); }
.fm-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .2s ease; }
.fm-coordinate-card .fm-card__media { aspect-ratio: 4 / 5; }
.fm-coordinate-card .fm-card__media img { object-fit: contain; }
.fm-card__media a:hover img { transform: scale(1.025); }
.fm-card__body { padding: .8rem .1rem 1rem; }
.fm-card__body h2, .fm-card__body h3 { margin: .25rem 0 .4rem; font-size: 1rem; line-height: 1.55; }
.fm-card__body h2 a, .fm-card__body h3 a { text-decoration: none; }
.fm-term-list { display: flex; flex-wrap: wrap; gap: .35rem; margin: .45rem 0 0; padding: 0; list-style: none; }
.fm-term-list li { color: #4f4f4f; font-size: .78rem; }
.fm-term-list li + li::before { content: "・"; padding-right: .25rem; color: var(--fm-muted); }
/* コーデ記事の分類タグ（各分類の一覧へのリンク） */
.fm-tag-list { display: flex; flex-wrap: wrap; gap: .4rem; margin: .75rem 0 0; padding: 0; list-style: none; }
.fm-tag { display: inline-block; padding: .3rem .7rem; border: 1px solid var(--fm-line); background: var(--fm-white); color: var(--fm-ink); font-size: .75rem; line-height: 1.3; text-decoration: none; transition: border-color .2s, color .2s; }
.fm-tag:hover, .fm-tag:focus-visible { border-color: var(--fm-ink); }
.fm-tag--gender { border-color: var(--fm-accent); color: var(--fm-accent); }
.fm-tag--gender:hover, .fm-tag--gender:focus-visible { background: var(--fm-accent); color: var(--fm-white); }
.fm-tag--series::before { content: "#"; }
.fm-tag-list--compact { gap: .3rem; margin-top: .45rem; }
.fm-tag-list--compact .fm-tag { padding: .15rem .55rem; font-size: .72rem; }
/* トップ右列：新着コーデ（画像とタイトルの横並び）・シーンから探す */
.fm-side-section { margin-bottom: 2.75rem; }
.fm-side-section .fm-section-heading { margin-bottom: .4rem; padding-bottom: .6rem; border-bottom: 1px solid var(--fm-ink); }
.fm-side-section .fm-section-heading h2 { font-size: 1.15rem; }
.fm-side-section__more { display: block; margin-top: .75rem; text-align: right; }
.fm-row-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: .9rem; padding: .8rem 0; border-bottom: 1px solid var(--fm-line); }
.fm-row-card__media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--fm-paper); }
.fm-row-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.fm-row-card__media .fm-image-placeholder { min-height: 0; height: 100%; font-size: .65rem; }
.fm-row-card .fm-card-date { margin: 0; }
.fm-row-card .fm-card-date span { letter-spacing: .06em; text-transform: uppercase; }
.fm-row-card h3 { margin: .15rem 0 0; font-size: .9rem; line-height: 1.55; }
.fm-row-card h3 a { text-decoration: none; }
.fm-scene-list { margin: 0; padding: 0; list-style: none; }
.fm-scene-link { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--fm-line); text-decoration: none; }
.fm-scene-link__name { font-size: .92rem; }
.fm-scene-link__count { flex-shrink: 0; color: var(--fm-muted); font-family: var(--fm-font-label); font-size: .75rem; letter-spacing: .06em; }
a.fm-scene-link:hover .fm-scene-link__count { color: var(--fm-accent); }
.fm-scene-link.is-empty .fm-scene-link__name { color: #b9b9b2; }
/* 季節のコーデ：4季節のカード（今の季節が先頭） */
.fm-home-seasons { margin-bottom: 3rem; }
.fm-season-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.fm-season-card { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: var(--fm-paper); color: var(--fm-ink); text-align: center; text-decoration: none; }
.fm-season-card--spring { background: #f6eef0; }
.fm-season-card--summer { background: #eef3f5; }
.fm-season-card--winter { background: #efeff2; }
.fm-season-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .2s ease; }
a.fm-season-card:hover img { transform: scale(1.025); }
.fm-season-card__caption { display: block; }
.fm-season-card.has-image { place-items: end start; text-align: left; }
.fm-season-card.has-image .fm-season-card__caption { position: relative; width: 100%; padding: 2.5rem 1.1rem 1rem; background: linear-gradient(transparent, rgba(255, 255, 255, .95) 45%); }
.fm-season-card__en { display: block; font-family: var(--fm-font-label); font-size: 1.25rem; letter-spacing: .24em; text-transform: uppercase; }
.fm-season-card:not(.has-image) .fm-season-card__en { color: #b9b9b2; }
.fm-season-card__jp { display: block; color: var(--fm-muted); font-size: .75rem; }
.fm-season-card__now { position: absolute; z-index: 1; top: .75rem; left: .75rem; padding: .3rem .5rem; background: var(--fm-accent); color: var(--fm-white); font-family: var(--fm-font-label); font-size: .62rem; font-weight: 500; letter-spacing: .2em; line-height: 1; text-transform: uppercase; }
.fm-empty-state { margin: 0; padding: 1.2rem; border-left: 3px solid var(--fm-accent); background: var(--fm-paper); }
.fm-empty-state a { font-weight: 600; }
/* 0 件のメンズ・レディースの一覧と 404 のページ：案内の文、入口のボタン、その下に並べる記事 */
.fm-empty-guide p { margin: 0 0 .5rem; }
.fm-empty-guide p:first-child { font-weight: 700; }
.fm-guide-links { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 0; }
.fm-empty-guide .fm-guide-links { margin-bottom: 0; }
.fm-button.fm-button--ghost { color: var(--fm-ink); background: var(--fm-white); }
.fm-guide-section { margin-top: 3rem; }
.fm-archive-header { max-width: 760px; margin: 0 0 2rem; }
.fm-single-header { max-width: 1040px; margin: 0 auto 2rem; }
.fm-archive-header h1, .fm-single-header h1, .fm-page h1, .fm-index h1 { margin: .2rem 0 .65rem; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.25; }
.fm-single-header h1 { font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.4; }
.fm-archive-header p { color: var(--fm-muted); }
/* 一覧の絞り込みタブ（各タブは別ページへのリンク。スマホで入りきらなければ横にスクロール） */
.fm-filter-tabs ul { display: flex; gap: 1.75rem; margin: 0 0 1.5rem; padding: 0; overflow-x: auto; border-bottom: 1px solid var(--fm-line); list-style: none; scrollbar-width: none; white-space: nowrap; }
.fm-filter-tabs ul::-webkit-scrollbar { display: none; }
/* メンズ・レディースの段は枠付きのボタン形にして、種類の段と見分けやすくする */
.fm-filter-tabs--pill ul { gap: .5rem; margin-bottom: 1rem; border-bottom: 0; }
.fm-filter-tabs--pill .fm-filter-tab { padding: .3rem 1rem; border: 1px solid var(--fm-line); }
.fm-filter-tabs--pill .fm-filter-tab.is-current { border-color: var(--fm-ink); background: var(--fm-ink); color: var(--fm-white); }
.fm-filter-tab { display: inline-block; padding: .2rem 0 .65rem; border-bottom: 2px solid transparent; color: var(--fm-muted); font-size: .88rem; text-decoration: none; }
a.fm-filter-tab:hover { color: var(--fm-ink); }
.fm-filter-tab.is-current { border-bottom-color: var(--fm-accent); color: var(--fm-ink); font-weight: 700; }
.fm-filter-tab.is-empty { color: #c4c4bd; }
/* コーデ記事の一覧の「気温から探す」「予算から探す」（中身は .fm-filter-tabs--pill） */
.fm-find-by__label { margin: 0 0 .45rem; font-size: .82rem; font-weight: 700; }
.fm-find-by__note { margin-left: .6em; color: var(--fm-muted); font-size: .75rem; font-weight: 400; }
/* 商品一覧：ページ送りで飛ぶ先（上に固定のメニューがあるので、その高さと少しの余白をあける） */
.fm-items-anchor { scroll-margin-top: 5rem; }
/* 商品一覧：写真のない商品についての注意書き（右の列の先頭） */
.fm-product-photo-note { margin: 0 0 1.25rem; color: var(--fm-muted); font-size: .78rem; line-height: 1.7; }
/* 商品一覧の絞り込み欄（PC は左の欄、スマホは「絞り込み条件」のバーで畳む。同じ HTML を CSS だけで切り替える） */
.fm-filter-panel { margin: 0 0 1.25rem; border: 1px solid var(--fm-ink); background: var(--fm-white); }
.fm-filter-panel__summary { display: flex; align-items: center; gap: .5rem; min-height: 48px; padding: .55rem 1rem; font-size: .92rem; font-weight: 700; list-style: none; cursor: pointer; }
.fm-filter-panel__summary::-webkit-details-marker { display: none; }
.fm-filter-panel__summary::after { content: "＋"; flex: 0 0 auto; margin-left: auto; font-size: 1.05rem; font-weight: 400; line-height: 1; }
.fm-filter-panel[open] > .fm-filter-panel__summary::after { content: "－"; }
.fm-filter-panel__title { flex: 0 0 auto; padding-left: .6rem; border-left: 3px solid var(--fm-accent); line-height: 1.3; }
.fm-filter-panel__count { flex: 0 0 auto; margin-left: -.35rem; color: var(--fm-accent); }
.fm-filter-panel__chosen { min-width: 0; overflow: hidden; color: var(--fm-muted); font-size: .78rem; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.fm-filter-panel__form { padding: 0 1rem 1.1rem; border-top: 1px solid var(--fm-line); }
.fm-filter-group { min-width: 0; margin: 0; padding: .85rem 0 .45rem; border: 0; border-bottom: 1px solid var(--fm-line); }
/* legend は float にして、fieldset の余白が見出しの下に回らないようにする */
.fm-filter-group__title { float: left; width: 100%; margin: 0 0 .1rem; padding: 0; font-size: .85rem; font-weight: 700; line-height: 1.5; }
.fm-filter-group__title + * { clear: both; }
.fm-filter-group__note { margin-left: .4em; color: var(--fm-muted); font-size: .75rem; font-weight: 400; }
.fm-filter-group__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: .75rem; margin: 0; padding: 0; list-style: none; }
.fm-filter-option { display: flex; align-items: center; gap: .55rem; min-height: 44px; font-size: .88rem; line-height: 1.35; cursor: pointer; }
.fm-filter-option input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; border-radius: 0; accent-color: var(--fm-ink); cursor: pointer; }
.fm-filter-option.is-empty { color: #c4c4bd; cursor: default; }
.fm-filter-option.is-empty input { cursor: default; }
.fm-filter-panel__actions { display: grid; gap: .55rem; justify-items: center; margin-top: 1.1rem; }
.fm-filter-panel__submit { width: 100%; border-radius: 0; cursor: pointer; }
.fm-filter-panel__clear { color: var(--fm-muted); font-size: .82rem; }
/* PC でチェックで自動に絞り込めるとき（JavaScript が動くとき）は、ボタンを隠す。スマホはボタンで絞り込むので出したまま。読み込みを待つあいだは欄を少し薄くする */
@media (min-width: 900px) {
    .fm-filter-panel__form.is-auto .fm-filter-panel__submit { display: none; }
    .fm-filter-panel__form.is-auto .fm-filter-panel__actions { margin-top: .8rem; }
}
.fm-filter-panel__form.is-loading { opacity: .55; transition: opacity .15s; }
/* 条件を選んだときの件数の行（例：メンズ・トップス の商品 3件） */
.fm-filter-result { margin: 0 0 1rem; font-size: .9rem; font-weight: 700; }
.fm-filter-result__num { margin: 0 .1em 0 .3em; color: var(--fm-accent); font-size: 1.15rem; }
@media (min-width: 900px) {
    .fm-items-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2.25rem; align-items: start; }
    .fm-filter-panel { position: sticky; top: calc(3.7rem + 1rem); max-height: calc(100vh - 3.7rem - 2rem); margin: 0; overflow-y: auto; border-color: var(--fm-line); scrollbar-width: thin; }
    .admin-bar .fm-filter-panel { top: calc(3.7rem + 1rem + 32px); }
    .fm-filter-panel__summary { min-height: 0; padding: 1rem .9rem .3rem; font-size: 1rem; }
    .fm-filter-panel__form { padding-inline: .9rem; border-top: 0; }
    .fm-filter-group { padding-top: .7rem; }
    .fm-filter-group__list:not(.fm-filter-group__list--two) { grid-template-columns: minmax(0, 1fr); }
    /* 種類は 2 列。右の列に「その他の小物」（6 文字）が入るよう少し広くし、長い名前（マフラー・ストール）は 1 行を使う */
    .fm-filter-group__list--two { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: .5rem; }
    .fm-filter-group__item--wide { grid-column: 1 / -1; }
    .fm-filter-option { gap: .45rem; min-height: 34px; font-size: .82rem; }
    .fm-items-layout .fm-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* PC では畳まない。::details-content が使えないブラウザでは、PC でも見出しを押して開く形のまま残る */
@supports selector(::details-content) {
    @media (min-width: 900px) {
        .fm-filter-panel::details-content { content-visibility: visible; }
        .fm-filter-panel__summary { pointer-events: none; cursor: default; }
        .fm-filter-panel__summary::after, .fm-filter-panel__count, .fm-filter-panel__chosen { display: none; }
    }
}
/* 右の列が狭くなる 960px からは 3 列、1180px からは 4 列（カードはどちらも約 204px 以上）。
   カードが小さいので、中の文字と余白を詰め、ボタンはカードの幅いっぱいにして下にそろえる */
@media (min-width: 960px) {
    .fm-items-layout .fm-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 1rem; }
}
/* スマホ（620px 以下）も 2 列にするので、同じ細いカードの指定を使う（2026年11月18日） */
@media (max-width: 620px) {
    .fm-items-layout .fm-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem .75rem; }
}
@media (min-width: 960px), (max-width: 620px) {
    .fm-items-layout .fm-product-card { display: flex; flex-direction: column; }
    .fm-items-layout .fm-product-card .fm-card__body { display: flex; flex: 1 1 auto; flex-direction: column; padding: .6rem 0 .8rem; }
    /* 細いカードで「（ブラ／ウン）」のように語の途中で切れないよう、文節で折り返す */
    .fm-items-layout .fm-product-card .fm-card__body h2 { margin: .15rem 0 .3rem; font-size: .86rem; line-height: 1.5; word-break: auto-phrase; overflow-wrap: anywhere; }
    .fm-items-layout .fm-product-card .fm-product-price { margin: .3rem 0 0; font-size: .9rem; }
    .fm-items-layout .fm-product-card .fm-disclosure { margin: auto 0 .4rem; padding-top: .6rem; font-size: .75rem; line-height: 1.5; word-break: auto-phrase; text-wrap: balance; }
    .fm-items-layout .fm-product-card .fm-card__buttons { flex-direction: column; gap: .4rem; }
    /* 長い店名（例：ドットエスティの商品ページを見る）は「の」のあとで 2 行に分ける */
    .fm-items-layout .fm-product-card .fm-button { display: block; padding: .55rem .4rem; font-size: .8rem; line-height: 1.4; text-align: center; word-break: auto-phrase; text-wrap: balance; }
}
@media (min-width: 1180px) {
    .fm-items-layout .fm-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* スマホ：商品一覧の上の「コーデから選ぶ」を 2 列にする（2026年11月18日。1 列だと絵が大きすぎた）。
   カードが細いので、絵は 4:5 で全身、アイテムは商品名 1 行と価格だけにして、小さい絵（アイコン）は出さない */
@media (max-width: 620px) {
    .fm-shop-the-look .fm-look-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .fm-shop-the-look .fm-look-card__media a { height: auto; aspect-ratio: 4 / 5; }
    .fm-shop-the-look .fm-look-card__media img { object-fit: cover; }
    .fm-shop-the-look .fm-look-card__media .fm-ai-caption { padding: 0 .55rem .2rem; font-size: .6rem; }
    .fm-shop-the-look .fm-look-card__body { padding: .5rem .55rem .65rem; }
    .fm-shop-the-look .fm-look-card h3 { margin: .1rem 0 .45rem; font-size: .8rem; line-height: 1.5; }
    .fm-shop-the-look .fm-look-group-label { margin: .35rem 0 .15rem; }
    .fm-shop-the-look .fm-look-item { display: block; padding: .3rem 0; font-size: .72rem; }
    .fm-shop-the-look .fm-look-item__thumb { display: none; }
    .fm-shop-the-look .fm-look-item__name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .fm-shop-the-look .fm-look-item__brand { display: none; }
    .fm-shop-the-look .fm-look-item__price { display: block; font-size: .74rem; }
    .fm-shop-the-look .fm-look-card__foot { justify-content: flex-start; font-size: .7rem; }
}
.fm-pagination { margin-top: 2.5rem; }
.fm-pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.fm-pagination a, .fm-pagination .current { display: inline-block; padding: .35rem .7rem; border: 1px solid var(--fm-line); }
.fm-pagination .current { color: var(--fm-white); border-color: var(--fm-ink); background: var(--fm-ink); }
.fm-entry { max-width: 1040px; margin-inline: auto; }
.fm-entry-image { margin: 1.5rem 0 0; }
/* 全身コーデが切れないよう、画像全体を収めて中央に置く */
.fm-entry-image { display: flex; justify-content: center; background: var(--fm-paper); }
.fm-entry-image img { width: auto; max-width: 100%; height: auto; max-height: 460px; object-fit: contain; }
/* コーデボード：コーデ画像と使用アイテムの一覧を並べる（スマホでは縦に並ぶ） */
.fm-outfit-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.25rem, 3vw, 2rem); align-items: start; margin-top: 1.5rem; padding: clamp(1rem, 2.5vw, 1.5rem); background: var(--fm-paper); }
.fm-outfit-board--no-image { grid-template-columns: minmax(0, 1fr); }
.fm-outfit-board__image { position: sticky; top: 4rem; margin: 0; }
.fm-outfit-board__image img { display: block; width: 100%; height: auto; max-height: 560px; margin-inline: auto; object-fit: contain; }
.fm-outfit-board__items h2 { margin: .1rem 0 .9rem; font-size: 1.15rem; }
.fm-outfit-items { margin: 0; padding: 0; border-top: 1px solid var(--fm-line); list-style: none; }
.fm-outfit-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: .85rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--fm-line); }
.fm-outfit-item__thumb { display: grid; place-items: center; width: 64px; aspect-ratio: 1; overflow: hidden; background: var(--fm-white); color: var(--fm-muted); font-size: .62rem; letter-spacing: .08em; text-decoration: none; }
.fm-outfit-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.fm-outfit-item__thumb svg { width: 58%; height: auto; color: #a9a9a2; }
.fm-outfit-item__brand { margin: 0; color: var(--fm-muted); font-family: var(--fm-font-label); font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.fm-outfit-item__name { margin: .1rem 0; font-size: .88rem; line-height: 1.45; }
.fm-outfit-item__name a { text-decoration: none; }
/* 価格の右に「見る」を並べる */
.fm-outfit-item__price-row { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; margin-top: .15rem; }
.fm-outfit-item__price-row .fm-outfit-item__buy, .fm-outfit-item__price-row .fm-outfit-item__links { margin-left: auto; }
/* 楽天と Yahoo! の両方があるときは、小さなボタンを右寄せで並べる（狭ければ折り返す） */
.fm-outfit-item__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .3rem; }
.fm-product-hero__buttons, .fm-card__buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.fm-outfit-item__price { margin: 0; font-size: .88rem; font-weight: 700; white-space: nowrap; }
.fm-outfit-item__note { margin: .15rem 0 0; color: var(--fm-muted); font-size: .7rem; line-height: 1.45; }
.fm-outfit-item__buy { padding: .4rem .85rem; border: 1px solid var(--fm-ink); border-radius: 999px; color: var(--fm-ink); font-size: .75rem; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.fm-outfit-item__buy:hover, .fm-outfit-item__buy:focus-visible { border-color: var(--fm-accent); background: var(--fm-accent); color: var(--fm-white); }
.fm-outfit-board__total { display: flex; gap: 1rem; justify-content: space-between; align-items: baseline; margin: 1rem 0 0; font-size: .9rem; font-weight: 700; text-align: right; }
.fm-outfit-board__total span { flex-shrink: 0; color: var(--fm-muted); font-size: .75rem; letter-spacing: .1em; text-align: left; white-space: nowrap; }
.fm-outfit-board__empty { color: var(--fm-muted); }
.fm-outfit-group-label { display: inline-block; margin: 1.1rem 0 .35rem; padding: .2rem .7rem; background: var(--fm-ink); color: var(--fm-white); font-size: .68rem; font-weight: 700; letter-spacing: .14em; }
/* 小物：服と靴の下に「ACCESSORIES」の区切りを入れ、1行の小さな並びにする（列が縦に伸びすぎないように） */
.fm-outfit-acc-label { display: flex; align-items: center; gap: .6rem; margin: 1rem 0 0; color: var(--fm-muted); font-family: var(--fm-font-label); font-size: .66rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.fm-outfit-acc-label::after { content: ""; flex: 1; border-top: 1px solid var(--fm-line); }
.fm-outfit-items--acc { border-top: 0; }
.fm-outfit-items--acc .fm-outfit-item { grid-template-columns: 40px minmax(0, 1fr); gap: .6rem; padding: .45rem 0; }
.fm-outfit-items--acc .fm-outfit-item__thumb { width: 40px; }
.fm-outfit-items--acc .fm-outfit-item__brand { font-size: .62rem; }
.fm-outfit-items--acc .fm-outfit-item__name { margin: 0; font-size: .8rem; line-height: 1.4; }
.fm-outfit-items--acc .fm-outfit-item__price { font-size: .78rem; }
.fm-outfit-items--acc .fm-outfit-item__buy { padding: .2rem .6rem; font-size: .7rem; }
.fm-outfit-board__head + .fm-outfit-group .fm-outfit-group-label { margin-top: 0; }
/* コーデ画像の余白に重ねる手書き風メモ（記事ファイルの image_notes）。文字の大きさは画像の幅に合わせて変わる */
.fm-notes { --fm-notes-ink: #6e4a34; --fm-notes-line: #96705a; --fm-notes-max-h: 560px; position: relative; width: min(100%, calc(var(--fm-notes-max-h) * var(--fm-notes-ratio, .8))); margin-inline: auto; container-type: inline-size; color: var(--fm-notes-ink); }
.fm-outfit-board__image .fm-notes img { width: 100%; max-height: none; }
.fm-notes__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.fm-notes__lines path { fill: none; stroke: var(--fm-notes-line); stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.fm-notes__lines .fm-notes__arrow { stroke-dasharray: 5 4; }
.fm-notes__title { position: absolute; top: 3.6%; left: 4%; margin: 0; font-family: var(--fm-font-logo); font-size: max(18px, 5.6cqw); font-style: italic; font-weight: 600; line-height: 1.1; transform: rotate(-4deg); }
.fm-notes__underline { display: block; width: 100%; height: .3em; margin-top: .02em; overflow: visible; }
/* 細いペンでさっと引いた下線（右端を少し跳ね上げる） */
.fm-notes__underline path { fill: none; stroke: var(--fm-notes-ink); stroke-width: 1.4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.fm-note { position: absolute; margin: 0; font-family: "Klee One", var(--fm-font-body); font-size: max(11.5px, 2.75cqw); font-weight: 600; letter-spacing: .02em; line-height: 1.35; white-space: nowrap; transform: rotate(var(--fm-note-tilt, 0deg)); }
.fm-note__num { margin-right: .2em; }
/* PC のペア記事：メンズのアイテム｜画像｜レディースのアイテム の3列（画像の人物の左右と合わせる） */
@media (min-width: 1000px) {
    .fm-outfit-board--pair:not(.fm-outfit-board--no-image) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "head head head" "mens image ladies" "foot foot foot"; row-gap: .75rem; }
    .fm-outfit-board--pair:not(.fm-outfit-board--no-image) .fm-outfit-board__items { display: contents; }
    .fm-outfit-board--pair:not(.fm-outfit-board--no-image) .fm-outfit-board__head { grid-area: head; text-align: center; }
    .fm-outfit-board--pair:not(.fm-outfit-board--no-image) .fm-outfit-board__head h2 { margin-bottom: 0; }
    .fm-outfit-board--pair:not(.fm-outfit-board--no-image) .fm-outfit-board__image { grid-area: image; position: static; }
    .fm-outfit-board--pair:not(.fm-outfit-board--no-image) .fm-outfit-group--mens { grid-area: mens; }
    .fm-outfit-board--pair:not(.fm-outfit-board--no-image) .fm-outfit-group--ladies { grid-area: ladies; }
    .fm-outfit-board--pair:not(.fm-outfit-board--no-image) .fm-outfit-group-label { margin-top: 0; }
    .fm-outfit-board--pair:not(.fm-outfit-board--no-image) .fm-outfit-board__foot { grid-area: foot; }
    .fm-outfit-board--pair:not(.fm-outfit-board--no-image) .fm-outfit-board__total { justify-content: flex-start; margin-top: 0; text-align: left; }
    .fm-outfit-board--pair:not(.fm-outfit-board--no-image) .fm-outfit-item { grid-template-columns: 56px minmax(0, 1fr); gap: .3rem .75rem; align-items: start; }
    .fm-outfit-board--pair:not(.fm-outfit-board--no-image) .fm-outfit-item__thumb { width: 56px; }
    .fm-outfit-board--pair:not(.fm-outfit-board--no-image) .fm-outfit-item__buy { padding: .2rem .65rem; font-size: .72rem; }
    .fm-outfit-board--pair:not(.fm-outfit-board--no-image) .fm-outfit-items--acc .fm-outfit-item { grid-template-columns: 40px minmax(0, 1fr); gap: .6rem; align-items: center; }
    .fm-outfit-board--pair:not(.fm-outfit-board--no-image) .fm-outfit-items--acc .fm-outfit-item__thumb { width: 40px; }
}
.fm-outfit-more { display: none; }
.fm-outfit-mini { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; width: 88px; padding: 0; overflow: hidden; border: 2px solid var(--fm-white); border-radius: 8px; background: var(--fm-paper); box-shadow: 0 4px 16px rgba(0, 0, 0, .22); cursor: zoom-in; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s; }
.fm-outfit-mini.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.fm-outfit-mini img { display: block; width: 100%; height: auto; }
.fm-outfit-mini__label { display: block; padding: .2rem 0; background: var(--fm-ink); color: var(--fm-white); font-size: .62rem; letter-spacing: .08em; }
.fm-outfit-viewer { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: transparent; cursor: zoom-out; }
.fm-outfit-viewer::backdrop { background: rgba(0, 0, 0, .85); }
.fm-outfit-viewer img { width: 100%; height: 100%; padding: 1rem; object-fit: contain; }
.fm-outfit-viewer__close { position: fixed; top: .75rem; right: .75rem; padding: .4rem .9rem; border: 1px solid var(--fm-white); border-radius: 999px; background: rgba(0, 0, 0, .4); color: var(--fm-white); font: inherit; font-size: .8rem; cursor: pointer; }
.fm-entry-content { max-width: 720px; margin: 2rem auto 0; }
.fm-entry-content > * { max-width: 100%; }
.fm-entry-content h2, .fm-entry-content h3 { margin-top: 2rem; line-height: 1.35; }
.fm-entry-content img { height: auto; }
/* 本文の画像（記事ファイルの ![説明](images/xxx.webp "見出し")）。コーデ画像と同じ紙の色の上に、縦長の画像を中央に置く */
.fm-entry-figure { margin: 1.5rem 0 2rem; padding: clamp(.75rem, 2vw, 1.25rem); background: var(--fm-paper); text-align: center; }
.fm-entry-figure img { display: block; width: auto; max-width: 100%; max-height: 560px; margin-inline: auto; }
.fm-entry-figure figcaption { margin-top: .6rem; color: var(--fm-muted); font-size: .78rem; letter-spacing: .06em; }
/* 記事本文：章の頭の「この章のポイント」（Markdown の > ）と、大事な一文のマーカー（<mark>） */
.fm-entry-content blockquote { margin: 1rem 0 1.5rem; padding: .9rem 1.1rem; border: 2px solid var(--fm-ink); border-radius: 6px; }
.fm-entry-content blockquote p { margin: 0 0 .3rem; font-size: .82rem; letter-spacing: .08em; }
.fm-entry-content blockquote ul { margin: 0; padding-left: 1.2rem; font-size: .95rem; line-height: 1.75; }
.fm-entry-content mark { padding: 0 .1em; background: linear-gradient(transparent 60%, #ffd6ea 60%); color: inherit; font-weight: 700; }
/* 記事の冒頭のふたりの場面（<div class="fm-story" markdown="1">）：背景の色を変え、文章は丸ゴシック（Zen Maru Gothic）。名前はレンが青、ユイがピンク */
.fm-entry-content .fm-story { margin: 0 0 1.75rem; padding: 1rem 1.1rem; border-radius: 10px; background: #fbf1f6; }
/* 1行ずつ段落にして、行と行のあいだを 8px 空ける */
.fm-entry-content .fm-story p { margin: 0 0 8px; color: #333; font-family: "Zen Maru Gothic", var(--fm-font-body); font-size: 15.5px; font-weight: 400; line-height: 1.85; }
.fm-entry-content .fm-story p:last-child { margin-bottom: 0; }
.fm-entry-content .fm-story .fm-story__tag { margin-bottom: .4rem; font-family: var(--fm-font-body); font-size: .75rem; line-height: 1.5; font-weight: 700; letter-spacing: .06em; }
.fm-entry-content .fm-story__tag a { color: var(--fm-accent); text-decoration: none; }
.fm-entry-content .fm-story__tag a:hover { text-decoration: underline; }
.fm-entry-content .fm-story__ren { color: #2f6db3; font-weight: 700; }
.fm-entry-content .fm-story__yui { color: #e0457b; font-weight: 700; }
/* 小見出し：左にピンクの線を付け、下の本文との間をあけて、区切りをはっきりさせる */
.fm-entry-content h3 { margin-top: 2.4rem; margin-bottom: .9rem; padding-left: .7rem; border-left: 4px solid var(--fm-accent); line-height: 1.5; }
.fm-entry-content h3 + p { margin-top: 0; }
.fm-entry-content table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.fm-entry-content th, .fm-entry-content td { padding: .6rem .8rem; border-bottom: 1px solid var(--fm-line); text-align: left; vertical-align: top; }
.fm-entry-content thead th { border-bottom: 2px solid var(--fm-ink); }
/* 目次：スマホは本文の頭で開閉、PC（1000px 以上）は本文の左に固定 */
.fm-toc { max-width: 720px; margin: 2rem auto 0; }
.fm-toc__details { border: 1px solid var(--fm-line); border-radius: 6px; background: var(--fm-white); }
.fm-toc summary { padding: .7rem 1rem; font-size: .9rem; font-weight: 700; cursor: pointer; }
.fm-toc ol { margin: 0; padding: 0 1rem .8rem 2.2rem; font-size: .9rem; line-height: 1.6; }
.fm-toc li { padding: .2rem 0; }
.fm-toc a { color: var(--fm-ink); text-decoration: none; }
.fm-toc a:hover, .fm-toc a[aria-current="true"] { color: var(--fm-accent); }
.fm-toc a[aria-current="true"] { font-weight: 700; }
@media (min-width: 1000px) {
    .fm-article-layout--toc { display: grid; grid-template-columns: 200px minmax(0, 720px); gap: 2.5rem; justify-content: center; align-items: start; margin-top: 2rem; }
    .fm-article-layout--toc .fm-toc { position: sticky; top: 4.5rem; margin: 0; }
    .fm-article-layout--toc .fm-toc__details { border: 0; border-left: 2px solid var(--fm-line); border-radius: 0; background: transparent; }
    .fm-article-layout--toc .fm-toc summary { padding: 0 0 .5rem 1rem; color: var(--fm-muted); font-size: .75rem; letter-spacing: .12em; list-style: none; pointer-events: none; }
    .fm-article-layout--toc .fm-toc summary::-webkit-details-marker { display: none; }
    .fm-article-layout--toc .fm-toc ol { padding: 0 0 0 1rem; font-size: .85rem; list-style: none; }
    .fm-article-layout--toc .fm-entry-content { margin-top: 0; }
    .fm-article-layout--toc .fm-detail-panel { margin-inline: 0; }
}
.fm-detail-panel { max-width: 720px; margin: 2.5rem auto 0; padding: clamp(1.2rem, 3vw, 2rem); background: var(--fm-paper); }
.fm-detail-panel h2 { margin: 0 0 1rem; font-size: 1.35rem; }
.fm-detail-list { display: grid; grid-template-columns: minmax(120px, .35fr) minmax(0, 1fr); gap: .7rem 1.2rem; margin: 0; }
.fm-detail-list dt { font-weight: 700; }
.fm-detail-list dd { margin: 0; overflow-wrap: anywhere; }
.fm-disclosure { margin: .7rem 0 .5rem; color: #4c4c4c; font-size: .84rem; }
.fm-ai-disclosure { padding: .85rem 1rem; border-left: 3px solid var(--fm-accent); background: var(--fm-paper); }

/* 共有ボタン：LINE だけ LINE の緑で目立たせる */
.fm-share { margin: 1.4rem 0; text-align: center; }
.fm-share__label { margin: 0 0 .6rem; font-family: var(--fm-font-heading); font-size: .95rem; }
.fm-share__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.fm-share__button { display: inline-block; padding: .5rem 1rem; border: 1px solid var(--fm-ink); border-radius: 999px; background: var(--fm-white); color: var(--fm-ink); font: inherit; font-size: .82rem; line-height: 1.5; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.fm-share__button[hidden] { display: none; }
.fm-share__button:hover, .fm-share__button:focus-visible { border-color: var(--fm-accent); background: var(--fm-accent); color: var(--fm-white); }
.fm-share__button--line { padding-inline: 1.4rem; border-color: #06C755; background: #06C755; color: var(--fm-white); font-weight: 700; }
.fm-share__button--line:hover, .fm-share__button--line:focus-visible { border-color: #05a847; background: #05a847; color: var(--fm-white); }
.fm-share__status { min-height: 1.2em; margin: .4rem 0 0; color: var(--fm-muted); font-size: .78rem; }
@media (max-width: 620px) {
    .fm-share:not(.fm-share--compact) .fm-share__button--line { flex-basis: 100%; padding-block: .7rem; font-size: .9rem; }
}
/* コーデボードの注意書きの右に入る小さい形（幅が足りなければ注意書きの下に回る） */
.fm-outfit-board__foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; margin-top: .7rem; }
.fm-outfit-board__foot-row .fm-disclosure { flex: 1 1 16rem; margin: 0; font-size: .72rem; text-align: left; }
/* 見出し「このコーデを彼・彼女に送る」の下にボタンを並べ、見出しはボタンの並びの中央に置く */
.fm-share--compact { margin: 0; text-align: center; }
.fm-share--compact .fm-share__label { margin: 0 0 .25rem; font-family: var(--fm-font-body); font-size: .72rem; font-weight: 700; }
.fm-share--compact .fm-share__buttons { gap: .3rem; justify-content: center; }
.fm-share--compact .fm-share__button { padding: .1rem .55rem; font-size: .68rem; }
.fm-share--compact .fm-share__button--line { padding-inline: .7rem; }
.fm-share--compact .fm-share__status { min-height: 0; margin: .2rem 0 0; }
/* PC のペア記事は注意書きを1行に保つ（入りきらなければ共有ボタンが下の行に回る） */
@media (min-width: 1000px) {
    .fm-outfit-board--pair:not(.fm-outfit-board--no-image) .fm-outfit-board__foot-row .fm-disclosure { flex: 0 1 auto; white-space: nowrap; }
}
.fm-share--compact .fm-share__status:empty { display: none; }
.fm-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.fm-product-card .fm-card__media { aspect-ratio: 1 / 1; }
/* 商品画像がないとき：横長の枠に種類のアイコンと英字の種類名 */
.fm-product-card .fm-card__media--icon { aspect-ratio: 4 / 3; }
.fm-card__media--icon a { display: grid; place-content: center; justify-items: center; gap: .6rem; color: #a9a9a2; text-decoration: none; }
.fm-card__media--icon svg { width: 72px; height: auto; }
.fm-item-icon__label { font-family: var(--fm-font-label); font-size: .68rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
/* 着用イメージが AI であることの表示（商品と取り違えないよう、画像に重ねず下に小さく出す） */
.fm-ai-caption { margin: .3rem 0 0; color: var(--fm-muted); font-size: .66rem; letter-spacing: .04em; line-height: 1.4; }
/* 商品一覧の上「コーデから選ぶ」：コーデ画像の横に、そのコーデで使ったアイテム */
.fm-shop-the-look { margin-bottom: 3rem; }
.fm-look-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.fm-look-card { display: grid; grid-template-columns: 200px minmax(0, 1fr); background: var(--fm-paper); }
.fm-look-card__media { display: flex; flex-direction: column; }
.fm-look-card__media a { display: block; flex: 1; min-height: 260px; background: #f1f0ea; }
.fm-look-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.fm-look-card__media .fm-ai-caption { padding: 0 .5rem .4rem; }
.fm-look-card__body { padding: 1.1rem 1.2rem; }
.fm-look-card__body .fm-card-date { margin: 0; letter-spacing: .1em; text-transform: uppercase; }
.fm-look-card h3 { margin: .2rem 0 .6rem; font-size: .98rem; line-height: 1.55; }
.fm-look-card h3 a { text-decoration: none; }
.fm-look-items { margin: 0; padding: 0; list-style: none; }
/* ペアのアイテムの見出し（MEN'S / LADIES'）。記事のコーデボードの見出しを小さくしたもの */
.fm-look-group-label { display: inline-block; margin: .5rem 0 .25rem; padding: .05rem .5rem; background: var(--fm-ink); color: var(--fm-white); font-family: var(--fm-font-label); font-size: .6rem; font-weight: 500; letter-spacing: .14em; }
.fm-look-card h3 + .fm-look-group-label { margin-top: 0; }
.fm-look-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: .6rem; align-items: center; padding: .4rem 0; border-top: 1px solid var(--fm-line); font-size: .78rem; line-height: 1.4; text-decoration: none; }
.fm-look-item__thumb { display: grid; place-items: center; width: 36px; height: 36px; overflow: hidden; background: var(--fm-white); color: #a9a9a2; }
.fm-look-item__thumb svg { width: 60%; height: auto; }
.fm-look-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.fm-look-item__brand { display: block; color: var(--fm-muted); font-family: var(--fm-font-label); font-size: .64rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.fm-look-item__price { font-weight: 700; white-space: nowrap; }
.fm-look-card__foot .fm-more-link { white-space: nowrap; }
.fm-look-card__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: .3rem 1rem; margin: .6rem 0 0; padding-top: .5rem; border-top: 1px solid var(--fm-line); font-size: .78rem; }
/* 商品ページ：画像（なければアイコン）の横に、ブランド・価格・商品ページへのボタン */
.fm-product-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; max-width: 1040px; margin: 0 auto; }
.fm-product-hero__media { margin: 0; background: var(--fm-paper); }
.fm-product-hero__media img { width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.fm-product-hero__media.fm-card__media--icon { display: grid; aspect-ratio: 4 / 3; }
.fm-product-hero__media.fm-card__media--icon > span { display: grid; place-content: center; justify-items: center; gap: .6rem; color: #a9a9a2; }
.fm-product-hero__media.fm-card__media--icon svg { width: 96px; height: auto; }
.fm-product-hero__price { margin: .3rem 0 .2rem; font-size: 1.35rem; font-weight: 700; }
.fm-product-hero__summary .fm-disclosure { margin-top: 1.2rem; }
/* 商品情報：開閉できる枠（スマホは閉じた状態から） */
.fm-product-details { max-width: 1040px; }
.fm-product-details summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; }
.fm-product-details summary::-webkit-details-marker { display: none; }
.fm-product-details summary h2 { margin: 0; }
.fm-product-details__toggle::after { content: "すべて見る ＋"; color: var(--fm-muted); font-size: .8rem; }
.fm-product-details[open] .fm-product-details__toggle::after { content: "閉じる －"; }
.fm-product-details[open] summary { margin-bottom: 1rem; }
/* 商品ページ「このアイテムを使ったコーデ」 */
.fm-styled-with { max-width: 1040px; margin: 3rem auto 0; }
.fm-same-items { max-width: none; margin-top: 2.6rem; }
.fm-same-items .fm-styled-with__list { grid-template-columns: minmax(0, 1fr); gap: 0; }
.fm-same-items .fm-styled-card { padding-bottom: 1rem; border-top: 0; border-bottom: 1px solid var(--fm-line); }
.fm-styled-with__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.fm-styled-with__list.is-collapsed .fm-styled-card.is-extra { display: none; }
.fm-styled-with__more { display: block; width: 100%; max-width: 360px; margin: 1.5rem auto 0; padding: .7rem 1rem; border: 1px solid var(--fm-ink); border-radius: 999px; background: var(--fm-white); color: var(--fm-ink); font: inherit; font-size: .85rem; cursor: pointer; }
.fm-styled-with__more[hidden] { display: none; }
.fm-styled-with__more:hover { border-color: var(--fm-accent); background: var(--fm-accent); color: var(--fm-white); }
.fm-styled-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--fm-ink); }
.fm-styled-card__media a { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--fm-paper); }
.fm-styled-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.fm-styled-card .fm-card-date { margin: 0; }
.fm-styled-card .fm-card-date span { letter-spacing: .06em; text-transform: uppercase; }
.fm-styled-card h3 { margin: .2rem 0 .5rem; font-size: .95rem; line-height: 1.55; }
.fm-styled-card h3 a { text-decoration: none; }
.fm-styled-card__with-label { margin: 0; color: var(--fm-muted); font-size: .72rem; letter-spacing: .06em; }
.fm-styled-card__with { margin: .1rem 0 0; padding: 0; list-style: none; font-size: .8rem; line-height: 1.7; }
.fm-product-brand { margin: 0; color: var(--fm-muted); font-family: var(--fm-font-label); font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.fm-product-price { margin: .5rem 0; font-weight: 700; }
.fm-button {
    display: inline-block;
    padding: .65rem 1rem;
    color: var(--fm-white);
    border: 1px solid var(--fm-ink);
    background: var(--fm-ink);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}
.fm-button:hover { color: var(--fm-white); border-color: var(--fm-accent); background: var(--fm-accent); }
.fm-page-content { max-width: 820px; }
.fm-page-content > * { max-width: 100%; }
.fm-site-footer { margin-top: 2rem; padding-block: 2rem; color: var(--fm-white); background: var(--fm-ink); }
.fm-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.fm-site-footer p { margin: 0; font-size: .85rem; }
.fm-footer-nav ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 1.25rem; padding: 0 0 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, .2); list-style: none; font-size: .85rem; }
.fm-footer-nav a { color: var(--fm-white); text-decoration: none; }
.fm-footer-nav a:hover { color: var(--fm-white); text-decoration: underline; }
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 782px) {
    .admin-bar .fm-nav-bar { top: 46px; }
}
@media (max-width: 600px) {
    .admin-bar .fm-nav-bar { top: 0; }
}
@media (max-width: 820px) {
    /* スマホ・タブレット：今日 → 新着（横スクロール）→ 季節 → シーン */
    .fm-home-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "hero" "new" "seasons" "scenes"; }
    .fm-hero-card { grid-template-columns: minmax(0, 1fr); }
    .fm-hero-card__media { height: 420px; }
    .fm-hero-carousel__arrow { top: 210px; width: 2rem; height: 2.8rem; font-size: 1.6rem; }
    .fm-hero-carousel__dot { width: 1.4rem; }
    .fm-home-new .fm-section-heading { border-bottom: 0; padding-bottom: 0; margin-bottom: 1rem; }
    .fm-home-new .fm-section-heading h2 { font-size: clamp(1.3rem, 2.4vw, 1.4rem); }
    .fm-row-list--scroll { display: flex; gap: .75rem; margin-right: calc(50% - 50vw); padding-bottom: .4rem; overflow-x: auto; scrollbar-width: none; }
    .fm-row-list--scroll::-webkit-scrollbar { display: none; }
    .fm-row-list--scroll .fm-row-card { flex: 0 0 150px; grid-template-columns: minmax(0, 1fr); gap: .5rem; padding: 0; border-bottom: 0; }
    .fm-season-grid { gap: .6rem; }
    .fm-season-card { aspect-ratio: 3 / 4; }
    .fm-season-card__en { font-size: .95rem; }
    .fm-scene-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; }
    .fm-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fm-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .75rem; }
    .fm-look-grid, .fm-styled-with__list { grid-template-columns: minmax(0, 1fr); }
    .fm-product-hero { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
}
@media (max-width: 620px) {
    .fm-container { width: min(calc(100% - 1.4rem), var(--fm-width)); }
    .fm-header-inner { padding-block: .8rem .3rem; }
    .fm-nav__list { flex-wrap: nowrap; gap: .75rem; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
    .fm-nav__list::-webkit-scrollbar { display: none; }
    .fm-nav__list a { font-size: .85rem; }
    .fm-breadcrumbs ol { flex-wrap: nowrap; }
    .fm-breadcrumbs li { flex-shrink: 0; white-space: nowrap; }
    .fm-breadcrumbs li[aria-current] { flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; }
    .fm-outfit-mini { width: 72px; right: .75rem; bottom: .75rem; }
    .fm-site-title { font-size: 3.25rem; }
    .fm-nav__list { justify-content: flex-start; }
    .fm-product-grid { grid-template-columns: minmax(0, 1fr); }
    /* スマホの 2 列：題・日付・タグを少し小さくして、細いカードに収める */
    .fm-coordinate-card .fm-card__body { padding: .55rem 0 .6rem; }
    .fm-coordinate-card .fm-card__body h2 { margin: 0 0 .25rem; font-size: .86rem; line-height: 1.5; }
    .fm-coordinate-card .fm-card-date { font-size: .72rem; }
    .fm-coordinate-card .fm-tag-list--compact { gap: .25rem; margin-top: .35rem; }
    .fm-coordinate-card .fm-tag-list--compact .fm-tag { padding: .1rem .45rem; font-size: .68rem; }
    /* スマホ：コーデ画像を上に、アイテムを下に並べる（横並びだと商品名が細くなりすぎる） */
    .fm-look-card { grid-template-columns: minmax(0, 1fr); }
    .fm-look-card__media a { height: 340px; min-height: 0; }
    .fm-look-card__media img { object-fit: contain; }
    .fm-look-card__body { padding: .9rem; }
    .fm-styled-card { grid-template-columns: 110px minmax(0, 1fr); }
    .fm-detail-list { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
    .fm-detail-list dd { margin-bottom: .65rem; }
    .fm-outfit-board { grid-template-columns: minmax(0, 1fr); }
    .fm-outfit-board__image { position: static; }
    .fm-outfit-board__image img { max-height: 480px; }
    .fm-notes { --fm-notes-max-h: 480px; }
    .fm-outfit-board.is-collapsed .fm-outfit-item:nth-child(n+2) { display: none; }
    /* 閉じているときは小物も隠す（小物だけのグループは1点目を出す） */
    .fm-outfit-board.is-collapsed .fm-outfit-group:not(.fm-outfit-group--accessories-only) .fm-outfit-acc-label,
    .fm-outfit-board.is-collapsed .fm-outfit-group:not(.fm-outfit-group--accessories-only) .fm-outfit-items--acc { display: none; }
    .fm-outfit-more:not([hidden]) { display: block; width: 100%; margin-top: .8rem; padding: .65rem 1rem; border: 1px solid var(--fm-ink); border-radius: 999px; background: var(--fm-white); color: var(--fm-ink); font: inherit; font-size: .82rem; cursor: pointer; }
    .fm-footer-inner { display: block; }
    .fm-footer-inner p + p { margin-top: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
