@charset "utf-8";

/* --------------------------------------------- 完了画面の補足注記 --------------------------------------------- */
.done-note { margin: 20px auto 0; font-size: 14px; line-height: 1.8; color: #666; text-align: center; }
.done-note b { color: #000; font-weight: 700; }

/* --------------------------------------------- 製品詳細のカートアイコン --------------------------------------------- */
#detailBody .pd-cart .cart-emoji img { filter: grayscale(1) brightness(1.405); }
#detailBody .pd-cart.is-on .cart-emoji img { filter: none; }

/* --------------------------------------------- 一覧カードのカートアイコン --------------------------------------------- */
.product-card .pc-head .icon-btn.js-cart:not(.is-on) { border-color: #E5E5E5; }
.product-card .pc-head .icon-btn.js-cart:not(.is-on) .cart-emoji img { filter: grayscale(1) brightness(1.405); }

/* --------------------------------------------- リンク版のボタン --------------------------------------------- */
a.auth-btn:link,
a.auth-btn:visited,
a.auth-btn:hover { color: #fff; }

/* --------------------------------------------- エラーメッセージ --------------------------------------------- */
.form-error { display: grid; grid-template-columns: 17px 1fr; align-items: start; gap: 6px 8px; width: 100%; max-width: 700px; margin: 20px auto 0; padding: 0; border: 0; background: none; color: var(--text); font-size: 14px; line-height: 1.6; text-align: left; box-sizing: border-box; }
.form-error span { grid-column: 2; line-height: 1.7; }

.is-invalid { border-color: #E44A59 !important; }
.is-invalid:focus { border-color: #E44A59 !important; box-shadow: 0 0 0 3px rgba(228,74,89,.15); }
.check-group.is-invalid { padding: 6px 8px; border: 1px solid #E44A59; border-radius: 5px; }
.form-error::before { content: "!"; grid-column: 1; align-self: start; margin-top: 3px; display: flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: #E44A59; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }

/* --------------------------------------------- スマートフォン --------------------------------------------- */
@media screen and (max-width: 768px) {

	.done-note { margin-top: 16px; font-size: 12px; line-height: 1.75; }
	.form-error { margin-top: 16px; padding: 0; font-size: 12px; }
	.form-error { grid-template-columns: 15px 1fr; gap: 5px 6px; }
	.form-error::before { width: 15px; height: 15px; font-size: 11px; }
}

/* --------------------------------------------- 記事本文のブロック --------------------------------------------- */

/* 表 */
.mag-body .mag-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.8; }
.mag-body .mag-table th,
.mag-body .mag-table td { padding: 10px 14px; border: 1px solid #E3E3E3; text-align: left; vertical-align: top; }
.mag-body .mag-table thead th { background: #F5F7FA; font-weight: 600; }

/* 箇条書き */
.mag-body .mag-list { padding-left: 1.4em; font-size: 16px; line-height: 32px; color: #000; }
.mag-body ul.mag-list { list-style: disc; }
.mag-body ol.mag-list { list-style: decimal; }
.mag-body ol.mag-list[type="A"] { list-style: upper-alpha; }
.mag-body .mag-list li { margin-top: 4px; }

/* バナーボタン */
.mag-body .mag-banner { text-align: center; }
.mag-body .mag-banner .btn-primary { display: inline-block; padding: 14px 40px; border-radius: 999px; text-decoration: none; }

.mag-body .mag-columns { display: flex; gap: 24px; }
.mag-body .mag-columns .mag-col { flex: 1; min-width: 0; }


@media screen and (max-width: 768px) {

	.mag-body .mag-columns { display: block; }
	.mag-body .mag-columns .mag-col { margin-top: 24px; }
	.mag-body .mag-columns .mag-col:first-child { margin-top: 0; }

	.mag-body .mag-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* --------------------------------------------- 記事詳細のブックマーク --------------------------------------------- */
.mag-bookmark:not(.is-on) .bm-ico { background-image: url(../images/bookmarks/icn_2.svg); }

.mag-bookmark:disabled { cursor: default; opacity: 0.5; }

/* --------------------------------------------- CHANNELのジャンル切替 --------------------------------------------- */
a.serchbar__category-button:link,
a.serchbar__category-button:visited { color: #000; }
a.serchbar__category-button.is-active:link,
a.serchbar__category-button.is-active:visited { color: #fff; }

/* --------------------------------------------- CHANNELのカテゴリー選択中 --------------------------------------------- */
a.article-category__link.is-active { background: var(--accent); }
a.article-category__link.is-active:link,
a.article-category__link.is-active:visited { color: #fff; }

/* --------------------------------------------- 記事本文：画像の表示幅 --------------------------------------------- */
.mag-body figure.is-w40 img  { width: 40%; }
.mag-body figure.is-w70 img  { width: 70%; }
.mag-body figure.is-worig img { width: auto; max-width: 100%; }

/* --------------------------------------------- 記事本文：ギャラリー（横スライド） --------------------------------------------- */
.mag-body .mag-gallery-slider { position: relative; overflow: hidden; padding-bottom: 28px; }
.mag-body .mag-gallery-list { display: flex; margin: 0; padding: 0; list-style: none; }
.mag-body .mag-gallery-list li { flex: 0 0 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #F5F7F7; }
.mag-body .mag-gallery-list img { display: block; width: 100%; height: 100%; object-fit: contain; } /* 比率が合わない画像はトリミングせず余白（薄いグレー）で収める。cover にすると全面トリミング */

/* ドット */
.mag-body .mag-gallery-dots { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 8px; }
.mag-body .mag-gallery-dots .swiper-pagination-bullet { width: 8px; height: 8px; margin: 0; background: #C9D6D6; opacity: 1; }
.mag-body .mag-gallery-dots .swiper-pagination-bullet-active { background: var(--accent); }

/* --------------------------------------------- 記事本文：ビフォーアフター --------------------------------------------- */
.mag-body .mag-compare-frame { --pos: 50%; position: relative; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.mag-body .mag-compare-frame:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mag-body .mag-compare-frame img { display: block; width: 100%; max-width: 100%; height: auto; margin: 0; pointer-events: none; }   /* 枠の比率はアフター画像に合わせる（切り取らない） */
.mag-body .mag-compare-frame .mag-compare-before { position: absolute; top: 0; left: 0; height: 100%; object-fit: cover; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.mag-body .mag-compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 4px rgba(0, 0, 0, .3); }
.mag-body .mag-compare-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255, 255, 255, .9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56' fill='none' stroke='%235E9FA2' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 21l-7 7 7 7M34 21l7 7-7 7'/%3E%3C/svg%3E") center / 56px 56px no-repeat; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }   /* 矢印の色は --accent と同じ */
.mag-body .mag-compare-labels { display: flex; justify-content: space-between; margin-top: 10px; font-size: 15px; line-height: 1.6; color: #000; }

/* --------------------------------------------- 記事本文：関連製品カード（お気に入り一覧と同じ） --------------------------------------------- */
.mag-body .mag-refs-products,
.mag-body .mag-refs-articles { margin: 40px 0 0; }
.mag-body .mag-prod-list { margin-top: 15px; }
.mag-body .fav-item { position: relative; display: flex; align-items: flex-start; gap: 18px; background: #fff; border: 1px solid var(--accent); border-radius: 10px; padding: 16px 21px 16px 18px; margin-bottom: 20px; }
.mag-body .fav-item:last-child { margin-bottom: 0; }
.mag-body .fav-thumb { flex: none; display: block; width: 146px; height: 96px; border-radius: 5px; overflow: hidden; background: #F2F2F2; }
.mag-body .fav-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mag-body .fav-body { flex: 1; min-width: 0; padding-right: 135px; }
.mag-body .fav-name { margin: 0; font-size: 18px; font-weight: 700; line-height: 26px; }
.mag-body .fav-name a { color: var(--text); }
.mag-body .fav-item .pc-row { display: flex; align-items: baseline; margin: 10px 0 0; }
.mag-body .fav-item .pc-cell { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.mag-body .fav-item .pc-label { flex: none; display: flex; align-items: center; justify-content: center; width: 104px; height: 25px; background: #EBEBEB; border-radius: 999px; font-size: 11px; font-weight: 500; color: #080808; line-height: 1.5; }
.mag-body .fav-item .pc-val { min-width: 0; font-size: 14px; color: var(--text); line-height: 1.5; }
.mag-body .fav-item .icon-btn { position: absolute; top: 15px; right: 21px; width: 37px; height: 37px; padding: 0; background: #fff; border: 1px solid #E5E5E5; border-radius: 50%; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.mag-body .fav-item .icon-btn:hover { opacity: .75; }
.mag-body .fav-item .icon-btn .heart_box { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: block; width: 17px; height: 15px; }
.mag-body .fav-item .icon-btn .heart_box img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: auto; transition: opacity .2s ease; }
.mag-body .fav-item .icon-btn .heart_box img.hart_2 { opacity: 0; }
.mag-body .fav-item .icon-btn.is-on .heart_box img.hart_1 { opacity: 0; }
.mag-body .fav-item .icon-btn.is-on .heart_box img.hart_2 { opacity: 1; }
.mag-body .fav-item .fav-cart { position: absolute; right: 21px; bottom: 17px; display: flex; align-items: center; justify-content: center; width: 114px; height: 29px; padding: 0; background: var(--accent); border: 1px solid var(--accent); border-radius: 15px; font-size: 14px; color: #fff; cursor: pointer; }
.mag-body .fav-item .fav-cart.is-on { width: auto; padding: 0 14px; background: #fff; color: var(--accent); }
.mag-body .fav-item .fav-cart:hover { opacity: .75; }

@media screen and (max-width: 768px) {
	.mag-body .fav-item { display: grid; grid-template-columns: 122px 1fr; gap: 0 9px; padding: 15px 15px 11px; margin-bottom: 10px; }
	.mag-body .fav-thumb { grid-column: 1; grid-row: 1; }
	.mag-body .fav-body { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; }
	.mag-body .fav-body .pc-row { margin-top: 8px; }
	.mag-body .fav-thumb { width: 122px; height: 80px; border-radius: 4px; }
	.mag-body .fav-body { padding-right: 0; }
	.mag-body .fav-name { font-size: 15px; line-height: 22px; }
	.mag-body .fav-item .pc-label { width: 64px; height: 20px; }
	.mag-body .fav-item .pc-val { font-size: 12px; line-height: 20px; }
	/* ♥とカートは1行目（サムネ・名前の下）に横並び。♥は position:relative のまま（中のハートは absolute 中央） */
	.mag-body .fav-item .icon-btn,
	.mag-body .fav-item .fav-cart { grid-column: 1 / -1; grid-row: 2; justify-self: end; margin-top: 7px; }
	.mag-body .fav-item .icon-btn { position: relative; top: auto; right: auto; width: 30px; height: 30px; margin-right: 138px; }
	.mag-body .fav-item .icon-btn .heart_box { width: 14px; height: 12px; }
	.mag-body .fav-item .fav-cart { position: static; width: 128px; height: 30px; }
}

.pv-canvas { display: block; max-width: 100%; height: auto; border-radius: 4px; }
/* ページ送りはPDFの下に置く（PDFの下端に重ねない） */
.pv-page { aspect-ratio: auto; justify-content: flex-start; gap: 12px; padding-bottom: 12px; }
.pv-pager { position: static; }

.pv-msg { display: none; padding: 40px 20px; color: #888; font-size: 13px; text-align: center; }

.pv-video-frame { position: relative; width: 100%; max-width: 880px; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; }
.pv-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

a.pv-dl, a.pv-dl:link, a.pv-dl:visited, a.pv-dl:hover { display: inline-block; text-decoration: none; text-align: center; color: #fff; }

.pv-thumb canvas { display: block; width: 100%; height: auto; border-radius: 3px; }

#detailBody .ai-chat-bubble .ai-chat-link { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
#detailBody .ai-chat-bubble .ai-chat-link:hover { opacity: .75; }

#detailBody .ai-chat-thread { padding-bottom: 24px; }

@media screen and (max-width: 768px) {

	#detailBody .ai-chat-thread { padding-bottom: 20px; }
}

/* 製品概略：ページ下部の注意書き */
#detailBody .pd-foot-notes { margin: 48px 0 0; padding: 20px 28px; list-style: none; background: #F5F5F5; font-size: 14px; line-height: 2.1; color: #333; }
#detailBody .pd-foot-notes li { position: relative; padding-left: 1em; line-height: 2.1; }   /* default.css で li の行間が 100% に固定されているため li に指定 */
#detailBody .pd-foot-notes li::before { content: "・"; position: absolute; left: 0; }
#detailBody .pd-foot-notes a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }

@media screen and (max-width: 768px) {

	#detailBody .pd-foot-notes { margin-top: 32px; padding: 14px 16px; font-size: 12px; line-height: 2; }
	#detailBody .pd-foot-notes li { line-height: 2; }
}

/* ご利用規約（rule/index.php） */
body.rule .layout.full .contact_box { margin: 0 auto; }   /* ログイン前（サイドバーなし）は中央に */
.contact_box .rule-body { padding: 30px 33px 40px; font-size: 14px; color: #000; }
.contact_box .rule-body p { line-height: 1.9; }
.contact_box .rule-body h2 { margin: 30px 0 10px; padding-left: 10px; border-left: 3px solid var(--accent); font-size: 16px; font-weight: 500; line-height: 1.5; }
.contact_box .rule-body .rule-list li { position: relative; padding-left: 1em; line-height: 1.9; }
.contact_box .rule-body .rule-list li::before { content: "・"; position: absolute; left: 0; }
.contact_box .rule-body .rule-list li + li { margin-top: 4px; }

@media screen and (max-width: 768px) {

	.contact_box .rule-body { padding: 20px 20px 30px; font-size: 13px; }
	.contact_box .rule-body h2 { margin-top: 24px; font-size: 15px; }
}

/* 規約・プライバシーポリシー（view/policy_*.php） */
.contact_box .rule-body h3 { margin: 20px 0 6px; font-size: 15px; font-weight: 500; line-height: 1.5; }
.contact_box .rule-body .rule-list { margin-bottom: 10px; }
.contact_box .rule-body .policy-date { margin-top: 30px; text-align: right; }

/* パスワード設定の同意（auth/password-set.php） */
.auth-wrap .pw-agree { width: 612px; max-width: 100%; margin: 30px auto 0; display: flex; flex-direction: column; gap: 14px; }
.auth-wrap .pw-agree-row { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; line-height: 1.5; cursor: pointer; }
.auth-wrap .pw-agree-row input { flex: none; width: 16px; height: 16px; margin: 0; }
.auth-wrap .pw-agree-row span { line-height: inherit; }
.auth-wrap .pw-agree-row a { color: var(--accent); text-decoration: underline; }
.auth-wrap .pw-agree-row .req-mark { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; padding: 0 6px; box-sizing: border-box; height: 19px; margin-left: 8px; background: #E44A59; border-radius: 4px; font-size: 11px; font-weight: 500; color: #fff; line-height: 1; vertical-align: middle; }
@media (max-width: 768px) {
	.auth-wrap .pw-agree { margin-top: 24px; gap: 12px; }
	.auth-wrap .pw-agree-row { font-size: 14px; gap: 6px; }
}
