/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.8;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

html,body,h1,h2,h3,h4,h5,h6,div,p,ul,ol,li { margin:0;padding:0;font-size:100%;font-weight:normal; }
ul,ul li { list-style: none; }
body {
    font-family: "FOT-セザンヌ墨東 Pro M", sans-serif;
    font-size: 18px;
    line-height: 2.0;
    letter-spacing: 0.1em;
    color: #444;
    margin-top: 6em;
    margin-bottom: 6em;
}

address {
  font-style: normal;
}

a {
  color: #101e34;
  text-decoration: underline;
}
a:hover {
  text-decoration: none;
}

table {
  border: 1px solid #ddd;
}
table th,
table td {
  padding: 1cap 2ch;
  text-align: left;
  border-bottom: 1px solid #ddd;
  border-right: 1px solid #ddd;
}
table th {
  border-right: 1px solid #ddd;
}
table td.caption {
  padding-top: 10px;
  padding-bottom: 10px;
}

iframe {
  width: 100%;
}

body > * + * {
  margin-top: 10em;
}
h1 {
  font-size: 3rem;
  letter-spacing: 0.04em;
}
h2 {
  font-size: 1.8rem;
}

h2 + * {
  margin-top: 3em;
}
.global-header .wrap > * + * {
  margin-top: 4em;
}
.section-text > * + * {
  margin-top: 0.9em;
}

.wrap {
    max-width: 40em;
    margin-inline: auto;
    padding: 0 4em;
}

.caption {
    color: #666;
    font-size: 0.8rem;
}

.global-header .logo a {
    display: block;
    width: 299px;
    height: 0;
    overflow: hidden;
    padding-top: 53px;
    background-image: url('../img/logo.gif');
    background-repeat: no-repeat;
    background-position: 0 0;
}

.global-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}
.global-nav a {
    display: block;
    text-decoration: none;
    background-color: #efefef;
    padding-inline: 0.4em;
}
.global-nav a:hover {
  background-color: #fff;
}

.access-route {
  padding-left: 30px;
}
.access-route li + li {
  margin-top: 0.5em;
}

.access-map iframe {
  filter: grayscale(1);
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

@media only screen and (max-width: 60em) {
  body {
    margin-top: 2em;
    margin-bottom: 2em;
  }
  body > * + * {
    margin-top: 6em;
  }
  
  .wrap {
      padding-inline: 2em;
  }
  
  table {
      width: 100%;
      border: 1px solid #ddd;
  }
  table tr,
  table th,
  table td {
    display: block;
    line-height: 1.5;
    border-right: none;
  }
  table th {
      border-bottom: none;
      padding-bottom: 0;
  }
  table td.caption {
      padding-top: 10px;
      padding-bottom: 10px;
  }
  table tr:last-child td {
    border-bottom: none;
  }
  
  .global-header .logo a {
    width: 100%;
    max-width: 320px;
    background-size: contain;
  }
  
  .table-date th,
  .table-date td {
      border: none;
      font-weight: normal;
      padding: 3% 5%;
  }
  
  
  .footer-info {
    font-size: 0.7rem;
  }
  
  .access-map iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
  }
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

.sp-br-span {
  display: flex;
  flex-wrap: wrap;
}
.sp-br-span span {
  display: block;
}
@media only screen and (max-width: 40em) {
  .sp-br-span {
    flex-direction: column;
    gap: 0;
  }
}
@media only screen and (min-width: 40.001em) {
  .sp-br-span {
    column-gap: 1em;
  }
}


.pc { display: none; }
.sp { display: none; }
@media only screen and (min-width: 60.001em) {
  .pc { display: block; }
}
@media only screen and (max-width: 60em) {
  .sp { display: block; }
}