body.pg-howto .howto-filter {
margin-top: clamp(18px, 2.4vw, 28px);
padding: 0;
background: none;
border: 0;
border-radius: 0;
}
body.pg-howto .howto-filter__summary {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
border: 0;
list-style: none;
cursor: default;
}
body.pg-howto .howto-filter__summary::-webkit-details-marker {
display: none;
}
body.pg-howto .howto-filter__summary::marker {
content: "";
}
body.pg-howto .howto-filter__options.lc-segtabs {
--seg-cols: 8;
--seg-maxw: none;
min-width: 0;
}
@media (max-width: 1279px) {
body.pg-howto .howto-filter__options.lc-segtabs {
--seg-cols: 4;
}
}
@media (max-width: 767px) {
body.pg-howto .howto-filter__options.lc-segtabs {
--seg-cols: 2;
}
}
body.pg-howto .howto-filter__group {
display: contents;
}
body.pg-howto .howto-filter__btn {
position: relative;
margin: 0;
}
body.pg-howto .howto-filter__btn:focus-visible {
outline: 2px solid var(--c-text);
outline-offset: 3px;
}
body.pg-howto .howto-filter__btn:focus:not(:focus-visible) {
outline: none;
box-shadow: none;
}
body.pg-howto .howto-filter__children {
display: none;
order: 100;
grid-column: 1 / -1;
min-width: 0;
flex-wrap: wrap;
align-items: center;
gap: 10px 8px;
margin-top: 8px;
padding: 16px 0 6px;
border-top: 0;
}
body.pg-howto .howto-filter__children::before {
content: "さらに絞り込む";
flex: 0 0 auto;
margin-right: 10px;
font-size: 11px;
font-weight: 700;
letter-spacing: .12em;
color: var(--color-text);
}
body.pg-howto .howto-filter__group:has(.howto-filter__btn.is-active) > .howto-filter__children {
display: flex;
}
body.pg-howto .howto-filter__btn--child {
overflow-wrap: anywhere;
line-break: strict;
word-break: normal;
}
body.pg-howto .howto-filter__status {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 6px 14px;
margin: clamp(32px, 4vw, 44px) 0 clamp(26px, 3.2vw, 34px);
padding-top: 0;
border-top: 0;
font-size: var(--fs-sm);
line-height: 1.6;
color: var(--color-text-sub);
}
body.pg-howto .howto-filter__status-scope {
font-weight: 700;
color: var(--color-text);
}
body.pg-howto .howto-filter__status-count {
display: inline-flex;
align-items: baseline;
gap: 2px;
white-space: nowrap;
}
body.pg-howto .howto-filter__status-count b {
font-family: var(--font-en);
font-size: 18px;
font-weight: 600;
line-height: 1;
color: var(--c-text);
letter-spacing: .02em;
}
body.pg-howto .howto-filter__status-total {
margin-left: 6px;
font-size: var(--fs-xs);
color: var(--c-text);
}
body.pg-howto .howto-card {
display: flex;
flex-direction: column;
text-decoration: none;
color: inherit;
transition: transform .2s ease;
}
body.pg-howto a.howto-card:hover {
transform: translateY(-2px);
}
body.pg-howto .howto-card:focus-visible {
outline: 2px solid var(--color-accent);
outline-offset: 3px;
}
body.pg-howto .howto-card__image {
display: block;
aspect-ratio: 4 / 2.5;
overflow: hidden;
background: var(--color-bg-soft);
border: 0;
border-radius: var(--radius-ui, 0px);
}
body.pg-howto .howto-card__image img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
transition: transform .45s ease, opacity .35s ease;
}
body.pg-howto a.howto-card:hover .howto-card__image img {
transform: scale(1.03);
}
body.pg-howto .howto-card__category {
align-self: flex-start;
margin: 14px 0 0;
}
body.pg-howto .howto-card__title {
display: block;
overflow-wrap: break-word;
}
body.pg-howto .howto-card.is-hidden {
display: none;
}
body.pg-howto .howto-card__hashtags {
display: flex;
flex-wrap: wrap;
gap: 4px 14px;
margin: 10px 0 0;
font-size: var(--fs-xs);
letter-spacing: .04em;
line-height: 1.5;
color: var(--color-text-mute);
}
body.pg-howto .howto-taglist {
margin-top: clamp(64px, 8vw, 96px);
padding-top: var(--layout-rule-gap, 55px);
border-top: 1px solid var(--color-border-light);
}
body.pg-howto .howto-taglist__list {
display: flex;
flex-wrap: wrap;
gap: 14px 28px;
margin: 0;
padding: 0;
list-style: none;
color: var(--color-text-mute);
}
body.pg-howto .howto-taglist__link {
font-size: var(--fs-sm);
letter-spacing: .04em;
line-height: 1.6;
}
@media (max-width: 767px) {
body.pg-howto .howto-taglist__list {
gap: 12px 20px;
}
}
body.pg-howto .howto-taghead {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 6px 14px;
margin: 0 0 clamp(26px, 3.2vw, 34px);
}
body.pg-howto .howto-taghead__label {
font-size: var(--fs-base);
font-weight: 700;
letter-spacing: .04em;
color: var(--color-text);
}
body.pg-howto .howto-taghead__count {
font-size: var(--fs-sm);
color: var(--c-text);
}
body.pg-howto .howto-taghead__count strong {
margin-right: 2px;
font-size: var(--fs-lead);
font-weight: 600;
color: var(--c-text);
}
body.pg-howto .howto-tag-back {
margin-top: clamp(40px, 5vw, 56px);
text-align: center;
}
body.pg-howto .howto-empty {
margin: 8px 0 0;
font-size: var(--fs-base);
color: var(--color-text-mute);
}
body.pg-howto .howto-list {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
align-items: start;
column-gap: var(--sp-12);
row-gap: clamp(30px, 3.2vw, 40px);
}
/* タブレット：2カラム */
@media (max-width: 1023px) {
body.pg-howto .howto-list {
grid-template-columns: repeat(2, minmax(0, 1fr));
column-gap: var(--sp-9);
}
}
@media (max-width: 560px) {
body.pg-howto .howto-list {
column-gap: var(--sp-7);
row-gap: 26px;
}
body.pg-howto .howto-card__category {
margin-top: 11px;
}
}
/* ------------------------------------------------------------
SP（2カラム）のタイトル折返し
------------------------------------------------------------
overflow-wrap: break-word だけだと、320px の狭いカラムで長い和文が
1文字ずつ改行されることがある。禁則を効かせ、文字サイズは下げない。
------------------------------------------------------------ */
@media (max-width: 767px) {
body.pg-howto .howto-card__title {
line-break: strict;
word-break: normal;
overflow-wrap: break-word;
}
}