/* =========================================================
   NELL's Coffee Beans トップページ
   ======================================================= */
:root {
	--ink: #2B1D16;
	--ink-2: #4A3A2E;
	--ink-3: #5E4A3C;
	--cream: #F1EADF;
	--cream-2: #F4EEE6;
	--caramel: #8A511E;
	--gold-light: #E8C9A6;
	--night: #140C07;
	--shade: 0.45;
	--beans: url(../img/hero-beans.jpg);
}

body.nells-front {
	margin: 0;
	background: #1A110B;
	color: var(--ink);
	font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
}
.nells-front *, .nells-front *::before, .nells-front *::after { box-sizing: border-box; }
.nells-front img { max-width: 100%; display: block; }
.nells-front a { color: var(--ink); }
.nells-front a:hover { color: var(--caramel); }
.nells-front h1, .nells-front h2, .nells-front h3, .nells-front p { margin: 0; }
html { scroll-behavior: smooth; }

/* ---------- 共通パーツ ---------- */
.nf-wrap { max-width: 1040px; margin: 0 auto; }
.nf-eyebrow { display: block; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 20px; color: var(--caramel); }
.nf-h2 { font-family: 'Kiwi Maru', serif; font-weight: 500; font-size: 28px; line-height: 1.5; }
.nf-h3 { font-family: 'Kiwi Maru', serif; font-weight: 500; font-size: 20px; }
.nf-textlink { font-size: 14px; font-weight: 700; color: var(--caramel) !important; }
.nf-textlink--center { align-self: center; }

.nf-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 50px; padding: 0 28px; border-radius: 999px;
	font-weight: 700; text-decoration: none;
}
.nf-btn--gold { background: linear-gradient(180deg, #A6652A, #8A511E); box-shadow: 0 6px 18px rgba(0,0,0,0.28); color: #FFFFFF !important; }
.nf-btn--gold:hover { background: linear-gradient(180deg, #B06D2E, #93571F); }
.nf-btn--lg { min-height: 54px; padding: 0 44px; }
.nf-btn--dark { align-self: flex-start; min-height: 48px; padding: 0 24px; background: var(--ink); color: var(--cream-2) !important; font-size: 14px; }

.nf-badge { border-radius: 50%; background: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.nf-badge img { object-fit: contain; }
.nf-badge--header { width: 72px; height: 72px; box-shadow: 0 4px 16px rgba(0,0,0,0.25); }
.nf-badge--header img { width: 54px; height: 57px; }
.nf-badge--about { width: 190px; height: 190px; box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.nf-badge--about img { width: 140px; height: 147px; }
.nf-badge--footer { width: 52px; height: 52px; }
.nf-badge--footer img { width: 38px; height: 40px; }

/* ---------- ヘッダー・メニュー ---------- */
.nf-header { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.nf-header__inner { max-width: 1240px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
.nf-burger {
	width: 52px; height: 52px; border-radius: 50%;
	border: 1px solid rgba(255,255,255,0.6); background: rgba(20,12,7,0.35); color: #FFFFFF;
	display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.nf-menu { position: fixed; inset: 0; z-index: 50; background: #1A110B; color: var(--cream-2); overflow-y: auto; }
.nf-menu[hidden] { display: none; }
.nf-menu__nav { max-width: 560px; margin: 0 auto; padding: 48px 24px 80px; display: flex; flex-direction: column; gap: 6px; text-align: center; }
.nf-menu__nav a:not(.nf-btn) { padding: 12px 0; font-family: 'Kiwi Maru', serif; font-size: 22px; color: var(--cream-2); text-decoration: none; }
.nf-menu__nav a:not(.nf-btn):hover { color: var(--gold-light); }
.nf-menu__nav a span { display: block; font-family: 'Fredoka', sans-serif; font-size: 15px; letter-spacing: 0.12em; color: #C9AE8C; }
.nf-menu__nav .nf-btn { margin-top: 24px; align-self: center; padding: 0 40px; }

/* ---------- ファーストビュー ---------- */
.nf-hero { position: relative; overflow: hidden; background: var(--night); color: #FFFFFF; }
.nf-beans-bg {
	position: absolute; inset: -4%;
	background: var(--beans) center / cover no-repeat;
	animation: nf-drift 26s ease-in-out infinite alternate;
}
.nf-beans-bg--dim { opacity: 0.55; }
@keyframes nf-drift { from { transform: scale(1) translate(0,0); } to { transform: scale(1.12) translate(-2%,-1.5%); } }
.nf-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,12,7,var(--shade)) 0%, rgba(20,12,7,0.25) 55%, rgba(20,12,7,0.55) 100%); }
.nf-hero__body { position: relative; z-index: 1; text-align: center; padding: 112px 20px 168px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.nf-hero__brand {
	font-family: 'Delius', sans-serif; font-size: clamp(42px, 8vw, 104px); line-height: 1.1;
	color: #FFFFFF; -webkit-text-stroke: 1.5px #FFFFFF;
	text-shadow: 0 2px 4px rgba(0,0,0,0.6), 0 4px 24px rgba(0,0,0,0.45);
}
.nf-hero__copy {
	margin-top: 6px !important; font-family: 'Kiwi Maru', serif; font-weight: 700;
	font-size: clamp(24px, 3.6vw, 44px); line-height: 1.55; letter-spacing: 0.06em;
	text-shadow: 0 1px 2px rgba(0,0,0,0.9), 0 2px 10px rgba(0,0,0,0.55);
}
.nf-hero__line { display: block; }
.nf-ch { display: inline-block; animation: nf-ch .7s cubic-bezier(.3,1.4,.5,1) both; }
@keyframes nf-ch { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.nf-rise { animation: nf-rise 1.2s ease both; }
@keyframes nf-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.nf-hero__points { margin-top: 6px; display: flex; align-items: center; gap: 14px; }
.nf-hero__points p {
	display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 12px;
	font-family: 'Kiwi Maru', serif; font-size: 15px; font-weight: 700; letter-spacing: 0.08em; color: #FFFFFF;
	text-shadow: 0 1px 3px rgba(0,0,0,0.95), 0 0 16px rgba(0,0,0,0.85);
}
.nf-rule { width: 36px; height: 1px; background: var(--gold-light); flex: 0 0 auto; }
.nf-hero .nf-btn--lg { margin-top: 10px; }

.nf-steam { position: absolute; left: 50%; top: 46%; width: 120px; height: 120px; transform: translateX(-50%); }
.nf-steam span {
	position: absolute; width: 2px; height: 90px; border-radius: 2px;
	background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.45), rgba(255,255,255,0));
	filter: blur(3px); animation: nf-steam 5s ease-in-out infinite;
}
.nf-steam span:nth-child(1) { left: 30px; }
.nf-steam span:nth-child(2) { left: 58px; animation-delay: 1.6s; }
.nf-steam span:nth-child(3) { left: 86px; animation-delay: 3.2s; }
@keyframes nf-steam { 0% { opacity: 0; transform: translateY(20px) scaleX(1); } 40% { opacity: .8; } 100% { opacity: 0; transform: translateY(-60px) scaleX(4) skewX(12deg); } }

/* ---------- 写真カード ---------- */
.nf-cards-wrap { position: relative; z-index: 3; margin-top: -110px; padding: 0 12px; }
/* カードの左右に黒い帯が出ないよう、後ろにも豆の写真を敷く */
.nf-cards-wrap::before {
	content: ""; position: absolute; left: 0; right: 0; top: 110px; bottom: 0; z-index: -1;
	background: linear-gradient(rgba(20,12,7,0.55), rgba(20,12,7,0.62)), var(--beans) center / cover no-repeat;
}
.nf-cards {
	max-width: 1240px; margin: 0 auto; background: var(--cream); border-radius: 18px;
	padding: clamp(16px, 3vw, 32px); box-shadow: 0 24px 60px rgba(0,0,0,0.35);
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px 24px;
}
.nf-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.nf-card__img { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; }
.nf-card__img--navy { background: #1E2433; }
.nf-card__img--white { background: #FFFFFF; }
.nf-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.nf-card__img img.is-contain { object-fit: contain; }
.nf-card:hover img { transform: scale(1.05); }
.nf-card__title { margin-top: 4px; font-size: 18px; font-weight: 700; }
.nf-card__text { font-size: 13px; color: var(--ink-2); line-height: 1.7; }

/* ---------- ABOUT ---------- */
.nf-about { position: relative; overflow: hidden; margin-top: -90px; background: var(--night); color: #FFFFFF; }
.nf-about__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,12,7,0.55), rgba(20,12,7,0.75)); }
.nf-about__body { position: relative; max-width: 760px; margin: 0 auto; padding: 150px 20px 80px; text-align: center; display: flex; flex-direction: column; gap: 26px; align-items: center; }
.nf-about h2 { font-family: 'Kiwi Maru', serif; font-weight: 700; font-size: clamp(24px, 3vw, 36px); line-height: 1.7; letter-spacing: 0.06em; }
.nf-about p { font-size: 15px; color: #E3D4C3; line-height: 2.1; }

/* ---------- お知らせ・投稿 ---------- */
.nf-news { background: var(--cream); padding: 64px 20px 16px; }
.nf-news .nf-wrap { display: flex; flex-direction: column; gap: 32px; }
.nf-news__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.nf-insta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.nf-insta-grid a { aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; display: block; background: #FFFFFF; }
.nf-insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.nf-insta-grid img.is-contain { object-fit: contain; }
.nf-insta-grid a:hover img { transform: scale(1.05); }
.nf-news__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #D9CBB8; }
.nf-news__list li { border-bottom: 1px solid #D9CBB8; }
.nf-news__list a { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 16px 4px; text-decoration: none; }
.nf-news__list time { font-family: 'Fredoka', sans-serif; font-size: 17px; color: var(--caramel); min-width: 96px; }

/* ---------- SHOP ---------- */
.nf-shop { background: var(--cream); padding: 56px 20px 64px; }
.nf-shop__top { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center; }
.nf-shop__photo { flex: 1 1 300px; max-width: 400px; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; box-shadow: 0 16px 40px rgba(43,29,22,0.18); }
.nf-shop__photo img { width: 100%; height: 100%; object-fit: cover; }
.nf-shop__info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.nf-shop__info dl { margin: 0; display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 10px 20px; font-size: 15px; }
.nf-shop__info dt { color: var(--ink-3); }
.nf-shop__info dd { margin: 0; }
.nf-shop__info small { font-size: 13px; color: var(--ink-3); }
.nf-shop__bottom { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }

.nf-access { flex: 3 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.nf-map { background: #E9DCCB; border-radius: 14px; padding: 8px; }
.nf-map svg { width: 100%; height: auto; display: block; }
.nf-map .m-t { font-family: 'Zen Maru Gothic', sans-serif; }
.nf-map .m-e { font-family: 'Fredoka', sans-serif; font-weight: 700; }
.nf-map .m-park { font-size: 16px; font-weight: 700; fill: #3F6B3A; }
.nf-map .m-road { font-size: 12px; fill: #5E4A3C; }
.nf-map .m-sm { font-size: 10px; }
.nf-map .m-walk { font-size: 14px; font-weight: 700; fill: #8A511E; }
.nf-map .m-s { font-size: 13px; fill: #FFFFFF; }
.nf-map .m-st { font-size: 18px; font-weight: 700; fill: #2B1D16; }
.nf-map .m-sm2 { font-size: 11px; fill: #5E4A3C; }
.nf-map .m-p { font-size: 13px; font-weight: 700; fill: #FFFFFF; }
.nf-map .m-here { font-size: 19px; fill: #FFFFFF; }
.nf-map .m-name { font-size: 15px; fill: #2B1D16; }
.nf-map .m-n { font-size: 12px; fill: #5E4A3C; }
.nf-access__text { font-size: 14px; color: var(--ink-2); }

.nf-cal-box { flex: 2 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.nf-cal { background: #FFFDF9; border: 1px solid #E0D3C2; border-radius: 14px; padding: 16px; }
.nf-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.nf-cal__nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #D6C6B2; background: #FFFFFF; color: var(--ink); cursor: pointer; font-size: 16px; }
.nf-cal__nav:disabled { opacity: .35; cursor: default; }
.nf-cal__month { font-family: 'Kiwi Maru', serif; font-size: 18px; font-weight: 500; }
.nf-cal__week, .nf-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.nf-cal__week { text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-3); margin-bottom: 4px; }
.nf-cal__week .is-sun { color: #A3402B; }
.nf-cal__week .is-sat { color: #2C5E8A; }
.nf-cal__grid span { min-height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 14px; background: var(--cream); color: #6E5A4A; }
.nf-cal__grid span.is-open { background: var(--caramel); color: #FFFFFF; font-weight: 700; }
.nf-cal__grid span.is-blank { background: transparent; }
.nf-cal__grid span.is-today { outline: 2px solid var(--ink); outline-offset: 1px; }
.nf-cal__legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: 12px; color: var(--ink-2); }
.nf-cal__legend span { display: flex; align-items: center; gap: 6px; }
.nf-cal__legend i { width: 14px; height: 14px; border-radius: 4px; background: var(--cream); border: 1px solid #E0D3C2; }
.nf-cal__legend i.is-open { background: var(--caramel); border-color: var(--caramel); }

/* ---------- フッター ---------- */
.nf-footer { background: #1A110B; color: #CDBBA8; font-size: 13px; }
.nf-footer__inner { max-width: 1240px; margin: 0 auto; padding: 44px 24px 120px; display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.nf-footer__brand { display: flex; align-items: center; gap: 14px; font-family: 'Fredoka', sans-serif; font-size: 22px; letter-spacing: 0.06em; color: var(--cream-2); }
.nf-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.nf-footer nav a { color: var(--cream-2); }

/* ---------- ネル(ポップアップ・ページトップ) ---------- */
.nf-nell { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.nf-nell__bubble {
	position: relative; max-width: 230px; background: #FFFFFF; color: var(--ink);
	border-radius: 18px; padding: 14px 36px 14px 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.25);
	font-size: 13px; line-height: 1.7; transform-origin: 85% 100%;
	animation: nf-pop .6s cubic-bezier(.3,1.5,.5,1) both;
}
.nf-nell__bubble[hidden], .nf-nell__tag[hidden] { display: none; }
.nf-nell__bubble strong { display: block; font-family: 'Kiwi Maru', serif; font-size: 15px; margin-bottom: 2px; }
.nf-nell__bubble::after, .nf-nell__tag::after { content: ""; position: absolute; right: 30px; bottom: -7px; width: 16px; height: 16px; background: #FFFFFF; transform: rotate(45deg); }
@keyframes nf-pop { from { opacity: 0; transform: scale(.4) translateY(10px); } to { opacity: 1; transform: none; } }
.nf-nell__close { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--cream); color: var(--ink-3); cursor: pointer; font-size: 14px; line-height: 1; padding: 0; }
.nf-nell__tag { position: relative; background: #FFFFFF; border-radius: 999px; padding: 4px 16px; box-shadow: 0 6px 20px rgba(0,0,0,0.2); font-family: 'Fredoka', sans-serif; font-size: 17px; font-weight: 700; letter-spacing: 0.06em; }
.nf-nell__tag::after { width: 12px; height: 12px; bottom: -6px; }
.nf-nell__btn {
	width: 72px; height: 72px; border-radius: 50%; background: #FFFFFF;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 8px 24px rgba(0,0,0,0.3); transition: transform .3s ease;
	animation: nf-bob 3.2s ease-in-out 4s infinite;
}
.nf-nell__btn img { width: 44px; height: 62px; object-fit: contain; margin-top: 6px; }
.nf-nell__btn:hover { transform: rotate(-8deg) scale(1.06); }
@keyframes nf-bob { 0%,100% { transform: none; } 8% { transform: rotate(-10deg); } 16% { transform: rotate(8deg); } 24% { transform: none; } }

/* ---------- オンライン注文「準備中」のお知らせ ---------- */
.nf-soon { position: fixed; inset: 0; z-index: 60; background: rgba(20,12,7,0.72); display: flex; align-items: center; justify-content: center; padding: 20px; }
.nf-soon[hidden] { display: none; }
.nf-soon__card {
	position: relative; width: 100%; max-width: 440px; background: var(--cream); border-radius: 20px;
	padding: 36px 24px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px;
	box-shadow: 0 24px 60px rgba(0,0,0,0.4); animation: nf-pop .5s cubic-bezier(.3,1.4,.5,1) both;
}
.nf-soon__face { width: 92px; height: 92px; box-shadow: 0 6px 18px rgba(43,29,22,0.15); }
.nf-soon__face img { width: 52px; height: 73px; margin-top: 8px; }
.nf-soon h2 { font-family: 'Kiwi Maru', serif; font-weight: 500; font-size: 22px; line-height: 1.5; }
.nf-soon p { font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.nf-soon__hours { font-weight: 700; color: var(--caramel) !important; }
.nf-soon__actions { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 4px; }
.nf-soon__actions .nf-btn { width: 100%; padding: 0 16px; }
.nf-btn--line { border: 1px solid var(--ink); color: var(--ink) !important; background: transparent; }
.nf-soon__close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #FFFFFF; color: var(--ink-3); font-size: 18px; cursor: pointer; }

/* ---------- ログイン中の管理バーと重ならないように ---------- */
.admin-bar .nf-header, .admin-bar .nf-menu { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .nf-header, .admin-bar .nf-menu { top: 46px; }
}

/* ---------- スマホ ---------- */
@media (max-width: 600px) {
	.nf-rule, .nf-bean { display: none; }
	.nf-hero__points p { flex-direction: column; gap: 2px; }
	.nf-menu__nav { padding-top: 24px; gap: 0; }
	.nf-menu__nav a:not(.nf-btn) { padding: 10px 0; }
}

/* ---------- 動きを減らす設定の方 ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.nf-beans-bg, .nf-ch, .nf-rise, .nf-nell__bubble, .nf-nell__btn { animation: none; }
	.nf-steam { display: none; }
	.nf-card__img img, .nf-insta-grid img { transition: none; }
}
