/* =========================================================
   板前.fun リニューアル 共通レイアウト
   色・書体は itamae-{a|b|c}.css の変数で決まる
   ========================================================= */

.itm-front {
	color: var(--itm-ink);
	font-family: var(--itm-body-font);
	line-height: 1.85;
}
.itm-front *,
.itm-front *::before,
.itm-front *::after { box-sizing: border-box; }
.itm-front a { color: inherit; text-decoration: none; }
/* 日本語を文節で折り返す（Chrome・Edge。未対応のブラウザは従来どおり） */
.itm-front { word-break: auto-phrase; }
/* 「・」「、」で区切ったかたまりは途中で折り返さない（itamae_phrases()） */
.itm-phrase { display: inline-block; }
.itm-front ul, .itm-front ol { list-style: none; margin: 0; padding: 0; }
.itm-front h1, .itm-front h2, .itm-front p { margin: 0; }
/* SWELL の見出し装飾を打ち消す */
.itm-front h1::before, .itm-front h1::after,
.itm-front h2::before, .itm-front h2::after { content: none !important; }
.itm-front h2 { background: none; border: 0; padding: 0; }

/* 画面幅いっぱいに広げる（SWELL の .l-container の中でも全幅に） */
.itm-full {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	position: relative;
}
/* 100vw による横スクロールを防ぐ（SWELL は body_class を #body_wrap に付ける） */
#body_wrap.home { overflow-x: clip; }
/* 新トップでは SWELL のメインビジュアル等を出さない（公開後はカスタマイザーでオフにする） */
#body_wrap.home .p-mainVisual,
#body_wrap.home .p-postSlider,
#body_wrap.home .p-pickupBanners { display: none !important; }
.itm-wrap {
	max-width: 1160px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

/* ---------- ボタン ---------- */
.itm-btn {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 28px;
	font-weight: 700;
	letter-spacing: .12em;
	border-radius: var(--itm-btn-radius, 2px);
	transition: opacity .2s;
}
.itm-btn:hover { opacity: .85; }
.itm-btn--fill { background: var(--itm-accent); color: var(--itm-accent-ink) !important; }
.itm-btn--line { border: 1.5px solid var(--itm-accent-line, var(--itm-accent)); color: var(--itm-accent-text, var(--itm-accent)) !important; }
.itm-btn--sm { min-height: 44px; padding: 0 22px; font-size: 14px; }

/* ---------- ヒーロー ---------- */
.itm-hero { overflow: hidden; }
.itm-hero__inner {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px 48px;
	padding-top: 80px;
	padding-bottom: 56px;
}
.itm-hero__text { flex: 1 1 460px; min-width: 0; }
.itm-hero__visual { flex: 1 1 420px; min-width: 0; position: relative; display: flex; justify-content: center; }
.itm-hero__visual > svg { width: 100%; height: auto; }
.itm-hero__title {
	font-family: var(--itm-head-font);
	font-weight: 800;
	font-size: clamp(28px, 3.6vw, 46px);
	line-height: 1.45;
	letter-spacing: .05em;
	color: inherit;
}
.itm-hero__title em { font-style: normal; color: var(--itm-em); }
.itm-front .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.itm-hero__lead { margin-top: 24px !important; max-width: 520px; color: var(--itm-sub); }
.itm-hero__btns { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.itm-hero__greet { position: relative; display: flex; align-items: flex-end; gap: 14px; padding-bottom: 48px; }
.itm-hero__greet--right { justify-content: flex-end; }
.itm-hero__greet img { flex: 0 0 auto; }
.itm-greet-bubble {
	position: relative;
	max-width: 520px;
	margin-bottom: 20px !important;
	padding: 14px 20px;
	font-size: 15px;
	line-height: 1.75;
}

/* ---------- 見出し ---------- */
.itm-sec-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 28px;
}
.itm-sec-head--center { flex-direction: column; align-items: center; text-align: center; }
.itm-sec-head__en { font-size: 12px; letter-spacing: .4em; color: var(--itm-em); }
.itm-sec-head__ja {
	font-family: var(--itm-head-font);
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 800;
	letter-spacing: .18em;
	color: inherit;
}
.itm-sec-head__more { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--itm-em) !important; }

/* ---------- カテゴリ ---------- */
.itm-cats { padding: 80px 0 32px; }
/* 6カテゴリ：PC 6列 → 中間 3列×2段 → スマホ 2列×3段 */
.itm-cats__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 1000px) { .itm-cats__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.itm-cat { height: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 26px 16px; }
.itm-cat__noren { display: none; }
.itm-cat__icon { width: 48px; height: 48px; display: inline-flex; color: var(--itm-icon); }
.itm-cat__icon svg { width: 100%; height: 100%; }
.itm-cat__name { font-family: var(--itm-head-font); font-size: 20px; font-weight: 800; letter-spacing: .15em; }
.itm-cat__desc { font-size: 13px; color: var(--itm-sub); line-height: 1.6; }

/* ---------- 新着カード ---------- */
.itm-latest { padding-top: 72px; padding-bottom: 24px; }
.itm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 24px; }
.itm-card { height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.itm-card__thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: var(--itm-thumb-bg);
}
.itm-card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.itm-card__mark { position: relative; font-family: var(--itm-head-font); font-size: 64px; font-weight: 800; color: var(--itm-mark); line-height: 1; }
.itm-card__cat { position: absolute; left: 0; top: 0; font-size: 12px; padding: 3px 12px; letter-spacing: .12em; }
.itm-card__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 4px 4px; }
.itm-card__body time { font-size: 13px; color: var(--itm-sub); }
.itm-card__title { font-weight: 700; font-size: 16px; line-height: 1.65; }

/* ---------- 人気＋プロフィール ---------- */
.itm-pop { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 72px; padding-bottom: 88px; }
.itm-pop__list { flex: 999 1 560px; min-width: 0; }
.itm-rank a { display: flex; align-items: center; gap: 18px; padding: 14px 0; }
.itm-rank__no { flex: 0 0 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-family: var(--itm-head-font); font-size: 18px; font-weight: 800; }
.itm-rank__txt { display: flex; flex-direction: column; }
.itm-rank__cat { font-size: 12px; color: var(--itm-sub); letter-spacing: .1em; }
.itm-rank__title { font-weight: 700; }
.itm-profile { flex: 1 1 300px; align-self: flex-start; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 28px; }
.itm-profile__label { font-size: 12px; letter-spacing: .3em; color: var(--itm-em); font-weight: 700; }
.itm-profile__img { line-height: 0; }
.itm-profile__name { font-family: var(--itm-head-font); font-size: 22px; font-weight: 800; letter-spacing: .15em; }
.itm-profile__bio { font-size: 14px; color: var(--itm-sub); }

/* ---------- 道具の帯（案B） ---------- */
.itm-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 18px; padding-bottom: 18px; }
.itm-tools__item { width: 64px; height: 64px; color: var(--itm-ink); display: inline-flex; }
.itm-tools__item svg { width: 100%; height: 100%; }

/* ---------- 引用帯（案A） ---------- */
.itm-quote { padding: 72px 0; text-align: center; }
.itm-quote__inner { font-family: var(--itm-head-font); font-size: clamp(20px, 2.6vw, 30px); line-height: 1.9; letter-spacing: .2em; }

/* ---------- スマホ ---------- */
@media (max-width: 599px) {
	.itm-hero__inner { padding-top: 48px; }
	.itm-hero__greet img { width: 72px; height: 72px; }
	.itm-cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.itm-cards { grid-template-columns: 1fr; }
	.itm-tools { justify-content: center; }
}

/* ---------- 小さすぎる文字を読みやすく ---------- */
.itm-sec-head__en, .itm-profile__label, .itm-rank__cat, .itm-card__body time, .itm-card__cat, .itm-keywords__label { font-size: 13px; }
@media (max-width: 599px) {
	.itm-sec-head__en, .itm-profile__label, .itm-keywords__label { font-size: 13px; letter-spacing: .15em; }
	.itm-keywords { font-size: 14px; }
	.itm-keywords a { display: inline-block; padding: 6px 2px; }
	/* スマホは「新着」をお品書きより上に（リピーターが一番見たいもの） */
	.itm-front { display: flex; flex-direction: column; }
	.itm-front > .itm-wrap { width: 100%; }
	.itm-front > .itm-hero   { order: 1; }
	.itm-front > .itm-latest { order: 2; padding-top: 48px; }
	.itm-front > .itm-cats   { order: 3; padding-top: 56px; }
	.itm-front > .itm-pop    { order: 4; }
	.itm-front > .itm-quote  { order: 5; }
}
