@font-face {
  font-family: 'kin-iro-sansserif';
  src: url('/static/fonts/GN-Kin-iro_SansSerif.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f3f4f6;
  color: #1a1a1a;
  line-height: 1.6;
}

/* ヘッダー固定・透明 */
header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
  background: #fff !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* ヒーローセクション */
.hero {
  background: #fff;
  color: #1a1a1a;
  padding: 70px 20px 50px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero>* {
  position: relative;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-cork-divider {
  display: block;
  width: 100%;
  height: 20px;
  background: linear-gradient(to bottom,
    #5a3a1d 0%,
    #4a2f18 50%,
    #3a2412 100%);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.4),
    inset 0 2px 0 rgba(255,255,255,0.15),
    inset 0 -2px 0 rgba(0,0,0,0.3);
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 5;
}

.main-feature-wrapper {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.15'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #d4a574 0%, #c4956a 50%, #b8895f 100%);
  background-blend-mode: overlay;
  padding: 0;
  box-shadow: inset 0 0 100px rgba(0,0,0,0.2);
}

.main-feature-container {
  padding: 0 20px !important;
}

.main-feature-divider {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  height: 60px;
  background: linear-gradient(to bottom, #d4a574 0%, #d4a574 50%, #ffffff 50%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  z-index: 10;
}

.main-feature-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  transform: translateY(-50%) rotate(-1deg);
  height: 45px;
  background: linear-gradient(
    135deg,
    rgba(255, 182, 193, 0.9) 0%,
    rgba(255, 160, 180, 0.85) 50%,
    rgba(255, 182, 193, 0.9) 100%
  );
  border-top: 1px solid rgba(220, 130, 150, 0.3);
  border-bottom: 1px solid rgba(220, 130, 150, 0.3);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,0.5);
}

.main-feature-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  transform: translateY(-50%) rotate(-1deg);
  height: 45px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 8px,
    rgba(220, 130, 150, 0.15) 8px,
    rgba(220, 130, 150, 0.15) 9px
  );
}

.post-main-feature {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  background: #fff;
  padding: 10px 0 70px;
  z-index: 1;
}

.hero-content {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 120px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  position: relative;
}

.hero-side-images {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  align-self: flex-end;
  height: 320px;
  justify-content: flex-end;
  transform: translateY(-90px);
}

.hero-side-images img {
  width: 150px;
  height: auto;
  filter: drop-shadow(0 4px 2px rgba(0, 0, 0, 0.4));
}

.hero-side-images img:nth-child(2) {
  transform: translateX(-50px);
}

.hero-side-images:last-child img:nth-child(2) {
  transform: translateX(50px);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}

.hero h1 img {
  filter: drop-shadow(0 4px 2px rgba(0, 0, 0, 0.4));
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: #666;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero {
    padding: 90px 24px 60px;
  }

  .hero-content {
    gap: 32px;
    flex-wrap: nowrap;
    align-items: center;
  }

  .hero-side-images {
    flex-direction: row;
    height: auto;
    justify-content: center;
    transform: none;
    gap: 12px;
  }

  .hero-side-images img {
    width: 110px;
  }

  .hero-side-images img:nth-child(2),
  .hero-side-images:last-child img:nth-child(2) {
    transform: translateX(0);
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .hero h1 img {
    max-width: 360px !important;
  }

  .hero p {
    font-size: 1.1rem;
    margin-top: 8px;
  }
}

.imasugu-btn {
  transition: transform 0.2s ease;
}

.imasugu-btn:hover {
  transform: translateY(-10px) scale(1.15);
}

.hero-cta {
  display: inline-block;
  background: #fff;
  color: #ec4899;
  padding: clamp(8px, 1.2vw, 12px) clamp(18px, 2.5vw, 24px);
  border-radius: 0;
  font-family: 'kin-iro-sansserif', 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  text-decoration: none;
  border: 3px solid #ec4899;
  transition: background-color 0.2s ease, color 0.2s ease;
  line-height: 1.0;
  cursor: pointer;
}

.hero-cta:hover {
  background: #ec4899;
  color: #fff;
}

/* コンテナ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

/* セクションタイトル */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 50px;
}

/* 機能カード */
.features-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 15px;
}

.mobile-features-heading {
  display: none;
}

.features-side-image {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  align-self: stretch;
  position: relative;
  padding-bottom: 240px;
}

.features-side-image img {
  width: 220px;
  height: auto;
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
}

.features-side-text {
  text-align: left;
  width: 260px;
  position: relative;
  z-index: 1;
}

.features-side-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ef4444;
  margin: 0 0 15px 0;
  line-height: 1.3;
}

.other-features-trigger {
  display: inline-block;
}

.features-side-text p {
  font-size: 1.3rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  flex: 1;
}

.features-mobile-controls {
  display: none;
}

.feature-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
  border: none;
  border-radius: 2px;
  padding: 0;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  overflow: visible;
  position: relative;
  box-shadow:
    3px 3px 0 rgba(0,0,0,0.15),
    6px 6px 0 rgba(0,0,0,0.08),
    2px 2px 10px rgba(0,0,0,0.2);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.3),
    inset 0 -2px 4px rgba(0,0,0,0.2),
    inset 0 2px 4px rgba(255,255,255,0.3);
  z-index: 20;
}

.feature-card--quiz {
  transform: rotate(-1deg);
}

.feature-card--quiz::before {
  background: radial-gradient(circle at 30% 30%, #ff6b6b, #c92a2a);
}

.feature-card--news {
  transform: rotate(1.5deg);
}

.feature-card--news::before {
  background: radial-gradient(circle at 30% 30%, #22d3ee, #0891b2);
}

.feature-card--election {
  transform: rotate(1.5deg);
}

.feature-card--election::before {
  background: radial-gradient(circle at 30% 30%, #22d3ee, #0891b2);
}

.feature-card--party {
  transform: rotate(-0.5deg);
}

.feature-card--party::before {
  background: radial-gradient(circle at 30% 30%, #34d399, #059669);
}

.feature-card--personality {
  transform: rotate(1deg);
}

.feature-card--personality::before {
  background: radial-gradient(circle at 30% 30%, #f472b6, #db2777);
}

.feature-card--wide {
  grid-column: span 2;
}

.feature-card:hover {
  transform: translateY(-5px) rotate(0deg) scale(1.10);
  box-shadow:
    4px 4px 0 rgba(0,0,0,0.25),
    8px 8px 0 rgba(0,0,0,0.12);
  z-index: 20;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.feature-icon img {
  width: 60px;
  height: auto;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  position: relative;
  padding: 20px 20px 18px;
  overflow: visible;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border-bottom: 3px dashed rgba(255,255,255,0.3);
}

.feature-title::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.feature-title span {
  position: relative;
  z-index: 2;
}

.feature-card--quiz .feature-title {
  background: #ef4444;
}

.feature-card--news .feature-title {
  background: #06b6d4;
}

.feature-card--election .feature-title {
  background: #06b6d4;
}

.feature-card--party .feature-title {
  background: #10b981;
}

.feature-card--personality .feature-title {
  background: #ec4899;
}

/* 準備中オーバーレイ */
.feature-card--coming-soon {
  position: relative;
  pointer-events: none;
  cursor: default;
}

.feature-card--coming-soon .feature-title,
.feature-card--coming-soon .feature-description {
  filter: blur(4px);
}

.feature-card--coming-soon::after {
  content: "準備中";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.5);
  color: #374151;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  z-index: 10;
}

.feature-card--coming-soon:hover {
  transform: none;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.15);
}

.feature-description {
  color: #666;
  line-height: 1.7;
  padding: 20px 30px;
}

.feature-card--quiz .feature-description {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px;
  align-items: center;
}

.feature-kicker {
  display: block;
  margin-bottom: 8px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #374151;
}

@media (min-width: 769px) {
  .feature-card--quiz {
    order: 1;
  }

  .feature-card--news {
    order: 2;
  }

  .feature-card--election {
    order: 2;
  }

  .feature-card--party {
    order: 3;
  }

  .feature-card--personality {
    order: 4;
  }
}
.quiz-logo {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: end;
  justify-content: flex-start;
  column-gap: clamp(0.3rem, 1vw, 0.7rem);
  flex-shrink: 0;
  font-family: 'kin-iro-sansserif', 'Noto Sans JP', 'Hiragino Sans', sans-serif;
}

.quiz-logo-left {
  display: inline-grid;
  grid-auto-flow: row;
  gap: clamp(0.05rem, 0.15vw, 0.1rem);
}

.quiz-logo-sub {
  font-size: clamp(0.8rem, 1.5vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: #333;
  line-height: 0.8;
  padding-top: clamp(0.2rem, 0.7vw, 0.4rem);
}

.quiz-logo-politics {
  display: inline-flex;
  align-items: flex-end;
  gap: clamp(0.08rem, 0.3vw, 0.25rem);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: clamp(0.03rem, 0.3vw, 0.5rem);
  line-height: 0.95;
}

.quiz-logo-kanji {
  display: inline-flex;
  padding-bottom: clamp(0rem, 0.15vw, 0.08rem);
  transform: scaleX(1.22);
  transform-origin: left center;
}

.quiz-logo-kanji--red {
  color: #f2352e;
}

.quiz-logo-kanji--black {
  color: #0b0b0b;
}

.quiz-logo-number {
  color: #f2352e;
  font-weight: 400;
  letter-spacing: -0.005em;
  font-size: clamp(3.2rem, 7vw, 5rem);
  line-height: 0.82;
  display: flex;
  align-items: flex-end;
  margin-left: clamp(-0.15rem, -0.5vw, -0.3rem);
}

.quiz-description-text {
  line-height: 1.7;
  color: #666;
}

/* グレー背景セクション */
.dark-gray-section {
  width: 100%;
  margin: 0;
  padding: 60px clamp(16px, 3vw, 32px) 48px;
  position: relative;
  background: #2d3748;
}

.dark-gray-section::before {
  content: "";
  position: absolute;
  top: -70px;
  left: 0;
  right: 0;
  height: 170px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0 0 H1200 V120 Q1050 180 900 150 Q750 120 600 150 Q450 180 300 150 Q150 120 0 150 Z'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.dark-gray-section>* {
  position: relative;
  z-index: 1;
}

/* dark-gray-section内のfooterをダークモードに */
.dark-gray-section .site-footer {
  background: transparent !important;
  border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.dark-gray-section .site-footer .footer-section h3 {
  color: #ffffff !important;
}

.dark-gray-section .site-footer .footer-section p {
  color: #ffffff !important;
}

.dark-gray-section .site-footer .footer-section a {
  color: #ffffff !important;
}

.dark-gray-section .site-footer .footer-section a:hover {
  color: #ffffff !important;
  opacity: 0.8;
}

.dark-gray-section .site-footer .footer-logo {
  color: #ffffff !important;
}

.dark-gray-section .site-footer .footer-copyright {
  color: #ffffff !important;
}

/* Xフォローセクション */
.twitter-follow-section-wrapper {
  margin-top: 40px;
  margin-bottom: 60px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 40px;
}

.twitter-follow-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 30px;
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 3px solid #ffffff;
}

.twitter-follow-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.twitter-follow-text {
  flex: 1;
  font-size: 1.3rem;
  color: #ffffff;
  margin: 0;
  line-height: 1.8;
}

.twitter-follow-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 1.2vw, 12px) clamp(16px, 2.2vw, 20px);
  background: #ffffff;
  color: #000000;
  border: 3px solid #ffffff;
  border-radius: 0;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 400;
  font-family: 'kin-iro-sansserif', 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
  line-height: 1.0;
  white-space: nowrap;
}

.twitter-follow-button:hover {
  background: #000000;
  color: #ffffff;
}

@media (max-width: 768px) {
  .twitter-follow-section-wrapper {
    margin-top: 40px;
    padding: 0 20px;
  }

  .twitter-follow-title {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #ffffff;
  }

  .twitter-follow-section {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }

  .twitter-follow-text {
    font-size: clamp(1rem, 3vw, 1.2rem);
    text-align: center;
    line-height: 1.8;
  }
}

/* メイン機能セクション */
.main-feature {
  background: transparent;
  color: #1a1a1a;
  padding: 70px 0 0;
  margin: -25px auto 0;
  width: 100%;
  text-align: center;
}

.main-feature-title {
  display: inline-block;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 47px;
  color: #374151;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  padding: 20px 35px 18px;
  position: relative;
  transform: rotate(-1deg);
  box-shadow:
    2px 2px 8px rgba(0,0,0,0.15),
    4px 4px 12px rgba(0,0,0,0.1);
  border-radius: 2px;
}

.main-feature-title::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background: radial-gradient(circle at 30% 30%, #ffd43b, #fab005);
  border-radius: 50%;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.3),
    inset 0 -2px 4px rgba(0,0,0,0.2),
    inset 0 2px 4px rgba(255,255,255,0.3);
  z-index: 10;
}

.main-feature-title::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background: linear-gradient(to bottom, #adb5bd, #868e96);
  border-radius: 1px;
  z-index: 9;
}

.main-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-feature-title-highlight {
  color: #ffffff;
  background: #3b82f6;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline;
  line-height: 1;
}

.main-feature-title-highlight-red {
  color: #ffffff;
  background: #ef4444;
  padding: 1px 8px;
  border-radius: 0;
  display: inline-block;
  line-height: 1;
}

.main-feature-title-highlight-yellow {
  color: #dc2626;
  background: #ffeb3b;
  padding: 4px 6px;
  border-radius: 0;
  display: inline-block;
  line-height: 1.3;
}

.mobile-br {
  display: none;
}

.steps-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 25px;
  margin-bottom: 15px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 20px;
  background: transparent;
  position: relative;
}

.step-card {
  text-align: left;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: linear-gradient(135deg, #fffef0 0%, #fff9c4 100%);
  border: none;
  border-radius: 2px;
  overflow: visible;
  box-shadow:
    2px 2px 8px rgba(0,0,0,0.15),
    4px 4px 12px rgba(0,0,0,0.1);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background: radial-gradient(circle at 30% 30%, #ff6b6b, #c92a2a);
  border-radius: 50%;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.3),
    inset 0 -2px 4px rgba(0,0,0,0.2),
    inset 0 2px 4px rgba(255,255,255,0.3);
  z-index: 10;
}

.step-card::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background: linear-gradient(to bottom, #adb5bd, #868e96);
  border-radius: 1px;
  z-index: 9;
}

.step-card:hover {
  transform: translateY(-12px) rotate(0deg) scale(1.18) !important;
  box-shadow:
    6px 6px 0 rgba(0,0,0,0.3),
    12px 12px 0 rgba(0,0,0,0.15);
  z-index: 20;
}

.step-card:nth-child(1) {
  transform: rotate(-2deg);
  background: linear-gradient(135deg, #fffef0 0%, #fff9c4 100%);
}

.step-card:nth-child(3) {
  transform: rotate(1.5deg);
  background: linear-gradient(135deg, #fff0f6 0%, #ffdeeb 100%);
}

.step-card:nth-child(3)::before {
  background: radial-gradient(circle at 30% 30%, #4dabf7, #1971c2);
}

.step-card:nth-child(5) {
  transform: rotate(-1deg);
  background: linear-gradient(135deg, #e7f5ff 0%, #d0ebff 100%);
}

.step-card:nth-child(5)::before {
  background: radial-gradient(circle at 30% 30%, #69db7c, #2f9e44);
}

.step-card:nth-child(1) {
  flex: 3;
  max-width: 100%;
}

.step-card:nth-child(3) {
  flex: 3;
  max-width: 100%;
}

.step-card:nth-child(5) {
  flex: 5;
  max-width: 100%;
}

.step-arrow {
  font-size: 2.5rem;
  color: #ffffff;
  flex-shrink: 0;
  margin: 0 8px;
  align-self: center;
  font-weight: bold;
  text-shadow:
    0 2px 4px rgba(0,0,0,0.3),
    0 4px 8px rgba(0,0,0,0.2);
}

.step-header {
  position: relative;
  padding: 18px 20px 14px;
  overflow: visible;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px dashed rgba(0,0,0,0.15);
  margin-top: 8px;
}

.step-card:nth-child(1) .step-header {
  background: transparent;
}

.step-card:nth-child(3) .step-header {
  background: transparent;
}

.step-card:nth-child(5) .step-header {
  background: transparent;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #ef4444;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.step-card:nth-child(3) .step-number {
  background: #ec4899;
}

.step-card:nth-child(5) .step-number {
  background: #3b82f6;
}

.step-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  color: #374151;
  font-family: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
}

.step-content {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.step-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 14px;
  font-family: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
}

.step-examples {
  margin-top: 14px;
}

.step-examples-label {
  display: block;
  font-size: 0.85rem;
  color: #666;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.step-examples-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-example-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 12px;
  background: #ffffff;
  border: 2px solid currentColor;
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
  min-height: 36px;
  line-height: 1.15;
}

.step-example-item:nth-child(1) {
  color: #0ea5e9;
  border-color: #0ea5e9;
  transform: rotate(-2deg);
}

.step-example-item:nth-child(2) {
  color: #f472b6;
  border-color: #f472b6;
  transform: rotate(1.5deg);
}

.step-example-item:nth-child(3) {
  color: #22c55e;
  border-color: #22c55e;
  transform: rotate(-1deg);
}

/* ステップ1内の画像 */
.step-image {
  margin-top: auto;
  text-align: center;
}

.step-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 7px;
}

/* ステップ3内の帯グラフ */
.step-chart-wrapper {
  margin-top: 19px;
}

.stacked-bar-heading {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
}

.stacked-bar-heading-label {
  display: inline;
  font-size: 11px;
  font-weight: 600;
  margin-right: 3px;
}

.stacked-bar-heading-title {
  display: inline;
  font-size: 15px;
  font-weight: 700;
  color: #dc2626;
  line-height: 1.3;
}

.chart-container {
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cluster-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
}

.cluster-label {
  min-width: 47px;
  font-size: 11px;
  font-weight: 500;
  color: #374151;
  text-align: right;
}

.cluster-bar {
  flex: 1;
  height: 20px;
  border-radius: 4px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cluster-bar-segment {
  height: 100%;
  transition: opacity 0.2s;
}

.legend {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}

.legend-color {
  width: 13px;
  height: 13px;
  border-radius: 2px;
}

.stacked-bar-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 11px;
}

.stacked-bar-nav {
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #ffffff;
  color: #1f2937;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.stacked-bar-nav:hover {
  background: #1f2937;
  color: #ffffff;
}

.stacked-bar-dots {
  display: flex;
  gap: 5px;
}

.stacked-bar-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  background: rgba(148, 163, 184, 0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.stacked-bar-dot.active {
  background: #dc2626;
}

.main-feature-cta-wrapper {
  text-align: center;
  margin-bottom: 0;
  padding-bottom: 40px;
}

.main-feature-cta {
  display: inline-block;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  color: #8b4513;
  padding: 15px 35px;
  border-radius: 2px;
  font-family: 'kin-iro-sansserif', 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-decoration: none;
  border: none;
  transition: all 0.2s ease;
  line-height: 1.0;
  cursor: pointer;
  position: relative;
  box-shadow:
    2px 2px 8px rgba(0,0,0,0.15),
    4px 4px 12px rgba(0,0,0,0.1);
  transform: rotate(1deg);
}

.main-feature-cta::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background: radial-gradient(circle at 30% 30%, #ff6b6b, #c92a2a);
  border-radius: 50%;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.3),
    inset 0 -2px 4px rgba(0,0,0,0.2),
    inset 0 2px 4px rgba(255,255,255,0.3);
  z-index: 10;
}

.main-feature-cta::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background: linear-gradient(to bottom, #adb5bd, #868e96);
  border-radius: 1px;
  z-index: 9;
}

.main-feature-cta:hover {
  background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
  transform: translateY(-10px) rotate(1deg) scale(1.15);
  box-shadow:
    6px 6px 0 rgba(0,0,0,0.3),
    12px 12px 0 rgba(0,0,0,0.15);
}

@media (min-width: 769px) and (max-width: 1024px) {
  .main-feature {
    padding-top: 50px;
  }

  .steps-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px 14px;
    align-items: start;
    padding: 18px 14px;
    max-width: 900px;
  }

  .step-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    width: 100%;
    min-height: auto !important;
    transform: rotate(-1deg);
  }

  .step-arrow:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    transform: none;
    margin: 0;
    align-self: center;
    font-size: 2.1rem;
  }

  .step-card:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
    margin: 0;
    width: 100%;
    min-height: auto !important;
    transform: rotate(1deg);
  }

  .step-arrow:nth-child(4) {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    transform: rotate(90deg);
    margin: 8px 0;
    font-size: 2.1rem;
  }

  .step-card:nth-child(5) {
    grid-column: 1 / -1;
    grid-row: 3;
    margin: 0;
    width: 100%;
    min-height: auto !important;
    transform: rotate(-0.5deg);
  }

  .step-header {
    padding: 14px 16px 12px;
    gap: 8px;
    margin-top: 8px;
  }

  .step-number {
    width: 30px !important;
    height: 30px !important;
    font-size: 1rem !important;
  }

  .step-title {
    font-size: 1.1rem !important;
  }

  .step-content {
    padding: 14px 16px 18px !important;
    position: relative;
    z-index: 5;
  }

  .step-description {
    font-size: 0.95rem !important;
    line-height: 1.6;
  }

  .step-image img {
    max-width: 200px;
  }

  .step-image {
    margin-top: 10px !important;
  }

  .step-card:hover {
    transform: none !important;
    box-shadow:
      2px 2px 8px rgba(0,0,0,0.15),
      4px 4px 12px rgba(0,0,0,0.1);
    z-index: auto;
  }

  .features-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .mobile-features-heading {
    display: block;
    text-align: center;
    margin-bottom: 10px;
    width: 100%;
  }

  .mobile-features-heading-main {
    font-size: 1.7rem;
    font-weight: 700;
    color: #ef4444;
    margin: 0;
  }

  .mobile-features-heading-sub {
    font-size: 1.05rem;
    color: #4b5563;
    margin: 3px 0;
    line-height: 1.25;
  }

  .features-side-image {
    display: none;
  }

  .features {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 26px 14px 50px;
  }

  .main-feature-container {
    padding: 0 10px !important;
  }

  .step-card {
    --step-tilt: 0deg;
    opacity: 0;
    transform: translateY(22px) scale(0.98) rotate(var(--step-tilt));
    transition: opacity 0.45s ease, transform 0.55s ease;
  }

  .step-card.is-visible {
    opacity: 1;
    transform: translateY(0) rotate(var(--step-tilt));
  }

  .steps-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px 10px;
    align-items: start;
    padding: 14px 6px 10px;
  }

  /* Step 1 */
  .step-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    width: 100%;
    min-height: auto !important;
    --step-tilt: -1.5deg;
  }

  /* Arrow 1 (between 1 and 2) */
  .step-arrow:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    transform: none;
    margin: 0;
    align-self: center;
    font-size: 1.8rem;
  }

  /* Step 2 */
  .step-card:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
    margin: 0;
    width: 100%;
    min-height: auto !important;
    --step-tilt: 1deg;
  }

  /* Arrow 2 (down to 3) */
  .step-arrow:nth-child(4) {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    transform: rotate(90deg);
    margin: 5px 0;
    font-size: 1.8rem;
  }

  /* Step 3 */
  .step-card:nth-child(5) {
    grid-column: 1 / -1;
    grid-row: 3;
    margin: 0;
    width: 100%;
    min-height: auto !important;
    --step-tilt: -0.5deg;
  }

  /* Compact Typography for Mobile */
  .step-header {
    padding: 10px 12px 8px;
    gap: 6px;
    margin-top: 6px;
  }

  .step-number {
    width: 26px !important;
    height: 26px !important;
    font-size: 0.9rem !important;
  }

  .step-title {
    font-size: 14px !important;
  }

  .step-content {
    padding: 10px 12px 14px !important;
    position: relative;
    z-index: 5;
  }

  .step-description {
    font-size: 12px !important;
    line-height: 1.5;
  }

  .step-image img {
    max-width: 120px;
  }

  .step-image {
    margin-top: 8px !important;
  }

  .step-card::before {
    width: 18px;
    height: 18px;
    top: -6px;
  }

  .step-card::after {
    width: 3px;
    height: 7px;
    top: -1px;
  }

  /* モバイルではホバー時の拡大を無効化 */
  .step-card:hover {
    transform: none !important;
    box-shadow:
      2px 2px 8px rgba(0,0,0,0.15),
      4px 4px 12px rgba(0,0,0,0.1);
    z-index: auto;
  }
}

/* レスポンシブ */
@media (max-width: 768px) {
  .hero {
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
  }

  .hero-side-images {
    display: none;
  }

  .hero-bg {
    position: relative;
    width: 100vw;
    height: auto;
    margin: 0;
    margin-left: -20px;
    order: 999;
  }

  .hero>a {
    position: relative;
    z-index: 10;
    margin-bottom: -120px;
    order: 998;
  }

  .imasugu-btn {
    max-width: 160px !important;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero h1 img {
    max-width: 240px !important;
    width: 240px !important;
  }

  .hero p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .hero p br {
    display: inline;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .main-feature-title {
    font-size: 1.25rem !important;
    margin-bottom: 25px;
    line-height: 1.4;
    padding: 14px 16px 18px;
  }

  .main-feature-title::after {
    bottom: 8px;
    height: 2px;
  }

  .mobile-br {
    display: block;
  }

  .main-feature h2 {
    font-size: 1.8rem;
  }

  .main-feature p {
    font-size: 1rem;
  }

  .main-feature-cta {
    padding: 12px 24px;
    font-size: 1.5rem;
  }

  .features-wrapper {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .mobile-features-heading {
    display: block;
    text-align: center;
    margin-bottom: 6px;
    width: 100%;
  }

  .mobile-features-heading-main {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ef4444;
    margin: 0;
  }

  .mobile-features-heading-sub {
    font-size: 1rem;
    color: #4b5563;
    margin: 2px 0;
    line-height: 1.2;
  }

  .features-side-image {
    display: none;
  }

  .features {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding: 0;
    -webkit-overflow-scrolling: touch;
    padding: 12px 0 24px;
    width: 100%;
    scrollbar-width: none;
    /* Firefox */
  }

  .features::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
  }

  .feature-card {
    flex: 0 0 85vw;
    max-width: 340px;
    min-width: 280px;
    margin: 0;
    padding: 0;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
  }

  .feature-card:first-child {
    margin-left: calc((100vw - 85vw) / 2);
  }

  .feature-card:last-child {
    margin-right: calc((100vw - 85vw) / 2);
  }

  .feature-card--wide {
    grid-column: auto;
    flex: 0 0 85vw;
    max-width: 340px;
  }

  .feature-title {
    margin-bottom: 0;
    font-size: 1.35rem;
    gap: 12px;
    line-height: 1.2;
  }

  .feature-icon svg {
    width: 44px;
    height: 44px;
  }

  .feature-title span {
    white-space: nowrap;
  }

  .feature-description,
  .feature-card .feature-description {
    font-size: 0.95rem;
    text-align: left;
    padding: 18px 24px 24px;
  }

  .feature-card--quiz .feature-description {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 24px 28px;
    text-align: center;
    gap: 18px;
  }

  .feature-card--quiz .quiz-logo {
    justify-content: center;
    transform: scale(1.35);
  }

  .feature-card--quiz .quiz-description-text {
    text-align: center;
    margin: 0;
  }

  .features-mobile-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: -4px;
  }

  .features-mobile-nav {
    width: 40px;
    height: 40px;
    border: 2px solid #ef4444;
    background: transparent;
    color: #ef4444;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    cursor: pointer;
  }

  .features-mobile-nav:focus-visible {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
  }

  .features-mobile-dots {
    display: inline-flex;
    gap: 6px;
  }

  .features-mobile-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.4);
    border: none;
    padding: 0;
  }

  .features-mobile-dot.is-active {
    background: #ef4444;
  }

  /* モバイルではホバー時の拡大を無効化 */
  .feature-card:hover {
    transform: none;
    box-shadow:
      3px 3px 0 rgba(0,0,0,0.15),
      6px 6px 0 rgba(0,0,0,0.08);
    z-index: auto;
  }
}
