@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@500;600;700&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap');

:root {
  --ink: #183244;
  --sub: #526775;
  --paper: #fff;
  --white: #fff;
  --sand: #edf4f5;
  --line: #d9e5e8;
  --red: #df7043;
  --footer-blue: #0d5282;
  --button-blue: #3f7884;
  --button-blue-hover: #315f6b;
  --link-blue: #2f6b78;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.8 'Zen Kaku Gothic New', sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: 'Shippori Mincho', serif;
  font-weight: 600;
  line-height: 1.42;
}

p {
  margin: 0 0 1.15em;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.logo-badge img {
  width: auto;
  height: 54px;
}

nav.main-nav ul {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  display: block;
  padding: 9px 11px;
  color: var(--ink);
  font-size: .86rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: var(--link-blue);
  border-color: var(--link-blue);
}

.menu-toggle {
  display: none;
}

/* Homepage header: centered brand above the full-width navigation. */
.home-site-header {
  border-bottom: 0;
}

.home-site-header .wrap {
  width: min(980px, calc(100% - 40px));
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 25px;
  padding: 22px 0 24px;
}

.home-site-header .logo-badge {
  align-self: center;
}

.home-site-header .logo-badge img {
  height: 76px;
}

.home-site-header nav.main-nav {
  width: 100%;
}

.home-site-header nav.main-nav ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
  border: 0;
  border-radius: 999px;
  background: #f0f6f8;
}

.home-site-header nav.main-nav a {
  display: grid;
  min-height: 52px;
  place-items: center;
  padding: 8px 6px;
  border: 0;
  border-radius: 999px;
  color: #294454;
  font-family: 'Shippori Mincho', serif;
  font-size: .93rem;
  transition: color .2s, background .2s, transform .2s;
}

.home-site-header nav.main-nav a:hover {
  background: #e1eef2;
  color: var(--link-blue);
}

.home-site-header nav.main-nav a[aria-current="page"] {
  background: var(--button-blue);
  color: #fff;
}

.home-site-header nav.main-nav a:active {
  transform: translateY(1px);
}

.home-hero {
  overflow: hidden;
  background: var(--paper);
  padding: 0;
}

.home-hero-photo-frame {
  position: relative;
  width: 100%;
  height: 420px;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: #e9f1f3;
}

.home-hero-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: home-photo-marquee 12s linear infinite;
  will-change: transform;
}

.home-hero-photo-group {
  display: flex;
  flex: none;
  align-items: stretch;
  gap: 2.3vw;
  padding-right: 2.3vw;
}

.home-hero-photo {
  flex: 0 0 32vw;
  width: 32vw;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 32%;
}

.home-hero-photo-group .home-hero-photo:nth-child(2) {
  flex-basis: 43vw;
  width: 43vw;
  object-position: center 22%;
}

.home-hero-photo-group .home-hero-photo:nth-child(3) {
  object-position: center 34%;
}

@keyframes home-photo-marquee {
  from {
    transform: translateX(calc(-33.333333% + 5vw));
  }

  to {
    transform: translateX(calc(-66.666667% + 5vw));
  }
}

.home-hero-inner {
  width: 100%;
  margin-inline: auto;
  padding-block: 34px 42px;
  background: var(--sand);
}

.home-hero-copy {
  width: min(740px, calc(100% - 48px));
  margin-inline: auto;
  padding: 0;
  text-align: center;
}

.home-title {
  max-width: none;
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: .015em;
  line-height: 1.32;
}

.home-title span {
  display: inline;
  color: var(--ink);
  white-space: nowrap;
}

.home-copy {
  max-width: 40em;
  color: var(--sub);
  line-height: 1.7;
}

.home-copy p {
  margin-bottom: .55em;
}

.home-hero .btn {
  border-radius: 999px;
  padding-inline: 25px;
  box-shadow: 0 5px 14px rgba(63, 120, 132, .18);
}

.hero-photo {
  position: relative;
  display: flex;
  min-height: 390px;
  align-items: flex-end;
  color: white;
  background-size: cover;
  background-position: center;
  padding: 0;
}

.hero-photo::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(20, 39, 37, .73), rgba(20, 39, 37, .24) 75%), linear-gradient(0deg, rgba(20, 39, 37, .2), transparent 65%);
}

.hero-photo .wrap {
  position: relative;
  padding: 58px 0;
}

.hero-photo h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 4rem);
  letter-spacing: .035em;
}

.hero-photo p {
  max-width: 56ch;
  margin: 0;
  color: #fff;
}

.hero-plain {
  padding: 64px 0;
  background: #edf4f5;
}

.hero-plain h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.hero-plain p {
  max-width: 55ch;
  color: var(--sub);
  margin: 0;
}

section {
  padding: 68px 0;
}

section.tight {
  padding: 48px 0;
}

.section-title {
  position: relative;
  margin: 0 0 22px;
  padding-bottom: 12px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.42;
}

.section-title::after {
  position: absolute;
  bottom: 0;
  left: 0;
  content: "";
  width: 42px;
  height: 2px;
  background: var(--red);
}

.section-intro {
  max-width: 50em;
  margin-bottom: 34px;
  color: var(--sub);
}

.lede {
  max-width: 65ch;
  font-size: 1.03rem;
}

.rule {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--line);
}

.soft-section {
  background: var(--sand);
}

.town-story {
  position: relative;
  overflow: hidden;
  background-color: #f4f8f8;
  background-image: linear-gradient(rgba(255, 255, 255, .8), rgba(255, 255, 255, .8)), url('../assets/images/aozora-market-hero-illustration.png');
  background-size: cover;
  background-position: center 54%;
}

.town-story .wrap {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 56px;
}

.town-story .town-art {
  display: none;
}

.town-story .town-copy {
  max-width: 39em;
}

.town-story .town-copy p {
  color: var(--sub);
}

.town-story .town-copy .section-title {
  margin-bottom: 18px;
}

.town-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.town-points span {
  color: var(--link-blue);
  font-size: .9rem;
}

.town-points span+span::before {
  content: "・";
  padding-inline: 6px;
  color: var(--red);
}

.activity-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(26px, 5vw, 58px);
  padding: 28px 0;
}

.activity-row img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.activity-list .activity-row:last-child img {
  height: 260px;
  max-height: 260px;
  object-fit: contain;
}

.activity-row.intro-row {
  grid-template-columns: minmax(0, 900px) 108px;
  justify-content: space-between;
  gap: 32px;
}

.intro-copy {
  grid-column: 1;
  grid-row: 1;
  width: min(100%, 730px);
}

.intro-mascot {
  --tako-side-shift: min(180px, max(0px, calc(100vw - 966px)));
  position: relative;
  left: calc(0px - var(--tako-side-shift));
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  display: block;
  width: 108px;
  height: 108px;
  animation: tako-walk 9s ease-in-out infinite;
}

.intro-mascot img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

@keyframes tako-walk {

  0%,
  100% {
    transform: translate(-57px, 10px) rotate(-4deg);
  }

  25% {
    transform: translate(33px, -15px) rotate(3deg);
  }

  50% {
    transform: translate(84px, 5px) rotate(0);
  }

  75% {
    transform: translate(18px, -12px) rotate(-3deg);
  }
}

@keyframes tako-walk-responsive {

  0%,
  100% {
    transform: translate(-20px, 5px) rotate(-4deg);
  }

  25% {
    transform: translate(12px, -8px) rotate(3deg);
  }

  50% {
    transform: translate(24px, 3px) rotate(0);
  }

  75% {
    transform: translate(5px, -6px) rotate(-3deg);
  }
}

@keyframes tako-walk-mobile {

  0%,
  100% {
    transform: translate(-16px, 4px) rotate(-4deg);
  }

  25% {
    transform: translate(10px, -6px) rotate(3deg);
  }

  50% {
    transform: translate(18px, 2px) rotate(0);
  }

  75% {
    transform: translate(4px, -5px) rotate(-3deg);
  }
}

.activity-row:nth-child(even) img {
  order: 2;
}

.activity-row h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.activity-row .btn {
  margin-top: 7px;
}

.activity-list {
  border-top: 1px solid var(--line);
}

.activity-list .activity-row {
  border-bottom: 1px solid var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 11px 21px;
  border: 1px solid var(--button-blue);
  border-radius: 2px;
  background: var(--button-blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}

.btn:hover {
  background: var(--button-blue-hover);
  border-color: var(--button-blue-hover);
}

.btn.outline {
  background: transparent;
  color: var(--button-blue);
}

.btn.outline:hover {
  background: var(--button-blue);
  color: white;
}

.text-link {
  display: inline-block;
  color: var(--link-blue);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--link-blue) 45%, transparent);
  padding-bottom: 2px;
}

.text-link:hover,
.rules-link:hover,
.contact-line a:hover {
  color: var(--button-blue-hover);
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  grid-template-rows: 205px 205px;
  gap: 12px;
}

.photo-grid figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: var(--sand);
}

.photo-grid figure:first-child {
  grid-row: span 2;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.photo-grid figure:hover img {
  transform: scale(1.025);
}

.photo-grid figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 35px 14px 10px;
  color: white;
  font-size: .84rem;
  background: linear-gradient(transparent, #1b302bd1);
}

.apply-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #edf4f5;
}

.apply-panel>img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
}

.apply-copy {
  align-self: center;
  padding: clamp(28px, 5vw, 60px);
}

.apply-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
}

.apply-copy h2 span {
  color: var(--red);
}

.contact-line {
  margin-top: 25px;
  padding: 17px 20px;
  background: var(--paper);
  border-left: 3px solid var(--red);
}

.contact-line small {
  display: block;
  color: var(--sub);
}

.contact-line a {
  color: var(--link-blue);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .03em;
}

.rules-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--link-blue);
  font-weight: 700;
  text-underline-offset: 4px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 60px);
}

.split>img {
  width: 100%;
  max-height: 470px;
  object-fit: cover;
}

.split h2 {
  margin: 0 0 18px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.info-box {
  width: min(100%, 600px);
  padding: 26px 30px;
  border: 1px solid var(--line);
  background: #fff;
}

.info-box dt {
  margin-top: 14px;
  color: var(--sub);
  font-size: .82rem;
}

.info-box dt:first-child {
  margin-top: 0;
}

.info-box dd {
  margin: 2px 0 0;
  font-size: 1.05rem;
}

.info-box a {
  color: var(--link-blue);
  text-underline-offset: 3px;
}

.poster {
  max-height: 600px;
  object-fit: contain !important;
  background: #edf4f5;
  padding: 12px;
}

.bank-box {
  background: #fff;
  padding: 30px 34px;
  border-top: 2px solid var(--button-blue);
}

.bank-box dl {
  margin: 0;
}

.bank-box dt {
  margin-top: 15px;
  color: var(--sub);
  font-size: .82rem;
}

.bank-box dt:first-child {
  margin-top: 0;
}

.bank-box dd {
  margin: 0;
}

.site-footer {
  padding: 42px 0 22px;
  background: var(--footer-blue);
  color: #fff;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 25px;
  border-bottom: 1px solid #ffffff38;
}

.foot-grid h4 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.foot-grid p {
  margin: 0;
  color: #ffffffd1;
}

.foot-grid a {
  color: #fff;
}

.foot-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-nav li {
  margin: 2px 0;
}

.foot-nav a {
  text-decoration: none;
  font-size: .9rem;
}

.copyright {
  margin: 18px 0 0;
  color: #ffffff9c;
  font-size: .75rem;
}

@media(max-width:850px) {
  section {
    padding: 56px 0;
  }

  section.tight {
    padding: 44px 0;
  }

  .activity-row:not(.intro-row) {
    padding-block: 18px;
  }

  .activity-list .activity-row {
    padding-block: 18px;
  }

  .site-header .wrap {
    min-height: 78px;
  }

  .logo-badge img {
    height: 40px;
  }

  .home-site-header .logo-badge img {
    height: 54px;
  }

  .home-hero-photo-frame {
    height: 320px;
  }

  .home-title {
    font-size: clamp(2rem, 4.5vw, 2.65rem);
  }

  nav.main-nav a {
    padding-inline: 7px;
    font-size: .78rem;
  }
}

@media(max-width:650px) {
  .wrap {
    width: calc(100% - 36px);
  }

  .site-header .wrap {
    min-height: 68px;
  }

  .logo-badge img {
    height: 40px;
  }

  .home-site-header .wrap {
    width: calc(100% - 36px);
    min-height: 68px;
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 10px 0;
  }

  .home-site-header .logo-badge {
    align-self: auto;
  }

  .home-site-header .logo-badge img {
    height: 45px;
  }

  .menu-toggle {
    display: block;
    padding: 5px;
    border: 0;
    background: none;
    color: var(--ink);
    font-size: 1.55rem;
  }

  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  nav.main-nav.open {
    display: block;
  }

  .home-site-header nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 5;
    width: auto;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .home-site-header nav.main-nav.open {
    display: block;
  }

  nav.main-nav ul {
    display: block;
    padding: 7px 18px 14px;
  }

  nav.main-nav a {
    padding: 10px 4px;
    font-size: .92rem;
  }

  .home-site-header nav.main-nav ul {
    display: block;
    padding: 7px 18px 14px;
    border: 0;
    border-radius: 0;
    background: var(--paper);
  }

  .home-site-header nav.main-nav a {
    display: block;
    min-height: 0;
    padding: 10px 12px;
    border-radius: 8px;
    border-bottom: 0;
    font-family: inherit;
    font-size: .92rem;
    text-align: left;
  }

  .home-hero-photo-frame {
    width: 100%;
    height: 260px;
    border-radius: 0;
  }

  .home-hero-track {
    animation-duration: 16s;
  }

  .home-hero-photo-group {
    gap: 16px;
    padding-right: 16px;
  }

  .home-hero-photo {
    flex-basis: 68vw;
    width: 68vw;
  }

  .home-hero-photo-group .home-hero-photo:nth-child(2) {
    flex-basis: 78vw;
    width: 78vw;
  }

  .home-hero-inner {
    width: 100%;
    padding-block: 22px 30px;
  }

  .home-hero-copy {
    width: calc(100% - 36px);
  }

  .home-title {
    max-width: none;
    margin-bottom: 10px;
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    line-height: 1.35;
  }

  .home-title span {
    white-space: nowrap;
  }

  .home-copy {
    max-width: 34em;
    color: var(--sub);
    font-size: .95rem;
    line-height: 1.6;
  }

  .home-copy p {
    margin-bottom: .45em;
  }

  .hero-photo {
    min-height: 320px;
  }

  .hero-photo .wrap {
    padding: 34px 0;
  }

  .hero-photo h1 {
    font-size: clamp(1.85rem, 7.2vw, 2.35rem);
    line-height: 1.3;
    letter-spacing: .01em;
  }

  .hero-plain {
    padding: 42px 0;
  }

  .hero-plain h1 {
    font-size: clamp(1.85rem, 7vw, 2.35rem);
    line-height: 1.3;
  }

  section {
    padding: 38px 0;
  }

  section.tight {
    padding: 34px 0;
  }

  .home-hero {
    padding: 0;
  }

  .activity-row:not(.intro-row) {
    padding-block: 0;
  }

  .activity-list .activity-row {
    padding-block: 22px;
  }

  .section-title {
    margin-bottom: 18px;
    padding-bottom: 10px;
    line-height: 1.35;
  }

  .section-intro {
    margin-bottom: 24px;
  }

  .activity-row,
  .split {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .activity-row.intro-row {
    grid-template-columns: 1fr;
    grid-template-rows: 78px auto;
    gap: 0;
  }

  .intro-copy {
    grid-column: 1;
    grid-row: 2;
  }

  .intro-section {
    padding-block: 32px;
  }

  .activity-row.intro-row {
    grid-template-rows: 58px auto;
    padding-block: 14px;
  }

  .intro-mascot {
    --tako-side-shift: 0px;
    left: 0;
    top: -8px;
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    width: 64px;
    height: 64px;
    margin: 0;
    animation-name: tako-walk-mobile;
  }

  .town-story .wrap {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .activity-row:nth-child(even) img {
    order: 0;
  }

  .activity-row img {
    max-height: 300px;
  }

  .activity-list .activity-row:last-child img {
    height: 200px;
    max-height: 200px;
  }

  .photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 190px 120px 120px;
    gap: 8px;
  }

  .photo-grid figure:first-child {
    grid-column: span 2;
    grid-row: auto;
  }

  .photo-grid figure:last-child {
    grid-column: span 2;
  }

  .apply-panel {
    grid-template-columns: 1fr;
  }

  .apply-panel>img {
    min-height: 250px;
    max-height: 320px;
  }

  .apply-copy {
    padding: 26px 21px 30px;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

  .foot-grid>div:first-child {
    grid-column: span 2;
  }
}

@media (min-width:851px) and (max-width:980px) {
  .intro-section {
    padding-block: 44px;
  }

  .activity-row.intro-row {
    grid-template-columns: 1fr;
    grid-template-rows: 74px auto;
    gap: 0;
    padding-block: 18px;
  }

  .intro-copy {
    grid-column: 1;
    grid-row: 2;
  }

  .intro-mascot {
    --tako-side-shift: 0px;
    left: 0;
    top: -8px;
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    width: 76px;
    height: 76px;
    margin: 0;
    animation-name: tako-walk-responsive;
  }
}

@media (min-width:651px) and (max-width:850px) {
  .intro-section {
    padding-block: 40px;
  }

  .activity-row.intro-row {
    grid-template-columns: 1fr;
    grid-template-rows: 74px auto;
    gap: 0;
    padding-block: 16px;
  }

  .intro-copy {
    grid-column: 1;
    grid-row: 2;
    width: min(100%, 730px);
  }

  .intro-mascot {
    --tako-side-shift: 0px;
    left: 0;
    top: -8px;
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    width: 76px;
    height: 76px;
    margin: 0;
    animation-name: tako-walk-responsive;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .intro-mascot {
    animation: none;
  }

  .home-hero-track {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
