/* ==========================================================
  page-reason.css
  Base  = structural / shared (no sizing)
  < 640  = phone
  >= 640 = sm (small tablet)
  >= 768 = md (tablet)
  >= 1024 = lg (desktop)
  ========================================================== */

/* --- Base (structural only) --- */
.reason-inner { position: relative; }
.reason-subtitle img { width: 100%; display: block; }
.reason-deco { position: absolute; width: auto; pointer-events: none; display: none; }
.reason-list { position: relative; z-index: 1; display: flex; flex-direction: column; }
.reason-item { display: flex; flex-direction: column; position: relative; }
.reason-title { display: flex; align-items: end; margin: 0; color: var(--theme-color-blue); font-weight: 800; }
.reason-title span { display: block; flex: 1; min-width: 0; }
.reason-title strong { display: block; }
.reason-badge { width: auto; object-fit: contain; flex: 0 0 auto; z-index: 3; }
.reason-body { position: relative; }
.reason-card { display: block; position: relative; }
.reason-card img { width: 100%; height: auto; display: block; }
.reason-item:nth-child(even) .reason-card img { margin-left: auto; }
.reason-explan { line-height: 1.7; color: #000; }
.reason-explain-strong { font-weight: 700; border-bottom: 6px solid var(--theme-color-yellow); }
.reason-item:nth-child(even) .reason-explan { margin-left: auto; }
.reason-item:nth-child(even) .reason-title { justify-content: space-between; }
.reason-item:nth-child(even) .reason-title span { text-align: right; }
.reason-item:nth-child(even) .reason-card { margin-left: auto; }
.reason-body::after { content: ""; position: absolute; top: 50%; transform: translateY(-50%); background: var(--dash-url) no-repeat center / contain; rotate: 15deg; }
.reason-item:nth-child(even) .reason-body::after { right: auto; transform: translateY(-50%) scaleX(-1); rotate: -15deg; }
.reason-item:nth-child(4) .reason-body::after { display: none; }

/* --- Phone --- */
@media (width < 640px) {
.reason-list { gap: 24px; margin-top: 32px; }
.reason-title { font-size: 16px; gap: 12px; line-height: 1.6; }
.reason-subtitle img { display: none; }
.reason-title strong { font-size: 18px; margin-top: 4px; }
.reason-title span { text-align: left; }
.reason-badge { height: 96px; margin-bottom: -12px; }
.reason-card { width: 100%; }
.reason-item:nth-child(even) .reason-card { margin-left: 0; }
.reason-explan { width: 100%; margin-top: 16px; font-size: 14px; line-height: 1.75; }
.reason-item:nth-child(even) .reason-explan { margin-left: 0; }
.reason-explain-strong { border-bottom-width: 5px; }
.reason-item:nth-child(even) .reason-title { justify-content: flex-start; }
.reason-item:nth-child(even) .reason-title span { text-align: right; }
.reason-body::after { display: none; }
}

/* --- sm (small tablet) --- */
@media (width >= 640px) {
.reason-list { gap: 24px; margin-top: 32px; }
.reason-title { font-size: 16px; gap: 12px; line-height: 1.6; }
.reason-subtitle img { display: none; }
.reason-title strong { font-size: 20px; margin-top: 4px; }
.reason-title span { text-align: left; }
.reason-badge { height: 108px; margin-bottom: -12px; }
.reason-card { width: 100%; }
.reason-item:nth-child(even) .reason-card { margin-left: 0; }
.reason-explan { width: 100%; margin-top: 16px; font-size: 14px; line-height: 1.75; }
.reason-item:nth-child(even) .reason-explan { margin-left: 0; }
.reason-explain-strong { border-bottom-width: 5px; }
.reason-item:nth-child(even) .reason-title { justify-content: flex-start; }
.reason-item:nth-child(even) .reason-title span { text-align: right; }
.reason-body::after { display: none; }
}

/* --- md (tablet) --- */
@media (width >= 768px) {
.reason-inner { max-width: calc(100% - 48px); }
.reason-subtitle img { display: block; }
.reason-list { gap: 56px; margin-top: 0; }
.reason-title { gap: 18px; font-size: 18px; }
.reason-title strong { font-size: 22px; margin-top: 6px; }
.reason-title span { text-align: unset; }
.reason-badge { height: 120px; margin-bottom: -14px; }
.reason-card { width: 86%; }
.reason-item:nth-child(even) .reason-card { margin-left: auto; }
.reason-explan { width: 86%; margin-top: 18px; font-size: 15px; line-height: 1.75; }
.reason-item:nth-child(even) .reason-explan { margin-left: auto; }
.reason-explain-strong { border-bottom-width: 6px; }
.reason-item:nth-child(even) .reason-title { justify-content: space-between; }
.reason-body::after { display: block; width: 200px; height: 200px; right: 24px; }
.reason-item:nth-child(even) .reason-body::after { left: 24px; }
}

/* --- lg (desktop) --- */
@media (width >= 1024px) {
.reason-inner { max-width: 896px; margin: 0 auto; }
.reason-subtitle img { max-width: 896px; }
.reason-list { max-width: 896px; margin: 0 auto; }
.reason-title { font-size: 20px; line-height: 1.6; gap: 24px; }
.reason-title strong { font-size: 24px; margin-top: 6px; }
.reason-badge { height: 144px; margin-bottom: -20px; }
.reason-card { width: 75%; }
.reason-explan { width: 75%; margin-top: 24px; font-size: 16px; line-height: 1.7; }
.reason-body::after { width: 240px; height: 240px; right: 48px; }
.reason-item:nth-child(even) .reason-body::after { left: 48px; }

/* デコレーション表示（lg以上のみ） */
.reason-deco { display: block; }
.reason-item:nth-child(1) .reason-deco-can { height: 86px; top: 21%; right: 6%; }
.reason-item:nth-child(1) .reason-deco-brush01 { height: 112px; top: 34%; right: 0%; rotate: 63deg; }
.reason-deco-brush02 { height: 116px; top: 23%; left: 1%; rotate: 1deg; }
.reason-deco-brush03 { height: 103px; top: 30%; left: 7%; rotate: -7deg; }
.reason-deco-spray { height: 132px; top: 25%; right: 1%; rotate: -8deg; }
.reason-item:nth-child(4) .reason-deco-can { height: 86px; top: 22%; left: 2%; }
.reason-item:nth-child(4) .reason-deco-brush01 { height: 112px; top: 42%; left: 9%; rotate: 64deg; }
}
