﻿html, body {
  font-family: sans-serif;
  margin: 10px;
  padding: 0px;
}

* {
  box-sizing: border-box;
}

/* ▼ ページ全体のスクロールバー（控えめ・透明風） */
body::-webkit-scrollbar {
  display: none;
}


.placeholder {
  position: relative; /* ← ツールチップ位置の基準に */
  background-color: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #333;
  font-weight: bold;
  border: 1px solid #999;
  width: 200px;
  height: 200px;
  flex: 0 0 auto;
  box-sizing: border-box;
}
.placeholder img {
  max-width: 99%;
  max-height: 99%;
  object-fit: contain;
  display: block;
  margin: auto;
  box-sizing: content-box;
}


/* ロゴ */
.fixed-logo {
  width: 240px;
  height: 60px;
  margin: 0;          /* 自動配置を解除 */
  display: block;
}

.fixed-logo img {
  max-width: 100%;            /* 横幅が枠に収まるように */
  max-height: 100%;           /* 高さが枠に収まるように */
  height: auto;
  width: auto;
  object-fit: contain;        /* 枠にフィットさせつつ縦横比維持 */
}


/* メインエリア */
.main-content {
  margin: 10px auto 0 auto;  /* ← 左右を auto に */
  width: 100%;
  max-width: 885px;         /* ← 最大幅を決める */
}

/* スライドショー */
.top-section {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
align-items: stretch;
height: 300px;
}


/* テーブル */
.side-table {
  width: 200px;
  height: 300px;
  font-size: 12px; /* テーブル内だけポイント小 */
  line-height: 1.25; /* 行間 */
}

.side-table table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.side-table td {
  border: 1px solid #aaa;
  text-align: center;
  vertical-align: top;
  padding: 5px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.side-table .row1,

.side-table .row2 {
  height: auto;
}


/* 見出し */
.section-title1,
.section-title2 {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  height: 32px;
  background-color: #c7dc68; /* section-title2 だけ別色にするなら後で別指定 */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #ffffff;
  font-size: 18px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
}



/* チラシ情報部分 */
.bottom-images {
  display: flex;
  flex-wrap: wrap;          /* 複数行に折り返す */
  gap: 20px;
  max-width: 885px;
  max-height: 250px;        /* 高さ */
  overflow-y: auto;         /* 縦スクロールを許可 */
  margin-bottom: 10px;
  width: 885px;
  box-sizing: border-box;
  padding: 0;   /* ← 念のため確認 */
  margin-bottom: 10px;    /* ← 念のため確認 */
}
}

.bottom-images .placeholder {
  width: 200px;
  height: 200px;
  flex: 0 0 auto;
}


/* 中段（画像3・画像4） */
.middle-section {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.left-images {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.left-images .placeholder {
  width: 200px;
  height: 200px;
}

/* スクロールバーの見た目を調整 */
.bottom-images::-webkit-scrollbar {
  width: 8px;
}

.bottom-images::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 4px;
}

.bottom-images::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 4px;
}

.bottom-images::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* テーブル内の文字揃え */
.label-time {
  display: inline-block;
  width: 48px; /* 適宜調整 */
  font-weight: bold;
}


/* オンマウスの動作 */
.tooltip {
  position: relative;
  display: inline-block;
  z-index: 10;
}

.tooltip .tooltip-text {
  position: absolute;
  bottom: 8px;         /* ← 枠の下から 8px 上に固定表示 */
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  text-align: center;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 1050;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.tooltip .tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%; /* ← 下に向かって出す */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}





/* ===== フッター ===== */

/* copyright 表記 */
footer .copyright {
  font-size: 12px;
  color: #999;
  text-align: center;
  margin-top: 20px;
}


.site-footer {
  max-width: 1000px;
  margin: 40px auto 0 auto;
  padding: 20px 10px;
  text-align: center;
  font-size: 12px;
  color: #666;
border-top: 2px solid #ccc;  /* 区切り線 */
}

.footer-links a {
  text-decoration: underline;
  margin: 0 8px;
  color: #666;
  white-space: nowrap;
}


/* ===== フッター内アコーディオン ===== */
.footer-accordion details {
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  margin-bottom: 10px;
  border-radius: 4px;
  overflow: hidden;
  font-size: 14px;
}

.footer-accordion summary {
  padding: 4px 10px;
  font-size: 14px;
  line-height: 1.6;
  cursor: pointer;
  font-weight: bold;
  background-color: #e0e0e0;
  list-style: none;
  outline: none;
  position: relative;
}

.footer-accordion summary::-webkit-details-marker {
  display: none;
}

.footer-accordion summary::after {
  content: "＋";
  position: absolute;
  right: 15px;
  font-size: 18px;
  transition: transform 0.3s;
}

.footer-accordion details[open] summary::after {
  content: "?";
}


.footer-accordion .accordion-content {
  font-size: 12px; 
  padding: 10px;
  border-top: 1px solid #ccc;
  background-color: #fff;


  text-align: left;          /* 左寄せ */
  white-space: normal;       /* 自動改行 */
  word-wrap: break-word;     /* 長い単語で改行 */
  line-height: 1.6;          /* 行間 */
}


/* ▼▼▼ メディアクエリ：スマホ対応 ▼▼▼ */
@media screen and (max-width: 600px) {
  .top-section {
    flex-direction: column;
    height: auto;
  }

  .side-table {
    width: 100%;
    height: auto;
  }

  .bottom-images {
    flex-direction: row;       /* 横並び（折り返し可能に） */
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;           /* ← ここが最重要 */
    width: 100%;
    overflow-x: hidden;        /* ← 横スクロール抑制 */
    max-height: none;
  }

  .bottom-images .placeholder {
    width: 200px;
    height: auto;
    margin: 5px;               /* 少し余白をつけてもOK */
    flex: 0 0 auto;            /* 固定幅 */
  }

  .placeholder img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .left-images {
    flex-direction: column;
    gap: 10px;
    align-items: center; /* ← これで中央寄せに */
  }

  .middle-section {
    justify-content: center; /* 念のため中央に */
  }

@media screen and (max-width: 600px) {
  .slideshow {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 670 / 300;
    overflow: hidden;
  }

  .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
  }

  .slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }
}
