:root {
  color-scheme: light;
  --ink: #17171b;
  --paper: #fff;
  --navy: #043960;
  --blue: #006ba8;
  --sky: #08b9e5;
  --pale: #e8f9fe;
  --rule: #c7d1dc;
  --sans: "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif;
  --gutter: clamp(1rem, 4.1vw, 4rem);
  --frame: 1280px;
  --ease: cubic-bezier(.2, .78, .26, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.7;
  font-size: 1rem;
  line-break: strict;
  font-feature-settings: "palt";
  overflow-wrap: anywhere;
  word-break: auto-phrase;
}

h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
button, summary { font: inherit; }
a { color: var(--blue); text-underline-offset: .23em; text-decoration-thickness: .075em; }
a:hover { text-decoration-thickness: .13em; }

:focus-visible {
  outline: 3px solid #235b9b;
  outline-offset: 4px;
}

.wrap {
  width: min(calc(100% - 2 * var(--gutter)), var(--frame));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 20;
  top: .5rem;
  left: .5rem;
  padding: .65em 1em;
  background: white;
  color: var(--navy);
  transform: translateY(-140%);
}

.skip-link:focus { transform: translateY(0); }
#main-content:focus { outline: none; }

.button {
  display: inline-flex;
  gap: .55em;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: .46em 1.08em;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms var(--ease), box-shadow 220ms var(--ease), transform 220ms var(--ease);
}

.button--primary { color: #fff; background: #00689e linear-gradient(175deg, #007d9f, #00689e); }
.button--line { color: #00772b; background: #fff; border-color: #139b36; }

.button--primary::after,
.button--line::after,
.chevron {
  content: "";
  flex: none;
  display: inline-block;
  width: .43em;
  height: .43em;
  transform: rotate(-45deg);
  border-right: .12em solid currentColor;
  border-bottom: .12em solid currentColor;
}

@media (hover: hover) {
  .button:hover { transform: translateY(-2px); box-shadow: 0 7px 20px rgb(4 57 96 / 15%); }
  .button--line:hover { background: #ebfaee; }
}

.site-header {
  background: #fff;
  position: relative;
  z-index: 5;
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(.5rem, 2.1vw, 1.65rem);
  margin: auto;
  padding-inline: var(--gutter) clamp(.9rem, 1.5vw, 1.6rem);
  max-width: 1440px;
  min-height: 87px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(142px, 17.6vw, 226px);
  min-height: 44px;
}

.brand img { width: 100%; height: auto; }
.site-nav ul, .mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.site-nav ul { display: flex; align-items: center; justify-content: space-between; }

.site-nav li {
  position: relative;
  flex: 1 1 auto;
  text-align: center;
  padding-inline: clamp(.25rem, 1vw, 1.1rem);
}

.site-nav li::before {
  content: "";
  position: absolute;
  inset: 7px auto 7px 0;
  width: 1px;
  background: #aeb9c8;
}

.site-nav li:first-child::before { inset-block: 4px; }

.site-nav a, .mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.site-nav a:hover, .site-nav a[aria-current="page"], .mobile-menu a:hover,
.mobile-menu a[aria-current="page"] { color: var(--blue); text-decoration: underline; }

.site-nav a { font-size: clamp(.88rem, 1.7vw, 1.12rem); }
.header-booking { min-width: clamp(7.1rem, 14vw, 9rem); font-size: 1.2rem; white-space: nowrap; }
.mobile-menu { display: none; }

.site-footer {
  color: #fff;
  background: #043960 linear-gradient(115deg, #064977, #033250);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 3.6vw, 2.3rem);
  min-height: 98px;
  padding: 1rem clamp(1.25rem, 6.5vw, 6rem);
  margin-inline: auto;
  max-width: 1440px;
}

.site-footer a { color: inherit; }
.site-footer a:focus-visible { outline-color: #aeefff; }
.footer-brand { width: clamp(150px, 19.5vw, 244px); position: relative; }

@supports (mask: url("") center / contain no-repeat) {
  .footer-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #40cbee 25%, #fff 25%);
    mask: url("logo-white-transparent.png") center / contain no-repeat;
    pointer-events: none;
  }

  .footer-brand img { opacity: 0; }
}
.site-footer p { font-size: clamp(.9rem, 1.95vw, 1.32rem); letter-spacing: .08em; }

.footer-access {
  display: inline-flex;
  align-items: center;
  gap: 1em;
  min-height: 44px;
  padding: 0 0 0 clamp(.7rem, 3vw, 2rem);
  border-left: 1px solid rgb(255 255 255 / 72%);
  font-size: clamp(.95rem, 1.95vw, 1.25rem);
  text-decoration: none;
}

.footer-access:hover { text-decoration: underline; }

.site-footer__inner > p {
  display: flex;
  align-items: center;
  min-height: 50px;
  border-left: 1px solid rgb(255 255 255 / 72%);
  padding-inline-start: clamp(.7rem, 3.4vw, 2.2rem);
}

.page-detail .site-footer__inner { flex-wrap: wrap; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 1.35rem; }
.site-footer nav a { padding: .65rem 0; min-height: 44px; }

.utility-page { padding-block: clamp(2rem, 7vw, 6rem); min-height: 55vh; }
.utility-page nav { margin-bottom: 1rem; font-size: .875rem; }
.utility-page nav a, .utility-page p a, .utility-page__links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.utility-page h1 { font: 700 clamp(1.85rem, 5vw, 3.4rem)/1.25 var(--serif); }
.utility-page h2 { font-size: clamp(1.15rem, 3vw, 1.6rem); }
.utility-page p { margin-block: .75rem; }
.utility-page [data-qc-phrase] { white-space: nowrap; }
.utility-page__links { display: flex; flex-wrap: wrap; gap: 0 1rem; margin-top: .75rem; }
.utility-page .button { margin-top: 1.3rem; }
.notice { margin-top: 1.6rem; padding: 1rem 1.25rem; background: var(--pale); border-inline-start: 3px solid var(--blue); }

@media (max-width: 245px) {
  .utility-page h1 { font-size: 1.06rem; }
  .utility-page h2 { font-size: .88rem; }
  .utility-page p { font-size: .84rem; }
  .notice { padding-inline: .45rem; }
}

@media (max-width: 899px) {
  .site-header__inner { min-height: 68px; padding-inline: var(--gutter); }
  .site-nav { display: none; }
  .brand { width: clamp(117px, 23vw, 175px); }
  .header-booking { min-width: max-content; margin-inline-start: auto; font-size: .9rem; padding-inline: .56rem; }
  .mobile-menu { display: block; }

  .mobile-menu summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: .4rem .55rem;
    color: var(--navy);
    background: #eef9fd;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 700;
    cursor: pointer;
    gap: .4rem;
    list-style: none;
    white-space: nowrap;
  }

  .mobile-menu summary::-webkit-details-marker { display: none; }
  .menu-indicator { width: 14px; height: 8px; border-block: 1px solid currentColor; }
  .mobile-menu[open] .menu-indicator { height: 0; border-top: 0; }
  .mobile-menu:not([open]) > nav { display: none; }

  .mobile-menu nav {
    position: absolute;
    inset: 100% 0 auto;
    z-index: 1;
    background: #fff;
    box-shadow: 0 10px 25px rgb(2 41 74 / 12%);
    border-block-start: 1px solid var(--rule);
  }

  .mobile-menu[open] nav { animation: menu-open 200ms var(--ease) both; }
  .mobile-menu ul { width: min(100% - 2 * var(--gutter), 31rem); margin-inline: auto; }

  .mobile-menu a {
    justify-content: flex-start;
    min-height: 48px;
    padding: .75rem .25rem;
    border-bottom: 1px solid #e0edf5;
  }

  .mobile-menu li:last-child a { border-bottom: 0; }
}

@media (max-width: 640px) {
  .site-footer__inner { flex-wrap: wrap; column-gap: 1rem; row-gap: .35rem; padding-inline: var(--gutter); }
  .site-footer__inner .footer-brand { flex-basis: 100%; max-width: 155px; }
  .site-footer__inner > p { border: 0; padding: 0; min-height: 44px; }
  .footer-access { padding-inline-start: .8rem; gap: .5em; }
  .page-detail .site-footer nav { flex-basis: 100%; gap: 0 1rem; }
}

@media (max-width: 280px) {
  .site-header__inner { grid-template-columns: 1fr auto; gap: 0 .3rem; padding-bottom: .35rem; }
  .site-header__inner .brand { grid-column: 1 / -1; width: 95px; }
  .header-booking { margin-inline-start: 0; }
  .mobile-menu summary, .header-booking { font-size: .67rem; padding-inline: .3rem; }
  .menu-indicator { display: none; }
}

@media (max-width: 335px) {
  .site-header__inner { column-gap: .4rem; }
  .header-booking::after { display: none; }
  .mobile-menu summary { padding-inline: .34rem; }
}

@keyframes menu-open { from { opacity: .6; transform: translateY(-6px); } }

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