:root {
  /* Background & Base */
  --global-bg: #FFFFFF;
  --global-text: #000000;

  /* Links */
  --link: #BC002D;              /* Japan red */
  --link-visited: #990024;      /* ~20% darker */
  --link-hover: #990024;

  /* Headings & Titles */
  --site-title: #BC002D;
  --subtitle: #BC002D;
  --h1: #BC002D;
  --h2: #BC002D;
  --h3: #BC002D;
  --h4: #BC002D;
  --h5: #BC002D;
  --h6: #BC002D;

  /* Typography Defaults */
  --body-font-family: 'Arial', sans-serif;
  --body-font-size: 1rem;
  --body-font-weight: 400;

  --site-title-font-family: 'Georgia', serif;
  --site-title-font-size: 2rem;
  --site-title-font-weight: 700;

  --subtitle-font-family: 'Georgia', serif;
  --subtitle-font-size: 1.25rem;
  --subtitle-font-weight: 400;

  --h1-font-size: 2rem;
  --h2-font-size: 1.75rem;
  --h3-font-size: 1.5rem;
  --h4-font-size: 1.25rem;
  --h5-font-size: 1.125rem;
  --h6-font-size: 1rem;
}

/* Base */
body {
  background-color: var(--global-bg);
  color: var(--global-text);
  font-family: var(--body-font-family);
  font-size: var(--body-font-size);
  font-weight: var(--body-font-weight);
}

/* Headings + Titles */
.site-title, .site-title a {
  color: var(--site-title);
  font-family: var(--site-title-font-family);
  font-size: var(--site-title-font-size);
  font-weight: var(--site-title-font-weight);
}

.subtitle {
  color: var(--subtitle);
  font-family: var(--subtitle-font-family);
  font-size: var(--subtitle-font-size);
  font-weight: var(--subtitle-font-weight);
}

h1 {
  color: var(--h1);
  font-family: var(--h1-font-family);
  font-size: var(--h1-font-size);
  font-weight: var(--h1-font-weight);
}
h2 {
  color: var(--h2);
  font-family: var(--h2-font-family);
  font-size: var(--h2-font-size);
  font-weight: var(--h2-font-weight);
}
h3 {
  color: var(--h3);
  font-family: var(--h3-font-family);
  font-size: var(--h3-font-size);
  font-weight: var(--h3-font-weight);
}
h4 {
  color: var(--h4);
  font-family: var(--h4-font-family);
  font-size: var(--h4-font-size);
  font-weight: var(--h4-font-weight);
}
h5 {
  color: var(--h5);
  font-family: var(--h5-font-family);
  font-size: var(--h5-font-size);
  font-weight: var(--h5-font-weight);
}
h6 {
  color: var(--h6);
  font-family: var(--h6-font-family);
  font-size: var(--h6-font-size);
  font-weight: var(--h6-font-weight);
}

/* Links */
a {
  color: var(--link);
  font-family: var(--link-font-family);
  font-size: var(--link-font-size);
  font-weight: var(--link-font-weight);
  text-decoration: none;
}

a:visited {
  color: var(--link-visited);
}
a:hover, a:focus {
  color: var(--link-hover);
}

/* Common Elements */
p, li, span, div, section, article {
  color: var(--global-text);
  font-family: var(--body-font-family);
  font-size: var(--body-font-size);
  font-weight: var(--body-font-weight);
}

blockquote {
  font-family: var(--body-font-family);
  font-size: var(--body-font-size);
  font-weight: var(--body-font-weight);
  color: var(--global-text);
  border-left: 4px solid var(--link);
  padding-left: 1em;
}

button, input, select, textarea {
  font-family: var(--body-font-family);
  font-size: var(--body-font-size);
  font-weight: var(--body-font-weight);
  color: var(--global-text);
}

.blocks-container {
  width: 70%;
  margin: 0 auto;
}

.sitefrontpage-layout {
  display: flex;
  gap: 20px;
}

.sitefrontpage-left {
  flex: 0 0 20%;
}

.sitefrontpage-content {
  flex: 1;
  max-width: 100%;
  margin: 0 auto;
}

.sitefrontpage-right {
  flex: 0 0 20%;
}

/* Headings */
.sitefrontpage-content h1,
.sitefrontpage-content h2,
.sitefrontpage-content h3,
.sitefrontpage-content h4,
.sitefrontpage-content h5,
.sitefrontpage-content h6 {
  text-align: center;
}

/* Body text */
.sitefrontpage-content p,
.sitefrontpage-content blockquote,
.sitefrontpage-content li {
  text-align: justify;
}

/* Mobile */
@media (max-width: 768px) {
  .sitefrontpage-layout {
    flex-direction: column;
  }

  .sitefrontpage-left,
  .sitefrontpage-right {
    display: none;
  }

  .sitefrontpage-content {
    width: 95%;
    margin: 0 auto;
  }

  .sitefrontpage-mobile-header {
    width: 95%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--global-bg);
    padding: 0.5em .5em;
  }

  .sitefrontpage-header {
    margin-bottom: 3.5em; /* push content below fixed header */
  }

  .sitefrontpage-area {
    padding-top: 4em; /* adjust to header height */
  }
}

/* ================= Desktop ================= */
.siteheader-desktop {
	width: 100%;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.siteheader-desktop-right {
	margin: 0;
}
.siteheader-desktop .siteheader-title {
	margin: 0.1em;
}
.siteheader-main-navigation {
	display: flex;
}
#siteheader-primary-menu > li {
	display: inline-block;
	margin: 0 10px;
	color: var(--global-text);
	font-family: var(--body-font-family);
	font-size: calc(var(--body-font-size) * 1.25);
	font-weight: var(--h3-font-weight);
}
#siteheader-primary-menu li a {
	display: flex;
	align-items: center;
	color: var(--global-text);
}
#siteheader-primary-menu li ul.sub-menu {
	display: none;
	position: absolute;
	background: #fff;
	padding: 8px 0;
	list-style: none;
	font-family: var(--body-font-family);
}
#siteheader-primary-menu li:hover > ul.sub-menu {
	display: block;
}
#siteheader-primary-menu li ul.sub-menu li {
	display: block;
	margin: 0;
	padding: 1rem;
	font-size: calc(var(--body-font-size) * 1);
}

/* ================= Mobile ================= */
.siteheader-mobile {
	width: 90%;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.siteheader-mobile .siteheader-title {
	margin: 0;
}
.siteheader-mobile .siteheader-title a {
	font-size: calc(var(--h2-font-size));
}

.siteheader-mobile-navigation {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--global-bg);
	z-index: 9999;
	overflow-y: auto;
	padding: 1em;
	display: none;
	text-align: center;
}
.siteheader-mobile-navigation.open {
	display: block;
	margin-top: 2em;
}
.siteheader-mobile-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: center;
}
.siteheader-mobile-navigation ul li {
	margin: 15px 0;
	font-size: calc(var(--body-font-size) * 1.25);
	display: block;
}

/* mobile sub-menus */
#siteheader-primary-menu-mobile li ul.sub-menu {
	display: block;
	background: none;
	position: static;
	padding: 0;
	margin-top: 1rem;
	text-align: center;
	font-size: calc(var(--body-font-size) * 1.25);
}
#siteheader-primary-menu-mobile li ul.sub-menu li {
	display: inline-block;
	margin: 0 10px;
	padding: 0;
	font-size: calc(var(--body-font-size) * 1.25);
}
#siteheader-primary-menu-mobile > li {
	border: 1px solid var(--site-title);
	margin: 1em 0;
	padding: 1em;
}
#siteheader-primary-menu-mobile li a {
	display: block;
	color: var(--global-text);
	font-family: var(--body-font-family);
	font-size: calc(var(--body-font-size) * 1.25);
	text-decoration: none !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
}

/* Search form in mobile menu */
.siteheader-mobile-navigation .search-form {
	margin-top: 2em;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5em;
}
.siteheader-mobile-navigation .search-form label {
	flex: 1;
}
.siteheader-mobile-navigation .search-form input[type="search"] {
	width: 100%;
	padding: 0.6em;
	border: 1px solid var(--site-title);
	border-radius: 4px;
	font-size: 1rem;
	background: #fff;
	color: var(--global-text);
}
.siteheader-mobile-navigation .search-form input[type="submit"] {
	background: #BC002D; /* Japan red */
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 0.6em 1em;
	cursor: pointer;
	font-size: 1rem;
}

/* Close button */
.siteheader-menu-close {
	position: absolute;
	top: 0;
	right: 0;
	font-size: 4rem;
	background: none;
	border: none;
	cursor: pointer;
}

/* Hide/Show headers */
.siteheader-desktop {
	display: flex;
}
.siteheader-mobile {
	display: none;
}
@media (max-width: 768px) {
	.siteheader-desktop { display: none; }
	.siteheader-mobile { display: flex; }
	.site-title, .site-title a {
    font-size: calc(var(--site-title-font-size) * 0.85);
    }
    
    .site-frontpage h2 {font-size: calc(var(--h2-font-size) * .75)}
    .site-frontpage h3 {font-size: calc(var(--h3-font-size) * .75)}
}

/* Flags */
.siteheader-menu-flag {
	width: calc(var(--body-font-size) * 2);
	height: calc(var(--body-font-size) * 2);
	border-radius: 50%;
	object-fit: cover;
	margin-right: 6px;
	vertical-align: middle;
	border: 1px solid var(--site-title);
}

/* Menu toggle */
.siteheader-menu-toggle {
	background: none;
	border: none;
	color: var(--global-text);
	font-size: 2em;
	cursor: pointer;
	text-decoration: none;
	padding: 0;
}
.siteheader-menu-toggle:focus {
	outline: none;
}
.siteheader-mobile .siteheader-title a,
.siteheader-mobile .siteheader-menu-toggle {
	line-height: 1;
	display: flex;
	align-items: center;
	margin-top: 1em;
}

.siteheader-header {
	margin-bottom: 1em;
}

.entry-content iframe[src*="youtube.com"],
.entry-content iframe[src*="youtu.be"] {
  width: 80% !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
  display: block;
  margin: 0 auto;
}