/* ===============================================================
   pblk-patterns.css v1.1
   ロイテム ホームページ ブロックの見せ方（見出し・外枠・説明リスト・動き）
   使う色はテーマの変数（--lt-*）だけ。初期値（0・空）のclassにはルールを書かない
   読み込み：style.css の直後（_headertop_pb.php）。#386
   =============================================================== */

/* ---------- 見出しレベル（共通） ---------- */
.pblk-info > hgroup > h3.pblk-title,
.pblk-info > hgroup > p.pblk-title { font-size: 26px; font-weight: bold; margin: 0; }
@media screen and (max-width: 767px) {
  .pblk-info > hgroup > h3.pblk-title,
  .pblk-info > hgroup > p.pblk-title { font-size: 21px; }
}

/* アクセント色（線・丸・番号）。ボタン色は配色パターンによって薄くなるので、テーマの第3色を元にする
   c2・ページ最下部（背景が第3色）と背景写真敷きでは、文字色側をアクセントにする */
.pblk { --pb-accent: var(--lt-tertiary-bg); --pb-on-accent: var(--lt-tertiary-color, #fff); }
.pblk-c2, .pblk-c101 { --pb-accent: var(--lt-content-color); --pb-on-accent: var(--lt-tertiary-bg); }
.pblk-bs-4 { --pb-accent: #fff; --pb-on-accent: #333; }

/* ---------- 見出しデザイン（heading_style） ---------- */
/* 1：下線 */
.pblk-hs-1 .pblk-info > hgroup { align-items: center; }
.pblk-hs-1 .pblk-title { white-space: normal; position: relative; padding-bottom: 14px; }
.pblk-hs-1 .pblk-title::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 48px; height: 3px; margin-left: -24px; border-radius: 2px; background: var(--pb-accent); }

/* 2：左ライン（hgroup の style="text-align:center" を上書き） */
.pblk-hs-2 .pblk-info > hgroup { text-align: left !important; align-items: flex-start; border-left: 5px solid var(--pb-accent); padding-left: 16px; }
.pblk-hs-2 .pblk-title { white-space: normal; }

/* 3：英字を大きく（サブ見出しを背景に大きく敷く） */
.pblk-hs-3 .pblk-info > hgroup { position: relative; isolation: isolate; flex-direction: column; align-items: center; padding-top: 34px; }
.pblk-hs-3 .pblk-info > hgroup > p { position: absolute; top: -6px; left: 0; right: 0; z-index: -1; font-size: clamp(44px, 9vw, 88px); line-height: 1; letter-spacing: .06em; text-transform: uppercase; opacity: .12; white-space: nowrap; overflow: hidden; }
.pblk-hs-3 .pblk-title { white-space: normal; }

/* 4：両側に線 */
.pblk-hs-4 .pblk-info > hgroup { align-items: center; }
.pblk-hs-4 .pblk-title { display: flex; align-items: center; gap: 16px; white-space: normal; }
.pblk-hs-4 .pblk-title::before,
.pblk-hs-4 .pblk-title::after { content: ""; flex: 1 1 0; min-width: 24px; max-width: 80px; height: 1px; background: currentColor; opacity: .5; }

/* ---------- デザインパターン：外枠（block_style） ---------- */
/* 1：カード型（中身を白い面に載せる） */
.pblk-bs-1 > .pblk-content { --lt-content-color: var(--lt-part-color); --lt-link-color: var(--lt-part-color); color: var(--lt-part-color); background: var(--lt-part-bg); border-radius: 16px; padding: clamp(20px, 4vw, 40px); box-shadow: 0 8px 24px rgb(0 0 0 / .08); }

/* 2：角丸の帯（左右に余白をとり、背景ごと角丸に） */
.pblk-bs-2 { width: calc(100% - 2 * max(16px, 4vw)); margin: 24px auto; border-radius: 24px; }

/* 3：斜めの区切り */
.pblk-bs-3 { clip-path: polygon(0 0, 100% 4vw, 100% 100%, 0 calc(100% - 4vw)); padding-top: calc(40px + 4vw); padding-bottom: calc(40px + 4vw); }

/* 4：背景写真敷き（ブロックの背景画像を使う。画像がなければテーマの濃い色） */
.pblk-bs-4 { --lt-content-color: #fff; --lt-link-color: #fff; color: #fff; background-color: var(--lt-tertiary-bg); background-position: center; background-attachment: fixed; }
.pblk-bs-4 > .pblk-content { background: rgb(0 0 0 / .38); border-radius: 12px; padding: clamp(20px, 4vw, 40px); }
@media (max-width: 1023px), (hover: none) { .pblk-bs-4 { background-attachment: scroll; } }

/* ---------- デザインパターン：説明リストの並べ方（page_parts.layout） ---------- */
/* 空 = 左右交互（現行のHTMLのまま。ここには何も書かない） */
.dl-list-card3 .dl-list-title, .dl-list-card2 .dl-list-title,
.dl-list-number .dl-list-title, .dl-list-step .dl-list-title,
.dl-list-simple .dl-list-title { font-size: 19px; font-weight: bold; line-height: 1.5; margin: 0 0 8px; }
.dl-list-card3 .dl-list-text p, .dl-list-card2 .dl-list-text p,
.dl-list-number .dl-list-text p, .dl-list-step .dl-list-text p,
.dl-list-simple .dl-list-text p { margin: 0 0 .6em; }

/* card3 / card2：カード */
.dl-list-card3, .dl-list-card2 { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .dl-list-card2 { grid-template-columns: repeat(2, 1fr); } .dl-list-card3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dl-list-card3 { grid-template-columns: repeat(3, 1fr); } }
.dl-list-ul.dl-list-card3 > li:nth-child(n),
.dl-list-ul.dl-list-card2 > li:nth-child(n) { display: flex; flex-direction: column; justify-content: flex-start; background: var(--lt-part-bg); color: var(--lt-part-color); border: 1px solid rgb(0 0 0 / .06); border-radius: 12px; overflow: hidden; }
.dl-list-card3 .dl-list-pic, .dl-list-card2 .dl-list-pic { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.dl-list-card3 .dl-list-pic img, .dl-list-card2 .dl-list-pic img { width: 100%; height: 100%; object-fit: cover; }
.dl-list-card3 .dl-list-content, .dl-list-card2 .dl-list-content { width: auto; padding: 16px 20px 20px; }

/* number：番号つき */
.dl-list-number { counter-reset: dl; display: grid; gap: 0; }
.dl-list-ul.dl-list-number > li:nth-child(n) { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; counter-increment: dl; padding: 22px 0; border-bottom: 1px solid rgb(127 127 127 / .3); }
.dl-list-number > li::before { content: counter(dl, decimal-leading-zero); font-size: 42px; font-weight: bold; line-height: 1; color: var(--pb-accent); font-variant-numeric: tabular-nums; }
.dl-list-number .dl-list-pic { display: none; }
.dl-list-number .dl-list-content { width: auto; padding: 0; }

/* step：ステップ（ご利用の流れ） */
.dl-list-step { counter-reset: dl; }
.dl-list-ul.dl-list-step > li:nth-child(n) { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; align-items: start; counter-increment: dl; position: relative; padding-bottom: 32px; }
.dl-list-step > li::before { content: "STEP\A" counter(dl); white-space: pre; grid-row: 1 / span 2; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 11px; font-weight: bold; line-height: 1.25; letter-spacing: .05em; color: var(--pb-on-accent); background: var(--pb-accent); position: relative; z-index: 1; }
.dl-list-step > li:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px; background: var(--pb-accent); opacity: .35; }
.dl-list-step .dl-list-content { grid-column: 2; grid-row: 1; width: auto; padding: 8px 0 0; }
.dl-list-step .dl-list-pic { grid-column: 2; grid-row: 2; width: auto; max-width: 320px; margin-top: 8px; border-radius: 8px; overflow: hidden; }

/* simple：文字のみ */
.dl-list-simple .dl-list-pic { display: none; }
.dl-list-ul.dl-list-simple > li:nth-child(n) { display: block; padding: 20px 0; border-bottom: 1px solid rgb(127 127 127 / .3); }
.dl-list-simple .dl-list-content { width: auto; padding: 0; }

/* ---------- 動き（animation）。html.lt-anim は pblk-anim.js が付ける ---------- */
.pblk[class*="pblk-anim-"] { transition: opacity 1.4s ease-out, transform 1.4s cubic-bezier(.22, 1, .36, 1); }
html.lt-anim .pblk-anim-fade:not(.is-inview) { opacity: 0; }
html.lt-anim .pblk-anim-up:not(.is-inview) { opacity: 0; transform: translateY(50px); }
html.lt-anim .pblk-anim-zoom:not(.is-inview) { opacity: 0; transform: scale(.94); }

/* stagger：見出し → 中身の順に出す */
.pblk-anim-stagger .pblk-info,
.pblk-anim-stagger .pprt:not(:has(.dl-list-ul)),
.pblk-anim-stagger .dl-list-ul > li { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
html.lt-anim .pblk-anim-stagger:not(.is-inview) .pblk-info,
html.lt-anim .pblk-anim-stagger:not(.is-inview) .pprt:not(:has(.dl-list-ul)),
html.lt-anim .pblk-anim-stagger:not(.is-inview) .dl-list-ul > li { opacity: 0; transform: translateY(24px); }
.pblk-anim-stagger .dl-list-ul > li:nth-child(1), .pblk-anim-stagger .pprt:nth-child(1) { transition-delay: .15s; }
.pblk-anim-stagger .dl-list-ul > li:nth-child(2), .pblk-anim-stagger .pprt:nth-child(2) { transition-delay: .3s; }
.pblk-anim-stagger .dl-list-ul > li:nth-child(3), .pblk-anim-stagger .pprt:nth-child(3) { transition-delay: .45s; }
.pblk-anim-stagger .dl-list-ul > li:nth-child(4), .pblk-anim-stagger .pprt:nth-child(4) { transition-delay: .6s; }
.pblk-anim-stagger .dl-list-ul > li:nth-child(n+5) { transition-delay: .75s; }

@media (prefers-reduced-motion: reduce) {
  html.lt-anim .pblk[class*="pblk-anim-"],
  html.lt-anim .pblk[class*="pblk-anim-"] * { opacity: 1 !important; transform: none !important; transition: none !important; }
}
