@charset "utf-8";
/* index.html(トップページ)だけで使うスタイル */

/* ---------- メイン画像(3枚を順番に切り替える) ---------- */
/* background-image はなめらかに変化させられないので、同じ画像を2回続けた
   区間を作って約7秒ずつ表示し、次の画像へ瞬時に切り替える */
@keyframes hero-index-rotate {
	0%, 32%  { background-image: url(../images/hero-index.webp); }
	34%, 65% { background-image: url(../images/hero-about.webp); }
	67%, 98% { background-image: url(../images/hero-takeout.webp); }
	100%     { background-image: url(../images/hero-index.webp); }
}
.hero-index {
	padding: 150px max(30px, (100% - 1060px) / 2) 200px;   /* 文字の幅は最大1060px */
	background-image: url(../images/hero-index.webp);
	animation: hero-index-rotate 21s infinite;
}
/* 2枚目・3枚目の先読み。アニメーションの途中で使う画像は切り替わる瞬間まで
   読み込まれず、その間は画像が消えて見えるため、ページの読み込みが終わったら
   (main.js が <html> に .is-loaded を付ける)見えない疑似要素の背景として先に読み込む */
.is-loaded .hero-index::before {
	content: "";
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
	background-image: url(../images/hero-about.webp), url(../images/hero-takeout.webp);
}
@media (max-width: 640px) {
	.hero-index { padding: 50px 0; }
}

/* ---------- お知らせ(news.js が assets/data/news.json から作る) ---------- */
.news { background: #fff; }
.news .container { padding-block: 30px; }
.news-list { max-width: 800px; margin-inline: auto; }
.news-list li {
	position: relative;
	padding: 16px 0 16px 22px;
	border-bottom: 1px solid #eee;
	font-size: 17px;
	line-height: 1.7;
	color: var(--text-dark);
}
.news-list li:last-child { border-bottom: 0; }
.news-list li::before {   /* 行頭の緑の丸 */
	content: "";
	position: absolute;
	top: 28px;
	left: 2px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--green-hover);
}
.news-list time {
	display: inline-block;
	margin-right: 14px;
	padding: 2px 10px;
	border-radius: 999px;
	background: #f5f2ec;
	font-size: 13px;
	font-weight: 700;
	vertical-align: middle;
	color: #777;
}
.news-list a { text-decoration: underline; text-underline-offset: 2px; color: var(--green-hover); }
.news-list a:hover { color: #2f4a10; }
.news-list li.status {   /* 読み込み中・お知らせなし */
	padding: 16px 0;
	font-size: 15px;
	text-align: center;
	color: #999;
}
.news-list li.status::before { content: none; }

/* ---------- Instagram への案内 ---------- */
.instagram .container { padding-block: 30px 40px; max-width: 680px; }
.instagram img { display: block; margin: 0 auto 12px; border-radius: 10px; }
.instagram p { margin-bottom: 16px; }
.instagram .button {
	padding: .5em 2em;
	border: 0;
	border-radius: 6px;
	background: #6f4e37;
	font-size: 16px;
	color: #fff;
}
.instagram .button:hover { background: #563d2b; }

@media (max-width: 640px) {
	.news .container { padding: 15px; }
	.news-list li { font-size: 15px; }
	.instagram .container { padding: 15px 15px 25px; }
	.news .section-title,
	.instagram .section-title { margin-bottom: 60px; }
}

/* ---------- 各ページの紹介(色付きの帯 × 5) ---------- */
.spotlight {
	display: grid;
	grid-template-columns: 1fr 1fr;
	overflow: hidden;   /* 横から入ってくるアニメーションのはみ出しを隠す */
	background: var(--color) url(../images/ui-headlines-bg.png);
	color: #fff;
	text-align: center;
}
.spotlight.purple { --color: #4c1130; --hover: #4a0e31; }
.spotlight.brown  { --color: #783f04; --hover: #764103; }
.spotlight.yellow { --color: #c9b026; --hover: #c9b026; }
.spotlight.green  { --color: #456e1c; --hover: #4a7119; }
.spotlight.orange { --color: #d66a35; --hover: #d66a35; }
.spotlight.reverse > img { order: -1; }   /* PCでは写真を左に */
.spotlight img { display: block; width: 100%; height: auto; }
.spotlight h3 {
	padding: 50px 50px 20px;
	background: url(../images/ui-h3-bg-light.png) no-repeat center bottom;
	font-size: 22.4px;
	font-weight: 700;
	line-height: 1.6;
}
.spotlight p { padding: 20px 50px 0; color: #fff; }
.spotlight .button { color: #fff; }   /* 白い枠線のボタン。マウスを乗せると白地に帯の色の文字 */
.spotlight .button:hover { background: #fff; color: var(--hover); }
@media (max-width: 640px) {
	.spotlight { grid-template-columns: 1fr; row-gap: 14px; padding: 29px 15px 15px; }
	.spotlight > img { order: -1; }   /* スマホでは常に写真が先 */
	.spotlight h3 { padding: 20px 0; }
	.spotlight p { padding-inline: 0; text-align: left; }
	.spotlight p:last-child { text-align: center; }
	.spotlight .button { margin-bottom: 1.8em; }
}

/* 画面に入ったら横からふわっと表示(main.js の data-reveal。PC幅だけ) */
@media (min-width: 641px) {
	.reveal-ready [data-reveal] > * { opacity: 0; transform: translateX(-100%); }
	.reveal-ready [data-reveal="fade-right"] > * { transform: translateX(100%); }
	.reveal-ready [data-reveal] > .is-visible { opacity: 1; transform: none; transition: opacity 1s, transform 1s; }
}

/* ---------- おすすめメニュー ---------- */
.recommend { padding-top: 30px; }
.recommend-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 6%;
	padding: 30px;
	text-align: center;
}
.recommend .button.small {
	padding: .3em 1em;
	border-color: #333;
	font-size: .85em;
	line-height: 1.4;
}
.recommend .button.small:hover { background: var(--green-hover); border-color: var(--green-hover); color: #fff; }
.recommend h4 { font-size: 18.2px; font-weight: 700; text-align: left; color: var(--green); }
.recommend article > p:last-child { text-align: left; }
/* 写真: 白い枠。マウスを乗せると少し縮み、「〇〇へ移動」が浮かび上がる */
.photo-link {
	display: block;
	position: relative;
	overflow: hidden;
	margin-bottom: 5px;
	background: #fff;
	border: 1px solid #ddd;
}
.photo-link:hover { opacity: 1; }
.photo-link img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	transition: transform .3s ease-in-out;
}
.photo-link:hover img { transform: scale(.95); }
.photo-link span {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	background: rgba(255, 255, 255, .4);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .05em;
	color: #333;
	opacity: 0;
	transition: opacity .3s;
}
.photo-link:hover span { opacity: 1; }
@media (max-width: 640px) {
	.recommend { padding-top: 15px; }
	.recommend .headline { margin-top: 0; }
	.recommend-grid { grid-template-columns: 1fr; row-gap: 6px; padding: 44px 15px 15px; }
}

/* ---------- GALLERY ---------- */
.gallery { padding-top: 30px; }
.gallery ul { display: grid; grid-template-columns: repeat(6, 1fr); }
.gallery li { overflow: hidden; }
.gallery img { display: block; width: 100%; height: auto; transition: transform .3s ease-in-out; }
.gallery li:hover img { transform: scale(1.2); }
@media (max-width: 640px) {
	.gallery { padding-top: 15px; }
	.gallery ul { grid-template-columns: repeat(2, 1fr); margin-top: 45px; }
}
