@charset "UTF-8";
#page-menu #footer {
  margin: 0 auto;
  font-size: small;
  text-align: center;
}

#page-menu .wrapper {
  min-height: 100vh;
  height: 100%;
  padding: 0;
  background-color: #faf2e6;
}

#page-menu .header {
  margin: 0 0 0.8rem 0;
}

#page-menu h1 {
  margin: 0;
  padding: 0;
  font-weight: normal;
  border-bottom: none;
  line-height: 1.2em;
  font-size: 1rem;
  background-color: #fefbf8;
}

body#page-menu {
  text-align: center;
  margin: 0 auto;
  padding: 0;
  min-height: 100%;
  height: 100%;
  /* font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", Meiryo, "メイリオ", Osaka, "MS PGothic", "ＭＳ Ｐゴシック", arial, helvetica, sans-serif;*/
}

#page-menu .clearfix {
  clear: both;
}

#page-menu .wait-time-no-wrapper div {
  padding: 5px;
}

#page-menu #Container {
  padding: 0;
  text-align: center;
  margin: 0 auto;
  background-color: #ffffff;
}

/* Mobile: single column layout */
.table-div {
    display: block;
    width: 100%;
}
.table-div .row {
    display: block;
}
.table-div .row>div {
    display: block;
    width: 100%;
}

.table-div .row>div a {
    background: url(../img/arrow01.png) right center no-repeat;
    background-position: right center;
    -webkit-background-origin: content;
    color: #000000;
    font-size: 15px;
    display: block;
    margin: 0px;
    padding: 12px 0px 12px 12px;
    text-decoration: none;
    border-top: 1px solid #dddddd;
    -webkit-box-shadow: 1px 1px 1px #eeeeee;
}

/*
.table-div .row>div:last-child{
    border-bottom: 1px solid #dddddd;
}
*/

/* 矢印つきリスト*/

ul {
  margin: 10px 0 10px 0;
  padding: 0;
}

ul.menu li {
  overflow: hidden;
  margin: 0;
  width: 99%;
  text-align: left;
  padding: 0;
  border: 1px #ccc solid;
  border-bottom: 0;
}

ul li p {
  margin: 0;
  padding: 0;
}

ul li a {
  width: 99%;
}

ul li {
  display: block;
  text-align: left;
  padding-left: 0%;
  width: 99%;
}

ul.menu {
  margin-left: 2px;
}
ul.menu li {
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(#fff),
    to(#ecf0f1)
  );
  background: linear-gradient(#fff, #ecf0f1);
  -webkit-box-shadow: 0px 3px 3px rgba(000, 000, 000, 0.1);
  box-shadow: 0px 3px 3px rgba(000, 000, 000, 0.1);
}
ul.menu2 li {
  background-color: #ffffd6;
  -webkit-box-shadow: 0px 3px 3px rgba(000, 000, 000, 0.1);
  box-shadow: 0px 3px 3px rgba(000, 000, 000, 0.1);
}
ul.menu2 li {
  border-radius: 8px;
  border: 1px #ccc solid;
}
ul.menu li:first-child {
  border-radius: 8px 8px 0 0;
}
ul.menu li:last-child {
  border-radius: 0 0 8px 8px;
  border-bottom: 1px #ccc solid;
}

ul.menu li a,
ul.menu2 li a {
  color: #000000;
  display: block;
  height: 60px;
  margin: 0;
  padding: 0 0 0 10px;
  overflow: hidden;
  white-space: nowrap;
  line-height: 60px;
  text-overflow: ellipsis;
  text-decoration: none;
  font-weight: normal;
}
ul.menu2 li a {
  height: 55px;
  line-height: 52px;
}

#infull {
  font-size: 17px;
}
@media screen and (min-width: 768px) {
  #infull {
    font-size: 22px;
  }
  #Container {
    width: 768px;
    padding: 20px 30px 30px 30px !important;
    text-align: center;
    margin: 0 auto;
  }
  ul {
    width: 99%;
    margin: 0 auto;
  }
  /* table */
  .table-div {
    display: table;
    width: 100%;
  }
  .table-div .row {
    display: table-row;
  }
  .table-div .row > div {
    display: table-cell;
    margin: 0;
    padding: 5px;
  }
  .table-div .row .cell {
    margin: 10px;
  }
  .table-div .row > div {
    width: 50%;
  }
  .table-div .row > div a {
    border: 1px solid #dddddd;
  }
  .table-div .row > div:last-child {
    border-bottom: 0;
  }
  ul li a span.red {
    padding-left: 60px;
  }
}

/*
ul#list1 li{
    text-align: center;
}
*/

.table-ul {
  display: table;
  table-layout: fixed;
  text-align: center;
  width: 100%;
}

.table-ul li {
  display: table-cell;
  vertical-align: middle;
}

.info {
  border: 2px solid #e4007f;
  border-radius: 4px;
  position: relative;
}

@media screen and (min-width: 320px) and (max-width: 768px) {
  #page-menu .wrapper {
    background-color: #fefbf8;
  }
}

/* calendar */
.cal .cal-head,
.cal-body {
  width: 100%;
}

.cal .cal-row {
  display: table;
  border-spacing: 0px 0px;
  table-layout: fixed;
  width: 100%;
}

.cal .cal-head .cal-row .cal-cell {
  background: #f5f5f5;
  border-top: 1px solid #bbbbbb;
  font-size: 14px;
  font-weight: bold;
}
.cal .cal-head .cal-row .cal-cell:nth-child(1) {
  /* background: #F8E2E9; */
  /* color: #E0368A; */
}
.cal .cal-head .cal-row .cal-cell:nth-child(7) {
  /* background: #CBE5FE; */
  /* color:#474747; */
}

.cal .cal-head .cal-row:nth-child(1) .cal-cell {
  border-top: 1px solid #bbbbbb;
}

.cal .cal-body .cal-row .cal-cell {
  color: #000000;
  font-weight: bold;
}

.cal .holiday {
  color: #e91e63;
}

.cal-body .cal-row .holiday {
  color: #e91e63 !important;
  background-color: #f8e2e9;
}

.cal-body .cal-row .half {
  color: #0075c7 !important;
}

.cal .invalid {
  background-color: #efefef;
}

.cal .cal-body .cal-row .past {
  color: #cccccc;
}

.cal .cal-cell {
  position: relative;
  /* font-size: 1.5rem; */
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  border-right: 1px solid #bbbbbb;
  border-bottom: 1px solid #bbbbbb;
  border-spacing: 0px 0px;
}

.cal .cal-cell:nth-child(1) {
  border-left: 1px solid #bbbbbb;
}

.cal .cal-cell .day {
  font-size: 14px;
  text-align: center;
  padding: 3px;
}

.cal .cal-cell .note {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
}

.cal .cal-cell .hide {
  display: none;
}
.cal .cal-cell .full {
  color: #f44336;
}
.cal .cal-cell .half {
  color: #ffeb3b;
}
.cal .cal-cell .empty {
  color: #4caf50;
}
.cal-sub {
  margin-top: 6px;
}
.cal-sub .cal-sub-table {
  display: table;
  border-top: 1px solid #aaaaaa;
  border-right: 1px solid #aaaaaa;
  margin-bottom: 5px;
  width: 100%;
}
.cal-sub .cal-sub-table .row {
  display: table-row;
}
.cal-sub .cal-sub-table .row > div {
  display: table-cell;
  margin: 0;
  padding: 8px;
  border-left: 1px solid #aaaaaa;
  border-bottom: 1px solid #aaaaaa;
}

/* iphone5,smartphone */
@media screen and (max-width: 320px) {
  .cal-sub .cal-sub-table {
    font-size: 12px;
  }
  .cal-sub .cal-sub-table .row > div {
    padding: 6px;
  }
}
.flex-box {
  /* font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif; */
}

.cal .cal-body .cal-row .past {
  color: #bbbbbb !important;
}

.cal .cal-title a {
  text-decoration: underline;
  font-weight: bold;
}
/* .cal .cal-title{
    margin:5px;
} */
.holidayspecial {
  width: 73px;
}
.sinsatu-special {
  width: 63px;
}
@media screen and (min-width: 321px) {
  .holidayspecial {
    width: 87px;
  }
}
@media screen and (min-width: 768px) {
  .flex-box {
    display: -webkit-flex;
    display: flex;
  }
  .flex-box .cal {
    -webkit-flex: 1;
    flex: 1;
    order: 2;
  }
  .flex-box .cal-sub {
    -webkit-flex: 2;
    flex: 1;
    order: 1;
    margin-top: 0px;
  }
  .cal {
    /* margin-top:-27px; */
  }
  .cal-sub .cal-sub-table {
    width: 98%;
    /* margin-top:27px; */
  }
  .cal-sub .cal-sub-table:first-child {
    margin-top: 27px;
  }
  .cal .cal-cell .day {
    font-size: 16px;
  }
  .cal .cal-title {
    margin: 0;
  }
  .sinsatu-special {
    width: 72px;
  }
}
@media screen and (max-width: 400px) {
  #infull {
    font-size: 0.8em;
  }
}
.cal .today .day {
  font-weight: 900;
  font-size: 22px;
  padding: 0;
}

.news {
  margin-left: 0.3em;
  margin-right: 0.3em;
}
.news ul li a {
  color: #e4007f;
  /* font-weight: bold; */
  font-size: inherit;
  text-decoration: none;
}
.news ul li {
  margin-bottom: 0.3em;
  padding-left: 0.5em;
  background-color: #eaeaea;
}
p.more {
  padding: 0;
  margin: 0;
}

/* ========== かざす診察券 ========== */
/* ----- インライン ----- */
.medical-card-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: auto;
  padding: 10px;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
}

/* かざす案内・診察券・インジケーターのコンテナ（まとめて折りたたむ） */
.medical-card-collapsible {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  max-height: 700px;
  opacity: 1;
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.medical-card-collapsible.hidden {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

/* かざす案内 */
.medical-card-instruction {
  margin: 0;
  padding: 0;
  font-size: 14px;
  text-align: center;
}

.medical-card-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  max-height: 500px;
  opacity: 1;
  overflow: hidden;
  padding-bottom: 8px;
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.medical-card-wrapper.hidden {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

/* 診察券 */
.medical-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1.6 / 1;
  border-radius: 8px;
  background-color: #f5f5f5;
  border: 1px solid #bbb;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s;
}

/* 診察券 - 背景画像あり */
.medical-card.has-background-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.medical-card-clinic {
  position: absolute;
  left: 5%;
  top: 8%;
  font-size: 0.875rem;
  font-weight: bold;
}

.medical-card-recno {
  position: absolute;
  left: 5%;
  top: 40%;
  font-size: 0.875rem;
  font-weight: bold;
}

.medical-card-kanji-name {
  position: absolute;
  left: 5%;
  top: 51%;
  font-size: 0.875rem;
  font-weight: bold;
}

.medical-card-name {
  position: absolute;
  left: 5%;
  top: 62%;
  font-size: 0.875rem;
  font-weight: bold;
}

.medical-card-qr {
  position: absolute;
  right: 0;
  bottom: 0;
}

.medical-card-qr iframe {
  border: none;
  width: 112px;
  height: 112px;
  aspect-ratio: 1 / 1;
  display: block;
}

/* ナビボタン */
.medical-card-nav {
  position: relative;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  background: #f5f5f5;
  border: 1px solid #ddd;
}

.medical-card-nav:hover {
  background: #ebebeb;
  border-color: #ccc;
}

.medical-card-nav:disabled {
  opacity: 0.3;
  cursor: auto;
}

.medical-card-nav i {
  color: #3498db;
  font-size: 20px;
}

/* インジケーター */
.medical-card-indicators {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  max-height: 50px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.medical-card-indicators.hidden {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.medical-card-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  opacity: 0.6;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.medical-card-indicator.active {
  background: #3498db;
  width: 24px;
  border-radius: 4px;
  opacity: 1;
}

/* 診察券トグルボタン */
.medical-card-toggle-btn {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 8px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
}

.medical-card-toggle-btn:hover {
  background: #ebebeb;
  border-color: #ccc;
}

.medical-card-toggle-btn i {
  margin-right: 8px;
}
/* ----- ▲インライン ----- */

/* ----- モーダル ----- */
.medical-card-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
}

.medical-card-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 縦持ち時: モーダル全体を90度回転 */
.medical-card-modal.active.portrait-rotated {
  transform: rotate(90deg);
  transform-origin: center;
  width: 100vh;
  height: 100vw;
  top: 50%;
  left: 50%;
  margin-top: calc(-50vw);
  margin-left: calc(-50vh);
}

/* オーバーレイ */
.medical-card-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease;
}

/* モーダルコンテンツ */
.medical-card-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: auto;
  padding: 10px;
  width: 100%;
  height: 100%;
  max-width: 700px;
  /* 診察券の比率とおおよそ同じになるように高さを設定する */
  max-height: 450px;
  box-sizing: border-box;
  animation: slideUp 0.3s ease;
}

.medical-card-modal-card-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  opacity: 1;
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
  /* 残りの空間を全て使う */
  flex: 1;
  /* コンテナクエリを有効にする */
  container-type: size;
}

/* 診察券 */
.medical-card-modal-card {
  /* コンテナの幅(100cqw) と コンテナの高さ(100cqh)×1.6 を比較 */
  width: min(100cqw, 100cqh * 1.6);
  font-size: 1.5em;
}

.medical-card-modal-card:hover {
  transform: none;
  cursor: auto;
}

.medical-card-modal-card .medical-card-clinic {
  font-size: 1.5rem;
}

.medical-card-modal-card .medical-card-recno {
  font-size: 1.5rem;
}

.medical-card-modal-card .medical-card-kanji-name {
  font-size: 1.5rem;
}

.medical-card-modal-card .medical-card-name {
  font-size: 1.5rem;
}

.medical-card-modal-card .medical-card-qr {
  position: absolute;
  right: 0;
  bottom: 0;
}

.medical-card-modal-card .medical-card-qr iframe {
  border: none;
  width: 150px;
  height: 150px;
  aspect-ratio: 1 / 1;
  display: block;
}

/* ナビボタン */
.medical-card-modal-content .medical-card-nav {
  width: 60px;
  height: 60px;
}

.medical-card-modal-content .medical-card-nav i {
  font-size: 30px;
}

/* インジケーター */
.medical-card-modal-content .medical-card-indicator {
  background: white;
}

.medical-card-modal-content .medical-card-indicator.active {
  background: #3498db;
}

/* 閉じるボタン */
.medical-card-modal-close {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 200px;
  padding: 8px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.medical-card-modal-close:hover {
  background: #ebebeb;
  border-color: #ccc;
}

.medical-card-modal-close i {
  font-size: 14px;
}

/* アニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ----- ▲モーダル ----- */
/* ========== ▲かざす診察券 ========== */
