/*
Theme Name: KOJI CAFE
Theme URI: https://example.com/
Author: 小島喜画
Author URI: https://example.com/
Description: こじカフェの初期公開用オリジナルテーマ。トップページ＋Journalを中心にした軽量構成です。
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: kojicafe
*/

:root {
  --kc-bg: #f6f1e7;
  --kc-paper: #fbf8f1;
  --kc-text: #3f3026;
  --kc-sub: #78675b;
  --kc-line: #d8cbbb;
  --kc-brown: #4a3427;
  --kc-green: #6f7658;
  --kc-accent: #a47d56;
  --kc-max: 1180px;
  --kc-serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --kc-sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--kc-text);
  background: var(--kc-bg);
  font-family: var(--kc-sans);
  line-height: 1.9;
  letter-spacing: .04em;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container { width: min(calc(100% - 40px), var(--kc-max)); margin-inline: auto; }
.section { padding-block: clamp(88px, 12vw, 180px); }
.section--compact { padding-block: clamp(64px, 8vw, 110px); }
.eyebrow { margin: 0 0 16px; color: var(--kc-accent); font-family: var(--kc-serif); font-style: italic; }
.section-title { margin: 0 0 28px; font-family: var(--kc-serif); font-size: clamp(1.75rem, 2vw, 3.2rem); font-weight: 500; line-height: 1.45; letter-spacing: .08em; }
.lead { max-width: 42rem; font-family: var(--kc-serif); font-size: clamp(1rem, 1.6vw, 1.25rem); }
.button { display: inline-flex; align-items: center; gap: 18px; min-height: 52px; padding: 10px 22px; border: 1px solid var(--kc-text); transition: .25s ease; }
.button::after { content: "→"; }
.button:hover { color: var(--kc-paper); background: var(--kc-text); }
.text-link { color: var(--kc-sub); text-decoration: underline; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 10; padding: 16px 0; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--kc-serif); font-size: 1.05rem; letter-spacing: .12em; }
.site-logo img { width: 50px; max-height: 80px; object-fit: contain; }
.site-logo__text small { display: block; font-size: .55rem; letter-spacing: .28em; }
.global-nav ul { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; font-family: var(--kc-serif); font-size: .82rem; }
.menu-toggle { font-family: var(--kc-serif); display: none; border: 0; background: transparent; color: var(--kc-ink); -webkit-appearance: none; appearance: none;}

.hero { min-height: 92svh; display: grid; align-items: stretch; background: var(--kc-paper); }
.hero__grid { display: grid; grid-template-columns: minmax(310px, .8fr) 1.5fr; min-height: 92svh; }
.hero__copy { display: flex; flex-direction: column; justify-content: center; padding: 150px clamp(18px, 6vw, 90px) 80px max(32px, calc((65vw - var(--kc-max))/2)); }
.hero__copy .instagram__text { margin-top: 40px; }
.hero__title { margin: 0 0 30px; font-family: var(--kc-serif); font-size: clamp(2.25rem, 3.3vw, 4.5rem); font-weight: 500; line-height: 1.35; letter-spacing: .08em; }
/* .hero__text { max-width: 25rem; } */
.hero__media { min-height: 620px; background: #dfd2c0 center/cover no-repeat; }
.hero__quick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero__quick a { padding: 8px 14px; border-bottom: 1px solid var(--kc-line); font-size: .82rem; }

.editorial { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(50px, 8vw, 130px); }
.editorial--reverse .editorial__media { order: 2; }
.editorial__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.editorial__body { max-width: 31rem; }
.editorial__body p { margin-bottom: 2em; }
.breath { display: grid; min-height: 42svh; place-items: center; text-align: center; }
.breath p { margin: 0 0 0 34px; font-family: var(--kc-serif); font-size: clamp(1.6rem, 3vw, 3rem); letter-spacing: .15em; }

.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); margin-top: 54px; }
.menu-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 20px; }
.menu-card h3 { margin: 0 0 8px; font-family: var(--kc-serif); font-weight: 500; }
.menu-card p { margin: 0; color: var(--kc-sub); font-size: .88rem; }

.home-menu {
	padding-block: clamp(80px, 10vw, 160px);
}

.home-menu__list {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: clamp(16px, 2vw, 32px);
	margin-top: 48px;
}

.home-menu__item {
	display: block;
	overflow: hidden;
	background: #f5f0e8;
	position: relative;
}

.home-menu__item img {
	display: block;
	width: 100%;
	height: auto;
	transition: opacity 0.3s ease;
}

.home-menu__item:hover img {
	opacity: 0.8;
}


/* Lightbox
---------------------------------------- */

.menu-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	background: rgba(45, 37, 30, 0.92);

	opacity: 0;
	visibility: hidden;

	transition:
		opacity 0.3s ease,
		visibility 0.3s ease;
}

.menu-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.menu-lightbox__inner {
	max-width: 1000px;
	max-height: calc(100vh - 80px);
}

.menu-lightbox__image {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 80px);
	width: auto;
	height: auto;
	margin-inline: auto;
}

.menu-lightbox__close {
	position: absolute;
	top: 20px;
	right: 24px;

	border: 0;
	background: transparent;

	color: #fff;
	font-size: 40px;
	line-height: 1;
	cursor: pointer;
}

.menu-gallery__new {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 2px 10px;
  background: #d33030;
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}

@media (max-width: 767px) {

	.home-menu__list {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.menu-lightbox {
		padding: 56px 16px 24px;
	}

	.menu-lightbox__image {
		max-height: calc(100vh - 80px);
	}
	.breath p {
		margin-left: 26px;
	}

}

.menu-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);

	display: flex;
	align-items: center;
	justify-content: center;

	width: 56px;
	height: 56px;

	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;

	background: rgba(255, 255, 255, 0.08);

	color: #fff;
	font-size: 42px;
	line-height: 1;

	cursor: pointer;

	transition:
		background 0.3s ease,
		opacity 0.3s ease;
}

.menu-lightbox__nav:hover {
	background: rgba(255, 255, 255, 0.18);
}

.menu-lightbox__nav--prev {
	left: 24px;
}

.menu-lightbox__nav--next {
	right: 24px;
}


@media (max-width: 767px) {

	.menu-lightbox__nav {
		width: 44px;
		height: 44px;

		font-size: 34px;
	}

	.menu-lightbox__nav--prev {
		left: 8px;
	}

	.menu-lightbox__nav--next {
		right: 8px;
	}

}

/* --------------------------------------------------
  Details
-------------------------------------------------- */

.details__heading {
  max-width: 720px;
}

.details__item {
  display: grid;
  align-items: end;
  margin-top: clamp(100px, 14vw, 200px);
}

.details__item--tableware {
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr);
  gap: clamp(40px, 8vw, 120px);
}

.details__item--lighting {
  grid-template-columns: minmax(240px, .65fr) minmax(0, 1.35fr);
  gap: clamp(40px, 8vw, 120px);
}

.details__item--lighting .details__photo {
  grid-column: 2;
  grid-row: 1;
}

.details__item--lighting .details__body {
  grid-column: 1;
  grid-row: 1;
}

.details__photo {
  margin: 0;
}

.details__photo img {
  display: block;
  width: 100%;
  height: auto;
}

.details__body {
  max-width: 360px;
  padding-bottom: clamp(10px, 3vw, 40px);
}

.details__number {
  margin: 0 0 24px;

  color: var(--kc-sub);
  font-family: var(--kc-serif);
  font-size: .75rem;
  letter-spacing: .15em;
}

.details__title {
  margin: 0 0 24px;

  font-family: var(--kc-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: .06em;
}

.details__text {
  margin: 0;

  color: var(--kc-sub);
  font-size: .95rem;
  line-height: 2;
}

@media (max-width: 900px) {

  .details__item,
  .details__item--tableware,
  .details__item--lighting {
    grid-template-columns: 1fr;
    gap: 28px;

    margin-top: 80px;
  }

  .details__item--lighting .details__photo,
  .details__item--lighting .details__body {
    grid-column: auto;
    grid-row: auto;
  }

  .details__body {
    max-width: none;
    padding-bottom: 0;
  }

}

/* --------------------------------------------------
  Concept
-------------------------------------------------- */

.concept__logo {
	display: flex;
	justify-content: center;
	margin: clamp(40px, 6vw, 72px) 0;
}

.concept__logo-image {
	display: block;
	width: clamp(150px, 17vw, 200px);
	max-width: 100%;
	height: auto;
}

@media (max-width: 900px) {
	.concept__logo {
		margin: 40px 0;
	}

	.concept__logo-image {
		width: 150px;
	}
}

/* --------------------------------------------------
  Calendar
-------------------------------------------------- */
.information-calendar {
	margin-top: clamp(64px, 8vw, 100px);
}

.information-calendar__heading {
	max-width: 640px;
	margin-bottom: clamp(32px, 5vw, 56px);
}

.information-calendar__title {
	margin: 8px 0 16px;
	font-family: var(--kc-serif);
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 400;
	color: var(--kc-text);
}

.information-calendar__text {
	margin: 0;
	font-size: 14px;
	line-height: 2;
	color: var(--kc-sub);
}

.information-calendar__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(24px, 4vw, 48px);
	align-items: start;
}

.information-calendar__item {
	margin: 0;
}

.information-calendar__item img {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 900px) {
	.information-calendar {
		margin-top: 56px;
	}

	.information-calendar__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}
.information-calendar__button {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
	font: inherit;
	color: inherit;
}

.information-calendar__button img {
	display: block;
	width: 100%;
	height: auto;
}

.information-calendar__zoom {
	display: block;
	margin-top: 10px;
	font-size: 12px;
	letter-spacing: 0.08em;
	color: var(--kc-sub);
	text-align: center;
}

/* =========================
   Calendar Lightbox
========================= */

.calendar-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 70px;
	background: rgba(45, 35, 28, 0.9);

	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.calendar-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.calendar-lightbox__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.calendar-lightbox__image {
	display: block;
	max-width: 90vw;
	max-height: 88vh;
	width: auto;
	height: auto;
	object-fit: contain;
}

.calendar-lightbox__close {
	position: fixed;
	top: 24px;
	right: 28px;
	z-index: 2;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 42px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
}

.calendar-lightbox__nav {
	position: fixed;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	background: rgba(45, 35, 28, 0.4);
	color: #fff;
	font-size: 38px;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
}

.calendar-lightbox__nav--prev {
	left: 24px;
}

.calendar-lightbox__nav--next {
	right: 24px;
}

body.is-calendar-lightbox-open {
	overflow: hidden;
}

@media (max-width: 900px) {
	.calendar-lightbox {
		padding: 60px 16px;
	}

	.calendar-lightbox__image {
		max-width: 100%;
		max-height: 80vh;
	}

	.calendar-lightbox__close {
		top: 16px;
		right: 16px;
		width: 40px;
		height: 40px;
		font-size: 36px;
	}

	.calendar-lightbox__nav {
		width: 42px;
		height: 42px;
		font-size: 30px;
		background: rgba(45, 35, 28, 0.65);
	}

	.calendar-lightbox__nav--prev {
		left: 10px;
	}

	.calendar-lightbox__nav--next {
		right: 10px;
	}
}

/* --------------------------------------------------
  Access Map
-------------------------------------------------- */

.access-map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);

  margin-top: clamp(48px, 7vw, 90px);
}

.access-map__title {
  margin: 0 0 20px;

  font-family: var(--kc-serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: .08em;
}

.access-map__frame {
  position: relative;

  width: 100%;
  aspect-ratio: 4 / 3;

  overflow: hidden;
}

.access-map__frame iframe {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  border: 0;
}

.access-map__note {
  margin: 16px 0 0;

  color: var(--kc-sub);
  font-size: .85rem;
  line-height: 1.8;
}

/* --------------------------------------------------
  Access Illustration
-------------------------------------------------- */

.access-illust {
  position: relative;

  display: block;

  cursor: zoom-in;
}

.access-illust img {
  display: block;

  width: 100%;
  height: auto;
}

.access-illust__zoom {
  position: absolute;
  right: 16px;
  bottom: 16px;

  padding: 8px 14px;

  background: rgba(255, 255, 255, .9);

  color: var(--kc-ink);
  font-family: var(--kc-serif);
  font-size: .75rem;
  letter-spacing: .08em;
}


/* --------------------------------------------------
  Map Lightbox
-------------------------------------------------- */

.map-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 60px;

  background: rgba(48, 35, 27, .94);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity .3s ease,
    visibility .3s ease;
}

.map-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.map-lightbox__inner {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;
}

.map-lightbox__image {
  display: block;

  width: auto;
  max-width: 100%;
  max-height: calc(100svh - 100px);

  object-fit: contain;
}

.map-lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 1;

  padding: 0;

  border: 0;
  background: transparent;

  color: #fff;
  font-family: var(--kc-serif);
  font-size: 2.4rem;
  line-height: 1;

  cursor: pointer;
}


@media (max-width: 900px) {

  .map-lightbox {
    padding: 60px 16px 24px;
  }

  .access-illust__zoom {
    right: 10px;
    bottom: 10px;

    padding: 6px 10px;

    font-size: .7rem;
  }

}

/* --------------------------------------------------
  Instagram
-------------------------------------------------- */

.instagram {
  background: var(--kc-paper);
}

.instagram__content {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;

  margin-top: clamp(48px, 7vw, 90px);
}

.instagram__account {
  margin: 0 0 28px;

  font-family: var(--kc-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: .08em;
}

.instagram__button {
  display: inline-flex;
}

.instagram__visual {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 320px;
  padding: clamp(40px, 7vw, 80px);

  border-top: 1px solid var(--kc-line);
  border-bottom: 1px solid var(--kc-line);
}

.instagram__message {
  margin: 0;

  font-family: var(--kc-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  line-height: 2;
  letter-spacing: .08em;
}


/* Responsive
------------------------------ */

@media (max-width: 900px) {

  .instagram__content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .instagram__visual {
    min-height: auto;
    padding: 48px 24px;
  }

}

.journal-feature { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.journal-feature__main img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.journal-feature__main h3 { font-family: var(--kc-serif); font-size: clamp(1.1rem, 1.5vw, 1.5rem); font-weight: 500; letter-spacing: 0; }
.journal-list { display: grid; gap: 26px; }
.journal-item { padding-bottom: 24px; border-bottom: 1px solid var(--kc-line); }
.journal-item time { color: var(--kc-sub); font-size: .78rem; }
.journal-item h3 { margin: 8px 0 0; font-family: var(--kc-serif); font-weight: 500; }

.info { background: var(--kc-paper); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); }
.info-list { margin: 0; }
.info-row { display: grid; grid-template-columns: 7rem 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--kc-line); }
.info-row dt { font-family: var(--kc-serif); }
.info-row dd { margin: 0; }
.map-placeholder { min-height: 360px; display: grid; place-items: center; border: 1px solid var(--kc-line); background: #e9dfd1; text-align: center; padding: 30px; }

.site-footer { color: #f7f1e8; background: var(--kc-brown); padding: 55px 0 28px; text-align: center; }
.site-footer__grid { display: flex; justify-content: center; gap: 0px; align-items: center; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 24px; margin: 0; padding: 0; list-style: none; font-family: var(--kc-serif); font-size: .82rem; }
.site-footer__credit { margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.65); font-size: .72rem; }

/* --------------------------------------------------
  Footer Logo
-------------------------------------------------- */

.site-footer__logo {
  margin-bottom: clamp(40px, 6vw, 72px);
}

.site-footer__logo a {
  display: inline-block;
}

.site-footer__logo img {
  display: block;
  width: clamp(140px, 18vw, 200px);
  height: auto;
}

/* --------------------------------------------------
  Footer SNS
-------------------------------------------------- */

.site-footer__sns { margin-top: 32px; }
.site-footer__sns-label { margin: 0 0 8px; color: var(--kc-sub); font-family: var(--kc-serif); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;}
.site-footer__instagram {
  display: inline-block;

  color: inherit;
  font-family: var(--kc-serif);
  font-size: 1rem;
  letter-spacing: .06em;

  text-decoration: none;

  transition: opacity .25s ease;
}

.site-footer__instagram:hover {
  opacity: .6;
}

.archive-header, .single-header { padding: 150px 0 70px; background: var(--kc-paper); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px 28px; }
.post-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.post-card h2 { font-family: var(--kc-serif); font-size: 1.2rem; font-weight: 500; }
.post-card time, .post-meta { color: var(--kc-sub); font-size: .75rem; }
.single-content { width: min(calc(100% - 40px), 780px); margin: 0 auto; padding: 70px 0 130px; }
.single-content > * + * { margin-top: 1.5em; }
.single-content h2, .single-content h3 { font-family: var(--kc-serif); font-weight: 500; }
.single-content img { margin-inline: auto; }
.pagination { margin-top: 70px; }

@media (max-width: 900px) {
  section[id] { scroll-margin-top: 20px; }
  .site-header { position: sticky; top: 0; z-index: 100; background: rgba(248, 246, 242, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .global-nav { display: none; position: absolute; top: 100%; left: 20px; right: 20px; padding: 24px; background: var(--kc-paper); box-shadow: 0 15px 35px rgba(63,48,38,.12); }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; gap: 14px; }
  .menu-toggle { display: block; }
  .hero__grid { grid-template-columns: 1fr; min-height: auto; }
  .hero__copy { padding: 80px 24px 70px; }
  .hero__media { min-height: 58svh; }
  .editorial, .journal-feature, .info-grid { grid-template-columns: 1fr; }
  .editorial--reverse .editorial__media { order: initial; }
  .menu-grid, .post-grid { grid-template-columns: 1fr; }
  .site-footer__grid { flex-direction: column; }
}
