/* =================================================== */
/* Variables - カラーと共通値の定義 */
/* =================================================== */
:root {
  /* カラーパレット */
  --bg-color: #f4f4f4;
  --text-color: #333333;
  --accent-color: #0a74f1;
  --card-bg-color: #ffffff;
  --border-color: #dddddd;
  --sub-text-color: #555;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #f59e0b;
  --light-gray: #f9f9f9;

  /* スペーシング */
  --section-padding: 120px;
  --container-padding: 40px;
  --border-radius: 12px;
  --max-container-width: 1200px;
  --max-section-width: 1000px;

  /* アニメーション */
  --transition-base: 0.3s ease;
  --transition-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =================================================== */
/* Base Styles - リセットとベーススタイル */
/* =================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Noto Sans JP", "Inter", sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
  cursor: none;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  cursor: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =================================================== */
/* Custom Cursor & Background Effects */
/* =================================================== */
#starry-sky-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.interactive-blob {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(10, 116, 241, 0.08) 0%,
    rgba(10, 116, 241, 0) 60%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
  z-index: 9998;
  filter: blur(20px);
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--text-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1),
    background-color 0.2s ease;
}

.cursor-dot.hover {
  transform: translate(-50%, -50%) scale(2.5);
  background-color: var(--accent-color);
}

/* =================================================== */
/* Layout - レイアウト関連 */
/* =================================================== */
.container {
  max-width: var(--max-container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
  z-index: 10;
}

.content-section {
  padding: var(--section-padding) 0;
  background-color: transparent;
}

.section-inner {
  max-width: var(--max-section-width);
  margin: 0 auto;
  background-color: var(--bg-color);
  padding: var(--container-padding);
  border-radius: var(--border-radius);
}

.hero .section-inner,
.footer .section-inner {
  background-color: transparent;
  padding: 0;
}

/* =================================================== */
/* Hero Section - ヒーローセクション */
/* =================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  background-color: transparent;
  padding: var(--section-padding) 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.hero-text-wrapper {
  display: inline-block;
  text-align: left;
}

.hero-title {
  font-family: "Inter", sans-serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
  line-height: 125%;
  word-break: keep-all; /* 不自然な改行を防ぐ */
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 300;
  line-height: 150%;
  color: var(--sub-text-color);
}

/* =================================================== */
/* Typography - タイポグラフィー */
/* =================================================== */
.section-title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  margin-bottom: 50px;
  text-align: center;
  letter-spacing: 0.05em;
  color: var(--accent-color);
}

.section-subtitle {
  text-align: center;
  color: var(--sub-text-color);
  max-width: 700px;
  margin: -10px auto 50px;
}

/* =================================================== */
/* About Section - アバウトセクション */
/* =================================================== */
.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.5em;
  font-size: 1.1rem;
}

.about-image-wrapper {
  border-radius: 8px;
  overflow: hidden;
}

.about-image {
  width: 100%;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}
.about-image:hover {
  filter: grayscale(0%);
}

/* Social Media Links - ソーシャルメディアリンク */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--text-color);
  color: white;
  font-size: 1.5rem;
  transition: all var(--transition-base);
  text-decoration: none;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.social-link.instagram:hover {
  background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.social-link.threads:hover {
  background-color: #000000;
}

.social-link.twitter:hover {
  background-color: #000000;
}

.social-link.youtube:hover {
  background-color: #ff0000;
}

.social-link.facebook:hover {
  background-color: #1877f2;
}

/* =================================================== */
/* Products Section - 製品セクション */
/* =================================================== */
.product-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-category {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--card-bg-color);
  transition: box-shadow var(--transition-base);
}

.product-category:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.category-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 25px 30px;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  cursor: none;
}

.category-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.category-icon {
  font-size: 1.8rem;
  color: var(--accent-color);
  width: 30px;
  text-align: center;
}

.category-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}

.toggle-icon {
  font-size: 1.2rem;
  color: var(--sub-text-color);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.category-toggle.active .toggle-icon {
  transform: rotate(180deg);
}

.product-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 0 30px;
}

.product-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 25px 0;
  border-top: 1px solid var(--border-color);
}

.product-id {
  font-weight: 700;
  color: var(--accent-color);
  background-color: #e7f3ff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.product-description {
  flex-grow: 1;
  color: var(--sub-text-color);
  margin: 0;
  font-size: 0.95rem;
}

.demo-button {
  background-color: var(--text-color);
  color: var(--bg-color);
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.demo-button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* =================================================== */
/* Philosophy Section - 哲学セクション */
/* =================================================== */
#philosophy-title {
  letter-spacing: 10px;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.philosophy-item {
  border-top: 2px solid var(--border-color);
  padding-top: 20px;
}

.philosophy-number {
  font-family: "Inter", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #aaa;
}

.philosophy-title {
  font-family: "Inter", sans-serif;
  font-size: 2rem;
  margin: 10px 0;
}

.philosophy-text {
  color: var(--sub-text-color);
}

/* =================================================== */
/* Pricing Section - 料金セクション */
/* =================================================== */
.pricing-intro {
  text-align: center;
  color: var(--sub-text-color);
  max-width: 600px;
  margin: 0 auto 40px;
}

.pricing-toggle {
  display: flex;
  justify-content: center;
  background-color: #e9e9e9;
  border-radius: 50px;
  width: fit-content;
  margin: 0 auto 60px;
  padding: 5px;
}

.pricing-toggle button {
  border: none;
  background: transparent;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: none;
  color: var(--sub-text-color);
  transition: background-color 0.3s, color 0.3s;
}

.pricing-toggle button.active {
  background-color: var(--accent-color);
  color: white;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: stretch;
}

.pricing-card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--container-padding) 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base),
    box-shadow var(--transition-base);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.pricing-card.recommended {
  border-width: 2px;
  border-color: var(--accent-color);
}

@media (min-width: 901px) {
  .pricing-card.recommended {
    transform: scale(1.05);
  }
  .pricing-card.recommended:hover {
    transform: scale(1.05) translateY(-10px);
  }
}

.recommended-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--accent-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}

.discount-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--success-color);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.discount-badge:not(.hidden) {
  opacity: 1;
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 700;
}
.pricing-card.recommended .plan-name {
  color: var(--accent-color);
}

.plan-subtitle {
  font-size: 0.9rem;
  color: var(--sub-text-color);
  margin-top: 4px;
}

.plan-price {
  font-size: 2.8rem;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  margin: 20px 0 10px;
  transition: opacity 0.3s ease;
  white-space: nowrap; /* 金額が改行されるのを防ぐ */
}

.plan-price .plan-period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--sub-text-color);
}

.plan-type {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 15px;
  display: inline-block;
  margin: 0 auto 20px;
}
.plan-type.perpetual {
  color: var(--success-color);
  background-color: #e9f7ec;
}
.plan-type.subscription {
  color: #007bff;
  background-color: #e7f3ff;
}

.plan-features {
  list-style: none;
  margin-bottom: 30px;
  color: var(--sub-text-color);
  flex-grow: 1;
  text-align: left;
}

.plan-features li {
  margin-bottom: 12px;
  display: flex;
  align-items: start;
}
.plan-features span {
  margin-right: 8px;
  font-weight: bold;
}
.feature-check {
  color: var(--success-color);
}
.feature-cross {
  color: var(--danger-color);
}
.feature-caution {
  color: var(--warning-color);
}

.plan-button {
  display: block;
  width: 100%;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 700;
  margin-top: auto;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap; /* ボタンテキストの改行を防ぐ */
}

.plan-button:hover {
  background-color: var(--accent-color);
  color: var(--bg-color);
}

.pricing-card.recommended .plan-button {
  background-color: var(--accent-color);
  color: var(--bg-color);
}

.pricing-notes {
  margin-top: 50px;
  text-align: center;
  font-size: 0.8rem;
  color: #888;
  line-height: 125%;
}
.pricing-notes p {
  margin-bottom: 5px;
}

.hidden {
  display: none !important;
}

/* =================================================== */
/* Forms - フォーム関連 */
/* =================================================== */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--sub-text-color);
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(10, 116, 241, 0.2);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23555' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding-top: 5px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.checkbox-label input[type="checkbox"] {
  width: 1.2em;
  height: 1.2em;
}

.submit-button {
  display: inline-block;
  background-color: var(--text-color);
  color: var(--bg-color);
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 700;
  margin-top: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  letter-spacing: 0.05em;
  border: none;
  cursor: none;
  align-self: center; /* 中央寄せ */
}

.submit-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* =================================================== */
/* Footer - フッター */
/* =================================================== */
.footer {
  text-align: center;
  padding: 40px 0;
  color: #888;
  font-size: 0.9rem;
  background-color: transparent;
}

/* 特定商取引法セクション */
.legal-section {
  margin-top: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.legal-toggle {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--sub-text-color);
  padding: 10px 16px;
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: all var(--transition-base);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-toggle:hover {
  background-color: var(--light-gray);
  border-color: var(--accent-color);
}

.legal-toggle i {
  transition: transform var(--transition-base);
}

.legal-toggle.active i {
  transform: rotate(180deg);
}

.legal-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.legal-content.active {
  max-height: 800px;
  padding: 20px;
}

.legal-item {
  margin-bottom: 15px;
  text-align: left;
}

.legal-item:last-child {
  margin-bottom: 0;
}

.legal-item h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 4px;
}

.legal-item p {
  font-size: 0.8rem;
  color: var(--sub-text-color);
  line-height: 1.6;
}

/* =================================================== */
/* Animations - アニメーション */
/* =================================================== */
.anim-fade-in {
  opacity: 0;
  animation: fadeIn 1.5s forwards;
  animation-delay: 0.5s;
}

.hero-title.anim-fade-in {
  animation-delay: 0.5s;
}
.hero-subtitle.anim-fade-in {
  animation-delay: 0.8s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.anim-scroll-hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s var(--transition-smooth),
    transform 0.8s var(--transition-smooth);
}

.anim-scroll-hidden.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-category.anim-scroll-hidden:nth-child(2) {
  transition-delay: 0.1s;
}
.product-category.anim-scroll-hidden:nth-child(3) {
  transition-delay: 0.2s;
}
.philosophy-item.anim-scroll-hidden:nth-child(2) {
  transition-delay: 0.1s;
}
.philosophy-item.anim-scroll-hidden:nth-child(3) {
  transition-delay: 0.2s;
}
.pricing-card.anim-scroll-hidden:nth-child(2) {
  transition-delay: 0.1s;
}
.pricing-card.anim-scroll-hidden:nth-child(3) {
  transition-delay: 0.2s;
}

/* =================================================== */
/* Process Section - プロセスセクション */
/* =================================================== */
.process-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 600px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  align-items: center;
  gap: 30px;
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px;
  width: 100%;
  transition: transform var(--transition-base),
    box-shadow var(--transition-base);
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
  background-color: var(--accent-color);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  flex-shrink: 0;
}

.step-content {
  flex-grow: 1;
}

.step-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-color);
}

.step-description {
  color: var(--sub-text-color);
  line-height: 1.6;
  margin: 0;
}

.process-arrow {
  color: var(--accent-color);
  font-size: 2rem;
  opacity: 0.7;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* =================================================== */
/* Responsive Design - レスポンシブデザイン */
/* =================================================== */
@media (max-width: 900px) {
  .about-content,
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
  .about-content {
    gap: 40px;
  }
  .about-image-wrapper {
    max-width: 300px;
    margin: 0 auto;
  }
  .pricing-card.recommended {
    transform: scale(1);
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }
  .content-section {
    padding: 80px 0;
  }
  .section-inner {
    padding: 20px;
  }
  .section-title {
    margin-bottom: 20px;
  }
  .pricing-intro,
  .pricing-toggle,
  .section-subtitle {
    margin-bottom: 40px;
  }

  .category-toggle {
    padding: 20px;
  }
  .category-info {
    gap: 15px;
  }
  .category-icon {
    font-size: 1.5rem;
  }
  .category-name {
    font-size: 1.2rem;
  }

  .product-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .demo-button {
    width: 100%;
    text-align: center;
  }

  /* Process Section Responsive */
  .process-step {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 25px 20px;
  }

  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .step-title {
    font-size: 1.2rem;
  }

  .process-arrow {
    font-size: 1.5rem;
  }
}
