/* css/modern.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+JP:wght@400;500;700;800;900&display=swap');

:root {
  --bg-color: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-primary-light: #EBF7F1; /* lp-green[0] */
  --text-main: #212529;
  --text-muted: #868e96;
  --text-dark: #495057;
  --border-color: #e9ecef;
  --border-solid: #212529;
  
  --sayhi-color: #8b5cf6;
  --nolang-color: #56B48A; /* lp-green[5] */
  --nolang-hover: #49B590; /* lp-green[6] */

  /* NoLang Shadow Tokens */
  --shadow-base-sm: 3px;
  --shadow-hover-sm: 1.5px;
  --shadow-base-xl: 6px;
  --shadow-hover-xl: 3px;

  --font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border-color);
  z-index: 100;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.header__logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.header__logo-text {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

/* Language Selector */
.lang-selector {
  position: relative;
}

.lang-selector__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-dark);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  border: 2px solid var(--border-solid);
  background: var(--bg-color);
  cursor: pointer;
  box-shadow: var(--shadow-base-sm) var(--shadow-base-sm) 0 var(--border-solid);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.lang-selector__trigger:hover {
  background: var(--bg-secondary);
  color: var(--text-main);
  transform: translateY(calc(-1 * var(--shadow-base-sm)));
  box-shadow: var(--shadow-base-sm) var(--shadow-base-sm) 0 var(--border-solid);
}

.lang-selector__caret {
  font-size: 0.75rem;
  transition: transform 200ms ease;
}

.lang-selector__trigger[aria-expanded="true"] .lang-selector__caret {
  transform: rotate(180deg);
}

.lang-selector__menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--bg-color);
  border: 2px solid var(--border-solid);
  border-radius: 12px;
  padding: 0.5rem 0;
  list-style: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 200;
}

.lang-selector__menu--open {
  display: block;
}

.lang-selector__menu li a {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

.lang-selector__menu li a:hover {
  background: var(--bg-secondary);
  color: var(--text-main);
}

.lang-selector__item--active a {
  color: var(--nolang-color) !important;
  font-weight: 700 !important;
}

/* Main */
.main {
  flex: 1;
  padding: 4rem 0 6rem;
  background: var(--bg-color);
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeUp 0.8s ease-out forwards;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-main);
  background: var(--bg-color);
  border: 2px solid var(--border-solid);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-base-sm) var(--shadow-base-sm) 0 var(--border-solid);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.hero__badge:hover {
  transform: translateY(calc(-1 * var(--shadow-base-sm)));
  box-shadow: var(--shadow-base-sm) var(--shadow-base-sm) 0 var(--border-solid);
}

.hero__badge i {
  font-size: 1.1rem;
}

.hero__title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-dark);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 700;
}

/* Transition Visual */
.transition-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 0 auto 4rem;
  padding: 2.5rem;
  background: var(--bg-primary-light);
  border: 2px solid var(--border-solid);
  border-radius: 24px;
  box-shadow: var(--shadow-base-xl) var(--shadow-base-xl) 0 var(--border-solid);
  animation: fadeUp 0.8s ease-out 0.1s forwards;
  opacity: 0;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.transition-visual:hover {
  transform: translateY(calc(-1 * var(--shadow-base-xl)));
  box-shadow: var(--shadow-base-xl) var(--shadow-base-xl) 0 var(--border-solid);
}

.transition-visual__service {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.transition-visual__logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-color);
  border: 2px solid var(--border-solid);
  box-shadow: var(--shadow-base-sm) var(--shadow-base-sm) 0 var(--border-solid);
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.transition-visual__logo:hover {
  transform: translate(
    calc(var(--shadow-base-sm) - var(--shadow-hover-sm)),
    calc(var(--shadow-base-sm) - var(--shadow-hover-sm))
  );
  box-shadow: var(--shadow-hover-sm) var(--shadow-hover-sm) 0 var(--border-solid);
}

.transition-visual__logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.transition-visual__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.transition-visual__name--active {
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.05rem;
}

.transition-visual__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.transition-visual__arrow i {
  font-size: 2rem;
  color: var(--text-main);
  animation: slideRight 1.5s infinite;
}

/* Promo Banner */
.promo-banner {
  background: var(--bg-primary-light);
  border: 2px solid var(--border-solid);
  border-radius: 2rem;
  padding: 3.5rem;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-base-xl) var(--shadow-base-xl) 0 var(--border-solid);
  animation: fadeUp 0.8s ease-out 0.2s forwards;
  opacity: 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.promo-banner:hover {
  transform: translateY(calc(-1 * var(--shadow-base-sm)));
  box-shadow: var(--shadow-base-xl) var(--shadow-base-xl) 0 var(--border-solid);
}

.promo-banner::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(86,180,138,0.15) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.promo-banner__content, .promo-banner__action {
  position: relative;
  z-index: 1;
}

.promo-banner__logo {
  height: 40px;
  margin-bottom: 2rem;
}

.promo-banner__title {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--text-main);
  line-height: 1.3;
}

.promo-banner__text {
  color: var(--text-dark);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 2rem;
  line-height: 1.8;
  max-width: 600px;
}

.promo-banner__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.promo-banner__list li {
  position: relative;
  padding-left: 2rem;
  color: var(--text-dark);
  font-size: 1.05rem;
  font-weight: 700;
}

.promo-banner__list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--nolang-color);
  font-size: 1.2rem;
}

.promo-banner__action {
  display: flex;
  align-items: center;
}

.promo-banner .cta-button {
  background: var(--nolang-color);
  color: #fff;
  border-color: var(--border-solid);
  box-shadow: var(--shadow-base-xl) var(--shadow-base-xl) 0 var(--border-solid);
}

.promo-banner .cta-button:hover {
  background: var(--nolang-hover);
  box-shadow: var(--shadow-hover-xl) var(--shadow-hover-xl) 0 var(--border-solid);
}

/* Cards */
.card-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeUp 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.card {
  background: var(--bg-color);
  border: 2px solid var(--border-solid);
  border-radius: 1.5rem;
  padding: 2.5rem;
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  box-shadow: var(--shadow-base-xl) var(--shadow-base-xl) 0 var(--border-solid);
}

.card:hover {
  transform: translateY(calc(-1 * var(--shadow-base-xl)));
  box-shadow: var(--shadow-base-xl) var(--shadow-base-xl) 0 var(--border-solid);
}

.card--highlight {
  background: var(--bg-primary-light);
  border-color: var(--nolang-color);
  box-shadow: var(--shadow-base-xl) var(--shadow-base-xl) 0 var(--nolang-color);
}

.card--highlight:hover {
  box-shadow: var(--shadow-base-xl) var(--shadow-base-xl) 0 var(--nolang-color);
}

.card--thank-you {
  background: var(--bg-color);
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  background: var(--bg-secondary);
  color: var(--text-main);
  border: 2px solid var(--border-solid);
}

.card--highlight .card__icon {
  background: var(--bg-color);
  color: var(--nolang-color);
  border-color: var(--nolang-color);
}

.card__icon--thank-you {
  background: var(--bg-color);
  color: var(--sayhi-color);
  border: 2px solid var(--border-solid);
}

.card__title {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.card--highlight .card__title {
  color: var(--nolang-color);
}

.card__text {
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.card__list {
  list-style: none;
  margin-bottom: 2rem;
}

.card__list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.85rem;
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 700;
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.25rem;
  height: 1.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23212529' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'%3E%3C/path%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Button */
.cta-wrapper {
  margin-top: 1rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--bg-color);
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 900;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  text-decoration: none;
  border: 2px solid var(--border-solid);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  width: max-content;
  box-shadow: var(--shadow-base-xl) var(--shadow-base-xl) 0 var(--border-solid);
}

/* Press animation */
.cta-button:hover {
  transform: translate(
    calc(var(--shadow-base-xl) - var(--shadow-hover-xl)),
    calc(var(--shadow-base-xl) - var(--shadow-hover-xl))
  );
  box-shadow: var(--shadow-hover-xl) var(--shadow-hover-xl) 0 var(--border-solid);
}

.card--highlight .cta-button {
  background: var(--nolang-color);
  color: #fff;
  border-color: var(--border-solid);
  box-shadow: var(--shadow-base-xl) var(--shadow-base-xl) 0 var(--border-solid);
}

.card--highlight .cta-button:hover {
  background: var(--nolang-hover);
  box-shadow: var(--shadow-hover-xl) var(--shadow-hover-xl) 0 var(--border-solid);
}

.cta-button i {
  transition: transform 0.3s ease;
}

.cta-button:hover i {
  transform: translateX(4px);
}

/* Contact */
.contact {
  text-align: center;
  margin-top: 5rem;
  padding-top: 3rem;
  animation: fadeUp 0.8s ease-out 0.3s forwards;
  opacity: 0;
}

.contact__title {
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.contact__text {
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  background: var(--bg-color);
  border: 2px solid var(--border-solid);
  border-radius: 9999px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  box-shadow: var(--shadow-base-sm) var(--shadow-base-sm) 0 var(--border-solid);
}

.contact__email:hover {
  background: var(--bg-secondary);
  transform: translateY(calc(-1 * var(--shadow-base-sm)));
  box-shadow: var(--shadow-base-sm) var(--shadow-base-sm) 0 var(--border-solid);
}

/* Footer */
.footer {
  padding: 3rem 0;
  border-top: 2px solid var(--border-color);
  background: var(--bg-color);
}

.footer__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__link {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--nolang-color);
}

.footer__copyright {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Loading */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-color);
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-color);
  border-top-color: var(--nolang-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1.5rem;
}

.loading p {
  color: var(--text-main);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.05em;
  animation: pulse 2s infinite;
}

/* Animations */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideRight {
  0% { transform: translateX(-4px); opacity: 0.7; }
  50% { transform: translateX(4px); opacity: 1; }
  100% { transform: translateX(-4px); opacity: 0.7; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* RTL Support */
[dir="rtl"] .card__list li {
  padding-left: 0;
  padding-right: 2rem;
}

[dir="rtl"] .card__list li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .lang-selector__menu {
  right: auto;
  left: 0;
}

/* Responsive */
@media (max-width: 640px) {
  .hero__title {
    font-size: 2rem;
  }
  
  .transition-visual {
    padding: 1.5rem;
    gap: 1rem;
    flex-direction: row;
  }
  
  .transition-visual__logo {
    width: 64px;
    height: 64px;
  }
  
  .transition-visual__logo img {
    width: 40px;
    height: 40px;
  }
  
  .promo-banner {
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .promo-banner__title {
    font-size: 1.5rem;
  }
  
  .promo-banner__text {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .card {
    padding: 1.75rem 1.5rem;
  }
  
  .cta-button {
    width: 100%;
  }
}
