@charset "UTF-8";
html {
  --shadow:0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  --background:#fff;
  --background:ivory;
  background: rgba(255, 255, 250, 0.9) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAEAQMAAACTPww9AAAABlBMVEXMzMz////TjRV2AAAAEElEQVQIHWN4wPCB2YLhAwAMfAL8GlzYxwAAAABJRU5ErkJggg==);
  --theme-color:#005acb;
  --theme-text-color:#333;
  --outer-radius:8px;
  --menu-border:1px solid #ccc;
  --menu-radius:4px;
  margin: 0;
  scroll-behavior: smooth;
}

@media (prefers-color-scheme: false) {
  html {
    --shadow: 0;
    --background: #333;
    --theme-color: #111;
    --theme-text-color: #ccc;
    --outer-radius: 0;
    --menu-border: 0;
    --menu-radius: 0;
  }
}
body {
  background-color: transparent;
  margin: auto;
  padding: 0;
  font-family: "Sawarabi Gothic";
  width: 100%;
  max-width: 10240px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

html, body {
  padding: 0;
}

header, article {
  background-color: rgba(255, 255, 255, 0.9);
}

.toggle, [id^=drop] {
  display: none;
}

header {
  background-color: #005acb;
  padding: 1em 0 0 0;
  letter-spacing: 0.3em;
  text-shadow: 2px 2px 4px #000;
}

#logo, .catch {
  font-family: "Sawarabi Mincho", sans-serif;
  font-family: "Sawarabi Gothic", sans-serif;
  color: ivory;
  word-break: keep-all;
  text-align: left;
}

#logo {
  margin: 1rem 0 0 0;
  padding: 0 30px;
  font-size: 2rem;
  font-weight: 500;
  text-decoration: none;
}
#logo a {
  color: ivory;
  text-decoration: none;
}

.catch {
  margin: 1rem 1rem 1rem 4rem;
  font-size: 1.1rem;
  font-style: italic;
}

nav {
  letter-spacing: 0;
  width: 100%;
  max-width: 10240px;
  margin: 0;
  padding: 0;
  font-size: 22px;
  line-height: 32px;
  background-color: var(--theme-color);
  text-shadow: 2px 2px 2px #000;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
nav.fixed {
  margin: 0;
  z-index: 999;
  position: fixed;
  top: 0;
}
nav:after {
  content: "";
  display: table;
  clear: both;
}
nav ul {
  display: flex;
  /* Flexboxを適用 */
  flex-wrap: wrap;
  /* 折り返しを許可する場合 */
  padding: 0;
  margin: 0 auto;
  list-style: none;
  position: relative;
}
nav ul li {
  margin: 8px 4px;
  background-color: var(--theme-color);
  border: 2px solid #ddf;
  border-radius: 1.5em;
}
nav ul > li:last-child {
  margin-left: auto;
  margin: auto;
  width: 100%;
  background-color: #0053ff;
  background-color: #d76d56;
  font-size: 120%;
}
nav ul > li:last-child a:hover {
  color: #d76d56;
}
nav ul > li:last-child a {
  font-size: 1.5rem;
  letter-spacing: 0.2em;
}
nav a {
  display: block;
  padding: 3px 14px;
  color: #FFF;
  font-size: 17px;
  font-size: 1.1rem;
  text-decoration: none;
}
nav a.current {
  color: #ff0;
  font-weight: bold;
}
nav ul li ul li, nav a {
  background-color: #fff1;
  border-radius: 1.5em;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  transition-delay: 0.2s;
  transition-timing-function: linear;
}
nav ul li ul li, nav a {
  border: 1px solid var(--theme-color);
  text-align: center;
}
nav ul li ul li:hover, nav a:hover {
  background-color: #fff;
  color: var(--theme-color);
  text-shadow: none;
  text-shadow: 0 0 3px #ff0;
  font-weight: bold;
}
nav ul ul {
  display: none;
  position: absolute;
  top: 60px;
}
nav ul li:hover > ul {
  display: inherit;
}
nav ul ul li {
  width: 170px;
  float: none;
  display: list-item;
  position: relative;
}
nav ul ul ul li {
  position: relative;
  top: -60px;
  left: 170px;
}

dl.article {
  background-color: rgba(255, 255, 255, 0.9);
  background-color: ivory;
}

/* 最後のli要素を右端に配置 */
li > a:after {
  content: " >>";
}
li > a:only-child:after {
  content: "";
}

h1 {
  clear: both;
  font-size: 2em;
  border: 1px solid #a1a1a1;
  border-left: 1.5em solid var(--theme-color);
  border-right: 1.5em solid var(--theme-color);
  padding: 0.4em 0;
  text-align: center;
  letter-spacing: 0.2em;
  background: #fff;
  background: var(--background);
  border-radius: 1.4em;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

h2 {
  font-size: 1.5em;
  border: 1px solid #a1a1a1;
  border-left: 1.2em solid var(--theme-color);
  margin: 1em 0.7em;
  padding: 0.4em 0.8em;
  background: var(--theme-text-color);
  background: var(--background);
  border-radius: 1.4em;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

ul.ilinks li {
  display: inline-block;
  padding: 0 0 0 4px;
  font-size: 1.1em;
}
ul.ilinks li a {
  color: #33f;
  background-color: #fff;
}
ul.ilinks li + li {
  border-left: 2px solid #CCC;
}

.section {
  display: flex;
  flex-wrap: wrap;
}

.article {
  margin: 3em;
  max-width: 100%;
  border: 1px solid #77a;
  border-radius: 0.5em;
  padding: 1em;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  background-color: ivory;
}
.article h3 {
  background-color: var(--theme-text-color);
  background-color: var(--background);
  color: #336;
  font-size: 1.2em;
  margin: -1.5em auto 0.6em 0em;
  padding: 0 0.4em;
  display: table;
  text-shadow: -1px 1px 0 #fff;
  border-radius: 1.5rem;
}
.article table {
  margin: 0em;
}
.article table th, .article table td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 0 #fff;
}

main {
  margin: 1em;
}
main .article, main p {
  margin: 0 0 0 2.5em;
  margin: 1rem;
}
main article.article {
  margin: 1em 0 0.5em 2.5em;
}

iframe#gcalendar {
  width: 95%;
  height: 600px;
  margin: 1em auto;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

#pageTop {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 1.1rem;
  text-align: right;
  box-shadow: 0 0 1rem #333;
  border-radius: 1.5rem;
}
#pageTop a {
  display: block;
  z-index: 999;
  padding: 0.5em 0 0 0;
  border: 5px solid #fff;
  border-radius: 1.5em;
  width: 2.5em;
  height: 2em;
  background-color: var(--theme-color);
  color: #fff;
  text-align: center;
  font-weight: bold;
  text-decoration: none;
  opacity: 0.7;
}
#pageTop a:hover {
  color: var(--theme-color);
  background-color: ivory;
  border: 5px solid var(--theme-color);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  opacity: 1;
}

address {
  font-style: normal;
}

footer {
  color: var(--theme-text-color);
  background: #0007;
  background: #666;
  padding: 4px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  margin: 1em 0;
}
footer div {
  color: #fff;
  margin: 1px auto;
  text-align: center;
  line-height: 1.5em;
  text-shadow: 2px 2px 1px #000;
}
footer a {
  color: #fff;
  text-decoration: none;
}

.shadow {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

th {
  text-align: justify;
  text-justify: inter-ideograph;
  text-align-last: justify;
  padding: 0 0.3em;
}

#stage {
  position: relative;
  width: 100%;
  height: 56.25%;
  max-height: 576px;
  margin: 1em auto 0 auto;
  padding: 0;
  overflow: hidden;
}

.slideshow {
  width: 100%;
  height: 56.25vw;
}

.pic {
  position: absolute;
  width: 100%;
  top: 0;
  left: 100%;
  animation: imgTrans 24s infinite;
}

.reflect {
  -webkit-box-reflect: below -2px -webkit-linear-gradient(top, transparent, transparent 50%, rgba(0, 0, 0, 0.5));
  margin: 0.6rem;
}

.pic {
  text-align: center;
}
.pic img {
  z-index: 1;
  width: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}

#photo0 {
  animation-delay: 0s;
}

#photo1 {
  animation-delay: 6s;
}

#photo2 {
  animation-delay: 12s;
}

#photo3 {
  animation-delay: 18s;
}

#photo4 {
  animation-delay: 24s;
}

#photo5 {
  animation-delay: 30s;
}

@keyframes imgTrans {
  0% {
    left: 0%;
    opacity: 0;
  }
  5%, 20% {
    left: 0%;
    opacity: 1;
  }
  25% {
    left: 0%;
    opacity: 0;
  }
  26%, 99.99% {
    opacity: 0;
    left: 100%;
  }
  100% {
    opacity: 0;
    left: 0%;
  }
}
.g {
  position: relative;
  overflow: hidden;
  margin-top: 1em;
  font-size: 1.3rem;
  background-image: linear-gradient(90deg, #fff 25%, pink 25%, pink 50%, #fff 50%, #fff 75%, pink 75%, pink);
  background-size: 64px 64px;
  padding: 1rem 0;
  text-shadow: 0 0 1px #fff, 0 0 2px #fff, 0 0 4px #fff;
  border: 1px pink solid;
  border-width: 1em 0 0.3em 0;
}

#ribbon {
  display: none;
  z-index: 10;
  position: absolute;
  top: 0;
  left: 0;
  font-size: 2em;
  background: linear-gradient(orange 0%, red 30%, red 70%, orange 100%);
  text-shadow: 0 0 3px #000;
  box-shadow: 0 0 10px #000;
  color: #ff0;
  text-align: center;
  padding: 0.5rem 15rem;
  width: 30rem;
  transform: rotate(-45deg) translate(-20rem, -12rem);
  opacity: 0.8;
}

.g * {
  text-align: center;
}

.txt {
  font-size: 1.7rem;
}

@media all and (max-width: 768px) {
  .txt {
    font-size: 1.2rem;
  }
}
@media all and (max-width: 910px) {
  .reflect {
    -webkit-box-reflect: below 0px -webkit-linear-gradient(top, transparent, transparent 50%, transparent);
  }
}
#cs ul.article {
  background-color: #fff;
  background-color: ivory;
}
#cs ul.article li {
  margin-left: 1rem;
}

#rmc table {
  background-color: #ccc;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  border-collapse: collapse;
}
#rmc table td, #rmc table th {
  border: 1px solid #ccc;
  empty-cells: show;
}
#rmc table .numbers, #rmc table .pcs {
  text-align: center;
}
#rmc table .label {
  font-weight: bold;
}
#rmc table .factory_image {
  width: 67%;
  outline: 3px double #fff;
  outline: 3px groove rgba(255, 255, 255, 0.6);
  outline-offset: -7px;
}
#rmc dl, #rmc dt, #rmc dd {
  margin: 0;
  padding: 0;
}
#rmc dt {
  font-weight: bold;
  width: 9em;
  float: left;
}
#rmc dd {
  margin: 0 0 0 9em;
}
#rmc ul.article {
  background-color: #fff;
  background-color: ivory;
}

.rmc th {
  background-color: #ffe1;
}
.rmc td {
  background-color: var(--theme-text-color);
  background-color: #ddd;
  vertical-align: top;
}

@media all and (min-width: 10240px) {
  body {
    margin: 1em auto;
    border-radius: var(--outer-radius);
  }

  header {
    border-top-left-radius: var(--outer-radius);
    border-top-right-radius: var(--outer-radius);
  }

  footer {
    border-bottom-left-radius: var(--outer-radius);
    border-bottom-right-radius: var(--outer-radius);
  }
}
@media all and (max-width: 768px) {
  header {
    letter-spacing: 0.1rem;
  }

  #logo, .catch {
    text-align: center;
    letter-spacing: 0.1rem;
  }

  #logo {
    margin: 0;
    display: block;
    padding: 0;
    width: 100%;
    font-size: 1.5em;
  }

  .catch {
    margin: 0.5rem 0 0 0;
  }

  nav {
    margin: 1em 0;
  }

  .toggle + a, .menu {
    display: none;
  }

  .toggle {
    display: block;
    background-color: var(--theme-color);
    font-weight: bold;
    padding: 0.5em;
    color: #FFF;
    font-size: 17px;
    text-decoration: none;
    border: none;
    border-radius: 3px;
    text-align: left;
    letter-spacing: 0.2em;
  }
  .toggle:hover {
    background-color: #fff;
    color: var(--theme-color);
  }

  [id^=drop]:checked + ul {
    display: block;
  }

  nav ul li {
    display: block;
    width: calc(100% - 8px);
    margin: 2px;
    border-radius: 0;
  }
  nav ul li a {
    border-radius: 0;
  }
  nav a:hover {
    background-color: #fff;
    color: var(--theme-color);
  }
  nav ul ul ul a {
    background-color: #fff;
    color: var(--theme-color);
  }
  nav ul li ul li .toggle {
    padding: 14px 20px;
    color: #FFF;
    font-size: 17px;
  }
  nav ul ul a, nav ul ul ul a {
    padding: 14px 20px;
    color: #FFF;
    font-size: 17px;
  }
  nav ul li ul li .toggle {
    background-color: #212121;
  }
  nav ul ul {
    float: none;
    position: static;
    color: #fff;
  }
  nav ul ul a {
    background-color: #212121;
  }
  nav ul ul li:hover > ul {
    display: none;
  }
  nav ul li:hover > ul {
    display: none;
  }
  nav ul ul li {
    display: block;
    width: 100%;
  }
  nav ul ul ul li {
    position: static;
  }

  h1 {
    font-size: 1.5em;
  }

  table {
    table-layout: fixed;
  }

  iframe#gcalendar {
    width: 100%;
    margin: 0;
    box-shadow: none;
  }
}
@media all and (max-width: 480px) {
  nav ul li {
    display: block;
  }

  main {
    margin: 0;
  }
  main .article, main article.article, main p, main ul {
    margin: 0 1px 1em 1px;
    width: calc(100% - 2em - 4px);
    border-radius: 3px;
  }
  main p, main ul {
    padding: 0;
  }

  h1, h2 {
    border-radius: 3px;
    margin: 1em 1px;
  }

  table {
    width: 98%;
    max-width: 98%;
  }
  table * {
    word-wrap: break-word;
  }

  ol, ul {
    list-style-position: inside;
  }
}
@media all and (max-width: 420px) {
  #logo span {
    display: none;
  }
}
/* ギャラリーセクション全体 */
.gallery-section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  font-family: "Sawarabi Gothic", sans-serif;
}

.gallery-title {
  font-family: "Sawarabi Mincho", serif;
  font-family: "Sawarabi Gothic", sans-serif;
  font-size: 1.8rem;
  text-align: center;
  color: #2c3e50;
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}

.gallery-lead {
  text-align: center;
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.photo-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

.photo-gallery2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .photo-gallery2 {
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
  }
}

.gallery-item {
  margin: 0;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.gallery-img-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: #eaeaea;
}
.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-img-wrap img {
  transform: scale(1.05);
}

.gallery-caption {
  padding: 16px 18px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  flex-grow: 1;
}

.caption-title {
  display: block;
  font-weight: bold;
  font-size: 1.05rem;
  color: #222;
  margin-bottom: 6px;
}

.caption-desc {
  display: block;
  font-size: 0.88rem;
  color: #666;
  line-height: 1.6;
}

.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.86);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.gallery-modal.is-open {
  display: flex;
}

.modal-content {
  max-width: 900px;
  width: 100%;
  text-align: center;
  color: #fff;
}
.modal-content img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.modal-caption {
  margin-top: 16px;
}
.modal-caption h3 {
  font-size: 1.2rem;
  margin: 0 0 6px;
}
.modal-caption p {
  font-size: 0.95rem;
  color: #ddd;
  margin: 0;
}

.modal-close, .modal-prev, .modal-next {
  position: fixed;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background 0.2s;
}

.modal-close:hover, .modal-prev:hover, .modal-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-close {
  top: 20px;
  right: 24px;
}

.modal-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.modal-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* トップに戻るボタン */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background-color: #333;
  background-color: var(--theme-color);
  color: #fff;
  text-decoration: none;
  border: 2px solid #ddf;
  border-radius: 9999px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.back-to-top:hover {
  background-color: #555;
  background-color: var(--theme-color);
  transform: translateY(-2px);
}

/* 余白をリセット */
* {
  xxmargin: 0;
  xxpadding: 0;
  xxbox-sizing: border-box;
}

/* 画面（ビューポート）の高さにフィットさせる */
.slider {
  width: 100%;
  height: 80vh;
  /* 古いブラウザ用のフォールバック */
  height: 100dvh;
  /* スマホのアドレスバー等を考慮した最新の高さ指定 */
  overflow: hidden;
  background-color: #000;
  /* 読み込み中の背景色 */
}

/* 6枚分（600%）の横幅を確保 */
.slides {
  display: flex;
  width: 600%;
  height: 100%;
  /* 1枚あたり4秒 × 6枚 ＝ 合計24秒で1周（速度はここで調整） */
  animation: slide6 24s infinite ease-in-out;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.slide {
  width: calc(100% / 6);
  height: 100%;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 画像を画面サイズいっぱいにトリミングしてフィットさせる */
/* 6枚を等間隔（100% ÷ 6 ＝ 約16.67%刻み）で切り替えるアニメーション */
@keyframes slide6 {
  0%, 13% {
    transform: translateX(0%);
  }
  16.67%, 29.6% {
    transform: translateX(-16.6667%);
  }
  33.33%, 46.3% {
    transform: translateX(-33.3333%);
  }
  50%, 63% {
    transform: translateX(-50%);
  }
  66.67%, 79.6% {
    transform: translateX(-66.6667%);
  }
  83.33%, 96.3% {
    transform: translateX(-83.3333%);
  }
  100% {
    transform: translateX(0%);
  }
}

/*# sourceMappingURL=style.css.map */
