﻿@charset "UTF-8";

@media screen and (max-width: 768px) {
  body {
    min-width: 0;
    font-size: 14px;
    text-align: left;
  }

  #hpb-container,
  #hpb-header,
  #hpb-inner,
  #hpb-footerMain,
  .hpb-layoutset-01 #hpb-wrapper,
  .hpb-layoutset-02 #hpb-wrapper,
  #hpb-main,
  #hpb-main #toppage,
  #hpb-main #toppage-info {
    width: 100% !important;
    max-width: 100%;
  }

  #hpb-header {
    height: auto !important;
    background-size: cover;
    background-position: right top !important;
    background-repeat: no-repeat;
  }

  .hpb-layoutset-01 #hpb-header {
    aspect-ratio: 9 / 5;
    min-height: 180px;
  }

  .hpb-layoutset-02 #hpb-header {
    aspect-ratio: 45 / 8;
    min-height: 90px;
  }

  #hpb-headerMain,
  #hpb-headerLogo {
    float: none;
    width: 100%;
  }

  #hpb-headerMain h1 {
    text-align: left;
    line-height: 1.4;
    padding: 8px 12px;
  }

  #hpb-headerLogo a {
    margin: 12px auto;
    background-size: contain;
  }

  .hpb-layoutset-01 #hpb-header {
    position: relative;
  }

  .hpb-layoutset-01 #hpb-headerLogo {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 140px;
    z-index: 2;
    background: none;
  }

  .hpb-layoutset-01 #hpb-headerLogo a {
    width: 140px;
    height: 43px;
    margin: 0;
    background-size: contain;
    background-position: left top;
  }

  .hpb-layoutset-01 #hpb-headerMain {
    display: none;
  }

  .hpb-layoutset-02 #hpb-header {
    position: relative;
  }

  .hpb-layoutset-02 #hpb-headerMain {
    display: none;
  }

  .hpb-layoutset-02 #hpb-headerLogo {
    position: absolute;
    left: 8px;
    bottom: 6px;
    width: 120px;
    z-index: 2;
    background: none;
  }

  .hpb-layoutset-02 #hpb-headerLogo a {
    width: 120px;
    height: 37px;
    margin: 0;
    background-size: contain;
    background-position: left bottom;
  }

  #hpb-inner {
    box-sizing: border-box;
    padding: 0 12px 24px;
  }

  .hpb-layoutset-01 #hpb-wrapper,
  .hpb-layoutset-02 #hpb-wrapper {
    float: none;
    padding-top: 0;
  }

  #hpb-title,
  .hpb-layoutset-02 #hpb-title {
    width: 100% !important;
  }

  #hpb-nav {
    position: static;
    width: 100% !important;
    height: auto;
    overflow: visible;
    background: none;
    margin-bottom: 12px;
  }

  #hpb-nav ul {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  #hpb-nav li {
    float: none;
    height: auto;
    line-height: 1.4;
    display: block;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    background: #f9f9f9;
  }

  #hpb-nav li a {
    height: auto;
    padding: 8px 10px;
  }

  #hpb-main #toppage-news {
    position: static;
    width: 100% !important;
    margin-top: 16px;
  }

  /* Prevent long heading text from being clipped on small screens */
  #hpb-main #toppage-news h3 {
    height: auto;
    overflow: visible;
    line-height: 1.5;
    white-space: normal;
    padding-top: 8px;
    padding-bottom: 8px;
    background-size: 100% 100%;
    background-position: left top;
  }

  #hpb-main #toppage-news dl {
    height: auto;
  }

  #hpb-main #toppage p {
    width: auto;
  }

  #hpb-main #toppage-info hr {
    width: auto;
    margin-left: 0;
    margin-right: 0;
  }

  #hpb-main dt {
    float: none;
    width: auto !important;
    padding-left: 0;
  }

  #hpb-main dd {
    padding-left: 0;
  }

  #hpb-aside,
  .hpb-layoutset-01 #hpb-aside,
  .hpb-layoutset-02 #hpb-aside,
  #hpb-inner #associationinfo,
  .hpb-layoutset-01 #hpb-inner #associationinfo,
  .hpb-layoutset-02 #hpb-inner #associationinfo {
    float: none;
    width: 100% !important;
    box-sizing: border-box;
    margin-top: 12px;
  }

  #banner,
  .hpb-layoutset-01 #banner {
    position: static;
    width: 100%;
    height: auto;
    overflow: visible;
  }

  #banner li {
    float: none;
  }

  #banner li a {
    width: 100%;
    max-width: 294px;
    margin: 0 auto 10px;
  }

  #pagetop {
    position: static;
    left: auto;
    bottom: auto;
    width: auto;
    height: auto;
    margin-top: 20px;
  }

  img,
  #hpb-main img,
  #hpb-aside img {
    max-width: 100%;
    height: auto;
  }

  table {
    width: 100%;
    margin: 8px 0;
    display: block;
    overflow-x: auto;
  }

  input.l,
  input.m,
  textarea {
    width: 100%;
    box-sizing: border-box;
  }
}



