/*
Theme Name: Quality Arts
Theme URI: https://quality-arts.com/
Description: クオリティアーツのサイト用の子テーマ（親テーマ：Twenty Twenty-Five）。親しみやすさとスタイリッシュさの同居を目指したデザイン。
Author: クオリティアーツ
Template: twentytwentyfive
Version: 0.1.2
Requires at least: 6.7
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quality-arts
*/

/* ---------- 共通 ---------- */
:root {
	--qa-radius-card: 30px;
	--qa-radius-panel: 40px;
	--qa-shadow-cover: 0 10px 24px rgba(35, 30, 30, 0.18);
}
.qa-section { padding-top: clamp(3.5rem, 8vw, 7rem); padding-bottom: clamp(3.5rem, 8vw, 7rem); }
.qa-section.has-blush-background-color, .qa-bg-blush { background: var(--wp--preset--color--blush); }

/* 見出しの上の英字ラベル（角を丸めた四角つき） */
.qa-eyebrow {
	display: flex; align-items: center; gap: 10px; margin: 0 0 0.5rem;
	font-family: var(--wp--preset--font-family--manrope);
	font-size: 0.875rem; font-weight: 800; letter-spacing: 0.18em;
	color: var(--wp--preset--color--qa-red); text-transform: uppercase;
}
.qa-eyebrow::before {
	content: ""; flex-shrink: 0; width: 12px; height: 12px; border-radius: 4px;
	background: var(--wp--preset--color--qa-red);
}
.qa-lead { color: var(--wp--preset--color--ink-2); }
.qa-small { font-size: 0.8125rem; color: var(--wp--preset--color--ink-2); }

/* 見出しと小さなイラストを横に並べる行 */
.qa-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.qa-head-row > * { margin: 0 !important; }
.qa-illust img { display: block; height: auto; }

/* ボタン：枠線の型 */
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 2px solid var(--wp--preset--color--ink); color: var(--wp--preset--color--ink); background: transparent;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--ink); color: #fff; }
.wp-block-button__link::after { content: " →"; }

/* ---------- ヘッダー・フッター ---------- */
.qa-header { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.qa-brand { display: flex; align-items: center; gap: 14px; }
.qa-brand .wp-block-image { margin: 0; }
.qa-brand img { width: 44px; height: 44px; border-radius: 6px; }
.qa-brand-name { margin: 0; font-weight: 700; letter-spacing: 0.08em; line-height: 1.3; }
.qa-brand-name a { color: var(--wp--preset--color--ink); text-decoration: none; }
.qa-brand-sub { display: block; font-family: var(--wp--preset--font-family--manrope); font-size: 0.6875rem; letter-spacing: 0.24em; color: var(--wp--preset--color--ink-2); }
.qa-nav a { color: var(--wp--preset--color--ink); text-decoration: none; }
.qa-nav a:hover { color: var(--wp--preset--color--qa-red); }
.qa-footer { border-top: 1px solid var(--wp--preset--color--line); padding-top: 3rem; padding-bottom: 3.5rem; }
.qa-footer .qa-nav a { color: var(--wp--preset--color--ink-2); font-size: 0.875rem; }
.qa-copy { font-family: var(--wp--preset--font-family--manrope); font-size: 0.8125rem; color: var(--wp--preset--color--ink-2); margin: 0; }

/* ---------- ファーストビュー ---------- */
.qa-hero h1 { margin-top: 0.5rem; }
.qa-hero .qa-hero-illust img { width: 100%; height: auto; border-radius: 36px; }

/* ---------- カード類 ---------- */
.qa-grid { display: grid; gap: 24px; }
.qa-grid > * { margin: 0 !important; }
.qa-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qa-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.qa-card {
	background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--qa-radius-card);
	padding: 2.25rem 1.875rem;
}
.qa-card > * { margin-top: 0; margin-bottom: 0; }
.qa-card > * + * { margin-top: 1rem; }
.qa-num { font-family: var(--wp--preset--font-family--manrope); font-size: 2.75rem; font-weight: 800; line-height: 1; color: var(--wp--preset--color--qa-red); }
.qa-icon img { width: 60px; height: 60px; padding: 14px; box-sizing: border-box; border-radius: 22px; background: var(--wp--preset--color--blush); }
.qa-card-top { display: flex; justify-content: space-between; align-items: center; }
.qa-card-top > * { margin: 0 !important; }

/* 課題のリスト */
ul.qa-concerns { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
ul.qa-concerns li {
	display: flex; gap: 16px; align-items: flex-start; margin: 0;
	background: #fff; border-radius: 26px; padding: 1.75rem; font-weight: 500; line-height: 1.8;
}
ul.qa-concerns li::before { content: ""; flex-shrink: 0; width: 12px; height: 12px; margin-top: 0.6em; border-radius: 4px; background: var(--wp--preset--color--qa-red); }

/* 丸いラベル（支援の入り方・取引先） */
ul.qa-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
ul.qa-chips li { margin: 0; padding: 0.625rem 1.25rem; border-radius: 999px; background: var(--wp--preset--color--ground); border: 1px solid var(--wp--preset--color--line); font-weight: 500; }
.qa-band { background: var(--wp--preset--color--blush); border-radius: var(--qa-radius-card); padding: 1.75rem 2.25rem; }
.qa-band ul.qa-chips li { background: #fff; font-weight: 700; font-size: 0.9375rem; }

/* 書籍 */
.qa-book > * { margin-top: 0; margin-bottom: 0; }
.qa-book > * + * { margin-top: 0.5rem; }
.qa-book .qa-cover { margin: 0 0 0.875rem; background: #fff; border-radius: 22px; height: 280px; display: flex; align-items: center; justify-content: center; }
.qa-book .qa-cover img { height: 236px; width: auto; box-shadow: var(--qa-shadow-cover); }
.qa-book-meta { font-size: 0.8125rem; }
.qa-book-meta .qa-role { display: inline-block; padding: 0.1em 0.75em; margin-right: 0.5em; border-radius: 999px; background: #fff; border: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--qa-red); font-weight: 700; font-size: 0.75rem; }
.qa-book-title { font-weight: 700; line-height: 1.6; font-size: 0.9375rem; }
.qa-book-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.qa-book-authors, .qa-book-credit { font-size: 0.75rem; line-height: 1.7; color: var(--wp--preset--color--ink-2); }
.qa-book-link { font-size: 0.8125rem; font-weight: 700; }
.qa-book-link a { text-decoration: none; }

/* 実績パネル */
.qa-panel { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--qa-radius-panel); padding: clamp(2rem, 5vw, 4rem) clamp(1.375rem, 5vw, 4.5rem); }

/* 代表紹介 */
.qa-photo img { border-radius: 36px; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.qa-name { font-size: 1.875rem; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 0; }
.qa-name-sub { font-family: var(--wp--preset--font-family--manrope); font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.16em; color: var(--wp--preset--color--ink-2); margin-top: 0.25rem; }
ul.qa-timeline { list-style: none; padding: 0; border-bottom: 1px solid var(--wp--preset--color--line); }
ul.qa-timeline li { display: flex; gap: 20px; margin: 0; padding: 0.9rem 0; border-top: 1px solid var(--wp--preset--color--line); line-height: 1.7; }
ul.qa-timeline .qa-year { flex-shrink: 0; width: 4.2em; font-family: var(--wp--preset--font-family--manrope); font-weight: 800; color: var(--wp--preset--color--qa-red); }
.qa-sub-h { display: flex; align-items: center; gap: 10px; }
.qa-sub-h::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--wp--preset--color--qa-red); flex-shrink: 0; }

/* 資料カードのタグ */
.qa-tag { display: inline-block; padding: 0.25rem 0.875rem; border-radius: 999px; background: var(--wp--preset--color--blush); color: var(--wp--preset--color--qa-red); font-family: var(--wp--preset--font-family--manrope); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.16em; }
.qa-card .wp-block-rss { padding: 0; margin-top: 0.75rem; list-style: none; font-size: 0.9375rem; }
.qa-card .wp-block-rss li { margin-bottom: 0.5rem; }

/* お知らせ */
.qa-news .wp-block-post-template { list-style: none; padding: 0; margin: 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.qa-news-item { border-top: 1px solid var(--wp--preset--color--line); padding: 1.5rem 0.5rem; gap: 2rem; }
.qa-news-item > * { margin: 0 !important; }
.qa-news-item .wp-block-post-date { font-family: var(--wp--preset--font-family--manrope); font-weight: 700; color: var(--wp--preset--color--ink-2); flex-shrink: 0; width: 7rem; }
.qa-news-item .wp-block-post-terms { flex-shrink: 0; width: 9rem; font-size: 0.8125rem; }
.qa-news-item .wp-block-post-terms a { color: var(--wp--preset--color--ink-2); text-decoration: none; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; padding: 0.2em 0.8em; }
.qa-news-item .wp-block-post-title { font-size: 1.0625rem; font-weight: 500; line-height: 1.7; }
.qa-news-item .wp-block-post-title a { color: var(--wp--preset--color--ink); text-decoration: none; }

/* 相談への案内 */
.qa-cta { background: var(--wp--preset--color--qa-red); border-radius: var(--qa-radius-panel); padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 6vw, 5.5rem); position: relative; overflow: hidden; }
.qa-cta, .qa-cta h2 { color: #fff; }
.qa-cta .qa-eyebrow { color: #F9D6D6; }
.qa-cta .qa-eyebrow::before { background: #F9D6D6; }
.qa-cta p { color: #FFECEC; }
.qa-cta .wp-block-button__link { background: #fff; color: var(--wp--preset--color--qa-red); }
.qa-cta .wp-block-button__link:hover { background: var(--wp--preset--color--blush); color: var(--wp--preset--color--qa-red-dark); }
.qa-cta .qa-illust { opacity: 0.35; }

/* ---------- スマホ ---------- */
@media (max-width: 781px) {
	.qa-grid--3, .qa-grid--4.qa-cards, ul.qa-concerns { grid-template-columns: 1fr; }
	.qa-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; row-gap: 24px; }
	.qa-book .qa-cover { height: 200px; border-radius: 12px; }
	.qa-book .qa-cover img { height: 168px; }
	.qa-head-row .qa-illust img { width: 96px !important; }
	.qa-news-item { flex-wrap: wrap !important; gap: 0.5rem 1rem; }
	.qa-news-item .wp-block-post-title { flex-basis: 100%; }
	.qa-photo img { max-width: 220px; }
}

/* ---------- イラストの大きさ ---------- */
.qa-illust img { width: 220px; max-width: 100%; }
.qa-walkers img { width: 150px; }
.qa-head-row { flex-wrap: wrap; }
.qa-head-row > :first-child { flex: 1 1 auto; }
.qa-head-row > :last-child { flex: 0 1 520px; }
.qa-head-row > .wp-block-image:last-child { flex: 0 0 auto; }
.qa-head-row .wp-block-group.is-layout-flex .qa-illust img { width: 150px; }
.qa-cta > .qa-illust { position: absolute; top: 28px; right: 34%; margin: 0; }
.qa-cta > .qa-illust img { width: 150px; }
.qa-profile-activities { margin-top: 3rem !important; }
@media (max-width: 781px) {
	.qa-cta > .qa-illust { right: 16px; top: 16px; }
	.qa-cta > .qa-illust img { width: 110px; }
	.qa-head-row > :last-child { flex-basis: 100%; }
	.qa-head-row > .wp-block-image:last-child { flex-basis: auto; }
}

/* noteの新着（RSS）のリンクを、ほかのリンクと同じ見た目に */
.qa-card .wp-block-rss a { color: var(--wp--preset--color--ink); text-decoration: none; font-weight: 500; }
.qa-card .wp-block-rss a:hover { color: var(--wp--preset--color--qa-red); text-decoration: underline; }
.qa-card .wp-block-rss .wp-block-rss__item-publish-date { font-family: var(--wp--preset--font-family--manrope); font-size: 0.8125rem; color: var(--wp--preset--color--ink-2); }

/* ---------- スマホの細かい調整 ---------- */
.qa-sp-br { display: none; }
.qa-brand-name { white-space: nowrap; }
.qa-header-cta .wp-block-button__link { white-space: nowrap; }
@media (max-width: 781px) {
	.qa-sp-br { display: inline; }
	.qa-header { padding-top: 0.75rem; padding-bottom: 0.75rem; }
	.qa-brand { gap: 10px; }
	.qa-brand img { width: 36px; height: 36px; }
	.qa-brand-name { font-size: 0.9375rem; }
	.qa-brand-sub { display: none; }
	.qa-header-cta .wp-block-button__link { padding: 0.5rem 1rem; font-size: 0.875rem; }
	.qa-header-cta .wp-block-button__link::after { content: none; }
	.qa-hero h1 { font-size: 2rem; }
	.qa-eyebrow { font-size: 0.75rem; letter-spacing: 0.14em; }
	.qa-section h2 { font-size: 1.625rem; }
}

/* エディターは画像に height:auto を直接指定するため、書影の高さを優先させる */
.qa-book .qa-cover img { height: 236px !important; width: auto !important; }
@media (max-width: 781px) {
	.qa-book .qa-cover img { height: 168px !important; }
}

/* ==========================================================
   0.1.2 で追加：各ページ・お知らせ・投稿
   ========================================================== */

/* トップの h1（キャッチコピー＋小さな2行目） */
.qa-hero-h1 .qa-catch { display: block; }
.qa-hero-h1 .qa-h1-sub { display: block; margin-top: 1rem; font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.06em; line-height: 1.6; color: var(--wp--preset--color--ink-2); }

/* 各ページの冒頭 */
.qa-page-hero { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.qa-page-hero h1 { margin-top: 0.25rem; margin-bottom: 0; font-size: clamp(2rem, 4.2vw, 2.875rem); }
.qa-page-hero .qa-lead { margin-top: 1.25rem; }
.qa-page-content > .qa-section:first-of-type { padding-top: 1rem; }
.qa-section h3 { margin-top: 2.5rem; }
.qa-section h2 + h3, .qa-card h3:first-child, .qa-section .qa-eyebrow + h2 { margin-top: 0; }
:where(h2, h3)[id] { scroll-margin-top: 1.5rem; }

/* 章の中のリスト */
ul.qa-plain { padding-left: 1.2em; }
ul.qa-plain li { margin: 0.5rem 0; line-height: 1.8; }
ul.qa-check { list-style: none; padding: 0; }
ul.qa-check li { display: flex; gap: 12px; margin: 0.6rem 0; line-height: 1.8; }
ul.qa-check li::before { content: ""; flex-shrink: 0; width: 10px; height: 10px; margin-top: 0.65em; border-radius: 3px; background: var(--wp--preset--color--qa-red); }
.qa-list-label { margin-top: 1.75rem; margin-bottom: 0.25rem; }
ol.qa-steps { padding-left: 1.4em; }
ol.qa-steps li { margin: 0.75rem 0; line-height: 1.8; }
ol.qa-steps li::marker { font-family: var(--wp--preset--font-family--manrope); font-weight: 800; color: var(--wp--preset--color--qa-red); }

/* 支援のテーマのカード（縦に並べる） */
.qa-stack > * + * { margin-top: 1.5rem !important; }
.qa-theme h3 { margin-top: 0; }

/* 表（登壇一覧・事業者情報・記事） */
.qa-table table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
.qa-table th, .qa-table td { border: 0; border-top: 1px solid var(--wp--preset--color--line); padding: 0.85rem 0.5rem; text-align: left; vertical-align: top; line-height: 1.7; }
.qa-table tr:last-child td { border-bottom: 1px solid var(--wp--preset--color--line); }
.qa-table thead th { font-size: 0.8125rem; color: var(--wp--preset--color--ink-2); border-top: 0; }
.qa-table td:first-child { white-space: nowrap; font-family: var(--wp--preset--font-family--manrope); font-weight: 800; color: var(--wp--preset--color--qa-red); width: 4.5em; }
.qa-table--info td:first-child { font-family: inherit; font-weight: 700; color: var(--wp--preset--color--ink); width: 8em; }
.qa-table a { color: var(--wp--preset--color--ink); }
.qa-table a:hover { color: var(--wp--preset--color--qa-red); }
details.qa-more { margin-top: 1rem; }
details.qa-more summary { cursor: pointer; font-weight: 700; color: var(--wp--preset--color--qa-red); }

/* 代表プロフィールの冒頭 */
.qa-name-block { line-height: 1.9; }

/* クオリティアーツについて */
.qa-catch-p { font-size: clamp(1.375rem, 3vw, 1.75rem); letter-spacing: 0.04em; }
.qa-logo-mark img { width: 96px; height: 96px; border-radius: 10px; }

/* 枠で囲む案内（研修・講演のご依頼など） */
.qa-note-box { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 22px; padding: 1.25rem 1.5rem; margin-top: 1.75rem !important; }
.qa-note-box > * { margin: 0 !important; }
.qa-note-box > * + * { margin-top: 0.5rem !important; }

/* ご相談・お問い合わせの注意書き */
.qa-notice { border: 2px solid var(--wp--preset--color--qa-red); border-radius: 22px; padding: 1.5rem 1.75rem; background: #fff; }
.qa-notice > * { margin: 0 !important; }
.qa-notice > * + * { margin-top: 0.5rem !important; }
.qa-notice-title { color: var(--wp--preset--color--qa-red); }
.qa-faq { border-top: 1px solid var(--wp--preset--color--line); padding: 1rem 0; }
.qa-faq:last-child { border-bottom: 1px solid var(--wp--preset--color--line); }
.qa-faq > * { margin: 0 !important; }
.qa-faq > * + * { margin-top: 0.4rem !important; }
.qa-faq-a { color: var(--wp--preset--color--ink-2); }

/* noteの新着（ページ内） */
.qa-rss { padding: 0; list-style: none; }
.qa-rss li { margin-bottom: 0.5rem; }
.qa-rss a { color: var(--wp--preset--color--ink); text-decoration: none; font-weight: 500; }
.qa-rss a:hover { color: var(--wp--preset--color--qa-red); text-decoration: underline; }

/* フッターのSNS */
.qa-footer-end > * { margin: 0 !important; }
.qa-footer-social { font-family: var(--wp--preset--font-family--manrope); font-size: 0.8125rem; font-weight: 700; margin-bottom: 0.5rem !important; }
.qa-footer-social a { color: var(--wp--preset--color--ink-2); text-decoration: none; }

/* 代表紹介（トップ）の委員リスト */
.qa-profile-activities ul.qa-plain { font-size: 0.9375rem; }

/* お知らせの一覧ページ */
.qa-news-page .wp-block-query-pagination { margin-top: 2rem; }

/* 投稿 */
.qa-article-meta { gap: 1rem; font-size: 0.875rem; }
.qa-article-meta .wp-block-post-date { font-family: var(--wp--preset--font-family--manrope); font-weight: 700; color: var(--wp--preset--color--ink-2); }
.qa-article-meta .wp-block-post-terms a { color: var(--wp--preset--color--ink-2); text-decoration: none; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; padding: 0.2em 0.8em; }
.qa-article-title { font-size: clamp(1.625rem, 3.4vw, 2.25rem); line-height: 1.5; margin-top: 0.75rem; }
.qa-author { gap: 1.25rem; margin-top: 3rem !important; padding: 1.5rem; border-radius: 22px; background: var(--wp--preset--color--blush); }
.qa-author > * { margin: 0 !important; }
.qa-author-photo img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.qa-author-body > * { margin: 0 !important; }
.qa-author-body > * + * { margin-top: 0.35rem !important; }
.qa-back { margin-top: 2rem !important; }

@media (max-width: 781px) {
	.qa-hero-h1 .qa-h1-sub { font-size: 0.8125rem; }
	.qa-table td:first-child { width: 3.5em; }
	.qa-table--info td:first-child { width: 6em; white-space: normal; }
	.qa-author { flex-wrap: wrap !important; }
}

/* 0.1.2 確認後の調整 */
ul.qa-check li { display: block; position: relative; padding-left: 22px; }
ul.qa-check li::before { position: absolute; left: 0; top: 0.65em; margin-top: 0; }
.qa-card h3 a { color: var(--wp--preset--color--ink); text-decoration: none; }
.qa-card h3 a:hover { color: var(--wp--preset--color--qa-red); }
ul.qa-timeline a { color: var(--wp--preset--color--ink); text-decoration: none; }
ul.qa-timeline a:hover { color: var(--wp--preset--color--qa-red); text-decoration: underline; }
.qa-head-row .wp-block-group.is-layout-flex > .qa-illust { flex-shrink: 0; }
.qa-page-hero + .qa-section { padding-top: 1rem; }
.qa-page-content > .qa-section:last-child { padding-bottom: 3.5rem; }
.qa-table thead { border-bottom: 0; }
