@charset "UTF-8";
/* CSS Document */

:root {
  --color-bg: #ffffff;
  --color-text: #333333;
  --color-subtext: #666666;
  --color-border: #ccc;
  --color-header-bg: #000000;
  --color-header-text: #ffffff;

  --color-accent: #f4a300;
  --color-highlight: #d54787;
  --color-info: #009fe3;
  --color-success: #007934;
  --color-deep: #00558b;
  --color-muted: #8d7962;

  --color-btn-bg: #555;
  --color-btn-hover: #333;
  --color-flow-step: #ddd;
  --color-flow-hover: #c0c0c0;
  --color-flow-number: #777;
  --color-soft-deep: #7a8ca5;
}

body {
  margin: 0;
  padding: 0;
  font-family: "メイリオ", Meiryo, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  font-size: 87.5%;
  line-height: 1.4;
  color: var(--color-text);
  background: var(--color-bg);
}

p {
  margin: 0 0 20px 0;
  text-align: center;
}

h1 {
  border-bottom: 2px solid #333;
  text-align: center;
}

section {
  margin: 40px 0;
  padding: 0;
}

section h2 {
  font-size: 1.6em;
  font-weight: bold;
  border-bottom: 2px solid var(--color-soft-deep);
  color: var(--color-text);
  padding-bottom: 0.3em;
  margin-bottom: 1em;
  text-align: center;
}

section p {
  color: var(--color-subtext);
  line-height: 1.6;
  margin-bottom: 1.2em;
}

/* 共通幅 */
header,
nav,
#path,
main {
  max-width: 1000px;
  margin: 0 auto;
}

/* パンくず */
#path ol {
  list-style-type: none;
  padding: 0;
  display: flex;
}

#path ol li {
  margin-right: 5px;
}

#path ol li:after {
  content: ">";
  padding: 0 10px;
  color: #999;
}

#path ol li:last-child:after {
  display: none;
}

/* ヘッダー */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

header .logo img {
  height: 60px;
}

/* 共通ナビ */
nav ul {
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

nav ul li {
  flex: 1rem;
  text-align: center;
  border: none;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s, background-color 0.3s;
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
}

nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #d54747;
  transition: width 0.3s;
}

nav ul li a:hover {
  color: #d54747;
  background-color: rgba(213, 71, 71, 0.1);
}

nav ul li a:hover::after {
  width: 100%;
}

/* header内のnavは少し調整 */
header nav ul {
  gap: 8px;
  margin: 0;
  border: none;
}

header nav li {
  flex: initial;
  border: none;
}

header nav li a {
  color: var(--color-text);
  padding: 6px 10px;
}

/* ===== やました商店について ===== */
.hero-image {
  width: 100%;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

#news {
  margin-top: 0;
  padding-bottom: 10px;
}

.bhour {
  display: flex;
  justify-content: space-between;
}

.bhour div {
  flex: 1;
  text-align: center;
  margin: 0 1%;
}

div ul {
  list-style-type: none;
  padding-left: 20px;
  padding-bottom: 0;
}

.access {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: nowrap;
  justify-content: center;
}

.map {
  display: block;
}

.map img {
  width: 100%;
  max-width: 400px;
  height: auto;
}

#direction {
  max-width: calc(100% - 420px);
  min-width: 250px;
}

/* フッター */
footer {
  border-top: 1px solid #666;
  padding: 20px;
  text-align: center;
}

footer p {
  margin: 5px 0;
}

/* ===== 仕入れについて ===== */
.system p:last-child {
  margin-top: 20px;
  margin-bottom: 0;
}

.list-heading {
  font-weight: bold;
  font-size: 1em;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  text-align: left;
  display: block;
}

.system,
.returnok {
  display: flex;
  flex-direction: column;
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
  width: 100%;
}

.system ul,
.returnok ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  list-style-position: inside;
  margin: 0 auto;
  width: fit-content;
}

.system ul li,
.returnok ul li {
  text-align: left;
  width: 100%;
  padding-left: 1em;
  padding-right: 1em;
}

.system h3,
.returnok h3 {
  border-bottom: 2px solid #333;
  padding-bottom: 5px;
  display: inline-block;
  margin: 10px auto 10px;
}

.unchin small {
  display: block;
}
.table_1 table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  border-radius: 10px;
}

.table_1 th,
.table_1 td,
.table_2 th,
.table_2 td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
}

.table_2 table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 20px;
  padding-left: 10px;
  padding-right: 10px;
}

.table_2 table th:first-child {
  border-top-left-radius: 10px;
}

.table_2 table th:last-child {
  border-top-right-radius: 10px;
}

.table_2 table tr:last-child td:first-child {
  border-bottom-left-radius: 10px;
}

.table_2 table tr:last-child td:last-child {
  border-bottom-right-radius: 10px;
}

.table_1 th,
.table_2 th {
  background-color: #f0f0f0;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* iPhoneでぬるっとスクロール */
}

.table-scroll table {
  min-width: 600px; /* ← ここ重要（テーブル潰れ防止） */
}

.cap {
  font-size: 0.5em;
  text-align: right;
  display: inline-block;
  width: 100%;
}

.cap-wrapper {
  text-align: right;
}

p.unchin {
  margin: 2px 0;
  line-height: 1.2;
  text-align: right;
  padding-right: 10px;
}

/* ===== ご提案例 ===== */
.btn-container {
  margin-top: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-festival,
.btn-schoolfes {
  display: block;
  width: 80%;
  max-width: 350px;
  padding: 12px 20px;
  margin: 8px 0;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  border-radius: 8px;
  transition: background 0.3s, transform 0.2s;
  text-align: center;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-festival {
  background: var(--color-highlight);
}

.btn-festival:hover {
  background: #c63b72;
  transform: scale(1.05);
}

.btn-schoolfes {
  background: var(--color-info);
}

.btn-schoolfes:hover {
  background: #007ac0;
  transform: scale(1.05);
}

/* ===== リース品紹介 ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card {
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 400px;
  text-align: center;
}

.card-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  text-align: center;
}

.card-image {
  min-height: 75px;
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.card h2 {
  font-size: 1.2em;
}

.card button {
  background: var(--color-accent);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}

.card button:hover {
  background: #e38e00;
}

.card .swiper {
  display: inline-block;
  margin: 0 auto;
  text-align: center;
}

.swiper {
  width: 100%;
  height: auto;
}

.swiper.card-slider {
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
}

.swiper-wrapper {
  width: 100%;
  display: flex;
}

.swiper-slide {
  width: 100% !important;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.swiper-slide img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 5px;
}

.card-footer {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: auto;
}

/* モーダル */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  margin: 0 auto;
}

.modal-content img {
  width: 100%;
  height: auto;
  max-width: 600px;
  display: block;
  margin: 0 auto;
}

.close-modal {
  color: #aaa;
  float: right;
  font-size: 28px;
  cursor: pointer;
}

.close-modal:hover {
  color: black;
}

.okesize {
  margin-bottom: 10px;
}

.oke {
  margin: 0 auto 20px auto;
}

/* ===== お祭り・バザー ===== */
.festival h2 {
  color: var(--color-deep);
  border-bottom: 2px solid var(--color-deep);
}

.festival h3 {
  text-align: center;
  border-bottom: 1px solid #111;
}

.festival h2.kuji-toggle,
.festival h2.toggle-section {
  color: white;
  margin: 0;
  padding: 10px 15px;
}

table.setting-table,
table.wanage-setting-table {
  width: 33%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 1.5rem;
}

table.game-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 1.5rem;
}

.setting-table caption,
.game-table caption,
.wanage-setting-wrap caption {
  color: #333;
  font-weight: bold;
}

.setting-table th,
.setting-table td,
.wanage-setting-table th,
.wanage-setting-table td,
.game-table th,
.game-table td {
  padding: 5px;
  border: 1px solid #ddd;
  text-align: left;
}

.setting-table th,
.wanage-setting-table th,
.game-table th {
  background-color: #f4f4f4;
  font-weight: bold;
}

.wanage-setting-wrap {
  width: 95%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-left: 10px;
  padding-right: 10px;
}

.wanage-setting-wrap table {
  width: 48%;
  table-layout: fixed;
  word-break: break-word;
}

.wanage-setting-wrap table td,
.wanage-setting-wrap table th {
  overflow: hidden;
}

/* テーブル角丸 */
.setting-table tr:first-child th {
  border-top-left-radius: 10px;
}

.setting-table tr:first-child td {
  border-top-right-radius: 10px;
}

.setting-table tr:last-child th {
  border-bottom-left-radius: 10px;
}

.setting-table tr:last-child td {
  border-bottom-right-radius: 10px;
}

.wanage-setting-table tr:first-child th:first-child,
.game-table tr:first-child th:first-child {
  border-top-left-radius: 10px;
}

.wanage-setting-table tr:first-child th:last-child,
.game-table tr:first-child th:last-child {
  border-top-right-radius: 10px;
}

.wanage-setting-table tr:last-child td:first-child {
  border-bottom-left-radius: 10px;
}

.wanage-setting-table tr:last-child td:last-child {
  border-bottom-right-radius: 10px;
}

/* 折りたたみ */
.festival .toggle-button {
  background: var(--color-subtext);
  border: none;
  padding: 10px 15px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  margin-bottom: 0;
  border-bottom: 1px solid #ccc;
}

.toggle-button[aria-expanded="true"]::after {
  content: "▲";
  float: right;
}

.toggle-button[aria-expanded="false"]::after {
  content: "▼";
  float: right;
}

.kuji-tabs {
  margin-top: 1rem;
}

.tab-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
}

.tab-btn {
  flex: 1;
  padding: 8px;
  background: white;
  color: var(--color-subtext);
  border: 2px solid var(--color-subtext);
  cursor: pointer;
  border-radius: 5px 5px 0 0;
  font-weight: bold;
}

.tab-btn.active {
  color: white;
  background: var(--color-subtext);
  border-bottom: 2px solid var(--color-subtext);
}

.tab-panel {
  display: none;
  padding: 1rem;
  background: #fff;
  border-radius: 0 0 5px 5px;
}

.tab-panel.active {
  display: block;
}

.kuji-toggle,
.toggle-section {
  cursor: pointer;
  position: relative;
  background: var(--color-subtext);
  padding: 10px 15px;
  margin-bottom: 0;
  border-bottom: 1px solid #ccc;
}

.kuji-toggle {
  border-radius: 5px;
  margin: 0;
}

.toggle-section {
  border-radius: 5px;
}

.kuji-toggle::after,
.toggle-section::after {
  position: absolute;
  right: 1rem;
  font-size: 0.8em;
}

.kuji-toggle::after,
.toggle-section::after {
  content: "＋";
}

.kuji-toggle[aria-expanded="true"]::after,
.toggle-section[aria-expanded="true"]::after {
  content: "ー";
}

.festival .toggle-section,
.festival .kuji-toggle {
  border-radius: 0;
  border-bottom: 1px solid #555;
}

.festival .kuji-toggle {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.festival .toggle-section.is-last {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  border-bottom: none;
}

.festival .toggle-section[aria-expanded="true"],
.festival .kuji-toggle[aria-expanded="true"] {
  background-color: #666;
}

/* festival.html トグル連結調整 */
.festival section {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}

.festival .kuji-content[hidden],
.festival .section-content[hidden] {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}

.festival section:last-of-type {
  margin-bottom: 0 !important;
}

.colint {
  margin-top: 20px;
}

/* ===== 文化祭で駄菓子を売ろう ===== */
.img-caption {
  font-size: 0.9rem;
  color: #555;
  text-align: center;
  margin-top: 8px;
}

.modal video,
.swiper-slide video {
  width: 50%;
  max-width: 480px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.card-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0;
}

.dagashi-card {
  min-height: 200px;
  flex: 1;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

caption.corner {
  font-weight: 600;
}

.dagashi-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 4px;
}

.dagashi-card p {
  margin-top: 16px;
  line-height: 1.4;
  height: 3em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.dagashi-card:hover {
  transform: translateY(-4px);
}

/* ===== 会社概要 ===== */
.company-profile dt {
  font-weight: bold;
}

/* ===== PC・タブレット：3列表示 ===== */
@media (min-width: 768px) {
  .card-container {
    max-width: 1200px;
    margin: 0 auto;
  }

  .card {
    width: calc(33.333% - 20px);
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    margin: 0;
  }

  .step p {
    font-size: 0.9em;
    line-height: 1.5;
    color: var(--color-text);
  }

  .setting-table td::before,
  .game-table td::before {
    content: none;
  }
}

/* ===== スマホ共通 ===== */
@media (max-width: 768px) {
header {
  flex-direction: column;
  align-items: center;
}

header nav {
  width: 100%;
  margin-top: 8px;
}

header nav ul {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  column-gap: 24px;
  row-gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
}

header nav li {
  width: auto !important;
  padding: 0;
  border: none !important;
  text-align: center;
}

header nav li a {
  display: inline-block;
  padding: 4px 0;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  background: none;
  border: none;
  border-radius: 0;
}

header nav li a::after {
  display: none;
  content: none;
}

header nav li a:hover,
header nav li a:focus {
  color: #d54747;
  background: none;
}
  main {
    padding: 0 12px;
    box-sizing: border-box;
  }

  #path {
    padding: 0 12px;
    box-sizing: border-box;
  }

  #path ol {
    flex-wrap: wrap;
    row-gap: 6px;
    font-size: 0.9rem;
  }

  h1 {
    font-size: 1.6rem;
    line-height: 1.4;
    margin-bottom: 16px;
  }

  section {
    margin: 28px 0;
  }

  section h2 {
    font-size: 1.3rem;
    margin-bottom: 0.8em;
  }

  .hero-image img {
    width: 100%;
    height: auto;
  }

  .bhour {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .bhour div,
  .bhour .bhour-item {
    margin: 0;
    width: 100%;
  }

  .bhour ul {
    padding-left: 0;
  }

  .access {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .map img {
    width: 100%;
    max-width: 480px;
    height: auto;
  }

  .map,
  .map img {
    width: 100%;
    max-width: 100%;
  }

  #direction {
    max-width: none;
    min-width: 0;
    width: 100%;
    text-align: center;
  }

  .game-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .game-table table {
    min-width: 600px;
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
  }

  .game-table th,
  .game-table td {
    white-space: nowrap;
    display: table-cell;
    padding: 5px;
    border: 1px solid #ddd;
    text-align: left;
  }

  footer {
    padding: 16px 12px;
  }

  footer p {
    line-height: 1.6;
    word-break: break-word;
  }
}

/* ===== 767px以下：カード2列 ===== */
@media (max-width: 767px) {
  .card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .card {
    width: calc(50% - 16px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .card-content {
    width: 100%;
  }

  .swiper.card-slider {
    width: 100%;
  }

  .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
  }
}

/* data-label系のスマホ用スタイル無効 */
.game-table td::before {
  content: none;
}