/* ==========================================================================
   Japan Documented — Global CSS
   Variables, base reset, shared utilities
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens
   -------------------------------------------------------------------------- */
:root {
  --bg: #F1F1F1;
  --text: #111111;
  --muted: #6E7F86;
  --line: rgba(17, 17, 17, 0.08);
  --brand: #165E83;
  --brand-deep: #0C415B;
  --brand-hover: #08364A;
  --brand-soft: #E6CDBA;
  --brand-mid: #4A738A;
  --crafts-band: #D4E2E9;
  --crafts: #165E83;
  --places: #104862;
  --tips: #6E7F86;
  --human: #104862;
  --shop-text: #FFFFFF;
  --container: 1360px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 14px 40px rgba(17, 17, 17, 0.06);
  --font-heading-en: "Cormorant Garamond", serif;
  --font-heading-ja: "Noto Serif JP", serif;
  --font-body-en: "Inter", sans-serif;
  --font-body-ja: "Noto Sans JP", sans-serif;
}

/* --------------------------------------------------------------------------
   Base Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body-en), var(--font-body-ja);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading-en), var(--font-heading-ja);
}

/* --------------------------------------------------------------------------
   Scroll fade-in animation
   -------------------------------------------------------------------------- */
.js-fade {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-fade.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Shared button styles */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	font-family: 'Inter', sans-serif;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn--outline {
	background: transparent;
	border-color: rgba(0, 0, 0, 0.2);
	color: var(--c-text);
}

.btn--outline:hover {
	border-color: var(--c-text);
	background: var(--c-text);
	color: #fff;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Layout Utility
   -------------------------------------------------------------------------- */
.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

/* --------------------------------------------------------------------------
   Shared section utilities
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
  line-height: 1.2;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-title {
  margin: 8px 0 0;
  font-family: var(--font-heading-en), var(--font-heading-ja);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  transition: color .22s ease, transform .22s ease;
  white-space: nowrap;
}

.section-link:hover {
  color: var(--brand-hover);
  transform: translateX(2px);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.tag-human {
  color: var(--human);
  background: rgba(16, 72, 98, 0.10);
}

.tag-crafts {
  color: var(--crafts);
  background: rgba(22, 94, 131, 0.10);
}

.tag-places {
  color: var(--places);
  background: rgba(16, 72, 98, 0.10);
}

.tag-tips {
  color: var(--tips);
  background: rgba(110, 127, 134, 0.14);
}

/* Shared editorial card */
.editorial-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #f1f1f1;
  border: 1px solid rgba(17, 17, 17, 0.06);
  transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
}

.editorial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(22, 94, 131, 0.12);
}

.editorial-media {
  overflow: hidden;
  background: #f3f3f3;
}

.editorial-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.editorial-card:hover .editorial-media img {
  transform: scale(1.025);
}

.editorial-copy {
  padding: 16px 16px 18px;
}

.editorial-copy .tag-row {
  margin-bottom: 10px;
}

.editorial-title {
  margin: 0;
  font-family: var(--font-heading-en), var(--font-heading-ja);
  font-size: clamp(22px, 2.1vw, 32px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  font-weight: 600;
  transition: color .22s ease;
  text-wrap: balance;
}

.editorial-card:hover .editorial-title {
  color: var(--brand-hover);
}

.editorial-lead {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.clamp-2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.clamp-3 {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-decoration: none;
	border-radius: var(--r-sm);
	padding: 10px 18px;
	font-weight: 700;
	font-size: 14px;
	border: 1px solid transparent;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
		border-color 0.15s ease, color 0.15s ease;
	user-select: none;
	white-space: nowrap;
	cursor: pointer;
}

.btn--outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}

.btn--outline:hover {
  background: rgba(22, 94, 131, 0.06);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Accessibility focus */
:where(a, button, .btn):focus-visible {
  outline: 2px solid rgba(22, 94, 131, 0.55);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Single Post Layout (Insights articles)
   -------------------------------------------------------------------------- */
.single-post-wrap {
	padding: 48px 0 64px;
}

.single-post-inner {
	max-width: 760px;
}

.single-article__header {
	margin-bottom: 32px;
}

.single-article__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	font-size: 13px;
}

.single-article__title {
	margin: 0 0 24px;
	font-size: 38px;
	line-height: 1.12;
	letter-spacing: -.02em;
	font-weight: 900;
}

.single-article__hero-img {
	margin: 0 0 8px;
	border-radius: var(--r-md);
	overflow: hidden;
}

.single-article__img {
	width: 100%;
	max-height: 460px;
	object-fit: cover;
}

.single-article__content {
	font-size: 17px;
	line-height: 1.75;
}

.single-article__content h2 {
	font-size: 24px;
	font-weight: 800;
	margin: 2em 0 .6em;
}

.single-article__content h3 {
	font-size: 20px;
	font-weight: 700;
	margin: 1.8em 0 .5em;
}

.single-article__content p {
	margin: 0 0 1.4em;
}

.single-article__content img {
	border-radius: var(--r-sm);
	margin: 1.5em auto;
}

.single-article__footer {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid rgba(0, 0, 0, .08);
}

@media (max-width: 768px) {
	.single-article__title {
		font-size: 28px;
	}

	.single-article__content {
		font-size: 16px;
	}
}
