/* 株式会社マルチウェーブ 静的サイト用スタイル（旧 WordPress テーマ max-magazine に合わせた配色） */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f7f8f9 url("img/bg.gif") repeat-x top left;
  color: #555;
  font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 14px;
  line-height: 1.7;
}

a { color: #4581b9; text-decoration: none; }
a:hover { color: #404b58; text-decoration: underline; }
img { max-width: 100%; height: auto; }

#container { max-width: 960px; margin: 0 auto; }

/* ヘッダー */
#header { background: #fff; padding: 15px 15px 0; border-bottom: 1px solid #ddd; }
.header-wrap {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-bottom: 10px; margin-bottom: 0;
  background: url("img/sep-bg.png") repeat-x center bottom;
}
.header-wrap .logo img { display: block; }
.header-wrap .tagline { text-align: right; font-size: 13px; color: #555; }

/* メニュー */
#nav ul { list-style: none; margin: 0; padding: 0; }
#nav > ul { display: flex; flex-wrap: wrap; }
#nav li { position: relative; }
#nav a {
  display: block; padding: 0 15px; height: 40px; line-height: 40px;
  font-weight: 700; color: #4581b9;
}
#nav a:hover, #nav a.current { color: #404b58; text-decoration: none; }
#nav .sub-menu {
  display: none; position: absolute; top: 40px; left: 10px; z-index: 10;
  width: 190px; background: #fff; box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}
#nav .sub-menu a { height: auto; line-height: 1.6; padding: 8px 15px; font-size: 13px; border-bottom: 1px solid #efefef; }
#nav li:hover > .sub-menu, #nav li:focus-within > .sub-menu { display: block; }

/* 本文とサイドバー */
#content-container { display: flex; gap: 20px; background: #fff; padding: 15px; }
#content { flex: 1; min-width: 0; color: #000; }
#sidebar { width: 280px; flex-shrink: 0; font-size: 13px; }
#sidebar .widget { padding-bottom: 20px; margin-bottom: 20px; background: url("img/sep-bg.png") repeat-x center bottom; }

h2 {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 22px; line-height: 1.4; margin: 0 0 12px; color: #000;
}
h3 { font-size: 17px; margin: 24px 0 8px; color: #000; }

table { width: 100%; border-collapse: collapse; border-bottom: 1px solid #ddd; margin: 0 0 1.6em; text-align: left; }
th, td { border-top: 1px solid #ddd; padding: 8px 10px; vertical-align: top; }
th { color: #000; font-size: 15px; font-weight: 600; letter-spacing: 0.05em; white-space: nowrap; width: 9em; }
th.wrap { white-space: normal; }

.blue { color: #0000ff; }
.figure { margin: 8px 0 16px; }
.figure img { display: block; max-width: 300px; width: 100%; }
.figure figcaption { color: #000; font-size: 13px; margin-top: 4px; }

.news { list-style: none; padding: 0; margin: 0; }
.news li { padding: 6px 0; border-bottom: 1px dotted #e7e7e7; }
.news .date { color: #888; margin-right: 1em; }

.map { width: 100%; max-width: 500px; height: 300px; border: 0; }

/* トップのスライドショー（JavaScript なし） */
.slideshow { position: relative; width: 100%; aspect-ratio: 630 / 320; overflow: hidden; margin-bottom: 20px; }
.slideshow a { position: absolute; inset: 0; opacity: 0; animation: slide 20s infinite; }
.slideshow a:nth-child(2) { animation-delay: 5s; }
.slideshow a:nth-child(3) { animation-delay: 10s; }
.slideshow a:nth-child(4) { animation-delay: 15s; }
.slideshow img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slideshow span {
  position: absolute; left: 0; bottom: 0; padding: 6px 14px;
  background: rgba(0, 0, 0, 0.5); color: #fff; font-weight: 700; font-size: 16px;
}
@keyframes slide {
  0% { opacity: 0; z-index: 1; }
  5%, 25% { opacity: 1; z-index: 2; }
  30%, 100% { opacity: 0; z-index: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .slideshow a { animation: none; }
  .slideshow a:first-child { opacity: 1; }
}

/* フッター */
#footer { max-width: 960px; margin: 0 auto; padding: 15px; font-size: 13px; text-align: center; }
#footer .copy { color: #888; margin-top: 8px; }

/* スマホ */
@media (max-width: 760px) {
  .header-wrap { flex-direction: column; align-items: flex-start; }
  .header-wrap .tagline { text-align: left; }
  #content-container { flex-direction: column; }
  #sidebar { width: 100%; }
  /* サブメニューを展開して、全項目を横に並べる */
  #nav li:has(> .sub-menu), #nav .sub-menu, #nav .sub-menu li { display: contents; }
  #nav a, #nav .sub-menu a { height: auto; line-height: 1.6; padding: 6px 10px; font-size: 14px; border: 0; }
  th { white-space: normal; width: 7em; }
}
