:root {
  --ink: #222;
  --paper: #fff;
  --serif: "Noto Serif", "Noto Serif CJK JP", serif;
  --latin: Garamond, "Apple Garamond", "Times New Roman", serif;
  --margin-small: 24px;
  --margin-medium: 32px;
  --margin-large: 48px;
  --margin-inline: clamp(var(--margin-small), 2vw, 40px);
  --margin-overview: clamp(var(--margin-medium), 6vw, 128px);
  --margin-news: clamp(var(--margin-large), 7vw, 128px);
  --margin-footer: clamp(var(--margin-large), 10vw, 192px);
  --margin-profile-gallery: clamp(80px, 12vw, 160px);
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: clamp(15px, .9vw, 18px)/1.65 var(--serif);
  letter-spacing: .05em;
  text-align: justify;

}

:lang(en) {
  font-family: var(--latin);
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

a:hover {
  opacity: .65;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid #777;
  outline-offset: 4px;
}

.wrap {
  width: min(1100px, calc(100% - clamp(40px, 6vw, 120px)));
  margin-inline: auto;
}

@media (min-width: 769px) {
  .sp_only {
    display: none;
  }
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(600px, 85svh, 1100px);
  min-height: 360px;
  margin: var(--margin-inline) var(--margin-inline) 0;
  background: #222 var(--hero-photo) center / cover no-repeat;
  color: #fff;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000a;
}
.home-hero {
  --hero-photo: url("../assets/hero.jpg");
  overflow: hidden;
  background: white;
}
.home-hero::before {
  background: linear-gradient(#000a, #000a), var(--hero-photo) center / cover no-repeat;
  animation: hero-photo-in 2s cubic-bezier(.2, .65, .3, 1) both;
}
.home-hero .hero-text {
  animation: hero-title-in .85s ease-out 1.05s both;
}

.scroll-reveal {
  transition: opacity 1.8s ease, translate 1.8s ease;
  transition-delay: .5s;
}
.scroll-reveal.is-pending:not(:focus-within) {
  opacity: 0;
  translate: var(--reveal-x, 0) var(--reveal-y, 0);
  transition: none;
}
.overview .english {
  --reveal-y: 40px;
}

main:has(.home-hero) .news h2 {
  --reveal-x: -80px;
}

.hero-text {
  position: relative;
  width: min(1400px, calc(100% - var(--margin-inline) - var(--margin-inline)));
  animation: appear .75s ease-out both;
}

.subtitle {
  font-size: clamp(14px, 2.4vw, 18px);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom:  var(--margin-large);}

.hero h1 {
  margin-top: clamp(16px, 1.5vw, 32px);
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 400;
  margin-bottom: 24px;
}

.event {
  margin-top: clamp(16px, 1.2vw, 24px);
  font-size: clamp(16px, 1.25vw, 24px);
  line-height: 1.8;
}

.menu-trigger {
  position: fixed;
  inset: clamp(24px, 2.5vw, 48px) clamp(32px, 3.5vw, 64px) auto auto;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(38px, 3vw, 52px);
  height: clamp(38px, 3vw, 52px);
  border: 0;
  background: transparent;
  font-size: 0;
}
.menu-trigger::before,
.menu-trigger::after,
.menu-close::before,
.menu-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(24px, 1.8vw, 34px);
  height: 1px;
  background: white;
  box-shadow: 0 1px 5px #000;
}
.menu-trigger::before,
.menu-close::before {
  transform: translate(-50%, -4px);
}

.menu-trigger::after,
.menu-close::after {
  transform: translate(-50%, 4px);
}

/* メニューを開いた後のパネル・ナビ・閉じるボタンの調整箇所 */
#site-menu {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
}

#site-menu::backdrop {
  background: transparent;
}

.menu-bar,
.site-header {
  display: flex;
  align-items: center;
  gap: clamp(32px, 3vw, 56px);
  min-height: clamp(80px, 6vw, 112px);
  padding: 0 clamp(40px, 4vw, 80px) 0 clamp(24px, 2vw, 40px);
  background: white;
}

#site-menu[open] .menu-bar {
  animation: menu-in .25s ease-out both;
}

.site-header {
  padding-right: clamp(48px, 4vw, 80px);
}

.site-header .menu-trigger {
  position: relative;
  inset: auto;
  flex: 0 0 clamp(38px, 3vw, 52px);
}

.site-header .menu-trigger::before,
.site-header .menu-trigger::after {
  background: var(--ink);
  box-shadow: none;
}

.brand {
  margin-right: auto;
  font-size: clamp(17px, 1.3vw, 24px);
}

.menu-bar nav,
.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 2.2vw, 40px);
  font: clamp(14px, 1vw, 18px)/1.4 var(--latin);
}

/* メニューを閉じるボタン */
.menu-close {
  position: relative;
  flex: 0 0 clamp(38px, 3vw, 52px);
  width: clamp(38px, 3vw, 52px);
  height: clamp(38px, 3vw, 52px);
  border: 0;
  background: none;
  padding: 0;
}

.menu-close::before,
.menu-close::after {
  background: var(--ink);
  box-shadow: none;
}

.overview {
  width: min(1100px, calc(100% - clamp(80px, 10vw, 160px)));
  margin: var(--margin-overview) auto 0;
  min-height: clamp(500px, 38vw, 720px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(40px, 4vw, 80px);
}

.parallax {
  height: clamp(320px, 40vw, 600px);
  margin-top: var(--margin-large);
  background-image: linear-gradient(#0002, #0002), url("../assets/shene9.jpg");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

.profile {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--margin-medium) var(--margin-large);
  margin: var(--margin-large) auto 0;
  padding: var(--margin-large) var(--margin-inline) 0;
}

.profile-heading,
.profile-name {
  grid-column: 1 / -1;
}

.profile-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--margin-small);
}

.profile-heading h2 {
  font-size: clamp(24px, 2vw, 40px);
  font-weight: 500;
}

.profile-heading p {
  font: 14px/1.4 var(--latin);
}

.profile-name {
  display: flex;
  align-items: baseline;
  gap: var(--margin-medium);
  font-size: clamp(24px, 2vw, 40px);
  font-weight: 500;
}

.profile-name [lang="en"] {
  font-size: 14px;
}

.profile-copy {
  font-size: clamp(14px, .95vw, 18px);
  line-height: 2;
}

.english {
  font: clamp(14px, .95vw, 18px)/2 var(--latin);
  overflow-wrap: anywhere;
}

.english h2 {
  margin: 0 0 clamp(24px, 2.5vw, 48px);
  font-size: clamp(20px, 1.6vw, 30px);
  font-weight: 500;
}

.japanese {
  writing-mode: vertical-rl;
  text-orientation: upright;
  align-self: start;
  height: clamp(500px, 38vw, 720px);
}

.japanese h2 {
  margin-left: clamp(24px, 2.4vw, 48px);
  font-size: clamp(20px, 1.6vw, 30px);
  font-weight: 500;
}

.description,
.event-details {
  font-size: clamp(14px, .95vw, 18px);

}

.description {
  margin-top: clamp(24px, 2vw, 40px);
  line-height: 2;
}

.description p + p {
  margin-right: 2em;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(1200px, calc(100% - clamp(40px, 6vw, 100px)));
  margin: var(--margin-profile-gallery) auto 0;
}

.gallery-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery img {
  --reveal-y: 24px;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.event-details {
  padding: clamp(48px, 6vw, 96px) var(--margin-inline);
  text-align: left;
  border-bottom: 1px solid #aaa;
  margin: var(--margin-large);
}

.event-details p + p {
  margin-top: var(--margin-small);
}

.venue-map {
  display: block;
  width: 100%;
  height: clamp(320px, 35vw, 560px);
  border: 0;
}

.news {
  margin-block: var(--margin-news) 0;
}

.news h2 {
  margin-bottom: clamp(24px, 2vw, 40px);
  font: clamp(28px, 2.2vw, 42px)/1.4 var(--latin);
}

.news-row {
  display: grid;
  grid-template-columns: clamp(56px, 4.5vw, 82px) minmax(0, 1fr);
  gap: clamp(16px, 1.5vw, 32px);
  align-items: center;
  max-width: 980px;
}

.news-row.news-feature {
  grid-template-columns: minmax(0, 1fr);
}

time {
  font: clamp(12px, .85vw, 16px) var(--latin);
}

.news-row strong {
  font-weight: 500;
}

.news-row p {
  overflow: hidden;
  font-size: clamp(12px, .85vw, 16px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.more {
  display: inline-block;
  min-width: clamp(118px, 10vw, 180px);
  margin-top: clamp(32px, 3vw, 56px);
  padding-bottom: 8px;
  border-bottom: 1px solid #aaa;
  font: clamp(15px, 1vw, 19px) var(--latin);
}

.more span {
  float: right;
}

.site-footer {
  width: calc(100% - clamp(40px, 6vw, 100px));
  max-width: 1100px;
  margin: var(--margin-footer) auto 0;
  padding-bottom: clamp(24px, 2.5vw, 48px);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(32px, 3vw, 56px);
}

.site-footer nav {
  column-gap: clamp(32px, 2.5vw, 48px);
  row-gap: clamp(16px, 1vw, 24px);
  font-size: clamp(13px, .9vw, 17px);
}

.social {
  display: flex;
  gap: clamp(16px, 1vw, 24px);
  margin-top: clamp(32px, 2.5vw, 48px);
  font: bold clamp(18px, 1.3vw, 24px)/1 Georgia, serif;
}

.social svg,
.social-icon svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.social-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
}

.social-icon svg {
  width: 22px;
  height: 22px;
}

.social .instagram-dot,
.social-icon .instagram-dot {
  fill: currentColor;
  stroke: none;
}

.social .facebook-icon,
.social-icon .facebook-icon {
  fill: currentColor;
  stroke: none;
}

.site-footer small {
  display: block;
  margin-top: clamp(56px, 4vw, 80px);
  text-align: center;
  font: clamp(12px, .85vw, 16px) var(--latin);
}

.narrow {
  width: min(680px, calc(100% - clamp(40px, 6vw, 100px)));
  margin-inline: auto;
}

.article {
  min-height: clamp(320px, 28vw, 480px);
  padding-top: clamp(24px, 2.5vw, 48px);
  line-height: 2;
}

.article h1 {
  margin-bottom: clamp(24px, 2.5vw, 48px);
  text-align: center;
  font-size: clamp(24px, 2vw, 38px);
  font-weight: 400;
}

.article h1[lang="en"] {
  font-family: var(--latin);
}

.article h2 {
  margin-bottom: clamp(16px, 1vw, 24px);
  font-size: clamp(16px, 1.2vw, 23px);
}

.article p + p {
  margin-top: clamp(16px, 1.5vw, 32px);
}

.article section + section {
  margin-top: clamp(48px, 4vw, 80px);
}

.news-card {
  display: grid;
  grid-template-columns: minmax(0, clamp(240px, 25vw, 360px)) 1fr;
  gap: clamp(24px, 3vw, 56px);
}

.news-card img {
  width: 100%;
  height: auto;
}

.news-card-more {
  display: flex;
  justify-content: space-between;
  width: min(100%, 180px);
  margin-top: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid #aaa;
}

@keyframes hero-photo-in {
  0% {
    filter: brightness(1.18);
    transform: scale(1.13);
  }
  22% {
    filter: brightness(1.18);
    transform: scale(1.13);
  }
  100% {
    filter: brightness(1);
    transform: scale(1);
  }
}

@keyframes hero-title-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes menu-in {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .hero {
    margin: 0;
    height: 100svh;
  }

  .hero h1 {
    font-size: clamp(15px, 5.13vw, 20px);
  }

  .subtitle {
    font-size: 12px;
  }

  .event {
    font-size: clamp(13px, 4.1vw, 16px);
  }

  .menu-trigger {
    inset: 8px 16px auto auto;
  }

  .menu-bar,
  .site-header {
    flex-wrap: wrap;
    gap: 16px;
    min-height: 0;
    padding: 16px 24px 24px;
  }

  .menu-bar nav,
  .site-header nav {
    order: 2;
    width: 100%;
    gap: 16px 24px;
    font-size: 12px;
  }

  .overview {
    flex-direction: column-reverse;
    align-items: start;
    width: min(580px, calc(100% - 80px));
    margin-top: 120px;
    gap: 32px;
  }

  .parallax {
    height: clamp(240px, 70vw, 400px);
    background-attachment: scroll;
  }

  .japanese {
    width: 100%;
    height: auto;
    writing-mode: horizontal-tb;
  }

  .japanese h2 {
    margin: 0;
  }

  .description {
    margin-top: 24px;
    line-height: 2.15;
  }

  .description p + p {
    margin: 24px 0 0;
  }

  .english h2 {
    margin-bottom: 8px;
  }

  .profile {
    grid-template-columns: 1fr;
    gap: var(--margin-medium);
    padding: var(--margin-medium) 0 0;
  }

  .profile-heading,
  .profile-name {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .news h2 {
    font-size: 24px;
  }

  .footer-row {
    flex-direction: column;
  }

  .news-card {
    display: block;
  }

  .news-card img {
    margin-bottom: 16px;
  }
}

@media (min-width: 769px) {
  .menu-bar {
    justify-content: flex-end;
  }

  .overview .english > * {
    width: 95%;
  }

  .profile-copy[lang="en"] {
    width: 95%;
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-text,
  .home-hero::before,
  .home-hero .hero-text,
  #site-menu[open] .menu-bar {
    animation: none;
  }

  .scroll-reveal {
    transition: none;
  }

  .scroll-reveal.is-pending:not(:focus-within) {
    opacity: 1;
    translate: none;
  }
}
