/* ベースレイアウト */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  margin: 0;
  background-color: #f1f1f1;
  background-color: rgba(246, 248, 250, 1);
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 80px;
  background-color: #fff;
  margin-top: 0px;
  margin-bottom: 0px;
  height: 75px;
}

.logo {
  font-size: 36px;
  font-weight: 700;
  font-family: "DM Sans", Arial, sans-serif, serif;
  color: #fff;
}

.logo a {
  font-size: 36px;
  font-weight: 700;
  font-family: "DM Sans", Arial, sans-serif, serif;
  color: #fff;
  text-decoration-line: none;
}

.twc-logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 600;
  position: initial;
  padding: 8px 22px;
  left: 30px;
}

/* ユーザー情報 */
.user {
  display: flex;
  align-items: center;
  gap: 10px;
  top: 14px;
  right: 35px;
  margin: 0px;
  background-color: #fff;
  border-radius: 50px;
  padding: 5px 5px;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1002;
}

.user:hover {
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
  box-shadow: 1px 8px 17px rgba(0, 0, 0, 0.15);
}

.fa-trash:before {
  top: -2px;
}

.user-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.username {
  color: #000000;
  font-weight: 300;
  font-size: 14px;
  font-family: Arial, sans-serif;
}

.username_login {
  color: #000000;
  font-weight: 900;
  font-size: 18px;
  font-family: Arial, sans-serif;
}

/* ナビゲーション */
.nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-size: 20px;
  padding: 5px 10px;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #007bff;
}

/* ステップインジケーター */
.step-container {
  display: flex;
  font-family: Arial, sans-serif;
  width: 650px;
  margin: auto;
  position: relative;
  z-index: 0;
  flex-wrap: nowrap;
}

.step {
  flex: 1;
  text-align: center;
  padding: 16px 20px;
  font-size: 20px;
  border-radius: 6px;
  font-weight: bold;
  color: black;
  background-color: white;
  position: relative;
  clip-path: polygon(0% 0%, 93% 0%, 100% 50%, 93% 100%, 0% 100%);
  min-width: 100px;
  white-space: nowrap;
}

.step.completed {
  padding-left: 10px;
  background-color: #1DA1F2;
  color: white;
  z-index: 3;
}

.step.current {
  background-color: #91cefa;
  color: white;
  z-index: 2;
  border-bottom: 1px solid #91cefa;
  animation: fadeBlink 1.3s infinite alternate ease-in-out;
}

.step:not(.completed):not(.current) {
  padding-right: 10px;
  background-color: rgb(241, 241, 241);
  color: black;
  z-index: 1;
}

.step:not(:first-child) {
  margin-left: -40px;
}

.step:last-child {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

@keyframes fadeBlink {
  0% { background-color: #5cc1ff; }
  100% { background-color: #a2dbfe; }
}

/* メインコンテンツ */
.main {
  background-color: #F5F8FA;
  background-color:rgb(249, 251, 255);

  padding: 10px 0 10px;
}

.step1, .step2, .step21 {
display: flex;
flex-direction: column;
align-items: center;
margin: 25px auto;
background-color: #fff;
padding: 20px;
min-width: 620px;
width: fit-content;
border: 16px solid #f0f5f9;
border-radius: 36px;
/* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); */
}

.step3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 25px auto;
  background-color: #fff;
  padding: 20px;
  min-width: 660px;
  width: fit-content;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.step3 #form {
  width: 100%;
}

.step3 h3 {
  text-align: center;
  font-size: 24px;
  padding: 30px 0px 10px;
}

.toggle-container input, .date-input-group input {
  margin-right: 10px !important;
  width: 100%;
}

#confirmDelete {
  background-color: red;
  color: #fff;
  font-size: 19px;
  font-weight: bold;
}

.table-container .fa-heart:before {
  content: "\f004";
  padding-right: 10px;
  color: rgb(255, 128, 128);
}

.table-container .fa-retweet:before {
  content: "\f079";
  padding-right: 10px;
  color: rgb(22, 217, 0);
}

.table-container .fa-calendar-alt:before, .fa-calendar-days:before {
  content: "\f073";
  padding-right: 10px;
  color: rgb(217, 128, 0);
}

/* プログレスバー */
.progress-container {
  display: flex;
  width: 460px;
  margin: 20px auto 5px;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
  height: 30px;
  position: relative;
}

.progress-bar {
  height: 30px;
  width: 0%;
  background: linear-gradient(to right, #03a7ff, #bfb1ff);
  transition: width 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
  animation: progressLight 2s infinite linear;
}

@keyframes progressLight {
  0% { left: -100%; }
  100% { left: 100%; }
}

#progress-text {
  margin-top: 5px;
  font-size: 25px;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 30px;
  color: #333;
}

/* フォームスタイル */
.form {
  background: #f7f9fa;
  border: 1px solid #f9f9f9;
  padding: 25px 30px;
  width: 100%;
  border-radius: 16px;
}

.hello_user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 30px;
  margin-bottom: 15px;
}

.hello_user .user-icon {
  width: 35px;
  height: 35px;
}

.hello_user .username_login {
  color: #3c3c3c;
  font-weight: 900;
  font-size: 22px;
}

.step21 h3 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 15px;
  font-weight: bold;
  color: #25282e;
}

.attention {
  width: fit-content;
  background-color: #f8f9fa;
  margin: 10px auto;
  color: #536471;
  padding: 10px;
  border-radius: 6px;
  border-left: 4px solid #1DA1F2;
  border-radius: 4px;
}

.attention p {
  padding: 5px;
  font-size: 14px;
  color: #536471;
}

/* ファイルアップロード */
.file-upload {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f9fa;
  padding: 10px 15px;
  border-radius: 8px;
  border: 2px dashed #3498db;
  cursor: pointer;
  transition: 0.3s;
  max-width: 400px;
  margin: 40px auto;
}

.file-upload:hover {
  background: #e3f2fd;
  border-color: #2980b9;
}

.custom-file-label {
  background: #1DA1F2;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  transition: 0.3s;
  font-size: 14px;
  font-weight: bold;
}

.custom-file-label:hover {
  background: #0c86da;
}
.fa-solid.fa-folder-closed {
color: #fff;
padding: 3px;
}

.file-input {
  display: none;
}

#fileName {
  font-size: 14px;
  color: #555;
  line-break: anywhere;
}

/* トグルスイッチ */
.toggle-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.toggle-group label {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
}

.toggle-group label i {
  margin-right: 10px;
  color: #1DA1F2;
}

.toggle_switch {
  position: relative;
}

.toggle_switch input {
  display: none;
}

.toggle_switch label {
  display: block;
  width: 52px;
  height: 25px;
  background-color: #e6ecf0;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
}

.toggle_switch input:checked + label {
  background-color: #1DA1F2;
}

.toggle_switch label::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 19px;
  height: 19px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}

.toggle_switch input:checked + label::after {
  transform: translateX(25px);
}

.toggle-container, .date-container {
background-color: rgb(251, 253, 255);
border-radius: 16px;
border: 6px solid rgba(241, 250, 255, 1);
border: 6px solid rgba(240, 245, 250, 0.66);
padding: 16px;
margin-bottom: 25px;
/* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); */
}

.toggle-container span {
  font-size: 14px;
  margin-left: 2px;
  color: #666;
}

.toggle-container input, .date-input-group input {
  border: 1px solid #ced4da;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  margin-right: 28px;
  width: 100%;
  max-width: 120px;
  margin-bottom: 0px;
}

.date-input-group input {
  max-width: 170px;
}

.date-input-group {
  display: flex;
  justify-content: space-between;
}

.date-input-group label {
  font-size: 14px;
  margin-right: 5px;
}

/* ボタン */
.button-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
  width: 100%;
  max-width: 600px;
  padding: 20px;
  background-color: #fff;
}

.btn {
  padding: 12px 20px;
  height: 50px;
  font-size: 14px;
  margin: 0px 5%;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.button-container .btn {
  padding: 14px 28px;
  border-radius: 1px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
  width: 100%;
  max-width: 200px;
}

.btn-cancel {
  background-color: #ededed;
  color: #868282;
  width: 20%;
  border: 1px solid #bfbfbf;
}

.btn-cancel:hover {
  background-color: #ededed;
  transform: translateY(-2px);
}

.btn-complete {
  background-color: #1DA1F2;
  color: #fff;
}

.btn-complete:hover {
  background-color: #0d8bf0;
  transform: translateY(-2px);
}

.btn.btn-complete.delete {
  background-color: rgb(255, 33, 33);
  font-size: 18px;
  font-weight: bold;
  width: 100%;
}

.step21 .btn.btn-complete.delete {
  background-color: #1DA1F2;
  border-radius: 6px;
  /* width: max-content; */
}

.step21 #form {
  max-width: 510px;
}

/* ============================================
   ポップアップ - 画面中央配置と全体スクロール対応
   ============================================ */
/* ポップアップ - 確実な垂直中央配置 */
/* ポップアップ - 完全な中央配置（最終版） */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  background: rgba(177, 186, 189, 0.61);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 15px;
  overflow-y: hidden;
}

.popup.show {
  opacity: 1;
  pointer-events: auto;
}

.popup-content {
  background: rgba(255, 255, 255, 1);
  border-radius: 16px;
  padding: 55px 22px;
  width: 380px;
  text-align: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transform: scale(0.8);
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.popup.show .popup-content {
  transform: scale(1);
}

.popup-content h2 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #333;
}

.popup-content .description {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #666;
  margin-bottom: 0px;
  line-height: 1.5;
}

.popup-content .description2 {
  font-family: Arial, sans-serif;
  font-size: 10px;
  color: #666;
  margin-top: 10px;
  margin-bottom: 0px;
  line-height: 1.5;
}

.popup-content .price {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", "Ubuntu", "Hiragino Sans", "Yu Gothic UI", "Meiryo UI", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 43px;
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
  margin-top: 30px;
}

.btn2 {
  display: block;
  margin: 20px auto;
  width: 80%;
  padding: 12px;
  font-size: 15px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.2s ease, transform 0.2s ease;
  margin-bottom: 15px !important;
  margin-top: 10px !important;
}

.btn-primary {
  background: #007bff;
  color: #fff;
}

.btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.btn-cancel2 {
  background: #ffffff;
  color: #939393;
  font-size: 14px;
}

.btn-cancel2:hover {
  background: #f4f4f4;
  color: #939393;
  transform: translateY(-2px);
}

/* テーブルスタイル */
.table-container {
  width: 100%;
  max-width: 600px;
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: 30px auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px 20px;
  text-align: left;
}

th {
  background: linear-gradient(to right, #afceeb, #a9cade);
  color: #fff;
  font-size: 18px;
  padding: 10px 15px;
}

.label {
  font-weight: 400;
  color: #555;
  width: 40%;
  background-color: #f1f1f1;
}

.value {
  width: 60%;
}

.container-in {
  padding: 0px 24px;
}

/* CTA コンテナ */
.cta-container {
  background-color: #f7f9fa;
  border-radius: 12px;
  padding: 30px;
  width: 90%;
  margin: 40px auto;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-top: 4px solid #1DA1F2;
}

.cta-heading {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #14171A;
}

.cta-description {
  font-size: 16px;
  color: #657786;
  margin-bottom: 25px;
}

.cta-timer {
  padding: 10px 0px;
}

.cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0 10px;
}

.cta-button.primary {
  background-color: #1DA1F2;
  color: white;
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.2);
}

.cta-button.primary:hover {
  background-color: #0c8ed9;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29, 161, 242, 0.3);
}

.cta-container.highlight {
  background: linear-gradient(135deg, #f7f9fa 0%, #e8f5fd 100%);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .user {
    display: flex;
    align-items: center;
    gap: 10px;
    top: 15px;
    right: 10px;
    background-color: #fff;
    border-radius: 50px;
    padding: 5px 5px;
    margin: 0px;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .step3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 25px auto;
    background-color: #fff;
    padding: 20px;
    min-width: auto;
    width: fit-content;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  button#deleteDbBtn.btn-cancel {
    font-size: 12px;
    width: max-content;
    padding: 0px 15px;
  }

  .twc-logo {
    font-size: 20px;
    font-weight: bold;
    left: 0px;
    position: absolute;
  }
footer .twc-logo{
  position: relative;
}
  .header {
    flex-direction: column;
    padding: 15px;
    margin-bottom: 1px;
    height: 70px;
    background-color: #fff;
  }

  .logo {
    font-size: 32px;
  }

  .logo a {
    font-size: 32px;
  }

  .nav ul {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
    gap: 10px;
  }

  .nav a {
    font-size: 15px;
    padding: 3px 8px;
  }

  .step-container {
    width: 95%;
    max-width: 500px;
  }

  .step {
    font-size: 16px;
    padding: 12px 10px;
    min-width: 80px;
  }

  .step:not(:first-child) {
    margin-left: -15px;
  }

  .step:last-child {
    clip-path: polygon(0% 0%, 88% 0%, 100% 50%, 88% 100%, 0% 100%);
  }

  .step1, .step2, .step21 {
    min-width: 90%;
    margin: 15px auto;
    padding: 20px 15px;
  }

  .progress-container {
    width: 90%;
  }

  .form {
    width: 100%;
    padding: 15px;
    font-size: 14px;
  }

  .toggle-group {
    flex-direction: row;
    align-items: flex-start;
  }

  .step21 .btn.btn-complete.delete {
    /* width: max-content; */
  }

  .popup-content {
    width: 90%;
    max-width: 350px;
    padding: 40px 15px;
  }

  .button-container {
    flex-direction: row;
    gap: 20px;
    padding: 15px 5px;
  }

  .table-container {
    min-width: 90%;
  }

  .hello_user .username_login {
    font-size: 18px;
  }

  .step21 h3 {
    font-size: 24px;
  }

  .date-input-group {
    flex-direction: column;
  }

  .date-input-group div {
    margin-bottom: 15px;
  }

  .toggle-container input, .date-input-group input {
    margin-right: 0;
  }

  .file-upload {
    flex-direction: column;
    max-width: 90%;
  }

  .header .username_login {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  h1 {
    margin: 10px;
    font-size: 24px;
  }

  .header {
    padding: 10px;
  }

  .logo {
    font-size: 28px;
  }

  .logo a {
    font-size: 28px;
  }

  .user-icon {
    width: 30px;
    height: 30px;
  }

  .nav a {
    font-size: 14px;
    padding: 3px 6px;
  }

  .step-container {
    width: 100%;
    max-width: 350px;
    margin: 20px auto;
  }

  .step {
    font-size: 13px;
    padding: 8px 5px;
    min-width: 60px;
  }

  .step:not(:first-child) {
    margin-left: -10px;
  }

  .step:last-child {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  }

  .btn {
    width: 100%;
    margin: 5px 0;
  }

  .hello_user {
    padding: 2px 15px;
  }

  .hello_user .username_login {
    font-size: 16px;
  }

  .header .username_login {
    font-size: 12px;
  }

  .step21 h3 {
    font-size: 20px;
  }

  .toggle-group label {
    font-size: 18px;
  }

  .popup-content {
    padding: 30px 15px;
    width: 85%;
  }

  .popup-content .price {
    font-size: 36px;
  }

  th {
    font-size: 16px;
    padding: 5px 10px;
  }

  td {
    padding: 10px 15px;
    font-size: 14px;
  }

  .fa-trash:before {
    padding: 7px 9px;
    margin-right: 7px;
    font-size: 16px;
  }

  #progress-text {
    font-size: 20px;
  }

  .custom-file-label {
    padding: 8px 12px;
    font-size: 13px;
  }

  #fileName {
    font-size: 13px;
  }

  .cta-heading {
    font-size: 20px;
  }

  .cta-description {
    font-size: 14px;
  }

  .cta-button {
    width: 90%;
    margin: 10px auto;
    padding: 12px 20px;
    font-size: 15px;
  }
}

@media (max-width: 390px) {
  .toggle-group label {
    font-size: 16px;
  }

}
@media (max-width: 360px) {
  .step-container {
    max-width: 300px;
  }
  .toggle-group label {
    font-size: 16px;
  }
  .step {
    font-size: 11px;
    padding: 8px 3px;
    min-width: 50px;
  }

  .step:not(:first-child) {
    margin-left: -8px;
  }
}

/* ステップコンテナの横並びを確実にする */
.step-container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  width: 650px;
  margin: 20px auto;
  position: relative;
  z-index: 0;
}

.step {
  display: block !important;
  flex: 1 1 auto !important;
  text-align: center;
  padding: 16px 20px;
  font-size: 20px;
  font-weight: bold;
  color: black;
  background-color: white;
  position: relative;
  clip-path: polygon(0% 0%, 93% 0%, 100% 50%, 93% 100%, 0% 100%);
  min-width: 100px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .container-in {
    padding: 0px 15px;
  }

  .step2.step21 {
    margin: 0px 10px;
  }

  .step2.step21 {
    width: 94%;
    margin: auto;
    /* border: 12px solid #f0f5f9; */
  }

  .step-container {
    width: 95% !important;
    max-width: 500px !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
  }

  .testimonial-container {
    width: 100%;
  }

  .faq-section {
    padding: 40px 0px;
  }

  .tweet-archive-delete-container {
    padding: 40px 0px;
  }

  .step {
    font-size: 16px;
    padding: 12px 10px;
    min-width: 80px !important;
    display: block !important;
  }

  .step:not(:first-child) {
    margin-left: -15px;
  }
}

@media (max-width: 480px) {
  .step-container {
    width: 100% !important;
    max-width: 350px !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    margin: 20px auto !important;
  }

  .step {
    font-size: 13px !important;
    padding: 8px 5px !important;
    min-width: 60px !important;
    display: block !important;
    flex: 1 1 auto !important;
  }

  .step:not(:first-child) {
    margin-left: -10px !important;
  }
}

@media (max-width: 360px) {
  .step-container {
    max-width: 300px !important;
    display: flex !important;
    flex-direction: row !important;
  }

  .step {
    font-size: 11px !important;
    padding: 8px 3px !important;
    min-width: 50px !important;
    display: block !important;
  }

  .step:not(:first-child) {
    margin-left: -8px !important;
  }
}

/* ============================================
   決済ポップアップスタイル
   ============================================ */
.popup-content {
  padding: 20px 22px 0px;
}

.popup-content.pricing-style {
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 480px;
  transform: scale(0.9);
  text-align: center;
  /* margin: auto; */
}

/* 長い言語用 */
[lang="id"] .popup-content.pricing-style,
[lang="ms"] .popup-content.pricing-style,
[lang="ar"] .popup-content.pricing-style {
    max-width: 550px;
}

/* PC・大画面 */
.popup.show .popup-content.pricing-style {
  transform: scale(0.75);
}
.popup.show .popup-content.pricing-style.pattern-c {
  transform: scale(0.80);
}

.popup.show .popup-content.pricing-style.has-tabs {
  transform: scale(0.70);
}
.popup.show .popup-content.pricing-style.pattern-b{
  transform: scale(0.70);
}
/* タブレット */
@media (max-width: 1024px) and (min-width: 769px) {
  .popup.show .popup-content.pricing-style {
    transform: scale(0.80);
  }
  .popup.show .popup-content.pricing-style.has-tabs {
  transform: scale(0.75);
}
.popup.show .popup-content.pricing-style.pattern-b{
  transform: scale(0.8);
}
}

/* スマホ縦向き */
@media (max-width: 768px) {
  .popup.show .popup-content.pricing-style {
    transform: scale(0.90);
  }
  .popup.show .popup-content.pricing-style.has-tabs {
  transform: scale(0.85);
}
.popup.show .popup-content.pricing-style.pattern-b{
  transform: scale(0.86);
}

[lang="id"] .toggle-option-c,
[lang="ms"] .toggle-option-c,
[lang="fr"] .toggle-option-c,
[lang="de"] .toggle-option-c,
[lang="pt"] .toggle-option-c,
[lang="ar"] .toggle-option-c {
    font-size: 14px;
}
[lang="id"] .popup.show .popup-content.pricing-style.pattern-c,
[lang="fr"] .popup.show .popup-content.pricing-style.pattern-c,
[lang="de"] .popup.show .popup-content.pricing-style.pattern-c,
[lang="pt"] .popup.show .popup-content.pricing-style.pattern-c,
[lang="ms"] .popup.show .popup-content.pricing-style.pattern-c,
[lang="ar"] .popup.show .popup-content.pricing-style.pattern-c {
    max-width: 550px;
    width: -webkit-max-content;
}

}

/* 小さいスマホ縦向き */
@media (max-width: 390px) {
  .popup.show .popup-content.pricing-style {
    transform: scale(0.85);
  }
  .popup.show .popup-content.pricing-style.has-tabs {
  transform: scale(0.85);
}
.popup.show .popup-content.pricing-style.pattern-b{
  transform: scale(0.76);
}
}

/* 横向き全般 */
@media (orientation: landscape) and (max-height: 600px) {
  .popup.show .popup-content.pricing-style {
    transform: scale(0.65);
  }

  .popup.show .popup-content.pricing-style.pattern-b{
  transform: scale(0.49);
}
}

/* 小さい横向き */
@media (orientation: landscape) and (max-height: 500px) {
  .popup.show .popup-content.pricing-style {
    transform: scale(0.55);
  }
    .popup.show .popup-content.pricing-style.pattern-b{
  transform: scale(0.4);
}

}

/* テストユーザー（タブあり） */
/* .popup.show .popup-content.pricing-style.has-tabs {
  transform: scale(0.78);
}

@media (max-width: 768px) {
  .popup.show .popup-content.pricing-style.has-tabs {
    transform: scale(0.70);
  }
}

@media (orientation: landscape) and (max-height: 600px) {
  .popup.show .popup-content.pricing-style.has-tabs {
    transform: scale(0.60);
  }
} */

/* ポップアップ内コンテンツ */
.popup-content.pricing-style .pricing-card-header {
  padding: 24px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  background-color: #f7f9fa;
}

.popup-content.pricing-style .pricing-badge {
  display: inline-block;
  background-color: #E8F5FD;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.popup-content.pricing-style .pricing-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: #333;
}

.popup-content.pricing-style .pricing-price {
  padding: 30px 0;
  text-align: center;
  background-color: #F7F9FA;
}

.popup-content.pricing-style .price-currency {
  font-size: 24px;
  font-weight: 600;
  vertical-align: top;
  position: relative;
  top: 8px;
}

.popup-content.pricing-style .price-amount {
  font-size: 70px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.popup-content.pricing-style .price-duration {
  display: block;
  font-size: 16px;
  width: fit-content;
  text-align: center;
  margin: auto;
  background-color: #E8F5FD;
  padding: 6px 12px;
  border-radius: 50px;
  margin-top: 10px;
}

.popup-content.pricing-style .popup-description {
  padding: 10px;
  text-align: center;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

.popup-content.pricing-style .pricing-features {
  list-style: none;
  padding: 0 24px 20px;
  margin: 0;
}

.popup-content.pricing-style .pricing-features li {
  padding: 2px 0;
  color: var(--text);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-content.pricing-style .pricing-features li i {
  color: var(--primary);
  margin-right: 10px;
}

.popup-content.pricing-style .pricing-cta {
  padding: 0 24px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.popup-content.pricing-style .pricing-button {
  display: inline-block;
  margin-bottom: 13px;
  margin-top: 10px;
  background-color: var(--primary);
  color: white;
  font-size: 24px;
  font-weight: bold;
  padding: 19px 24px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
  border: none;
  cursor: pointer;
  position: relative;
}


.popup-content.pricing-style.pattern-b .pricing-button {
  display: inline-block;
  margin-bottom: 13px;
  margin-top: 10px;
  background-color: var(--primary);
  color: white;
font-size: 25px;
font-weight: bold;
padding: 17px 24px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
  border: none;
  cursor: pointer;
  position: relative;
}

.popup-content.pricing-style .pricing-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(29, 161, 242, 0.3);
}

.popup-content.pricing-style .secondary-button {
  display: inline-block;
  background-color: transparent;
  color: #666;
  font-size: 16px;
  font-weight: 400;
  padding: 12px 24px;
  border-radius: 50px;
  border: 0px solid #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.popup-content.pricing-style .secondary-button:hover {
  background-color: #f5f5f5;
  color: #333;
}

.popup-content.pricing-style .terms-note {
  font-size: 12px;
  color: #999;
  margin: 0px 0 10px;
}

.popup-content.pricing-style .terms-note a {
  color: #1DA1F2;
  text-decoration: none;
}

.popup-content.pricing-style .terms-note a:hover {
  text-decoration: underline;
}

/* 決済方法セクション */
.secure-payment-section {
  padding: 0px 15px 10px;
  background-color: #f8fafc;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
}

/* 決済方法セクション */
.pattern-b .secure-payment-section {
/* ここから */
  background-color: rgb(241, 244, 246);
border-bottom-left-radius: 12px;
border-bottom-right-radius: 12px;
padding: 0px 10px 15px;
}

.payment-processor {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0px;
}

.payment-processor span {
  font-size: 14px;
  color: #555;
  margin-right: 8px;
}

.stripe-logo {
  height: 24px;
}

.payment-methods {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.payment-icon {
  height: 24px;
  filter: grayscale(20%);
  transition: filter 0.2s ease;
}

.payment-icon:hover {
  filter: grayscale(0%);
}

.security-badge {
  text-align: center;
  color: #1DA1F2;
  font-size: 14px;
  font-weight: 600;
}

.security-badge i {
  margin-right: 5px;
  color: #1DA1F2;
}

/* 決済ポップアップ - レスポンシブ */
@media (max-width: 768px) {
  .popup {
    padding: 10px;
  }

  .popup-content.pricing-style {
    max-width: 420px;
  }

  .popup-content.pricing-style .pricing-button {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 0px;
    padding: 12px 20px;
  }

  .popup-content.pricing-style .price-duration {
    font-size: 12px;
  }

  .popup-content.pricing-style .price-amount {
    font-size: 55px;
  }

  .popup-content.pricing-style .pricing-card-header {
    padding: 20px;
  }

  .popup-content.pricing-style .pricing-price {
    padding: 25px 0;
  }
}

@media (max-width: 480px) {
  .popup {
    padding: 8px;
  }

  .popup-content.pricing-style {
    width: 98%;
    max-width: 440px;
  }

  .popup-content.pricing-style .pricing-card-header {
    padding: 15px;
  }

  .popup-content.pricing-style .pricing-title {
    font-size: 18px;
  }

  .popup-content.pricing-style .price-amount {
    font-size: 45px;
  }

  .popup-content.pricing-style .pricing-price {
    padding: 20px 0;
  }

  .popup-content.pricing-style .pricing-features li {
    font-size: 13px;
    padding: 1px 0;
  }

  .popup-content.pricing-style .pricing-features {
    padding: 0 20px 15px;
  }

  .popup-content.pricing-style .secondary-button {
    font-size: 14px;
    padding: 10px 18px;
  }

  .popup-content.pricing-style .pricing-button {
    font-size: 18px;
    font-weight: bold;
    padding: 14px 20px;
  }

  .popup-content.pricing-style .pricing-cta {
    padding: 0 20px 8px;
  }

  .secure-payment-section {
    padding: 8px 12px 8px;
  }

  .payment-methods {
    gap: 6px;
  }

  .payment-icon {
    height: 18px;
  }
}

@media (max-width: 360px) {
  .popup {
    padding: 5px;
  }

  .popup-content.pricing-style {
    max-width: 310px;
  }

  .popup-content.pricing-style .pricing-card-header {
    padding: 12px;
  }

  .popup-content.pricing-style .pricing-title {
    font-size: 16px;
  }

  .popup-content.pricing-style .price-amount {
    font-size: 38px;
  }

  .popup-content.pricing-style .pricing-price {
    padding: 15px 0;
  }

  .popup-content.pricing-style .pricing-features {
    padding: 0 15px 12px;
  }

  .popup-content.pricing-style .pricing-features li {
    font-size: 12px;
    padding: 0.5px 0;
  }

  .popup-content.pricing-style .pricing-cta {
    padding: 0 15px 6px;
  }

  .popup-content.pricing-style .pricing-button {
    font-size: 14px;
    padding: 10px 15px;
  }

  .popup-content.pricing-style .secondary-button {
    font-size: 12px;
    padding: 8px 15px;
  }
}

/* その他の関連スタイル */
section#features {
  padding-top: 30px;
}

header.x-support-header {
  padding-top: 50px;
}

.x-feature-card .fa-calendar-days:before {
  color: #fff;
  padding: 0px;
}

.testimonial-container {
  padding-top: 50px;
}

/* ユーザードロップダウン */
.user-dropdown {
  position: relative;
  display: flex;
}

.user-dropdown .user-icon {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.user-dropdown:hover .user-icon {
  opacity: 0.8;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e1e8ed;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
  margin-top: 8px;
}

.user-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 12px 16px;
  border-bottom: 1px solid #e1e8ed;
}

.dropdown-header .username {
  font-weight: 600;
  color: #14171a;
  font-size: 14px;
}

.dropdown-divider {
  height: 1px;
  background-color: #e1e8ed;
  margin: 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: #14171a;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s ease;
  z-index: 999;
}

.dropdown-item:hover {
  background-color: #f7f9fa;
  color: #14171a;
}

.dropdown-item i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

.logout-btn:hover {
  background-color: #fff2f2;
  color: #e0245e;
}

@media (max-width: 768px) {
  .dropdown-menu {
    right: -10px;
    min-width: 160px;
  }
}


    /* ====================================================
       共通 & パターンA (既存スタイル)
       ==================================================== */
    .plan-tabs {
      display: flex;
      gap: 0;
      margin-bottom: 0px;
      background-color: #f5fbff;
    }

    .tab-button {
      flex: 1;
      padding: 15px 20px;
      background: transparent;
      border: none;
      border-bottom: 3px solid transparent;
      cursor: pointer;
      font-size: 16px;
      font-weight: 600;
      color: #666;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .tab-button i {
      font-size: 18px;
    }

    .tab-button:hover {
      color: #1DA1F2;
      background: rgba(29, 161, 242, 0.05);
    }

    .tab-button.active {
      color: #fff;
      border-bottom-color: #1DA1F2;
      background: #1DA1F2;
      border-top-left-radius: 5px;
      border-top-right-radius: 5px;
    }

    .plan-content {
      display: none;
    }

    .plan-content.active {
      display: block;
      animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(-10px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* ====================================================
       パターンB (新規デザイン) CSS
       ==================================================== */
    .popup-content.pricing-style.pattern-b {
      width: 95%;
      max-width: 650px;
      /* カードを並べるため少し広めに */
      padding: 30px 20px 20px;
      background: #f7f9fa;
      /* 全体背景を少しグレーに */
    }

    .pattern-b-title {
      font-size: 28px;
      color: #434343ff;
      margin-bottom: 12px;
      text-align: center;
    }

    .pattern-b-title .fa-trash:before {
top: -2px;
left: 5px;
}

    .plan-selection-container {
      display: flex;
      flex-direction: row;
      gap: 15px;
      justify-content: center;
      /* margin-bottom: 15px; */
      /* ここから */
      background-color: rgb(241, 244, 246);
border-top-left-radius: 12px;
border-top-right-radius: 12px;
padding: 20px 10px;
    }

    .plan-option {
      flex: 1;
      background: #fff;
      border: 4px solid #efeff0;
      border-radius: 12px;
      padding: 30px;
      cursor: pointer;
      position: relative;
      transition: all 0.2s ease;
      display: flex;
      flex-direction: column;
      align-items: center;
      min-width: 240px;
      /* PCでの最小幅 */
    }

    /* ホバー時の挙動 */
    .plan-option:hover {
      border-color: #e5e5e5ff;
      transform: translateY(-2px);
    }

    /* 選択された状態 */
    .plan-option.selected {
      border-color: rgb(101, 196, 255);
      border-color: #c3dff9;
      background-color: #f5fbff;
      box-shadow: 0 4px 12px rgba(29, 161, 242, 0.15);
      border-color: #8fccf1;
background-color: #e5f2ff;
box-shadow: 0 4px 12px rgba(29, 161, 242, 0.15);
    }

    /* ラジオボタン風インジケータ */
    .radio-indicator {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      border: 2px solid #ccc;
      margin-right: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      background: white;
      transition: all 0.2s;
    }

    .plan-option.selected .radio-indicator {
      background-color: #1DA1F2;
      border-color: #1DA1F2;
      background-color: #8fccf1;
border-color: #8fccf1;
background-color: #ffd882;
border-color: #ffd882;
    }

    .plan-option.selected .radio-indicator i.fa-check {
      font-size: 14px;
      color: #fff;
      font-weight: bold;
    }

.plan-header {
/* display: flex; */
position: absolute;
top: 8px;
left: 8px;
/* align-items: center; */
margin-bottom: 0px;
width: 100%;
justify-content: flex-start;
}
    .plan-name {
      display: block;
      font-size: 20px;
      font-weight: 700;
      color: #14171a;
    }

    .plan-price-display {
      margin-top: 15px;
      margin-bottom: 5px;
      color: #14171a;
      text-align: center;
    }

    .plan-price-display .currency {
font-size: 30px;
font-weight: 500;
vertical-align: top;
color: #525252;
    }

        .plan-price-display .amount {
      font-size: 42px;
      font-weight: 600;
      line-height: 1;
      font-size: 55px;
      font-weight: 600;
      line-height: 1;
      color: #3b3b3b;
      color: #524f4f;
      /* color: var(--primary); */
    }
    .pattern-c .plan-price-display .amount {
      font-size: 62px;
color: #1DA1F2;
    }

    .selected .plan-price-display .amount {
      color: var(--primary);
    }

    .plan-price-display .per-month {
      font-size: 14px;
      color: #657786;
    }

    .plan-subtext {
      font-size: 13px;
      color: #657786;
      margin-bottom: 15px;
      font-weight: 500;
    }

    .plan-mini-features {
      list-style: none;
      padding: 0;
      margin: 10px 0 20px 0;
      width: 100%;
      display: block;
      /* text-align: left; */
    }

    .plan-mini-features li {
      font-size: 15px;
      color: #536471;
      margin-bottom: 3px;
      /* display: flex; */
      align-items: center;
      padding: 1px 0px;
align-items: center;
    }

    .plan-mini-features li i {
      color: #1DA1F2;
      margin-right: 8px;
      min-width: 14px;
    }

    .plan-footer-tag {
      margin-top: auto;
      font-size: 14px;
      font-weight: 700;
      padding: 4px 0;
      width: 100%;
      text-align: center;
    }

/* サブスクプランが選択されている時は買い切りタグを非表示 */
.pattern-b:has(.plan-option[data-plan="subscription"].selected) .onetime-tag {
  display: none;
}

/* 買い切りプランが選択されている時はサブスクタグを非表示 */
.pattern-b:has(.plan-option[data-plan="onetime"].selected) .subscription-tag {
  display: none;
}

    .plan-footer-tag.infinite {
      color: #17bf63;
      /* 永久利用は緑っぽく */
    }

    .plan-footer-tag i {
      margin-right: 5px;
    }

    /* パターンBでの購入ボタン調整 */
    .pattern-b .pricing-cta {
      padding: 10px 0;
    }

    .pattern-b .pricing-button {
      width: 100%;
      max-width: 320px;
      margin: 0 auto 10px;
      display: block;
      box-shadow: 0 4px 14px rgba(29, 161, 242, 0.4);
    }

    .pattern-b .terms-note {
      margin-top: 15px;
      text-align: center;
    }
p.subuTtile0 {
    background-color: #e5f2ff;
display: inline-block;
padding: 3px 22px;
border-radius: 20px;
color: #218dc9;
font-size: 18px;
font-weight: bold;
margin-bottom: 15px;
}
    /* レスポンシブ: スマホでは縦並び */
    @media (max-width: 768px) {
      .plan-selection-container {
        flex-direction: row;
        gap: 15px;
      }


      .plan-option {
        width: 100%;
        min-width: auto;
        padding: 15px;
      }

      .popup-content.pricing-style.pattern-b {
        max-width: 400px;
        width: 99%;
        /* スマホでの幅制限 */
        padding: 25px 15px 0px;
      }

      .plan-price-display .amount {
        font-size: 34px;
      }
      .pattern-c .plan-price-display .amount {
        font-size: 48px;
  color: #1DA1F2;
      }
      .plan-header {
        margin-bottom: 10px;
      }

      .plan-name {
        margin-bottom: 2px;
font-size: 14px;
font-weight: 500;
color: #14171a;
}

.radio-indicator {
width: 22px;
height: 22px;
margin-right: 10px;
}
.plan-price-display .currency {
font-size: 18px;
font-weight: 500;
vertical-align: top;
color: #525252;
}

    .pattern-b-title {
      font-size: 22px;
      color: #434343ff;
      margin-bottom: 12px;
      text-align: center;
    }
    p.subuTtile0 {
background-color: #e5f2ff;
display: inline-block;
padding: 2px 20px;
border-radius: 20px;
color: #218dc9;
font-size: 16px;
font-weight: bold;
margin-bottom: 15px;
}
.plan-name {
display: block;
font-size: 18px;
font-weight: 700;
color: #14171a;
}
.popup-content.pricing-style.pattern-b .pricing-button {
  font-size: 20px;
  font-weight: bold;
  padding: 14px 24px;
}
    }

    /* 既存のCSS (スマホ対応) */
    @media (max-width: 480px) {
      p.subuTtile0 {
background-color: #e5f2ff;
display: inline-block;
padding: 2px 20px;
border-radius: 20px;
color: #218dc9;
font-size: 16px;
font-weight: bold;
margin-bottom: 15px;
}
          .pattern-b-title {
      font-size: 22px;
      color: #434343ff;
      margin-bottom: 12px;
      text-align: center;
    }
      .tab-button {
        font-size: 14px;
        padding: 12px 15px;
        gap: 5px;
      }

      .tab-button i {
        font-size: 16px;
      }
.plan-name {
font-size: 14px;
font-weight: 500;
color: #14171a;
}

.radio-indicator {
width: 22px;
height: 22px;
margin-right: 10px;
}

      .plan-price-display .amount {
        font-size: 32px;
      }

      .pattern-c .plan-price-display .amount {
        font-size: 48px;
color: #1DA1F2;
      }
.plan-price-display .currency {
font-size: 18px;
font-weight: 500;
vertical-align: top;
color: #525252;
}

.plan-name {
display: block;
font-size: 14px;
font-weight: 700;
color: #14171a;
}

.popup-content.pricing-style.pattern-b .pricing-button {
  font-size: 20px;
  font-weight: bold;
  padding: 14px 24px;
}
    }
