@charset "UTF-8";

/**************** sign in ****************/

/* animation-wrapper の設定 */
#animation-wrapper {
  width: 100%; /* 横幅を100%に設定 */
  height: 67dvh; /* 縦幅を画面の67%に設定(アドレスバーを考慮して最適な高さ) */
  display: flex;
  justify-content: center; /* 水平方向に中央揃え */
  align-items: center; /* 垂直方向に中央揃え */
  position: relative; /* 子要素の位置調整を行う */
  overflow: hidden; /* 画面外の要素を隠す */
}

/* Opening Video の設定 */
#opening-message-1, #opening-message-2 {
  width: auto; /* 横幅はコンテンツに依存 */
  height: 100%; /* 親要素の高さに合わせる */
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%); /* 横方向の中央揃え */
  opacity: 0; /* 初期状態で非表示 */
}

/* Logo Calligraphy & Final Content の共通設定 */
#logo-calligraphy,
#final-content {
  width: auto; /* 横幅はコンテンツに依存 */
  height: 100%; /* 親要素の高さに合わせる */
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%); /* 横方向の中央揃え */
  opacity: 0; /* 初期状態で非表示 */
  transition: opacity 1s ease-in-out;
}

.btn-custom-login {
  background-color: #06C755;
  color: #fff;
  font-weight: bold;
  padding: 20px 40px;
  border-radius: 5px;
  font-family: "M PLUS 1p", serif;
  margin-bottom: 50px;
}

@media screen and (max-height: 600px) {
  .btn-custom-login { margin-bottom: 20px; }
}


.btn-custom-login:hover {
  color: #D4AF37;
  border-color: #D4AF37;
}

#logo-landscape {
  margin-bottom: 40px;
   width: 800px;
   height: auto;
}

@media screen and (max-width: 768px) {
  /*#animation-wrapper {
    height: 67dvh;
  }*/
  #logo-landscape {
    margin-top: 60px;
    margin-bottom: 50px;
    width: 350px; /* 画面の横幅に合わせる */
    height: auto; /* アスペクト比を維持 */
  }
}

/**************** user new ****************/

.step {
  /* 基本設定 */
  height: 30px; /* ボックスの高さを指定 */
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover; /* 背景画像をボックスに収める */
  background-position: center; /* 背景画像を中央に配置 */
  text-align: left;
  /*text-align: center;*/
  border-radius: 8px; /* 角丸（必要に応じて変更） */
  padding-left: 0px; /* 必要な分だけ左に寄せる */
}

.step-off {
  color: #707070;
  background-image: url('/images/step-off-background.png');
}

.step-on {
  font-weight: bold;
  color: #FAF3E0;
  background-image: url('/images/step-on-background.png');
}


/**************** user mypage ****************/

.profile-icon {
  width: 50px;
  height: auto;
}

.profile-icon-2 {
  width: 20px;
  height: auto;
}

.mypage-menu-container {
  margin: 80px 0px;
}

.mypage-menu {
  width: 180px;
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 10px;
  background-color: #0A3D62;
  color: #FAF3E0;
  border: 2px solid #D4AF37;
  cursor: pointer;
  text-align: center;
  box-shadow: 0px 0px 15px 3px #D4AF37;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mypage-menu:hover {
  transform: scale(1.1); /* 1.1倍に拡大 */
  box-shadow: 0px 0px 20px 5px #D4AF37; /* ホバー時の影を強調 */
}

.mypage-menu i {
  font-size: 6em;
  margin-bottom: 10px; /* アイコンと文字の間隔を調整 */
}

.mypage-menu:hover i {
  animation: beat-animation 0.5s infinite alternate ease-in-out;
}

@keyframes beat-animation {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

.mypage-menu span {
  font-size: 1.2em;
}

@media screen and (max-width: 768px) {
  .mypage-menu-container {
    margin: 20px 0px;
  }

  .mypage-menu {
    width: 45%;
    box-shadow: 0px 0px 10px 2px #D4AF37;
  }

  .mypage-menu span {
    font-size: 1em;
  }
}

/*
　チュートリアル
*/
.modal {
  z-index: 9999;
}
/* チュートリアルのモーダルのカスタマイズ */
.modal-content {
  background-color: #FAF3E0; /* アイボリー */
  color: #333;
  border-radius: 10px;
  border-color: #D4AF37;
}

.modal-title {
  font-weight: bold;
  color: #D4AF37; /* 金色 */
}

.modal-footer .btn-primary {
  background-color: #0A3D62; /* 藍色 */
}

.modal-footer .btn-secondary {
  background-color: #FAF3E0;
  color: #0A3D62;
  border-color: #0A3D62;
}

.modal-footer .btn-primary:hover {
  color: #D4AF37;
}

/* メニューのハイライト（強調表示） */
.highlight-menu {
  border: 3px solid #D4AF37;
  box-shadow: 0px 0px 15px 3px #D4AF37;
  z-index: 9998;
}

#nextStep:focus {
  box-shadow: 2px 2px 2px #d2b978;
}

@media screen and (max-width: 768px) {
  .modal-content {
    padding: 5px !important;  /* モーダル内の余白を減らす */
  }
  .modal-header, .modal-title, .modal-body, .modal-footer {
    padding: 0px 5px;
  }
}

/**************** gift_list index ****************/
.btn-list-check {
  background-color: #D4AF37;
  color: #0A3D62;
  font-weight: bold;
  font-size: 1.3em;
  padding: 10px 0px;
  border: solid 3px #0A3D62;
  border-radius: 5px;
  width: 80%;
}

.btn-list-check:hover {
  background-color: #0A3D62;
  color: #D4AF37;
}

/**************** call_numbdr order_details ****************/
.highlight {
  background-color: yellow;
  color: black;
  padding: 2px 4px;
  border-radius: 3px;
}

.sender_info {
  border-bottom: 1px solid #0A3D62;
  background-color: #0A3D62;
  color: #fff;
  border-radius: 9px 9px 0px 0px;
  font-weight: bold;
  font-size: 1.1em;
}

.call_number_status {
  border-bottom: dotted #0A3D62;
}

/* アコーディオンのヘッダー背景色を交互に変更 */
.accordion-header-item.bg-even {
  background-color: #eee7d5;
}

/* アコーディオン全体の幅を100%にする */
.accordion-body, .accordion-header {
  width: 100%;
}

/* テーブルを親要素の幅いっぱいに広げる */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table-responsive .table {
  width: 100%;
  /*table-layout: fixed;*/
}

.accordion-body th, .accordion-body td {
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  border: none !important;
}

.accordion-body td.order-lists-border {
  border-right: 1px solid #d0caba !important;
}

.accordion-body th {
  color: #0A3D62;
}

.accordion-header img.img-fluid {
  max-width: 100%;
  height: auto;
}

.accordion-button:focus {
  box-shadow: none !important;
  border-color: #d3d3d3 !important;
}

/* アコーディオンが開いているときのスタイル */
.accordion-button:not(.collapsed) {
  background-color: #D4AF37 !important; /* 背景色 (金色) */
  color: #0A3D62 !important; /* テキストカラー (インディゴ) */
  border-color: #D4AF37 !important; /* ボーダーカラー */
}

/* トグルスイッチの色を変更 */
.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1); /* 矢印を白くする */
}

.btn-line {
  background-color: #06C755;
  color: #fff;
  font-weight: bold;
  padding: 8px 40px;
  border-radius: 5px;
  font-family: "M PLUS 1p", serif;
}

.btn-line:hover {
  color: #D4AF37;
  border-color: #D4AF37;
}

.gift-option-label {
  cursor: pointer;
}

.gift-option-label.selected {
  background-color: #D4AF37;
  border-color: #D4AF37;
}

.gift-radio {
  display: none;
}


/**************** call_numbdr index ****************/
/* call-number-table のスタイル適用 */
.call-number-table {
  width: 100%;
  border-collapse: collapse;
}

/* 2行ずつ色を変える */
.call-number-table tbody tr:nth-child(4n+1),
.call-number-table tbody tr:nth-child(4n+2) {
  background-color: #ede7d4 !important; /* グレー系 */
}

.call-number-table tbody tr:nth-child(4n+3),
.call-number-table tbody tr:nth-child(4n+4) {
  background-color: #FAF3E0 !important; /* 白 */
}

/* 各セルのデフォルト枠線を削除 */
.call-number-table tbody td {
  border: none !important;
}

/* 2行毎の境界線を調整 */
.call-number-table tbody tr:nth-child(4n+2) td,
.call-number-table tbody tr:nth-child(4n+4) td {
  border-bottom: 2px solid #0A3D62 !important;/* 線の色 */
}

/* ホバー時の背景色 */
.call-number-table tbody tr.hovered {
  background-color: #D4AF37 !important;
  transition: background-color 0.3s ease;
}

.call-number-link {
  cursor: pointer;
}

.btn-call-number {
  background-color: #FAF3E0;
  color: #0A3D62;
  font-weight: bold;
  padding: 5px 30px;
  border-radius: 5px;
  border-color: #0A3D62;
}

.btn-call-number-2 {
  background-color: #0A3D62;
  color: #FAF3E0;
  font-weight: bold;
  padding: 5px 100px;
  border-radius: 5px;
  border-color: #0A3D62;
}

@media (hover: hover) {
  .btn-call-number:hover, .btn-call-number-2:hover {
    color: #D4AF37;
    border-color: #D4AF37;
    box-shadow: 2px 2px 2px #0A3D62;
  }
}

.status-badge-1 {
  background-color: #F5F5DC; /* 生成り色 */
  color: #5C4827; /* くすみブラウン */
}

.status-badge-2 {
  background-color: #E1C16E; /* 黄土色 */
  color: #4A321C; /* 深みのあるダークブラウン */
}

.status-badge-3 {
  background-color: #C9A368; /* 砂色 */
  color: #3D2A14; /* 焦げ茶 */
}

.status-badge-4 {
  background-color: #B78C3C; /* 丁子茶 */
  color: #FFFFFF; /* 白 */
}

.status-badge-5 {
  background-color: #D4AF37; /* 金色 */
  color: #FFFFFF; /* 白 */
}

.call-number-card {
  border: solid 2px #D4AF37;
  border-radius: 8px;
  background-color: #ede7d4;
  box-shadow: 2px 2px 2px #D4AF37;
}

/* ホバー時の背景色 */
.all-index-table tbody tr.hovered {
  background-color: #D4AF37 !important;
  transition: background-color 0.3s ease;
}

.btn-all-index {
  background-color: #FAF3E0;
  color: #0A3D62;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 5px;
  border-color: #0A3D62;
}

/*.btn-call-number-2 {
  background-color: #0A3D62;
  color: #FAF3E0;
  font-weight: bold;
  padding: 5px 100px;
  border-radius: 5px;
  border-color: #0A3D62;
}*/

@media (hover: hover) {
  .btn-all-index:hover {
    color: #D4AF37;
    border-color: #D4AF37;
    box-shadow: 2px 2px 2px #0A3D62;
  }
}

/**************** pages ****************/
.pages-title {
  font-weight: bold;
  margin-top: 25px;
  color: #0A3D62;
}

.pages-section {
  font-weight: bold;
  margin-top: 25px;
  padding-bottom: 15px;
  color: #D4AF37;
  border-bottom: solid 1px #D4AF37;
  font-size: 1.8em;
}

.pages-content, .pages-tokushoho-content {
  font-size: 0.8em;
}

.pages-content ol {
  counter-reset: number; /* 数値カウンターを初期化 */
  list-style: none; /* 既存の番号を無効化 */
  padding-left: 10px;
  margin-left: 0;
}

@media screen and (max-width: 768px) {
  .pages-content ol {
    padding-left: 5px;
  }
}

.pages-content ol > li {
  position: relative;
  padding-top: 7px;
  padding-left: 15px;
}

.pages-content ol > li::before {
  position: absolute;
  left: 0;
  top: 7px;
  content: counter(number) ". ";
  counter-increment: number;
}

.pages-content ul {
  padding-left: 10px; /* 少し左に余白 */
  margin-left: 0;
}

.pages-content ul li {
  padding-left: 0; /* olに付けたpaddingを継承しないように */
  position: static; /* olのliのposition: relativeを打ち消し */
  list-style: circle inside !important;
}

@media screen and (max-width: 768px) {
  .pages-content ul {
    padding-left: 5px;
  }
}

.pages-tokushoho-content ul {
  padding-left: 7px; /* 少し左に余白 */
  margin-left: 0;
}

.pages-tokushoho-content ul li {
  list-style: disc inside !important;
}

.pages-tokushoho-content ul ul li {
  list-style: circle inside !important;
}


/*========= help index ===============*/
/* 1階層目のスタイル */
.help-accordion-title {
  border: 1px solid #0A3D62;
  color: #0A3D62;
  padding: 10px;
  cursor: pointer;
  border-radius: 7px;
}

.help-accordion-content {
  border: 1px solid #D4AF37;
  background-color: #FAF3E0;
  border-radius: 0 0 4px 4px;
}

/* 2階層目のスタイル */
.help-accordion-content .help-accordion-title {
  background-color: #FAF3E0;
  color: #0A3D62;
  padding: 10px;
  border: 1px solid #0A3D62;
  cursor: pointer;
  border-radius: 4px;
}

.help-accordion-content .help-accordion-content {
  background-color: #fff;
  padding: 10px;
  border: 1px solid #D4AF37;
  border-radius: 0 0 4px 4px;
}

.help-usage-on {
  font-size: 1.1em;
  border: 1px solid #D4AF37!important;
  background-color: #D4AF37!important;
  color: #0A3D62!important;
  border-bottom: none!important;
  border-radius: 4px 4px 0 0!important;
}

/* アイコンを180度回転させる（上下反転） */
.rotate-fa {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.reference_link {
  text-decoration: underline;
  color: #0A3D62;
}

.no-margin {
  margin: 0;
}


/*========= new_year_templates index ===============*/
/* モーダル内の中央寄せ器 */
.preview-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  /* モーダルヘッダー/フッターを除いた高さを確保（だいたいでOK） */
  min-height: 60vh;
  padding: 12px;
  background: #111; /* 画像縦長でも見栄え良く */
}

/* 画像/動画の最大サイズ指定（横は90%・縦は画面8割まで） */
.preview-media{
  display:block;
  margin: 0 auto;              /* 中央寄せの保険 */
  width:auto;
  height:auto;
  max-width: 80vw;
  max-height: 80vh;            /* まずはvhで */
  object-fit: contain;
}

/* iOS Safari 対策：dvh を優先（対応ブラウザで正確になる） */
@supports (max-height: 80dvh){
  .preview-media{ max-height: 80dvh; }
}

/* PCでは少し大きくてもOKにする（任意） */
@media (min-width: 992px){
  .preview-media{ max-width: 1100px; } /* 上限 */
}

.nytpl-modal-header {
  padding: 16px 12px;   /* 上下の余白を広げる */
  text-align: center;   /* タイトル中央揃え（任意） */
}


/*========= new_year_card_lists select_template ===============*/
/* ===== 固定ヘッダー全体 ===== */
.fixed-header-wrapper {
  position: fixed;
  top: 70px;
  z-index: 990;
  left: 0;
  right: 0;
  background-color: #FAF3E0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ヘッダーの高さ分の余白を確保 */
.fixed-header-space { height: 83px; }

@media screen and (max-width: 768px) {
  .fixed-header-space { height: 98px; }
  .fixed-header-wrapper { top: auto; }
}

.template-accordion-title-wrapper {
  width: 94%;
  max-width: 856px;
}

.template-box {
  width: 90%;
  max-width: 700px;
  border: 1px solid #0A3D62;
  border-radius: 10px;
  color: #0A3D62;
  box-shadow: 2px 2px 2px #0A3D62;
}

/* アコーディオンタイトル */
.template-accordion-title {
  font-size: 1.1em;
  border: 1px solid #0A3D62;
  color: #FAF3E0;
  padding: 10px;
  cursor: pointer;
  border-radius: 4px;
  background-color: #0A3D62;
}

/* アコーディオンコンテンツ */
.template-accordion-content {
  border: 1px solid #D4AF37;
  background-color: #FAF3E0;
  border-radius: 0 0 4px 4px;
  padding: 10px;
}

/* 回転アニメーション用 */
.rotate-fa {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* ブロック全体に下線と余白 */
.nycl-block {
  border-bottom: 1px dashed #ccc;
}

/*========= users select_orders ===============*/
.select_orders-box {
  display: flex;
  flex-direction: column; /* 縦並び */
  align-items: center;     /* 中央揃え */
  gap: 80px;               /* ボタン間の余白 */
  margin: 100px 0px;
}

.select_orders-menu {
  width: 90%;
  max-width: 600px;
  padding: 30px 10px;
  border-radius: 10px;
  background-color: #0A3D62;
  color: #FAF3E0;
  border: 2px solid #D4AF37;
  text-align: center;
  box-shadow: 0px 0px 15px 1px #D4AF37;
  font-size: 1.7em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  text-decoration: none;
}

.select_orders-menu:hover {
  transform: scale(1.03);
}

