/* Shared styles for all pages. Keeps the original colors and layout on desktop,
   and stacks everything into one column on narrow screens. */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #ffffff;
  color: #333333;
  /* Latin letters and digits: Helvetica Neue / Arial (Arial maps to Roboto on
     Android). They have no Japanese glyphs, so Japanese text falls through to
     BIZ UDGothic, a universal-design web font built for legibility that keeps
     Japanese punctuation full-width; its own Latin glyphs are monospaced, which
     looks cramped. Fallbacks if the web font fails: Hiragino on Apple devices,
     Meiryo before Yu Gothic on Windows (Yu Gothic renders thin there). */
  font-family: "Helvetica Neue", Arial, "BIZ UDGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", "Yu Gothic", "YuGothic", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: bottom;
}

a {
  color: #0000ee;
}

a[href^="tel:"] {
  white-space: nowrap;
}

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

ul {
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.accent {
  color: #c44500;
}

/* Colors are chosen to meet WCAG AA contrast (4.5:1) against their background:
   text #333 (12.6), accent orange #c44500 (5.0), white on purple #5050d0 (6.2). */

/* ---------- Page frame ---------- */

.page {
  max-width: 900px;
  margin: 16px auto;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #0c419c;
  border-top: 10px solid #ffff00;
  border-bottom: 10px solid #ffff00;
}

.site-header .logo {
  display: block;
  flex: 0 1 500px;
}

.site-header .logo img {
  width: 500px;
}

.site-header .tagline {
  padding: 8px 12px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.5;
  text-align: right;
}

/* ---------- Body layout ---------- */

.layout {
  display: grid;
  grid-template-columns: 160px 1fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "nav  main"
    "side main"
    "side foot";
  margin-top: 16px;
  padding-top: 5px;
  border-left: 1px solid #c0c0c0;
  border-right: 1px solid #c0c0c0;
  border-bottom: 5px solid #ffff00;
  background: url("image/dot.gif") repeat-x top left;
}

.global-nav {
  grid-area: nav;
  padding: 16px 12px 0;
}

.global-nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.global-nav a,
.footer-nav a {
  display: block;
  padding: 6px 4px;
  border: 2px solid #0c419c;
  border-radius: 4px;
  background: #0c419c;
  color: #ffffff;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  line-height: 1.4;
}

.global-nav a:hover,
.global-nav a:focus,
.footer-nav a:hover,
.footer-nav a:focus {
  background: #ffffff;
  color: #0c419c;
}

.global-nav a[aria-current="page"],
.footer-nav a[aria-current="page"] {
  background: #ffffff;
  color: #0c419c;
  border-left-width: 6px;
  border-left-color: #ffcc00;
}

.main {
  grid-area: main;
  min-width: 0;
}

.sidebar {
  grid-area: side;
  padding: 32px 12px;
  font-size: 14px;
}

.site-footer {
  grid-area: foot;
}

/* Bottom menu is shown on phones only. */
.footer-nav {
  display: none;
  grid-area: fnav;
}

/* ---------- Sidebar ---------- */

.sidebar h2 {
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid #c0c0c0;
  font-size: 14px;
  font-weight: bold;
}

.contact .mail a {
  display: inline-block;
  font-size: 13px;
}

.links {
  margin-top: 32px;
}

.links a {
  white-space: nowrap;
  font-size: 13px;
}

/* ---------- Main content ---------- */

.hero img {
  display: block;
  width: 100%;
}

.hero {
  padding-bottom: 5px;
  background: url("image/dot.gif") repeat-x bottom left;
}

.content {
  padding: 24px 24px 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 32px;
}


.feature p {
  font-size: 15px;
}

.feature p + p {
  margin-top: 8px;
}

.access {
  margin-top: 40px;
}

.access-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.access-info {
  flex: 1 1 auto;
  font-size: 16px;
  line-height: 1.9;
}

.access-info a[href^="mailto:"] {
  word-break: break-all;
}

.access-map {
  flex: 0 1 424px;
  min-width: 0;
  width: 424px;
  max-width: 100%;
  height: auto;
}

/* Section headings: navy bar + bold text, same alignment and spacing on every page
   (these used to be GIF images of Mincho text). */
.section-title {
  position: relative;
  margin: 0 0 12px;
  padding-left: 16px;
  color: #222222;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.4;
}

.section-title::before {
  content: "";
  position: absolute;
  top: 0.15em;
  bottom: 0.15em;
  left: 0;
  width: 7px;
  background: #0c419c;
}

.lead + .lead {
  margin-top: 16px;
}

/* ---------- Rental page ---------- */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.price-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: #ebebeb;
  font-size: 14px;
}

.price-table th,
.price-table td {
  padding: 2px 8px;
  border: 1px dotted #999999;
  text-align: center;
  font-weight: normal;
}

.price-table thead th {
  line-height: 1.5;
}

.price-table .group {
  font-weight: bold;
}

.price-table tbody th {
  text-align: left;
  white-space: nowrap;
}

.price-table tbody td {
  font-size: 16px;
}

.notes {
  margin-top: 40px;
  font-size: 15px;
}

.notes section + section {
  margin-top: 24px;
}

/* Hanging indent so wrapped lines align after the leading "・". */
.notes li,
.reserve li {
  padding-left: 1em;
  text-indent: -1em;
}

.notes h2 {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: bold;
}

.reserve {
  margin-top: 40px;
}

.reserve h2 {
  padding: 4px;
  background: #5050d0;
  color: #ffffff;
  font-size: 17px;
  text-align: center;
}

.reserve h3 {
  margin-top: 16px;
  color: #c44500;
  font-size: 15px;
  font-weight: normal;
  text-align: center;
}

.reserve ul {
  display: table;
  margin: 8px auto 0;
  color: #333333;
  font-size: 15px;
}

.reserve li {
  padding-top: 3px;
  padding-bottom: 3px;
}

.reserve strong {
  color: #c44500;
  font-weight: bold;
}

.reserve .cta {
  margin-top: 24px;
  text-align: center;
}

.button {
  display: inline-block;
  padding: 10px 32px;
  border-radius: 4px;
  background: #5050d0;
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
}

.button:hover,
.button:focus {
  background: #3c3cb4;
}

/* ---------- Narrow screens (phones, small tablets) ---------- */

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

  .page {
    margin: 0 auto;
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-header .logo {
    flex: none;
  }

  .site-header .logo img {
    width: 100%;
  }

  .site-header .tagline {
    padding: 6px 12px 10px;
    text-align: left;
  }

  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas:
      "nav"
      "main"
      "foot"
      "side"
      "fnav";
    margin-top: 0;
    border-left: 0;
    border-right: 0;
  }

  .global-nav {
    padding: 12px 16px;
  }

  .footer-nav {
    display: block;
    padding: 16px;
    border-top: 1px solid #c0c0c0;
  }

  .global-nav ul,
  .footer-nav ul {
    display: flex;
    flex-direction: row;
    gap: 8px;
  }

  .global-nav li,
  .footer-nav li {
    flex: 1 1 0;
  }

  .content {
    padding: 24px 16px 32px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature p,
  .notes,
  .reserve ul,
  .reserve h3 {
    font-size: 15px;
  }

  .access {
    margin-top: 32px;
  }

  .access-body {
    flex-direction: column;
    gap: 16px;
  }

  .access-map {
    flex: none;
    width: 100%;
  }

  .notes,
  .reserve {
    margin-top: 32px;
  }

  .price-table {
    min-width: 0;
    font-size: 13px;
  }

  .price-table th,
  .price-table td {
    padding: 3px 4px;
  }

  .price-table tbody th {
    white-space: normal;
  }

  .price-table thead th {
    font-size: 12px;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .price-table tbody td {
    font-size: 14px;
    white-space: nowrap;
  }

  .reserve ul {
    display: block;
  }

  .reserve .cta .button {
    display: block;
  }

  .sidebar {
    padding: 24px 16px;
    border-top: 1px solid #c0c0c0;
    font-size: 15px;
  }

  .sidebar h2 {
    font-size: 15px;
  }

  .contact .mail a {
    font-size: 15px;
  }

  .links {
    margin-top: 24px;
  }

  .links a {
    font-size: 15px;
  }
}
