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

:root {
  --bg-color: #050505;
  --surface-color: #111111;
  --surface-light: #1c1c1c;
  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  --accent-color: #d4af37; /* Gold */
  --accent-hover: #b5952f;
  --accent-gradient: linear-gradient(135deg, #d4af37 0%, #f3e5ab 100%);
  --border-color: rgba(255, 255, 255, 0.1);
  --font-family: 'Inter', 'Noto Sans JP', sans-serif;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.text-center {
  text-align: center;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 3rem; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; margin-bottom: 2rem; text-align: center; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

p { font-size: 1rem; font-weight: 300; margin-bottom: 1.5rem; color: var(--text-secondary); }

/* Layout & Containers */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 100px 0;
  position: relative;
}

/* Glass Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.logo span {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* Hamburger Menu (Desktop: hidden) */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  margin: 6px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* Nav Login Button */
.nav-login-btn {
  background: var(--accent-gradient);
  color: #000 !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: inline-block;
  font-size: 0.9rem !important;
}
.nav-login-btn:hover {
  opacity: 0.8;
  color: #000 !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 32px;
  background: var(--accent-gradient);
  color: #000;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
  box-shadow: none;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, rgba(5,5,5,0) 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

.hero p.subtitle {
  color: var(--accent-color);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.hero h1 {
  background: linear-gradient(180deg, #FFFFFF 0%, #AAAAAA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 30px;
}

.hero-content {
  max-width: 800px;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.feature-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 40px 30px;
  border-radius: 16px;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  background: var(--surface-light);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* Pricing Section */
.pricing {
  background-color: var(--surface-color);
  text-align: center;
}

.pricing-card {
  background: var(--bg-color);
  border: 1px solid var(--accent-color);
  border-radius: 20px;
  padding: 50px;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--accent-gradient);
}

.price {
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 20px 0;
}

.price span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 300;
}

.pricing-features {
  list-style: none;
  margin: 30px 0;
  text-align: left;
}

.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent-color);
  margin-right: 15px;
  font-weight: bold;
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* Footer */
footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-color);
  background: var(--surface-color);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.copyright {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* Animations (Reveal) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Tokushoho Table */
.tokushoho-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: var(--surface-color);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.tokushoho-table tr {
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.tokushoho-table tr:last-child {
  border-bottom: none;
}

.tokushoho-table tr:hover {
  background: var(--surface-light);
}

.tokushoho-table th {
  width: 30%;
  padding: 25px 30px;
  text-align: left;
  font-weight: 600;
  color: var(--accent-color);
  background: rgba(255, 255, 255, 0.02);
  vertical-align: top;
  border-right: 1px solid var(--border-color);
}

.tokushoho-table td {
  padding: 25px 30px;
  color: var(--text-primary);
  line-height: 1.8;
  vertical-align: top;
}

/* Content Pages (FAQ, Privacy, Tokushoho) */
.page-header {
  padding: 150px 0 50px;
  text-align: center;
  background: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
}

.content-section {
  padding: 60px 0;
}

.content-section h2 {
  text-align: left;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

.content-section h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-section p {
  margin-bottom: 1.5rem;
}

.content-section ul, .content-section ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  font-weight: 300;
}

.content-section li {
  margin-bottom: 0.5rem;
}

/* FAQ Accordion */
.faq-item {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--surface-light);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-color);
  transition: var(--transition);
}

.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  padding: 20px 0;
  margin: 0;
  border-top: 1px solid var(--border-color);
}

/* Forms */
.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--surface-color);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group label .required {
  font-size: 0.8rem;
  background: var(--accent-color);
  color: #000;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 10px;
}

.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border-color);
  background: var(--surface-light);
  color: var(--text-primary);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.form-submit {
  text-align: center;
  margin-top: 30px;
}

.form-submit .btn {
  width: 100%;
}

/* Vimeo Showcase Embed */
.vimeo-showcase-wrapper {
  margin: 40px auto;
  max-width: 900px;
  min-height: 1000px;
}

.vimeo-showcase-container {
  padding: 56.25% 0 0 0;
  position: relative;
  min-height: 1000px;
}

.vimeo-showcase-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* FAQ Tabs */
.faq-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.faq-tab-btn {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
}

.faq-tab-btn:hover {
  border-color: var(--accent-color);
  color: var(--text-primary);
}

.faq-tab-btn.active {
  background: var(--accent-gradient);
  color: #000;
  border-color: transparent;
}

.faq-tab-content {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.faq-tab-content.active {
  display: block;
}

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

/* Usage Steps Section */
.usage-steps-section {
  margin: -40px auto 60px;
  text-align: center;
  position: relative;
  z-index: 10;
}
.usage-steps-title {
  color: var(--accent-color);
  font-size: 1.4rem;
  margin-bottom: 30px;
}
.usage-steps-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.usage-step-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px 20px;
  flex: 1;
  min-width: 280px;
  max-width: 350px;
}
.usage-step-number {
  color: var(--accent-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}
.usage-step-img {
  width: 100%;
  max-width: 150px;
  height: auto;
  border-radius: 8px;
  margin: 0 auto 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: block;
}
.usage-step-text {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0;
}
.usage-step-note {
  font-size: 0.85rem;
  font-weight: normal;
  color: var(--text-secondary);
  display: block;
  margin-top: 5px;
}
.usage-step-link {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-block;
  transition: var(--transition);
}
.usage-step-link:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

/* Rich Editor Content */
.rich-text-content { color: var(--text-primary); line-height: 1.8; }
.rich-text-content h1, .rich-text-content h2, .rich-text-content h3 { margin-top: 2.5rem; margin-bottom: 1.5rem; color: var(--text-primary); }
.rich-text-content h2 { border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; color: var(--accent-color); }
.rich-text-content p { margin-bottom: 1.5rem; }
.rich-text-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.5rem 0; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.rich-text-content iframe { max-width: 100%; margin: 1.5rem 0; background: #000; border-radius: 8px; }
.rich-text-content ul, .rich-text-content ol { margin-left: 1.5rem; margin-bottom: 1.5rem; color: var(--text-secondary); }
.rich-text-content li { margin-bottom: 0.5rem; }
.rich-text-content a { color: var(--accent-color); text-decoration: underline; }
.rich-text-content strong { font-weight: 600; color: var(--text-primary); }

/* Premium Contents List */
.content-cards-container { display: flex; flex-direction: column; gap: 20px; max-width: 900px; margin: 0 auto 40px; }
.content-card { display: block; text-decoration: none; color: var(--text-primary); background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; transition: var(--transition); }
.content-card-header { display: flex; align-items: center; padding: 15px 20px; cursor: pointer; transition: background 0.3s; }
.content-card-header:hover { background: rgba(255, 255, 255, 0.05); }
.content-thumbnail { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; margin-right: 20px; flex-shrink: 0; }
.content-thumbnail-placeholder { width: 120px; height: 80px; background: rgba(255, 255, 255, 0.1); border-radius: 8px; margin-right: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--text-secondary); }
.content-info { flex-grow: 1; }
.content-info h3 { margin-bottom: 8px; font-size: 1.1rem; }
.content-toggle-icon { font-size: 0.85rem; color: var(--accent-color); font-weight: 600; }
.content-card-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; background: #000; }
.content-card-body.active { padding: 20px; border-top: 1px solid var(--border-color); }
.content-card-body iframe { width: 100%; max-width: 100%; margin: 0 auto; display: block; border: none; }

.embed-wrapper iframe { width: 100%; max-width: 100%; border: none; }
.embed-wrapper iframe[src*="vimeo"] { min-height: 1000px; aspect-ratio: auto; }
.embed-wrapper iframe[src*="castos"] { min-height: 250px; }

/* Sample Page Specific */
.sample-header { padding-bottom: 0; }
.sample-header-text { margin-bottom: 0; }
.sample-section-top { padding-top: 50px; }
.sample-grid { margin-top: 0; gap: 40px; }
.sample-feature-card { padding: 30px 20px; }
.sample-feature-title { text-align: center; margin-bottom: 20px; font-size: 1.2rem; color: var(--accent-color); }
.sample-video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; background: #000; }
.sample-video-iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.sample-audio-container { border-radius: 8px; overflow: hidden; background: #000; height: 150px; display: flex; align-items: center; justify-content: center; }

.app-intro-section { background: var(--surface-color); }
.app-intro-wrapper { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: center; margin-top: 40px; }
.app-intro-image-col { flex: 1; min-width: 300px; text-align: center; }
.app-image-wrap { display: flex; align-items: center; justify-content: center; margin: 0 auto; max-width: 250px; }
.app-image { max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.app-intro-text-col { flex: 1; min-width: 300px; }
.app-intro-title { color: var(--accent-color); margin-bottom: 1rem; }
.app-intro-desc { margin-bottom: 1.5rem; line-height: 1.8; }
.app-link-wrapper { display: flex; gap: 15px; margin-top: 30px; flex-wrap: wrap; }
.app-link-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--surface-light); padding: 12px 24px; border-radius: 8px; border: 1px solid var(--border-color); color: var(--text-primary); text-decoration: none; font-weight: 600; transition: var(--transition); }
.app-link-btn:hover { border-color: var(--accent-color); transform: translateY(-2px); }
.app-link-icon { font-size: 1.2rem; margin-right: 8px; }

.premium-contents-desc { margin-bottom: 2rem; line-height: 1.8; }
.premium-contents-box { max-width: 800px; margin: 0 auto; background: var(--surface-light); border: 1px dashed var(--border-color); border-radius: 12px; padding: 40px; }
.premium-contents-placeholder { color: var(--text-secondary); display: block; margin-bottom: 20px; }
.premium-contents-image-wrapper { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.premium-contents-image { width: 80%; height: 100px; background: var(--surface-color); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; color: var(--text-secondary); }

.conversion-section { background: var(--surface-color); text-align: center; padding-bottom: 100px; }
.conversion-title { margin-bottom: 15px; }
.conversion-desc { margin-bottom: 40px; color: var(--text-secondary); }
.conversion-btn { padding: 18px 40px; font-size: 1.2rem; min-width: 300px; }

/* Concept & VS Section (from index.php) */
.concept-box { background: rgba(212, 175, 55, 0.03); border-left: 3px solid var(--accent-color); padding: 35px; margin: 40px auto; border-radius: 0 8px 8px 0; max-width: 800px; }
.text-accent { color: var(--accent-color); font-weight: 600; }
.vs-container { display: flex; align-items: center; justify-content: space-around; margin: 50px 0; text-align: center; }
.vs-item { flex: 1; }
.vs-number { font-size: 3rem; display: block; font-weight: 600; line-height: 1; margin-bottom: 5px; }
.vs-label { font-size: 0.85rem; color: var(--text-secondary); letter-spacing: 0.1em; }
.vs-mark { font-size: 1.2rem; font-style: italic; color: var(--accent-color); font-weight: bold; }

/* Sample Content Section */
.sample-content-wrapper { background: var(--surface-color); padding: 80px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.sample-title { text-align: center; margin-bottom: 50px; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; background: #000; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.app-intro-box { display: flex; align-items: center; gap: 40px; background: rgba(255, 255, 255, 0.03); padding: 40px; border-radius: 12px; margin-top: 60px; }

/* Responsive (375px Optimize) */
@media (max-width: 768px) {
  /* Dynamic layouts */
  .app-intro-box { flex-direction: column; text-align: center; padding: 20px; }
  .vs-number { font-size: 2.2rem; }

  /* Typography Adjustments */
  h1 { font-size: clamp(1.6rem, 6vw, 2rem); }
  h2 { font-size: clamp(1.4rem, 5vw, 1.6rem); margin-bottom: 1.5rem; }
  
  /* Reset container constraints to maximize text area (avoid awkward wraps) */
  .container { width: 100%; padding: 0 15px; }
  
  /* Reduce excessive padding on sections and cards */
  section { padding: 60px 0; }
  .feature-card { padding: 30px 20px; }
  .pricing-card { padding: 30px 20px; }
  .form-wrapper { padding: 30px 20px; }
  
  /* UI Elements */
  .hamburger { display: block; }

  .header .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
  }
  
  .header .nav-links.open { right: 0; }
  .header .nav-links a { font-size: 1.5rem; }

  /* Hamburger open animation */
  .hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero-actions { flex-direction: column; margin-top: 30px; }
  .btn { width: 100%; padding: 14px 20px; font-size: 1rem; }
  .price { font-size: 2.2rem; }

  /* Fix tokushoho table layout for mobile readability */
  .tokushoho-table th, .tokushoho-table td { display: block; width: 100%; border-right: none; padding: 20px; }
  .tokushoho-table th { padding-bottom: 5px; border-bottom: none; background: rgba(255, 255, 255, 0.02); }
  .tokushoho-table td { padding-top: 5px; }
  .tokushoho-table tr { border-bottom: 1px solid var(--border-color); display: block; margin-bottom: 0; }
  .tokushoho-table tr:last-child { border-bottom: none; }
  .tokushoho-table tr:hover { background: transparent; }

  /* Vimeo Showcase Responsive */
  .vimeo-showcase-wrapper,
  .vimeo-showcase-container {
    min-height: 500px;
  }
}
