/* ==========================================================================
   トップページだけの見た目（functions.php で is_front_page() の時だけ読む）。
   共通の色・ボタン・見出しは style.css。
   ========================================================================== */

/* --- 一枚目：教具が主役・縦書きの明朝 --- */
.hero { position: relative; background: #e4e5e8; }
.hero-photo { position: relative; height: min(78vh, 720px); min-height: 460px; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%; animation: heroZoom 16s ease-out both; }
.hero-copy { position: absolute; top: 50%; right: max(20px, calc((100vw - var(--w)) / 2 + 20px)); transform: translateY(-50%); background: rgba(255, 255, 255, .95); padding: 40px 34px; display: flex; flex-direction: row-reverse; gap: 22px; align-items: flex-start; box-shadow: 0 10px 40px rgba(0, 0, 0, .18); animation: heroIn 1.1s ease .2s both; }
.hero-copy h1 { writing-mode: vertical-rl; font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.7; letter-spacing: .14em; color: var(--indigo-dark); }
.hero-copy h1 em { font-style: normal; color: var(--rose); }
.hero-copy .hero-place { writing-mode: vertical-rl; font-size: 14px; letter-spacing: .3em; color: var(--sub); border-left: 1px solid var(--line); padding-left: 14px; }
.hero-four { writing-mode: vertical-rl; list-style: none; display: flex; gap: 6px; }
.hero-four li { font-weight: 700; font-size: 14px; padding: 8px 3px; border: 1px solid currentColor; border-radius: 2px; letter-spacing: .2em; }
.hero-four .num { color: var(--c-num); }
.hero-four .shape { color: var(--c-shape); }
.hero-four .think { color: var(--c-think); }
.hero-four .word { color: var(--c-word); }
.hero-since { position: absolute; left: max(20px, calc((100vw - var(--w)) / 2 + 20px)); top: 28px; color: var(--indigo-dark); font-family: var(--serif); font-size: 15px; letter-spacing: .12em; }
.hero-since b { display: block; font-size: 30px; letter-spacing: .08em; }
@keyframes heroZoom { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes heroIn { from { opacity: 0; transform: translateY(calc(-50% + 18px)); } to { opacity: 1; transform: translateY(-50%); } }

/* --- 入口：最初に行き先を3つ並べる --- */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: -80px; position: relative; z-index: 2; }
.door { background: #fff; text-decoration: none; display: flex; flex-direction: column; border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(40, 30, 20, .10); transition: transform .25s, box-shadow .25s; }
.door:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(40, 30, 20, .16); }
.door-photo { aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.door-photo img { width: 100%; height: 100%; object-fit: cover; }
.door-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; border-top: 5px solid var(--bar); }
.door-label { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--bar); }
.door h3 { font-family: var(--serif); font-size: 22px; color: var(--indigo-dark); margin: 2px 0 8px; line-height: 1.5; }
.door p { font-size: 15px; flex: 1; }
.door .go { margin-top: 14px; font-weight: 700; color: var(--indigo-dark); font-size: 15px; }
.door .go::after { content: " \2192"; }

/* --- お知らせの帯 --- */
.news-strip { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px 0; margin-top: 64px; }
.news-strip h2 { font-family: var(--serif); font-size: 18px; color: var(--indigo-dark); padding-right: 28px; border-right: 1px solid var(--line); }
.news-strip ul { list-style: none; }
.news-strip li a { display: flex; gap: 18px; padding: 9px 0; text-decoration: none; }
.news-strip li a:hover span:last-child { text-decoration: underline; }
.news-strip li + li { border-top: 1px dashed var(--line); }
.news-date { color: var(--sub); font-size: 14px; flex: none; padding-top: 1px; }
.news-strip .all { font-size: 14px; font-weight: 700; color: var(--indigo-dark); text-decoration: none; white-space: nowrap; }

/* --- 三本の柱 1：教具を白地に並べる --- */
.tsumiki { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; margin-bottom: 44px; }
.tsumiki .head { margin-bottom: 0; }
.lead-serif { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--indigo-dark); line-height: 1.8; margin-bottom: 14px; }
.objects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.object { background: #fff; border: 1px solid var(--line); }
.object img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.object figcaption { padding: 10px 12px; font-size: 14px; font-weight: 700; color: var(--indigo-dark); border-top: 1px solid var(--line); }

/* --- 三本の柱 2・3：左右交互の大きい写真 --- */
.pillar { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.pillar + .pillar { margin-top: 80px; }
.pillar.rev .pillar-photo { order: 2; }
.pillar-photo { position: relative; }
.pillar-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pillar-no { position: absolute; top: -30px; left: -10px; font-family: var(--serif); font-size: 72px; font-weight: 700; line-height: 1; color: var(--col); text-shadow: 0 2px 0 #fff; }
.pillar.rev .pillar-no { left: auto; right: -14px; }
.pillar h2 { font-family: var(--serif); font-size: 28px; color: var(--indigo-dark); line-height: 1.5; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--col); }
.pillar p + p { margin-top: 10px; }
.pillar-note { margin-top: 72px; background: #fff; border: 1px solid var(--line); padding: 22px 26px; font-size: 15px; }
.pillar-more { text-align: center; margin-top: 32px; }

/* --- コース・受講料の表 --- */
.course-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
.course-table th,
.course-table td { padding: 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 15px; }
.course-table thead th { background: var(--indigo); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .08em; padding: 12px 22px; }
.course-table tbody th { width: 24%; }
.course-table td.price { width: 250px; }
.course-table td:last-child { width: 96px; }
.course-table tbody th b { display: block; font-family: var(--serif); font-size: 20px; color: var(--indigo-dark); line-height: 1.5; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 0 8px; border: 1px solid currentColor; margin-bottom: 6px; letter-spacing: .06em; }
.price b { font-size: 20px; color: var(--rose-dark); font-family: var(--serif); white-space: nowrap; }
.price small { display: block; color: var(--sub); font-size: 13px; line-height: 1.7; margin-top: 4px; }
.course-table a { font-weight: 700; color: var(--indigo-dark); font-size: 14px; white-space: nowrap; }
.courses-note { margin-top: 20px; color: var(--sub); font-size: 15px; text-align: center; }

/* --- 教材ショップ：教材の中のページを並べる --- */
.shop-items { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.shop-item { text-decoration: none; display: block; }
.shop-item .thumb { display: block; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: box-shadow .25s; } /* 中身＝マークと教材名のカード（pzl_club_shop_item_thumb） */
.shop-item:hover .thumb { box-shadow: 0 8px 24px rgba(40, 30, 20, .14); }
.shop-item .thumb-name { display: flex; align-items: center; justify-content: center; height: 100%; padding: 12px; background: var(--paper-2); font-family: var(--serif); font-weight: 700; color: var(--indigo-dark); text-align: center; } /* ショップのプラグインが無い時 */
.shop-item .name { display: block; margin-top: 10px; font-weight: 700; font-size: 15px; color: var(--indigo-dark); line-height: 1.5; }
.shop-item .yen { display: block; font-size: 14px; color: var(--sub); }
.shop-more { text-align: center; margin-top: 36px; }


/* --- 理念 --- */
#philosophy { padding-top: 48px; }
.philo { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; }
.philo-title { font-family: var(--serif); font-size: 16px; color: var(--sub); letter-spacing: .12em; margin-bottom: 10px; }
.philo-words { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--indigo-dark); line-height: 1.9; }
.philo-words em { font-style: normal; color: var(--rose); }
.philo ol { list-style: none; margin-top: 26px; counter-reset: ph; }
.philo li { counter-increment: ph; padding: 14px 0 14px 44px; border-top: 1px solid var(--line); position: relative; }
.philo li::before { content: counter(ph); position: absolute; left: 0; top: 15px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--indigo); color: var(--indigo); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.philo li b { color: var(--indigo-dark); }
.philo-photo img { width: 100%; border-radius: 2px; }

/* --- よくあるご質問 --- */
.faq { max-width: 840px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); background: #fff; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 48px 20px 52px; position: relative; font-weight: 700; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 16px; top: 16px; font-family: var(--serif); font-size: 22px; color: var(--indigo); }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 14px; font-size: 24px; color: var(--indigo); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 18px 22px 52px; position: relative; }
.faq .answer::before { content: "A"; position: absolute; left: 16px; top: -6px; font-family: var(--serif); font-size: 22px; color: var(--rose); }

/* --- 教室案内 --- */
.access { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.map-box { background: var(--paper); border: 1px solid var(--line); }
.map-box p { padding: 10px 14px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
	.hero-photo img,
	.hero-copy { animation: none; }
	.door,
	.door:hover { transform: none; transition: none; }
}

@media (max-width: 860px) {
	.hero-photo { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
	.hero-copy { position: relative; top: auto; right: auto; transform: none; animation: none; margin: -48px 16px 0; padding: 28px 22px; justify-content: center; }
	.hero-copy h1 { font-size: 26px; }
	.hero-since { top: 16px; font-size: 13px; }
	.hero-since b { font-size: 22px; }
	.hero { padding-bottom: 8px; background: #fff; }
	.doors { grid-template-columns: 1fr; margin-top: 40px; }
	.news-strip { grid-template-columns: 1fr; gap: 4px; }
	.news-strip h2 { border-right: none; padding: 8px 0 0; }
	.news-strip li a { flex-direction: column; gap: 0; }
	.tsumiki { grid-template-columns: 1fr; gap: 16px; }
	.lead-serif { font-size: 18px; }
	.objects { grid-template-columns: repeat(2, 1fr); }
	.pillar,
	.philo,
	.access { grid-template-columns: 1fr; gap: 28px; }
	.pillar.rev .pillar-photo { order: 0; }
	.pillar-no { font-size: 48px; top: -20px; left: -4px; }
	.pillar.rev .pillar-no { left: -4px; right: auto; }
	.pillar h2 { font-size: 23px; }
	.philo-words { font-size: 20px; }
	.course-table thead { display: none; }
	.course-table,
	.course-table tbody,
	.course-table tr,
	.course-table th,
	.course-table td { display: block; width: 100%; }
	.course-table tr { border-bottom: 6px solid var(--paper); }
	.course-table th,
	.course-table td { border-bottom: none; padding: 12px 18px; }
	.course-table tbody th,
	.course-table td.price,
	.course-table td:last-child { width: 100%; }
	.course-table tbody th { padding-top: 20px; }
	.course-table td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; color: var(--sub); letter-spacing: .1em; }
	.shop-items { grid-template-columns: repeat(2, 1fr); }
}

/* 入口「教材ショップ」の絵＝マークと文字（教材の中身は見せない）。6色はショップの棚の色 */
.door-shopcard { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4%; padding: 0 9% 0 11%; background: var(--paper); container-type: inline-size; }
.door-shopcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3.5%; background: var(--indigo); }
.door-shopcard::after { content: ""; position: absolute; right: -10%; bottom: -24%; width: 48%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--indigo); opacity: .1; }
.dsc-brand { display: flex; align-items: center; gap: 2.5cqw; font-family: var(--serif); font-weight: 700; font-size: clamp(12px, 4.6cqw, 17px); color: var(--indigo-dark); letter-spacing: .06em; }
.dsc-brand img { width: 10cqw; height: auto; }
.dsc-title { font-family: var(--serif); font-weight: 700; font-size: clamp(20px, 10cqw, 38px); color: var(--indigo-dark); letter-spacing: .08em; line-height: 1.3; }
.dsc-chips { display: grid; grid-template-columns: repeat(3, max-content); gap: 1.6cqw; } /* 3つずつ2行（1つだけ下の行に落ちないように） */
.dsc-chips i { text-align: center; font-style: normal; font-weight: 700; font-size: clamp(11px, 3.8cqw, 14px); color: #fff; background: var(--c); padding: .15em .75em; border-radius: 999px; }
