/* =========================================================
   トップページ（front-page.php）
   旧 Elementor のページ 11（post-11.css）と、トップ用ヘッダー 42 の2段目以降（post-42.css）の値を写している
   ========================================================= */

/* ---------- このページで使い回す小さな部品 ---------- */
/* 画像部品（旧 Elementor：中央寄せ・行の中に置く。行の高さのぶん下が 1px ほど伸びるのも旧サイトと同じ） */
.tp-img { text-align: center; }
.tp-img img { display: inline-block; vertical-align: middle; }
/* 文章部品（1em・行 1.8em。段落の下 1.6em は base.css） */
/* 段落の下の余白が外にはみ出さないように（旧 Elementor の部品は外と余白が重ならない） */
.tp-text, .tp-mv__text, .tp-voice__text { display: flow-root; }
.tp-text { font-size: 1em; line-height: 1.8em; }
/* 細い黒の区切り線（上下 15px） */
.tp-hr { padding: 15px 0; }
.tp-hr::before { content: ""; display: block; border-top: 1px solid #000; }
/* ボタンの動きは色だけ（幅・余白は動かさない。旧 Elementor は幅を外の箱に付けていたので、画面の幅が変わっても動かなかった） */
.site-main .btn { transition-property: color, background-color, border-color, fill; }
/* 部品どうしの間（20px） */
.tp-course__intro, .tp-type__intro, .tp-voice__intro, .tp-about__text { margin-bottom: 20px; }

/* ---------- 大きな写真の段（PC：写真は背景で右上、左に半透明の白い箱） ---------- */
.tp-mv { background: url(../../../../uploads/2022/09/top-mv.jpg) right top / contain no-repeat; }
.tp-mv__inner { display: flex; align-items: center; max-width: 1200px; min-height: 700px; margin: 0 auto; }
.tp-mv__box { width: 40%; padding: 20px; background-color: #FFFFFF80; }
.tp-mv__title { margin: 0 0 20px; padding: 0; font-size: 1.94em; font-weight: 500; line-height: 1.4em; color: var(--c-text); }
.tp-mv__line { padding: 20px 0; margin-bottom: 20px; }
.tp-mv__line::before { content: ""; display: block; width: 80%; border-top: 5px solid var(--c-primary); }
.tp-mv__lead { margin: 0 0 20px; padding: 0; font-size: 1.3em; font-weight: 500; line-height: 1.4em; color: var(--c-text); }
.tp-mv__text { padding-top: 40px; font-size: 1em; line-height: 1.8em; }

/* タブレット・スマホ用（写真は箱の下に画像で） */
.tp-mv-sp { display: none; }
.tp-mv-sp .tp-mv__box { width: 100%; }
.tp-mv-sp .tp-mv__lead { margin-bottom: 0; }
.tp-mv-sp__img { margin-bottom: 20px; }
.tp-mv-sp__img img { width: 800px; } /* 旧サイトは 800px（旧テーマの本文幅の設定）で出していた */
.tp-mv-sp .tp-mv__text { padding: 40px 20px; }

/* ---------- コースのご案内 ---------- */
.tp-course { padding: 130px 0 100px; }
.tp-course__intro { text-align: center; }
.tp-course__cards { display: flex; }
/* 白いカード（右に 20px のすき間。2枚目も同じなので右側が 20px 空く＝旧サイトのまま） */
.tp-course__card { width: calc(50% - 20px); margin-right: 20px; padding-bottom: 40px; background-color: var(--c-white); }
.tp-course__img { padding-bottom: 20px; }
.tp-course__catch { margin: 0; padding: 10px 20px; text-align: center; font-size: 1.4em; font-weight: 600; line-height: 1.2em; color: var(--c-text); }
.tp-course__hr { padding: 15px 20px; }
.tp-course__name { margin: 0; padding: 0 20px; text-align: center; font-size: 1.2em; font-weight: 500; line-height: 1.5em; color: var(--c-text); }
.tp-course__text { padding: 20px 20px 0; }
.tp-course__btn { display: flex; margin: 0 20px; padding: 10px 50px; }

/* ---------- あなたはどのタイプ ---------- */
.tp-type { padding: 150px 0 100px; background-image: url(../../../../uploads/2022/08/letscheck.png); background-position: 50% 70px; background-repeat: no-repeat; }
.tp-type__intro { text-align: center; }
.tp-type__row { display: flex; margin-bottom: 20px; }
.tp-type__row + .tp-type__row { margin-bottom: 60px; }
.tp-type__card {
	display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start;
	width: calc(50% - 20px); margin: 10px; padding: 40px 20px;
	background-color: var(--c-white);
}
.tp-type__card > * { width: 100%; }
.tp-type__title { margin: 0; padding: 0; text-align: center; font-size: 1.2em; font-weight: bold; line-height: 1.2em; color: var(--c-text); }
.tp-type__card > .tp-type__img { width: 70%; margin-top: 30px; }
.tp-type__case { text-align: center; }
/* チェックの付いた行（アイコン 30px・すき間 15px・下 10px、3つ目だけ下 30px） */
.tp-check { display: flex; align-items: flex-start; gap: 15px; padding-bottom: 10px; text-align: start; }
.tp-check + .tp-check + .tp-check { padding-bottom: 30px; }
.tp-check__icon { display: inline-block; flex: 0 0 auto; line-height: 0; }
.tp-check__icon span { display: inline-block; font-size: 30px; line-height: 1; color: var(--c-primary); fill: var(--c-primary); }
.tp-check__icon svg { position: relative; display: block; width: 1em; height: 1em; }
.tp-check__text { flex-grow: 1; width: 100%; font-size: 1em; font-weight: normal; line-height: 1.6em; color: var(--c-text); }
.tp-type__btn { display: flex; }
.tp-type__all { width: 60%; }

/* ---------- みんなの声 ---------- */
.tp-voice { padding: 100px 0; background-color: var(--c-pale); }
.tp-voice__intro { text-align: center; }
.tp-voice__cards { display: flex; padding-bottom: 60px; }
.tp-voice__card { width: calc(25% - 20px); margin: 0 10px; padding-bottom: 40px; background-color: var(--c-white); }
.tp-voice__img { padding-bottom: 20px; }
.tp-voice__img img { width: 100%; height: 230px; object-fit: cover; object-position: center center; }
.tp-voice__name { margin: 0; padding: 0 20px; text-align: center; font-size: 1em; font-weight: bold; line-height: 1.4em; color: var(--c-text); }
.tp-voice__hr { padding: 15px 20px; }
.tp-voice__text { padding: 0 20px; font-size: .9em; line-height: 1.5em; }
.tp-voice__btn { display: flex; margin: 0 20px; }
.tp-voice__link { width: 60%; }
.tp-voice__link1 { padding-bottom: 40px; }

/* ---------- レシピ一覧・コラム一覧（写真に暗い膜。マウスを乗せると写真と文字が大きくなる） ---------- */
.tp-cta { padding: 100px 0; }
.tp-cta__inner { display: flex; max-width: 1200px; margin: 0 auto; }
.tp-cta__col { width: 50%; padding: 10px; }
/* 文字の下線（緑）はリンクの下線が文字に付いたもの＝旧サイトのまま */
.tp-cta__box { position: relative; display: block; overflow: hidden; transition: .5s; }
.tp-cta__bg-wrap { position: absolute; inset: 0; z-index: 1; overflow: hidden; transition: all .4s; }
.tp-cta__bg, .tp-cta__overlay { position: absolute; inset: 0; transition: all 1.5s; }
.tp-cta__bg { z-index: 1; background-position: 50%; background-size: cover; will-change: transform; }
.tp-cta__bg--recipe { background-image: url(../../../../uploads/2022/09/top_recipe.jpg); }
.tp-cta__bg--column { background-image: url(../../../../uploads/2022/09/top_column.jpg); }
.tp-cta__overlay { z-index: 2; background-color: #00000070; }
.tp-cta__content {
	position: relative; z-index: 1;
	display: flex; flex-wrap: wrap; align-items: center; align-content: center;
	width: 100%; min-height: 280px; padding: 35px;
	overflow: hidden; text-align: center; color: var(--c-white);
	transition: .5s;
}
.tp-cta__title { width: 100%; margin: 0; padding: 0; font-family: var(--ff); font-size: 1.94em; font-weight: 500; font-style: normal; line-height: 1.4em; color: var(--c-white); transition: 1s; will-change: transform, opacity; }
.tp-cta__box:hover .tp-cta__bg { transform: scale(1.2); }
.tp-cta__box:hover .tp-cta__overlay { background-color: #00000099; }
.tp-cta__box:hover .tp-cta__title { transform: scale(1.1); }

/* ---------- Column & News（記事のカード 5枚。旧 Elementor Pro の「投稿」部品・カード表示） ---------- */
.tp-news { padding: 100px 0; }
.tp-news__list { display: grid; grid-template-columns: repeat(5, 1fr); column-gap: 30px; row-gap: 35px; margin-bottom: 20px; padding: 60px 0; }
.tp-post {
	position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 100%;
	overflow: hidden; border-radius: 3px; background-color: var(--c-white);
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, .15);
	transition: all .25s;
}
.tp-post:hover { box-shadow: 0 0 30px 0 rgba(0, 0, 0, .15); }
.tp-post__thumb-link { position: relative; display: block; width: 100%; margin-bottom: 20px; }
/* 写真の下に薄い影（マウスを乗せると薄くなる） */
.tp-post__thumb-link::after {
	content: ""; position: absolute; bottom: 0; display: block; width: 100%; height: 100%;
	background-image: linear-gradient(0deg, rgba(0, 0, 0, .35), transparent 75%); background-repeat: no-repeat;
	opacity: 1; transition: all .3s ease-out;
}
.tp-post:hover .tp-post__thumb-link::after { opacity: .5; }
/* 写真の枠（横:縦＝1:0.66）。写真は真ん中に置いて少し大きく（旧サイトと同じ 1.01 倍） */
.tp-post__thumb { position: relative; overflow: hidden; padding-bottom: calc(.66 * 100%); transform-style: preserve-3d; }
.tp-post__thumb img {
	position: absolute; top: calc(50% + 1px); left: calc(50% + 1px);
	display: block; width: calc(100% + 1px); height: auto; max-width: none; max-height: none;
	transform: scale(1.01) translate(-50%, -50%);
	transition: filter .3s;
}
.tp-post__thumb.is-fit-h img { width: auto; height: 100%; }
.tp-post__badge {
	position: absolute; top: 0; right: 0; margin: 20px; padding: .6em 1.2em;
	border-radius: 999px; background-color: var(--c-text); color: var(--c-white);
	font-family: var(--ff); font-size: 12px; font-weight: 400; line-height: 1; text-transform: uppercase;
}
.tp-post__text { flex-grow: 1; width: 100%; margin-top: 20px; padding: 0 30px; }
.tp-post__title, .tp-post__title a { font-family: var(--ff); font-size: 1em; font-weight: 600; line-height: 1.6em; color: var(--c-text); }
.tp-post__title { margin: 0 0 25px; padding: 0; }
.tp-post__meta { margin-top: auto; padding: 15px 30px; border-top: 1px solid #eaeaea; font-size: .8em; font-weight: normal; line-height: 1.2em; color: var(--c-text); }
.tp-news__more { width: 20%; }

/* ---------- フード・レジリエンス協会について（PC：写真は背景で左、幅 45%） ---------- */
.tp-about { padding: 100px 0; background-image: url(../../../../uploads/2022/09/jphfa001mv.jpg); background-position: center left; background-repeat: no-repeat; background-size: 45% auto; }
.tp-about__inner { display: flex; max-width: 1200px; margin: 0 auto; }
.tp-about__space { width: 50%; }
.tp-about__body { width: 50%; padding: 10px; }
.tp-about__text { text-align: start; }
.tp-about__more { width: 50%; }
/* タブレット・スマホ用（写真が上） */
.tp-about-sp { display: none; }

/* =========================================================
   タブレット（1024px 以下）
   ========================================================= */
@media (max-width: 1024px) {
	/* 画面の下の「オンライン申込」：トップだけ旧サイトでは部品の下に 20px の余白が付いていて、
	   「あなたはどのタイプ」との間が 20px 空いていた（header.php の共通のボタンをトップだけずらす） */
	.side-btn--apply { bottom: 66px; }

	.tp-mv { display: none; }
	.tp-mv-sp { display: block; position: relative; z-index: 1; min-height: 600px; }

	.tp-course__cards { flex-wrap: wrap; }
	.tp-course__card { width: calc(100% - 20px); }
	.tp-course__img img { width: 100%; }

	.tp-type { background-position: 0% 0px; }
	.tp-type__card > .tp-type__img { width: 100%; }

	.tp-voice__cards { flex-wrap: wrap; }
	.tp-voice__card { width: calc(50% - 20px); }
	.tp-voice__card:nth-child(-n+2) { margin-bottom: 20px; }

	.tp-news__list { grid-template-columns: repeat(2, 1fr); }
	.tp-news__more { width: 30%; }

	.tp-about { display: none; }
	.tp-about-sp { display: flex; flex-wrap: wrap; padding: 100px 0; }
	.tp-about-sp__col { width: 100%; padding: 10px; }
	.tp-about-sp__img img { width: 800px; } /* 旧サイトは 800px で出していた */
	.tp-about-sp .tp-about__more { width: 30%; }
}

/* =========================================================
   スマホ（767px 以下）
   ========================================================= */
@media (max-width: 767px) {
	.tp-mv-sp .tp-mv__text { padding: 20px 20px 0; }

	.tp-course { padding: 60px 0; }
	.tp-course__intro { text-align: start; }
	.tp-course__card { width: 100%; margin: 0 0 20px; }
	.tp-course__card:last-child { margin-bottom: 0; }
	.tp-course__catch, .tp-course__name { font-size: 1em; }

	.tp-type__row { flex-wrap: wrap; }
	.tp-type__card { width: 100%; margin: 0 0 20px; }
	.tp-type__all { width: 100%; }

	.tp-voice { padding: 60px 0; }
	.tp-voice__card { width: 100%; margin: 0 0 20px; }
	.tp-voice__card:last-child { margin-bottom: 0; }
	.tp-voice__link { width: 100%; }

	.tp-cta__inner { flex-wrap: wrap; }
	.tp-cta__col { width: 100%; }

	.tp-news { padding: 60px 0; }
	.tp-news__list { grid-template-columns: 1fr; }
	.tp-post__thumb { padding-bottom: calc(.5 * 100%); }
	/* スマホは枠が 1:0.5 なので、高さに合わせるかどうかを付け直す */
	.tp-post__thumb.is-fit-h img { width: calc(100% + 1px); height: auto; }
	.tp-post__thumb.is-fit-h-m img { width: auto; height: 100%; }
	.tp-news__more { width: 100%; }

	.tp-about-sp { padding: 60px 0; }
	.tp-about-sp .tp-about__more { width: 100%; }
}
