/* フォント*/

@charset "utf-8";

@font-face {
  font-family: 'Web-font';
  src: url('https://dalmis.sfc-js.keio.ac.jp/DALMIS/fonts/UDPfont-Regular.woff2') format("woff2");
  font-display: swap;
}

@font-face {
  font-family: 'Web-font_A';
  src: url('https://dalmis.sfc-js.keio.ac.jp/DALMIS/fonts/UDfont-Regular.woff2') format("woff2");
  font-display: swap;
}

:root { --primary: #0056b3; --primary-hover: #004494; --bg: #f4f5f7; }

/* 英語 */

.en {
  display: none;
}

pre {
  white-space: pre-wrap;
}

/* 透かし */
.watermark {
    font-size: 80px;
    color: rgba(255,0,0,50%);
    pointer-events: none;
    user-select: none;
}

/* FAQ */
.qa-6 {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto 5px;
    border-bottom: 2px solid #d6dde3;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    box-shadow: 0 4px 4px rgb(0 0 0 / 2%), 0 2px 3px -2px rgba(0 0 0 / 5%);
    background-color: #fff;
}

.qa-6 summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 1em 2em 1em 3em;
    color: #333333;
    font-weight: 600;
    cursor: pointer;
}

.qa-6 summary::before,
.qa-6 p::before {
    position: absolute;
    left: 1em;
    font-weight: 600;
    font-size: 1.3em;
}

.qa-6 summary::before {
    color: #75bbff;
    content: "Q";
}

.qa-6 summary::after {
    transform: translateY(-25%) rotate(45deg);
    width: 7px;
    height: 7px;
    margin-left: 10px;
    border-bottom: 3px solid #333333b3;
    border-right: 3px solid #333333b3;
    content: '';
    transition: transform .5s;
}

.qa-6[open] summary::after {
    transform: rotate(225deg);
}

.qa-6 p {
    position: relative;
    transform: translateY(-10px);
    opacity: 0;
    margin: 0;
    padding: .3em 3em 1.5em;
    color: #333;
    transition: transform .5s, opacity .5s;
}

.qa-6[open] p {
    transform: none;
    opacity: 1;
}

.qa-6 p::before {
    color: #ff8d8d;
    line-height: 1.2;
    content: "A";
}

.qa-title {
    max-width: 1000px;
    margin: 40px auto 10px;
    font-size: 1.4em;
    font-weight: bold;
    border-left: 5px solid #75bbff;
    padding-left: 10px;
}

/* 保護者ホーム画面 */
.timeline-container {
    max-width: 1000px;
    margin: 40px auto;
}

.step-button {
    display: inline-block;
    padding: 10px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    text-align: center;
}

.always-open-card {
    background: #fff;
    border-left: 6px solid #ff9800;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.always-open-info {
    flex-grow: 1;
}

.always-open-card h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #333;
}

.always-open-card p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.always-open-action {
    margin-left: 20px;
}

.always-open-card .step-button {
    background-color: #ff9800;
    color: #fff;
}

.always-open-card .step-button:hover {
    background-color: #f57c00;
}

.timeline-section-title {
    font-size: 20px;
    text-align: center;
    margin-bottom: 30px;
    color: #444;
    position: relative;
}

.timeline-section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: #007bff;
    margin: 10px auto 0;
}

.timeline-box {
    background: #fff;
    padding: 40px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 5%;
    right: 5%;
    height: 4px;
    background-color: #e0e0e0;
    z-index: 1;
}

.timeline-item {
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
    padding: 0 10px;
}

.step-node {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    font-weight: bold;
    font-size: 18px;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.event-node {
    background-color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    display: inline-block;
    margin-top: -10px;
    border: 1px solid #ccc;
    position: relative;
    z-index: 3;
}

.timeline-content {
    margin-top: 10px;
}

.step-title {
    font-size: 16px;
    margin: 0 0 4px 0;
}

.time-display {
    font-size: 12px;
    color: #007bff;
    font-weight: bold;
    margin-bottom: 8px;
}

.event-time {
    font-size: 11px;
    color: #666;
    display: block;
    margin-top: 4px;
    font-weight: normal;
}

.step-desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px 0;
    min-height: 38px;
}

.timeline-item.future .step-node { background-color: #b0bec5; }
.timeline-item.future .step-button { background-color: #e0e0e0; color: #9e9e9e; pointer-events: none; }
.timeline-item.future .time-display { color: #78909c; }

.timeline-item.active {
    background-color: #f0f7ff;
    border-radius: 8px;
    padding-top: 15px;
    padding-bottom: 15px;
    margin-top: -15px;
    box-shadow: 0 0 0 2px #007bff;
}
.timeline-item.active .step-node { background-color: #007bff; transform: scale(1.1); }
.timeline-item.active .step-button { background-color: #007bff; color: #fff; }
.timeline-item.active .step-button:hover { background-color: #0056b3; }

.timeline-item.event-item.active .event-node { background-color: #e3f2fd; border-color: #007bff; color: #007bff; }

.timeline-item.past .step-node {
    background-color: #9e9e9e;
}
.timeline-item.past .step-button {
    background-color: #e0e0e0;
    color: #9e9e9e;
    pointer-events: none;
}
.timeline-item.past .time-display {
    color: #9e9e9e;
}
.timeline-item.past .step-title,
.timeline-item.past .step-desc {
    color: #9e9e9e;
}
.timeline-item.event-item.past .event-node {
    background-color: #f5f5f5;
    border-color: #d4d4d4;
    color: #9e9e9e;
}

.no-button .step-button { display: none; }


/* 共通仕様 */
body {
  background-color: #e5f2ff;
  max-width: 1000px;
  margin: 0 auto;
  padding: 110px 10px 10px;
  font-size: 16px;
  line-height: 1.8;
  font-family: 'BIZ UDPGothic', sans-serif;
  word-break: normal;
  overflow-wrap: normal;
}

button {
  -webkit-appearance: none;
  appearance: none;
  font-family: 'BIZ UDPGothic', sans-serif;
}

.no-webfont body {
    font-family: sans-serif !important;
}

body.qrcode{
  margin: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

/* スマホ用改行 */
.sp_br{
    display: none;
}

/* 入場券画面 */
.ticket-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    width: 100%;
}

.ticket {
    flex: 0 0 100%;
    width: 100%;
    padding: 20px 30px;
    box-sizing: border-box;
    scroll-snap-align: start;
    text-align: center;
}

.ticket .qrcode {
    margin: auto;
}

.qrcode-box img {
  display: block;
  margin: 0 auto;
}

.arrow-container {
    display: flex;
    justify-content: space-between;
    margin: 10px 20px;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #1e88e5;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    z-index: 20;
    opacity: 0.85;
}

.arrow:hover {
    opacity: 1;
}

.arrow-left {
    left: -15px;
}

.arrow-right {
    right: -15px;
}

.page-indicator {
    text-align: center;
    font-size: 20px;
    margin-top: 10px;
}

.page-indicator span {
    margin: 0 4px;
    color: #bbb;
}

.page-indicator .active {
    color: #000;
}

.page-counter {
    text-align: center;
    font-size: 14px;
    margin-top: 4px;
    color: #555;
}

span.representative {
    text-align: center;
    background-color: red;
    margin-right: 5px;
    padding: 2px 7px 3px;
    border-radius: 3px;
    position: relative;
    top: -5px;
    display: inline-block;
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
    text-shadow: none;
}

body.List{
  color: white;
  font-family: 'BIZ UDPGothic', sans-serif;
}

th, td {
  padding: 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #ccc;
}

iframe{
  width: 100%; 
  height: 100px;
}

.visitor-config {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.config-item {
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

.config-item label {
    margin-bottom: 5px;
    font-weight: bold;
}

.student-card {
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
}

.student-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

/* ホーム画面 */
.notice-board {
  background-color: #f9f9f9;
  border-left: 5px solid #0056b3;
  padding: 15px 20px;
  margin-bottom: 40px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  max-width: 900px;
  margin: auto;
}

.notice-board h2 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #333;
}

.notice-board ul li a {
  margin: 0;
  padding-left: 20px;
  color: #555;
  line-height: 1.6;
}

.notice-board ul li a:hover {
    text-decoration: underline;
}

.reservation-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto 40px auto;
  padding: 0 20px;
}

.reservation-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* ボタン */
.menu-panel {
  display: block;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  box-sizing: border-box;
}

/* ホバー */
.menu-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  border-color: #0056b3;
}

/* 大ボタン */
.large-panel {
  padding: 40px 20px;
  flex-grow: 1;
}

.large-panel h3 {
  margin: 0 0 10px 0;
  font-size: 1.4rem;
  color: #0056b3;
}

.large-panel p {
  margin: 0;
  font-size: 0.95rem;
  color: #666;
}

/* アイコン画像 */
.panel-icon {
  width: 75px;
  height: 75px;
  margin: 0 auto 15px auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-icon img {
  max-width: 150%;
  height: auto;
}

/* 小ボタン */
.sub-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.small-panel {
  padding: 15px 10px;
  font-size: 0.9rem;
  font-weight: bold;
  color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* テーブル */
table.List {
    width: 95%;
    border-collapse: collapse;
    background-color: black;
    color: white;
  font-family: 'BIZ UDPGothic', sans-serif;
    font-size: 25px;
    vertical-align: center;
    margin: auto;
    border: 2px solid white;
}

table.List th, table.List td {
    border: 1px solid white;
    padding: 8px;
}

table.List th {
    color: white;
    font-weight: bold;
}

table.List td.event {
    color: white;
}

table.List td.time {
    color: white;
}

table.List td.zero {
    color: red;
    font-weight: bold;
}

table.List td.low {
    color: yellow;
}

table.List td.high {
    color: lime;
}

table.List font.zero {
    color: red;
    font-weight: bold;
}

table.List font.low {
    color: yellow;
}

table.List font.high {
    color: lime;
}

table.List caption {
    caption-side: top;
    font-size: 16px;
    color: white;
    padding: 10px;
}

table.List td[title] {
    cursor: help;
}

table.Reserve {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

table.Reserve thead {
    background-color: #007BFF;
    color: white;
    font-weight: bold;
}

table.Reserve th, table.Reserve td {
    padding: 12px;
    border: 1px solid #ddd;
}

table.Reserve tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

th.calendar {
  width: 30%;
  font-weight: bold;
  background-color: #f9f9f9;
  }

table.Ticketing {
  border-collapse: collapse;
  width: 95%;
  max-width: 95%;
  margin: auto;
  font-size: 17.5px;
  max-width: 1000px;
  /* word-break: break-all;
  overflow-wrap: break-word; */
  table-layout: fixed;
}

table.calendar {
  border-collapse: collapse;
  font-family: 'BIZ UDGothic', sans-serif;
}

td.Ticketing {
  width: 70%;
  padding: 5px;
  text-align: left;
  cursor: pointer;
  border: 1px solid #bbdee4;
  background-color: #fbfbfb;
}

th.Ticketing {
  width: 30%;
  padding: 5px;
  text-align: left;
  cursor: pointer;
  border: 1px solid #bbdee4;
  background-color: #3c86c7;
  color: #ffffff;
}

.event-info {
  border-collapse: collapse;
  width: 95%;
  margin: 5px;
  font-size: 17.5px;
}

.event-info th, .event-info td {
  width: 19%;
  padding: 5px;
  text-align: left;
  cursor: pointer;
  border: 1px solid #bbdee4;
  background-color: #fbfbfb;
}

.event-info th {
  width: 19%;
  padding: 5px;
  text-align: left;
  cursor: pointer;
  border: 1px solid #bbdee4;
  background-color: #3c86c7;
  color: #ffffff;
}

.station {
    font-weight: bold;
}

.time {
    color: orange;
    font-size: 0.9em;
}

/* 座席指定 */
.seat-wrapper {
    width: 95%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    text-align: center;
    margin: auto;
}

/* 通路のスタイル */
#seatLegend {
  margin-top: 20px;
}

#seatLegend td {
  padding: 5px;
  text-align: left;
}
#seatTable {
    width: 100%;
    border-collapse: collapse;
}

/* ヘッダーのセル */
#seatTable .seat-header {
    background-color: #ddd;
    font-weight: bold;
    text-align: center;
    padding: 8px;
    border: 1px solid #ccc;
}

/* 空白のヘッダーセル */
#seatTable .seat-header:empty {
    background-color: transparent;
    border: none;
}

/* 行番号のセル */
#seatTable .row-number {
    background-color: #f0f0f0;
    font-weight: bold;
    text-align: center;
    padding: 8px;
    border: 1px solid #ddd;
}

/* 座席のボタン */
#seatTable .available button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

#seatTable .reserved button {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 5px 10px;
}

/* 通路のセル */
#seatTable .aisle {
    background-color: transparent;
    border: none;
}

#seatTable .selected-adult button {
  background-color: #007BFF;
  color: white;
}

#seatTable .selected-child button {
  background-color: #FF9800;
  color: white;
}


#seatLegend .available button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

#seatLegend .reserved button {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 5px 10px;
}

/* 通路のセル */
#seatLegend .aisle {
    background-color: transparent;
    border: none;
}

#seatLegend .selected-adult button {
  background-color: #007BFF;
  color: white;
}

#seatLegend .selected-child button {
  background-color: #FF9800; 
  color: white;
}

#seatTable .col-label {
    position: sticky;
    top: 0;
    background: #f5f5f5;
    z-index: 3;
    font-weight: bold;
}

/* 行ラベル（左固定） */
#seatTable .row-label {
    position: sticky;
    left: 0;
    background: #f5f5f5;
    z-index: 2;
    font-weight: bold;
}

/* ローディングインジケータのスタイル */
#loading {
  display: none;
  text-align: center;
  font-size: 20px;
  margin-top: 50px;
}

#reader {
  width: 300px;
  margin: auto;
}


/* ボタンのスタイル */
button {
  padding: 5px 10px;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  opacity: 0.7;
}

select.Ticketing{
  height: 30px;
  width: 220px;
  font-size: 17.5px;
}

input.Ticketing{
  height: 30px;
  width: 200px;
  font-size: 17.5px;
}

input[type="radio"] {
  font-size: 15px;
  height: auto;
  width: auto;
}

select.input{
  height: 30px;
  width: 100px;
  font-size: 15px;
}

input.input{
  height: 30px;
  width: 200px;
  font-size: 15px;
}

/* 戻るボタン */
button.Back::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-right: 10px solid currentColor;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}


button.Back{
  position: relative;
  padding: 0.25em 0.5em;
  color: #FFF;
  background: #247fd8;
  border: solid 2px #fff;
  border-radius: 4px;
  font-weight: bold;
  font-size: 20px;
  width: 200px;
  height: 50px;
  font-family: 'BIZ UDPGothic';
}

button.Back:disabled{
  position: relative;
  padding: 0.25em 0.5em;
  background: #cccccc;
  color: #666666;
  cursor: not-allowed;
  border: solid 2px #fff;
  border-radius: 4px;
  font-weight: bold;
  font-size: 20px;
  width: 200px;
  height: 50px;
  font-family: 'BIZ UDPGothic';
}

button.Back:hover{
    opacity: 0.6;
}

/* 進むボタン */
button.Ticketing{
  position: relative;
  padding: 0.25em 0.5em;
  color: #FFF;
  background: #f47622;
  border: solid 2px #fff;
  border-radius: 4px;
  font-weight: bold;
  font-size: 20px;
  width: 200px;
  height: 50px;
  font-family: 'BIZ UDPGothic';
}

button.Ticketing:disabled{
  position: relative;
  padding: 0.25em 0.5em;
  background: #cccccc;
  color: #666666;
  cursor: not-allowed;
  border: solid 2px #fff;
  border-radius: 4px;
  font-weight: bold;
  font-size: 20px;
  width: 200px;
  height: 50px;
  font-family: 'BIZ UDPGothic';
}

button.Ticketing::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

button.Ticketing:hover{
    opacity: 0.6;
}

/* 通常ボタン */
button.Nomal_button{
  position: relative;
  padding: 0.25em 0.5em;
  color: #FFF;
  background: #f47622;
  border: solid 2px #fff;
  border-radius: 4px;
  font-weight: bold;
  font-size: 20px;
  width: 200px;
  height: 50px;
  font-family: 'BIZ UDPGothic';
}

button.Nomal_button:disabled{
  position: relative;
  padding: 0.25em 0.5em;
  background: #cccccc;
  color: #666666;
  cursor: not-allowed;
  border: solid 2px #fff;
  border-radius: 4px;
  font-weight: bold;
  font-size: 20px;
  width: 200px;
  height: 50px;
  font-family: 'BIZ UDPGothic';
}

button.Nomal_button:hover{
    opacity: 0.6;
}

/* 幅広進むボタン */
button.EN-Ticketing{
  position: relative;
  padding: 0.25em 0.5em;
  color: #FFF;
  background: #f47622;
  border: solid 2px #fff;
  border-radius: 4px;
  font-weight: bold;
  font-size: 20px;
  width: 300px;
  height: 50px;
  font-family: 'BIZ UDPGothic';
}

button.EN-Ticketing:disabled{
  position: relative;
  padding: 0.25em 0.5em;
  background: #cccccc;
  color: #666666;
  cursor: not-allowed;
  border: solid 2px #fff;
  border-radius: 4px;
  font-weight: bold;
  font-size: 20px;
  width: 300px;
  height: 50px;
  font-family: 'BIZ UDPGothic';
}

button.EN-Ticketing::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

button.EN-Ticketing:hover{
    opacity: 0.6;
}

/* 幅広QRコード表示ボタン */
button.Show_QRCode{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.25em 0.5em;
  color: #FFF;
  background: #f47622;
  border: solid 2px #fff;
  border-radius: 4px;
  font-weight: bold;
  font-size: 20px;
  width: 300px;
  height: 50px;
  font-family: 'BIZ UDPGothic';
  gap: 10px;
}

button.Show_QRCode:disabled{
  background: #cccccc;
  color: #666666;
  cursor: not-allowed;
}

button.Show_QRCode::before {
  content: "";
  width: 35px;
  height: 35px;
  background-image: url("QR_code.png");
  background-size: contain;
  background-repeat: no-repeat;
}

button.Show_QRCode:hover{
  opacity: 0.6;
}

/* 座席変更 */
button.Seat_change {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

button.Seat_change::before {
    display: inline-flex;
    content: "";
    width: 16px;
    height: 16px;
    background-image: url("Seat.png");
    background-size: contain;
    background-repeat: no-repeat;
}

/* 予約ボタン */
button.Reserve {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

button.Reserve:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

button.Reserve:hover:not(:disabled) {
    background-color: #218838;
}

.btn-reserve_AVL {
    display: inline-block;
    padding: 0.5em 1em;
    text-decoration: none;
    background: white;
    color: black;
    border: solid 5px green;
    border-radius: 5px;
    transition: .4s;
}

.btn-reserve_AVL:hover {
    background: gray;
    color: white;
}

.btn-reserve_Little {
    display: inline-block;
    padding: 0.5em 1em;
    text-decoration: none;
    background: white;
    color: black;
    border: solid 5px gold;
    border-radius:5px;
    transition: .4s;
}        

.btn-reserve_Little:hover {
    background: gray;
    color: white;
}

.btn-reserve_FULL {
    display: inline-block;
    padding: 0.5em 1em;
    text-decoration: none;
    background: gainsboro;
    color: black;
    border: solid 5px crimson;
    border-radius:5px;
    transition: .4s;        
    cursor:not-allowed; 
}

.btn-reserve_disabled { 
    display: inline-block;
    padding: 0.5em 1em;
    text-decoration: none;
    border-radius:5px;
    transition: .4s;
    background:#ddd; 
    color:#666; 
    cursor:not-allowed; 
}
.reason-text { color:#b33; font-size:0.9rem; margin-top:6px; }


label.St-Ticketing{
  text-align: center;
  float: left;
  margin: 5px;
  background-color: silver;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

input[type=radio].St-Ticketing{
  display: none;
}

input[type=radio].St-Ticketing:checked + label.St-Ticketing{
  background-color: #f47622;
}

.balloon {
  display: block;
  clear: both;
  margin-left: 10px;
  margin-bottom: 8px;
  padding: 6px 10px;

  font-size: 12px;
  color: #333;

  background: #f0f4ff;
  border: 1px solid #c7d2ff;
  border-radius: 6px;

  width: fit-content;
  max-width: 300px;
}

dialog {
  margin: auto;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #aaa;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(20px);
}

dialog h1,dialog h2,dialog h3,dialog h4,dialog h5,dialog h6 {
  text-align: center;
}

dialog button {
  display: block;
  margin: 0 auto;
}

dialog .checkbox-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.today {
    background-color: #f0f8ff;
    font-weight: bold;
}

.enabled {
    background-color: #ffffff;
}

.disabled {
    color: #ccc;
    background-color: #f5f5f5;
}

.calendar-container table td:hover {
    background-color: #d3d3d3;
}

.progress-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background-color: #f0f0f0;
  border-radius: 5px;
  overflow: hidden;
}

.step {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  font-weight: bold;
  color: white;
  background-color: #cccccc;
  border: black;
  position: relative;
  display: flex;
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  min-height: 50px; 
  line-height: 1.4; 
  word-wrap: break-word; 
}

.step.ended {
  background-color: #2b3e42;
}

.step.ended::after {
  border-left-color: #2b3e42;
  border-left: 10px solid #2b3e42;
}

.step.end {
  background-color: #374e54;
}

.step.end::after {
  border-left-color: #374e54;
  border-left: 10px solid #374e54;
}

.step.completed {
  background-color: #3d646f;
}

.step.completed::after {
  border-left-color: #3d646f;
  border-left: 10px solid #3d646f;
}

.step.finish {
  background-color: #4796ad;
}

.step.finish::after {
  border-left-color: #4796ad;
  border-left: 10px solid #4796ad;
}

.step.active {
  background-color: #5bc0de;
}

.step.active::after {
  border-left: 10px solid #5bc0de;
}


.step::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);  
  z-index: 1;
  border-left: 10px solid transparent;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}


.step.next::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -12px;
  transform: translateY(-50%); 
  z-index: 1;
  border-left: 10px solid #41414163;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.step.next::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  z-index: 1;
  border-left: 10px solid #cccccc;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.step:last-child::after {
  display: none;
}
.step.next {
  position: relative;
  color: #000;  
  font-weight: normal;
}


/* ナビゲーションバー関連 */
.nav .dropdown {
  position: relative;
}

.nav .dropdown-menu {
  display: none;
  position: absolute;
  background: #ffffff;
  list-style: none;
  padding: 5px 0;
  margin: 0;
  border: 1px solid #ccc;
  width: 180px;
  text-align: left;
  z-index: 20000;
}

.nav .dropdown:hover > .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 8px 20px;
  text-decoration: none;
  color: black;
}

.dropdown-menu li a:hover {
  background-color: #add8e6;
}

.tabs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; }
.tab { padding: 10px 15px; background: #f8f9fa; border: 1px solid #ddd; border-radius: 4px; cursor: pointer; white-space: nowrap; }
.tab.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: bold; }
.tab-content { display: none; }
.tab-content.active { display: block; }


/* --- PC版ナビ本体 --- */
nav.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: #87cefa;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

/* ロゴは左寄せのまま */
.nav-logo {
  width : 400px;
  margin-left: 15px;
  margin-right: auto;
}

.nav-logo_A {
  height: 90px;
  width: 235px;
  margin-right: 15px;
  margin-left: 165px;
  margin-top: 7px;
}

/* メニュー本体を中央に配置 */
ul.nav {
  list-style: none;
  display: flex;
  margin: 0 auto;
  padding: 0;
  gap: 10px;
}


/* 各メニューアイテム */
li.nav {
  position: relative;
}

/* 吹奏楽部定期公演専用 */
a.nav {
  text-decoration: none;
  color: black;
  display: block;
  padding: 15px 25px;
  transition: background-color 0.3s ease;
  font-size: 18px;
}

a.nav:hover {
  background-color: #add8e6;
}

/* --- メニュー開閉アイコン（スマホ用） --- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 32px;
  margin-right: 15px;
  cursor: pointer;
}

ul.home-slide {
  margin: 120px auto 60px;
  padding: 0;
  width: 80%;
  position: relative;
}

li.home-slide {
  list-style: none;
  width: 100%;
  position: relative;
  text-align: center;
}

img.home-slide {
  display: block;
  max-width: 80%;
  margin: 0 auto;
}

img.error {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.ledger-card{
    background:#fff;
    margin-bottom:20px;
    border-radius:18px;
    padding:24px;
    box-shadow:0 4px 16px rgba(0,0,0,.08);
}

.summary-grid{
    margin-top:20px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:16px;
}

.summary-item{
    background:white;
    border-radius:16px;
    padding:20px;
    box-shadow:0 2px 8px rgba(0,0,0,.05);
}

.summary-label{
    color:#666;
}

.summary-value{
    margin-top:8px;
    font-size:32px;
    font-weight:bold;
}

/* 写真右下に文字を表示 */
li.home-slide .overlay {
  position: absolute;
  bottom: 20px; 
  right: 5%;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 18px;
  text-align: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 30px;
  color: black;
  cursor: pointer;
  margin-right: 15px;
}

.notice-box {
    border: 1px solid #c5d8e8;
    background-color: #ffffff;
    padding: 10px;
    border-radius: 5px; 
}

.notice-title {
    font-weight: bold;
    background-color: #d7e3f4;
    padding: 5px;
}

.notice-content {
    padding: 10px;
    list-style-type: disc;
    margin-left: 20px;
}

.share-button,
.print-button {
  display: inline-block;
  background-color: #3498db;
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.share-button:hover,
.print-button:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

.share-button:active,
.print-button:active {
  background-color: #2471a3;
  transform: scale(0.98);
}

#loading {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(20px);
}

.spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 5px solid #ffffff;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.a_spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  color: white;
  font-weight: bold;
  margin-top: 60px;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.marquee-anim {
  overflow: hidden;
}

.marquee-span {
  display: inline-block;
  padding-left: 95%;
  text-align: center;
  margin: auto;
  font-size: 30px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  from {
    transform: translate(0);
  }
  to {
    transform: translate(-100%);
  }
}


/* 以下レスポンシブ */

/* 印刷用 */
@media print {

  body.qrcode {
      margin: 0;
  }

  nav,footer,.arrow,.share-button,.notice-box,
  #page-counter {
      display: none !important;
  }

  #ticket-container {
      display: block !important;
      overflow: visible !important;
      scroll-behavior: auto !important;
  }

  .ticket {
      page-break-after: always;
      break-after: page;
      width: 100% !important;
      margin: 0 auto 20px auto;
  }

  .ticket:last-child {
      page-break-after: auto;
  }
}


/*レスポンシブ対応*/

@media screen and (max-width: 1200px) {
    /* スマホ用改行 */
    .sp_br{
        display: block;
    }

    .watermark {
        font-size: 50px;
    }

    nav.nav {
      height: 100px;
      justify-content: space-between;
    }

    .nav-logo {
      height: auto;
      max-width: 80%;
    }

    .nav-logo_A {
      height: 90px;
      display: none;
    }

    .menu-toggle {
      display: block;
      z-index: 11000;
    }

    ul.nav {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 100px;
      left: 0;
      width: 100%;
      background-color: #87cefa;
      border-top: 1px solid #ccc;
    }

    ul.nav.active {
      display: flex;
    }

    li.nav {
      width: 100%;
      border-bottom: 1px solid #b0d8f5;
    }

    a.nav {
      padding: 14px 20px;
    }

    .nav .dropdown-menu {
      position: relative;
      width: 100%;
      border: none;
      display: none;
      background: #d6efff;
    }

    .dropdown-menu li {
      padding-left: 35px;
    }

    table.Reserve {
        display: none;
    }

    table#personTable,
    table#personTable thead,
    table#personTable tbody,
    table#personTable tr {
      display: block;
    }

    table#personTable thead {
      display: none;
    }

    table#personTable tr {
      border: 1px solid #aaa;
      margin-bottom: 12px;
      padding: 8px;
      border-radius: 8px;
      background: #fafafa;
    }

    table#personTable td {
      display: inline-block;
      border: none;
      padding: 6px 0;
      align-items: center;
    }

    table#personTable td::before {
      content: attr(data-label);
      flex: 0 0 6em;
      font-weight: bold;
      color: #444;
    }

    table.calendar {
      font-size: 12px;
    }

    .event-card {
        width: 90%;
        margin: 10px auto;
        padding: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
        background-color: white;
    }

    .event-card h3 {
        margin: 0;
        font-size: 18px;
        color: #007BFF;
    }

    .event-card p {
        margin: 5px 0;
        font-size: 14px;
    }

    .event-card .reserve-button {
        display: block;
        margin-top: 10px;
        width: 100%;
        padding: 8px;
        font-size: 14px;
        text-align: center;
    }    
    
    .visitor-config {
        flex-direction: column;
        gap: 10px;
    }

    .always-open-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .always-open-action {
        margin-left: 0;
        margin-top: 16px;
        width: 100%;
    }
    .always-open-card .step-button {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .timeline {
        flex-direction: column;
        padding-left: 30px;
        padding-top: 0;
    }
    .timeline::before {
        top: 0;
        bottom: 0;
        left: 22px;
        width: 4px;
        height: auto;
    }
    .timeline-item {
        display: flex;
        align-items: flex-start;
        text-align: left;
        padding: 20px 0;
        width: 100%;
    }
    .timeline-item.active {
        padding: 20px 10px;
        margin-top: 0;
        margin-left: -10px;
    }
    .step-node {
        margin: 0 20px 0 0;
        flex-shrink: 0;
    }
    .event-node {
        margin: 0 0 0 64px;
    }
    .timeline-content {
        margin-top: 0;
        flex-grow: 1;
    }
    .step-desc {
        min-height: auto;
    }
    
    #email-dialog table,
    #email-dialog tbody,
    #email-dialog tr,
    #email-dialog th,
    #email-dialog td {
        display: block;
        width: 100%;
    }

    #email-dialog tr {
        margin-bottom: 20px;
    }

    #email-dialog th {
        margin-bottom: 8px;
    }

    #email-dialog td {
        text-align: center;
    }

    #email-dialog td:last-child {
        margin-top: 10px;
    }

    #email-dialog button {
        width: 100%;
    }

    #email-dialog td[colspan] {
        text-align: center;
        padding: 12px 0;
    }

}

@media (min-width: 1200px){  
    .event-card {
        display: none;
    }
}