body {
  margin: 0;
  font-family: 'Segoe UI', 'Noto Sans KR', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f9f9f9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  line-height: 1.2;
  color: #222;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.feature-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 14px;
  height: 14px;
  margin-right: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 14px;
  font-style: normal;
}

.feature-icon.icon-check {
  background-color: #38b456b5;
  color: #fff;
}

.feature-icon.icon-gift {
  background-color: #fff2cc;
  color: #ff9800;
  border-radius: 5px;
  font-size: 16px;
}

.price-page-main {
  flex-direction: column;
  align-items: center;
}

.price-section {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-title {
  font-size: 3em;
  font-weight: 800;
  margin-bottom: 15px;
  color: #222;
}

.page-subtitle {
  font-size: 1.2em;
  color: #666;
  margin-bottom: 50px;
}

.plan-selector-container {
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.plan-dropdown {
  padding: 12px 40px 12px 20px;
  font-size: 1.1em;
  font-weight: 500;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  outline: none;
  min-width: 220px;
  color: #444;
  transition: all 0.3s ease;
}

.plan-dropdown:hover {
  border-color: #c9c9c9;
}

.plan-dropdown:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

.plan-selector-container::after {
  content: '▼';
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
  font-size: 0.9em;
}

.plan-cards-container {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-content: center;
  align-items: stretch;
  width: 100%;
}

.plan-cards-container.active {
  display: grid;
}

.price-card {
  background-color: #fff;
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.price-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

#plan-6-month .price-card {
  background-color: #fcfcfc;
  border: 1px solid #eee;
}

#plan-6-month .price-card.basic {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
}

#plan-6-month .price-card.plus {
  background-color: #ffffff;
  border: 2px solid #1a73e8;
  border-radius: 14px;
}

#plan-6-month .price-card.complete {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
}

#plan-1-month .price-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#plan-1-month .price-card.recommended-1month {
  border: 2px solid #1a73e8;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
  margin-bottom: 25px;
  padding-top: 10px;
}

.plan-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.8em;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  text-transform: uppercase;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: block;
}

.plan-badge.discount-badge {
  background-color: #ffb800;
  color: #333;
  top: 30px;
  left: 54px;
  box-shadow: none;
}

.plan-badge.top-pick-badge {
  background-color: #1a73e8;
  color: #fff;
  font-size: 0.9em;
  top: 16px;
  padding: 8px 18px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.plan-badge.top-pick-badge-1month {
  background-color: #1a73e8;
  color: #fff;
  font-size: 0.9em;
  top: 16px;
  padding: 8px 18px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.plan-name {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 5px;
  margin-top: 30px;
  color: #333;
}

.plan-price-info {
  font-size: 1em;
  color: #888;
  margin-bottom: 0;
}

.plan-price-info .original-price {
  text-decoration: line-through;
  margin-right: 5px;
}

.plan-price-info .per-item {
  font-size: 0.9em;
}

.card-current-price {
  display: flex;
  align-items: flex-end;
  margin-bottom: 20px;
  line-height: 1;
}

.card-current-price .currency {
  font-size: 1.6em;
  font-weight: bold;
  color: #222;
  margin-right: 2px;
  transform: translateY(-0.1em);
}

.card-current-price .amount {
  font-size: 3.5em;
}

.card-current-price .per-month {
  font-size: 1em;
  color: #555;
  margin-left: 2px;
  transform: translateY(0.2em);
}

.total-saving {
  font-size: 0.85em;
  color: #777;
  margin-bottom: 25px;
  line-height: 1.4;
}

.select-plan-button {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.select-plan-button:not(.primary) {
  background-color: #f0f0f0;
  color: #555;
  border: 1px solid #e0e0e0;
}

.select-plan-button:not(.primary):hover {
  background-color: #e6e6e6;
  color: #333;
  text-decoration: none;
}

.select-plan-button.primary {
  background-color: #1a73e8;
  color: #fff;
  border: 1px solid #1a73e8;
}

.select-plan-button.primary:hover {
  background-color: #145cb3;
  border-color: #145cb3;
  text-decoration: none;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  text-align: left;
  flex-grow: 1;
}

.plan-features li {
  margin-bottom: 10px;
  font-size: 0.95em;
  color: #555;
  display: flex;
  align-items: flex-start;
}

.promotion-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.plan-features li svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.promotion-badge.super-chance {
  background-color: #ffe082;
  color: #333;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75em;
  font-weight: 600;
  margin-right: 8px;
  text-transform: none;
  box-shadow: none;
  position: static;
  transform: none;
}

.promotion-item .promotion-text {
  color: #333;
  font-weight: 500;
}

.view-all-features {
  display: block;
  color: #1a73e8;
  font-size: 0.95em;
  font-weight: 500;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 0;
}

.view-all-features:hover {
  text-decoration: underline;
}

.disclaimer {
  font-size: 0.8em;
  color: #888;
  margin-bottom: 15px;
  max-width: 800px;
  margin-right: auto;
}

.compare-plans-link {
  font-size: 1em;
  margin-bottom: 40px;
}

.compare-plans-link a {
  color: #1a73e8;
  font-weight: 600;
}

.compare-plans-link a .arrow-icon {
  font-size: 0.8em;
  vertical-align: middle;
  margin-left: 5px;
}

.bottom-bar {
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #222;
  color: #aaa;
  padding: 30px 0;
  font-size: 0.9em;
  border-top: 1px solid #333;
  z-index: 1000;
}

.bottom-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.copyright-info,
.bottom-links,
.payment-language {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.bottom-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 15px;
}

.bottom-links li a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.bottom-links li a:hover {
  color: #fff;
  text-decoration: underline;
}

.payment-language {
  gap: 20px;
}

.payment-icons {
  height: 20px;
  filter: brightness(0.8);
}

.language-selector {
  display: flex;
  align-items: center;
  color: #aaa;
  cursor: pointer;
  font-weight: 500;
}

.language-selector .flag-icon {
  width: 20px;
  height: auto;
  border-radius: 3px;
  margin-right: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.language-selector .arrow-down-icon {
  font-size: 0.7em;
  margin-left: 5px;
  vertical-align: middle;
}

@media (max-width: 900px) {
  .bottom-bar .company-info .separator {
    display: none !important;
  }

  .page-title {
    font-size: 2.2em;
  }

  .page-subtitle {
    font-size: 1em;
  }

  .plan-cards-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .price-card {
    padding: 25px;
  }

  .card-current-price .amount {
    font-size: 3em;
  }

  .disclaimer {
    font-size: 0.65rem;
  }

  .bottom-bar {
    position: static;

  }

  .bottom-bar-content {
    flex-direction: column;
    text-align: center;
  }

  .copyright-info,
  .bottom-links,
  .payment-language {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .copyright-info p {
    width: 100%;
  }

  .bottom-links {
    margin-top: 10px;
  }
}

@media (max-width: 600px) {
  .price-section {
    padding: 0 15px;
  }



  .price-card {
    padding: 20px;
  }

  .plan-name {
    font-size: 1.6em;
  }

  .card-current-price .amount {
    font-size: 2.5em;
  }

  .select-plan-button {
    font-size: 1em;
    padding: 12px 15px;
  }
}

.company-info {
  font-size: 0.8em;
  color: #d1d1d1;
}

.company-info .separator {
  margin: 0 8px;
  color: #555;
}

.company-info span {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .company-info {
    font-size: 0.8em;
  }

  .company-info br {
    display: none;
  }

  .company-info span {
    display: block;
    margin-bottom: 4px;
  }
}

.price-card.card-disabled {
  position: relative;
  cursor: not-allowed;
}

.price-card.card-disabled::after {
  content: '現在購読中';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 10;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}

.price-card.card-disabled .select-plan-button {
  pointer-events: none;
}

.language-selector-wrapper {
  position: relative;
  display: inline-block;
}

.language-options {
  display: none;
  position: absolute;
  bottom: 150%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  border: 1px solid #444;
  border-radius: 8px;
  list-style: none;
  padding: 5px;
  margin: 0;
  width: 150px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  z-index: 1001;
}

.language-options.active {
  display: block;
}

.language-options li a {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  color: #ddd;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.2s ease;
}

.language-options li a:hover {
  background-color: #555;
  color: #fff;
  text-decoration: none;
}

.language-options li a .flag-icon {
  width: 25px;
  margin-right: 10px;
}