#payment-method-container-3,
#payment-method-container-4,
#payment-method-container-5 {
  display: none;
}
#service-container,
#payment-method-container-3,
#payment-method-container-4,
#payment-method-container-5 {
  width: 320px;
}
#whatsapp-form-container label {
  display: block;
  margin: 30px 0 0 0;
}
#templarte-copy-area > div {
  text-align: right;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f8f8f8;
}
#copy-btn {
  display: inline-block;
  background: none;
  margin: 5px 30px 0 0;
  border: none;
  color: #444;
}
#copy-btn:hover {
  background: none;
  text-decoration: underline;
  cursor: pointer;
}
#result-text {
  text-align: left;
  padding: 20px;
  white-space: pre-wrap; /* 改行やスペースを維持 */
}
#whatsapp-link-contact {
  width: 240px;
}
#whatsapp-link-contact img {
  margin-top: 15px;
  padding: 16px;
  border: 2px solid #25d366;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

/* ホバー時にちょっと浮く感じに */
#whatsapp-link-contact img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* 購入手順の表示部分 */
.payment-method-tab-viewer {
  margin-bottom: 30px;
}
.payment-method-tab-viewer p {
  margin: 0;
}
/* Tab area */
.payment-method-tab-viewer .tab-list {
  display: flex;
  margin: 50px 0 10px 0;
  padding: 0;
  gap: 10px;
}
.payment-method-tab-viewer .tab-list li {
  cursor: pointer;
  position: relative;
  display: inline-block;
  padding: 8px;
  border-radius: 5px;
  text-align: center;
}
.payment-method-tab-viewer .tab-list li span {
  display: inline-block;
  font-size: 10pt;
}
@media (min-width: 992px) {
  .payment-method-tab-viewer .tab-list li {
    padding: 15px;
  }
}
.payment-method-tab-viewer .tab-list li:nth-child(1) {
  /*background-color: #222;*/
  border: 3px solid #222;
}
.payment-method-tab-viewer .tab-list li:nth-child(2) {
  /*background-color: #ED1C24;*/
  border: 3px solid #ED1C24;
}
.payment-method-tab-viewer .tab-list li:nth-child(3) {
  /*background-color: #127EC8;*/
  border: 3px solid #2B79FF;
}
.payment-method-tab-viewer .tab-list li:nth-child(4) {
  /*background-color: #22B14C;*/
  border: 3px solid #22B14C;
}
.payment-method-tab-viewer .tab-list li.active::before {
  content: "";
  position: absolute;
  bottom: -12px; /* 矢印の位置（下に突き出す） */
  left: 50%;
  transform: translateX(-50%);
  display: block;

  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
}
.payment-method-tab-viewer .tab-list li.active:nth-child(1) {
  background-color: #222;
  color: #fff;
}
.payment-method-tab-viewer .tab-list li.active:nth-child(2) {
  background-color: #ED1C24;
  color: #fff;
}
.payment-method-tab-viewer .tab-list li.active:nth-child(3) {
  background-color: #2B79FF;
  color: #fff;
}
.payment-method-tab-viewer .tab-list li.active:nth-child(4) {
  background-color: #22B14C;
  color: #fff;
}
.payment-method-tab-viewer .tab-list li.active:nth-child(1)::before {
  border-top: 10px solid #222; /* ▼の色 */
}
.payment-method-tab-viewer .tab-list li.active:nth-child(2)::before {
  border-top: 10px solid #ED1C24; /* ▼の色 */
}
.payment-method-tab-viewer .tab-list li.active:nth-child(3)::before {
  border-top: 10px solid #2B79FF; /* ▼の色 */
}
.payment-method-tab-viewer .tab-list li.active:nth-child(4)::before {
  border-top: 10px solid #22B14C; /* ▼の色 */
}
.payment-method-tab-viewer .tab-area,
.service-process-detail-area,
.detail-toc {
  display: none;
  margin: 20px 0 30px 0;
  padding: 20px;
  border: 3px solid #222;
  border-radius: 5px;
}
.payment-method-tab-viewer .tab-area-1,
.service-process-detail-area,
.detail-toc {
  display: block;
  /*background-color: #222;*/
  border: 3px solid #222;
}
.payment-method-tab-viewer .tab-area-2 {
  /*background-color: #ED1C24;*/
  border: 3px solid #ED1C24;
}
.payment-method-tab-viewer .tab-area-3 {
  /*background-color: #127EC8;*/
  border: 3px solid #2B79FF;
}
.payment-method-tab-viewer .tab-area-4 {
  /*background-color: #22B14C;*/
  border: 3px solid #22B14C;
}

#order-process-viewer-detail-container #japan-shopping {
  background-color: #f0f0f0;
}
#order-process-viewer-detail-container #used-shopping {
  background-color: #fff0f0;
}
#order-process-viewer-detail-container #payment-service {
  background-color: #eafaff;
}
#order-process-viewer-detail-container #other-services {
  background-color: #f0fff0;
}
#order-process-viewer-detail-container > div > div {
  background-color: #fff;
}
#order-process-viewer-detail-container #other-services * {
  background-color: #f0fff0;
}
#order-process-viewer-detail-container > div > .note-section {
  background: none;
}
#order-process-viewer-detail-container .detail-area {
  margin-bottom: 50px;
  padding: 20px;
  border: 3px solid #222;
  border-radius: 5px;
}
#order-process-viewer-detail-container h2 {
  margin: 0;
  padding: 0 0 20px 0;
  border: none;
  font-size: 14pt;
}
.payment-method-tab-viewer h3 {
  margin: 0;
}
.payment-method-tab-viewer .service-process,
#order-process-viewer-detail-container .service-process-detail {
  list-style: none;
  margin: 20px 0 50px 0;
  padding-left: 0;
}
#order-process-viewer-detail-container .service-process-detail {
  margin-bottom: 20px;
}
.payment-method-tab-viewer .service-process > li,
#order-process-viewer-detail-container .service-process-detail > li {
  position: relative;
  display: block;
  margin: 0;
  padding: 12px 0 35px 60px;
}
#order-process-viewer-detail-container .service-process-detail > li {
  padding-bottom: 25px;
}
.payment-method-tab-viewer .service-process > li:last-child,
#order-process-viewer-detail-container .service-process-detail > li:last-child {
  padding-bottom: 0;
}
.payment-method-tab-viewer .service-process > li::before,
#order-process-viewer-detail-container .service-process-detail > li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  background-size: contain;
  border-radius: 25px;
  background-color: #2B79FF;
  background-repeat: no-repeat;
  background-position: center;
}
.payment-method-tab-viewer .service-process-proxy > li:nth-child(1)::before,
#order-process-viewer-detail-container .service-process-detail-proxy > li:nth-child(1)::before {
  background-image: url('../img/service-process-proxy-1.png');
}
.payment-method-tab-viewer .service-process-proxy > li:nth-child(2)::before,
#order-process-viewer-detail-container .service-process-detail-proxy > li:nth-child(2)::before {
  background-image: url('../img/service-process-proxy-2.png');
}
.payment-method-tab-viewer .service-process-proxy > li:nth-child(3)::before,
#order-process-viewer-detail-container .service-process-detail-proxy > li:nth-child(3)::before {
  background-image: url('../img/service-process-proxy-3.png');
}
.payment-method-tab-viewer .service-process-proxy > li:nth-child(4)::before,
#order-process-viewer-detail-container .service-process-detail-proxy > li:nth-child(4)::before {
  background-image: url('../img/service-process-proxy-4.png');
}
.payment-method-tab-viewer .service-process-proxy > li:nth-child(5)::before,
#order-process-viewer-detail-container .service-process-detail-proxy > li:nth-child(5)::before {
  background-image: url('../img/service-process-proxy-5.png');
}
.payment-method-tab-viewer .service-process-payment > li:nth-child(1)::before {
  background-image: url('../img/service-process-payment-1.png');
}
.payment-method-tab-viewer .service-process-payment > li:nth-child(2)::before {
  background-image: url('../img/service-process-payment-2.png');
}
.payment-method-tab-viewer .service-process-payment > li:nth-child(3)::before {
  background-image: url('../img/service-process-payment-3.png');
}
.payment-method-tab-viewer .service-process-payment > li:nth-child(4)::before {
  background-image: url('../img/service-process-payment-4.png');
}
.payment-method-tab-viewer .service-process > li:not(:last-child)::after,
#order-process-viewer-detail-container .service-process-detail-proxy > li:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25px;
  display: block;
  width: 1px;
  height: calc(100% - 50px);
  background-color: #2B79FF;
  z-index: 10;
}
#order-process-viewer-detail-container .service-process-detail-proxy > li:not(:last-child)::after {
  height: calc(100% - 25px);
}
.payment-method-tab-viewer .service-process ul,
#order-process-viewer-detail-container .service-process-detail-proxy ul {
  margin: 0;
}

.flow-list {
  padding: 0;
  list-style: none;
  font-size: 11pt;
}
.flow-list li {
  position: relative;
  padding-left: 30px;
}
.flow-list li::before {
  content: attr(data-icon);
  position: absolute;
  left: 0;
}
.note-section {
  margin-bottom: 50px;
}
.note-section ul li {
  padding-left: 20px;
}

/* 詳細ボタン */
.payment-method-tab-viewer .payment-method-detail-button {
  position: relative; /* 追加：beforeの基準にする */
  overflow: hidden;
  padding: 10px 65px 10px 50px;
  color: #fff;
  border-radius: 5px;
  display: inline-block;
}
.payment-method-tab-viewer .payment-method-detail-button span {
  position: relative;
  z-index: 1; /* テキストを上に */
}
.payment-method-tab-viewer p {
  margin-bottom: 20px;
}
.payment-method-tab-viewer .payment-method-detail-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* 背景を下に */
  transition: all 0.3s ease-in;
  transform: translateX(-101%);
  background-color: #fff;
}
.payment-method-tab-viewer .payment-method-detail-button:hover {
  text-decoration: none;
}
.payment-method-tab-viewer .payment-method-detail-button:hover::before {
  transform: translateX(0%);
}
.payment-method-tab-viewer .payment-method-detail-button::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 15px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: translateY(-50%) rotate(45deg); /* 「＞」の向き */
  display: block;
}
.payment-method-tab-viewer .payment-method-detail-button:hover span {
  position: relative;
  font-weight: bold;
  z-index: 1; /* テキストを上に */
}

.payment-method-tab-viewer .tab-area-1 .payment-method-detail-button {
  border: 1px solid #000;
  background-color: #000;
}
.payment-method-tab-viewer .tab-area-1 .payment-method-detail-button:hover {
  color: #000;
}
.payment-method-tab-viewer .tab-area-1 .payment-method-detail-button:hover::after {
  border-top: 2px solid #000;
  border-right: 2px solid #000;
}
.payment-method-tab-viewer .tab-area-2 .payment-method-detail-button {
  border: 1px solid #ED1C24;
  background-color: #ED1C24;
}
.payment-method-tab-viewer .tab-area-2 .payment-method-detail-button:hover {
  color: #ED1C24;
}
.payment-method-tab-viewer .tab-area-2 .payment-method-detail-button:hover::after {
  border-top: 2px solid #ED1C24;
  border-right: 2px solid #ED1C24;
}
.payment-method-tab-viewer .tab-area-3 .payment-method-detail-button {
  border: 1px solid #2B79FF;
  background-color: #2B79FF;
}
.payment-method-tab-viewer .tab-area-3 .payment-method-detail-button:hover {
  color: #2B79FF;
}
.payment-method-tab-viewer .tab-area-3 .payment-method-detail-button:hover::after {
  border-top: 2px solid #2B79FF;
  border-right: 2px solid #2B79FF;
}
.payment-method-tab-viewer .tab-area-4 .payment-method-detail-button {
  border: 1px solid #22B14C;
  background-color: #22B14C;
}
.payment-method-tab-viewer .tab-area-4 .payment-method-detail-button:hover {
  color: #22B14C;
}
.payment-method-tab-viewer .tab-area-4 .payment-method-detail-button:hover::after {
  border-top: 2px solid #22B14C;
  border-right: 2px solid #22B14C;
}

#payment-method-section h2,
#payment-method-section h3 {
  margin: 0 0 20px 0;
  padding: 0;
  border: none;
  font-size: 14pt;
}
#payment-method-section h3 {
  position: relative;
  margin: 0 0 20px 0;
  padding: 0 0 0 30px;
  border: none;
  font-size: 12pt;
}
#payment-method-section h3::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8px;
  margin: auto;
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background-color: #444;
}
#payment-method-section h3::after {
  content: '';
  display: none;
}
#payment-method-section .payment-method-table {
  margin-bottom: 50px;
}
#payment-method-section table td {
  word-break: break-word;
  border: 1px solid #444;
}
#payment-method-section table td:first-child {
  width: 20%;
  min-width: 130px;
  text-align: center;
}
#payment-method-section table td:first-child img {
  width: auto;
  height: 30px;
}
.text-underline {
  font-weight: bold;
  text-decoration: underline;
}
#wise-logo {
  height: 15px!important;
  margin: 10px 0 5px 0;
}
@media (min-width: 992px) {
  #payment-method-section table td:first-child {
    width: 20%;
    min-width: 180px;
    text-align: center;
  }
  #payment-method-section table td:first-child img {
    height: 50px;
  }
  #wise-logo {
    height: 25px!important;
    margin: 15px 0 10px 0;
  }
}

/* 配送方法 */
#shipping-method-section .shipping-method-wrapper a {
  color: #2B79FF;
  text-decoration: underline;
  text-decoration-style: dotted;
}
#shipping-method-section .shipping-method-wrapper a:hover {
  color: #72a6ff!important;
}
#shipping-method-section .shipping-method-wrapper {
  padding: 20px;
  border: 1px solid #444;
  margin-bottom: 50px;
}
#shipping-method-section .shipping-method-title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* 幅が足りない時は折り返す */
  margin-bottom: 10px;
  border-bottom: 1px solid #ccc;
}
#shipping-method-section .shipping-method-title {
  position: relative;
  margin: 0;
  padding: 10px 40px;
  font-size: 14pt;
  border: none;
}
#shipping-method-section .shipping-method-title.no-number {
  padding-left: 0;
}
#shipping-method-section .shipping-method-title span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  display: block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border: 1px solid #f22;
  border-radius: 12px;
}
#shipping-method-section .shipping-method-title::after {
  content: '';
  display: none;
}

#shipping-method-section .shipping-from-to {
  display: flex;
  gap: 0.5em;
  white-space: nowrap;
  margin-left: auto;
}

#shipping-method-section .shipping-from-to span::after {
  content: "⇒";
  margin-left: 0.3em;
}

#shipping-method-section .shipping-from-to span:last-child::after {
  content: "";
}
#shipping-method-section table th,
#shipping-method-section table td {
  border: 1px solid #444;
}
#shipping-method-section .background-gray,
#shipping-method-section table td:nth-child(1) {
  width: 25%;
  min-width: 100px;
  background-color: #f0f0f0;
}
#shipping-method-section .table-td1 td:not(:nth-child(1)) {
  width: 75%;
  min-width: 180px;
}
#shipping-method-section .table-td6 td:not(:nth-child(1)) {
  width: 12.5%;
  min-width: 55px;
}
#shipping-method-section table td ul,
#shipping-method-section table td p {
  margin: 0;
}
#shipping-method-section .table-wrapper {
  width: 100%;
  overflow-x: auto;
}
#shipping-method-section .text-center th,
#shipping-method-section .text-center td {
  text-align: center;
}
ul.no-marker {
  list-style: none!important;
  padding: 0;
}
ul.no-marker ul {
  list-style-type: disc; /* ネストしたulにも適用 */
}
