:root {
    --orange:#ff6b18;
    --yellow:#ffb51b;
    --blue:#0756c9;
    --green:#56b928;
    --pink:#df3b89;
    --ink:#22324a;
    --cream:#fff9e9;
}
		
.hero {
    max-width: 1140px;
	margin: auto;
    position: relative;
    overflow: hidden;
    background-color: #fff;
    background-image: url("../img/item/ai-typing-practice/hero-background.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
		
.hero-inner {
    max-width: 1100px;
    margin: auto;
    min-height: 390px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 42px 34px 34px;
    box-sizing: border-box;
}
		
.hero-copy {
    width: 48%;
    position: relative;
    z-index: 2;
    margin: 0;
}
		

.hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin: 0 0 22px 60px;
}

.hero-eyebrow p {
    margin: 0;
    color: #f47721;
    font-size: clamp(15px, 2vw, 22px);
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-align: left;
    transform: none;
}

.hero-eyebrow p span {
    display: block;
}

.hero-rays {
    position: relative;
    display: block;
    flex: 0 0 34px;
    width: 34px;
    height: 58px;
}

.hero-rays::before,
.hero-rays::after {
    content: "";
    position: absolute;
    display: block;
    width: 9px;
    height: 32px;
    border-radius: 8px;
    background: #ffb254;
}

.hero-rays-left::before {
    top: 2px;
    left: 9px;
    transform: rotate(-30deg);
}

.hero-rays-left::after {
    bottom: 2px;
    left: 0;
    height: 25px;
    transform: rotate(-48deg);
}

.hero-rays-right::before {
    top: 7px;
    right: 9px;
    transform: rotate(30deg);
}

.hero-rays-right::after {
    bottom: 1px;
    right: 0;
    height: 25px;
    transform: rotate(48deg);
}
		
h1 {
    font-size:48px;
    line-height:1.12;
    margin:0 0 16px;
    letter-spacing:.02em;
	margin-left:70px;
}
h1 span {
    color:#ff6d17;
}
h1 strong {
    color:#ff6d17;
}
.lead {
    font-weight:700;
    line-height:1.8;
    font-size:16px;
	margin-left:70px;
}

.hero-device {
    width: 48%;
    position: relative;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-device img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 1100px;
  filter: drop-shadow(0 18px 24px rgba(65, 54, 30, 0.13));
}
.ai-typing-section-title2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #292524;
  letter-spacing: 0.04em;
  padding-bottom: 18px;
  position: relative;
  border-bottom: 1px solid #fed7aa;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  margin-left: 70px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* 無料で体験する */
.hero-btn-primary {
  background: #ff8a00;
  color: #fff;
  box-shadow: 0 4px 0 #d96e00;
}

.hero-btn-primary:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #d96e00;
}

/* 有料版で本格学習 */
.hero-btn-secondary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 4px 0 #1d4ed8;
}

.hero-btn-secondary:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #1d4ed8;
}

/* 学習ガイド・資料を見る */
.hero-btn-tertiary {
  background: #fff;
  color: #334155;
  border: 2px solid #cbd5e1;
}

.hero-btn-tertiary:hover {
  background: #f1f5f9;
}

.ai-typing-section-title2::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 120px;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f97316, #fbbf24);
}

/* Hero直下のメニュー */
.menu-section {
    width: 100%;
    padding: 10px 20px;
    background: #fff9f2;
    box-sizing: border-box;
}

.menu-container {
    max-width: 1100px;
    margin: 0 auto;
}

.hero-menu-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
	margin-top: 24px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 700px;

}

.hero-today {
    background: #ff6b18;
    color: #fff;
}

.hero-today .arrow {
    color: #fff;
}

.hero-diagnose {
    border-color: #0756c9;
}

.hero-diagnose .arrow {
    color: #0756c9;
}

.challenge-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

/* 4カテゴリを2行×2列に配置 */
.hero-challenge {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.hero-challenge > h2 {
    grid-column: 1 / -1;
    margin: 0;
}

.hero-challenge > h2 span {
    padding: 5px 12px;
    border-radius: 20px;
    background: #fff0e4;
    color: #e95b0c;
    font-size: 13px;
    white-space: nowrap;
}
		
.hero-menu-daily {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px;
  border-radius: 16px;
  background: #ffe5d1;
  border: 2px solid #ea580c;
  width: 100%;
  box-sizing: border-box;
        min-height: 180px;
        grid-template-columns: 35% minmax(0, 1fr);
}

.hero-menu-label {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

/* 共通スタイル */
.daily-question-card .tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.daily-question-card .topic {
    margin: 10px 0 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

/* 日常AI：オレンジ */
.daily-question-card.daily .tag {
    background: #fcc475;
    color: #c2410c;
}
.daily-question-card.daily .topic {
    color: #c2410c;
}

/* ビジネスAI：青 */
.daily-question-card.business .tag {
    background: #dbeafe;
    color: #1d4ed8;
}
.daily-question-card.business .topic {
    color: #1d4ed8;
}

/* クリエイティブAI：緑 */
.daily-question-card.creative .tag {
    background: #dcfce7;
    color: #15803d;
}
.daily-question-card.creative .topic {
    color: #15803d;
}

/* 応用AI：紫 */
.daily-question-card.advanced .tag {
    background: #f3e8ff;
    color: #7e22ce;
}
.daily-question-card.advanced .topic {
    color: #7e22ce;
}

/* その他：青緑 */
.daily-question-card.default .tag {
    background: #ccfbf1;
    color: #0f766e;
}
.daily-question-card.default .topic {
    color: #0f766e;
}

.hero-menu-btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: #ea580c;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-menu-btn-action:hover {
  background: #c2410c;
  transform: translateY(-2px);
}
		
.hero-menu-btn-action2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: #334e7e;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-menu-btn-action2:hover {
  background: #243b63;
  transform: translateY(-2px);
}

/* AIタイピング診断カード */
.hero-diagnose-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 22px;
    border-radius: 16px;
    background: #dde0ff;
    border: 2px solid #0756c9;
}
		
.hero-menu-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-diagnose-label {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

/* 指示文のポイント */
.hero-diagnose-note {
  color: #475569;
  font-size: 14px;
  margin: 0;
}

/* 診断開始ボタン */
.hero-diagnose-card .hero-diagnose {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 10px;
  background: #334e7e;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-diagnose-card .hero-diagnose:hover {
  background: #243b63;
  transform: translateY(-2px);
}

.hero-diagnose-card .hero-diagnose .arrow {
  font-size: 20px;
}
		
/* 各カード共通：左に画像、右に内容 */
.hero-menu-daily,
.hero-diagnose-card {
  display: grid;
  grid-template-columns: 50% minmax(0, 1fr);
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  min-width: 0;
  min-height: 260px;

}

/* 画像エリア */
.hero-menu-image {
  min-width: 0;
  min-height: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 0px;
}

.hero-menu-image img {
  display: block;
  width: 100%;
        height: 180px;
  min-height: 240px;
  object-fit: contain;
  object-position: center;
}

/* 右側のコンテンツ */
.hero-menu-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  padding: 20px;

}

.hero-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.hero-category {
  padding: 16px;
  border: 1px solid;
  border-radius: 14px;
  transition: box-shadow 0.2s ease;
}
		
.hero-category-subtitle {
  margin: 6px 0 14px;
  font-size: 13px;
  line-height: 1.6;
}

.hero-category h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.hero-question-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.challenge-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.question-number {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}
		
.question-title {
  font-size: 12px;
  line-height: 1.5;
}
		
/* ① 日常AI：オレンジ */
.hero-category:nth-of-type(1) {
  background: #fff7ed;
  border-color: #fed7aa;
}

.hero-category:nth-of-type(1) h3 {
  color: #c2410c;
}

.hero-category:nth-of-type(1) .hero-category-subtitle {
  color: #9a3412;
}

.hero-category:nth-of-type(1) .challenge-button {
  border-color: #fdba74;
}

.hero-category:nth-of-type(1) .question-number {
  background: #ffedd5;
  color: #c2410c;
}

.hero-category:nth-of-type(1) .challenge-button:hover {
  background: #ffedd5;
}

/* ② ビジネスAI：ブルー */
.hero-category:nth-of-type(2) {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.hero-category:nth-of-type(2) h3 {
  color: #1d4ed8;
}

.hero-category:nth-of-type(2) .hero-category-subtitle {
  color: #1e40af;
}

.hero-category:nth-of-type(2) .challenge-button {
  border-color: #93c5fd;
}

.hero-category:nth-of-type(2) .question-number {
  background: #dbeafe;
  color: #1d4ed8;
}

.hero-category:nth-of-type(2) .challenge-button:hover {
  background: #dbeafe;
}

/* ③ クリエイティブAI：グリーン */
.hero-category:nth-of-type(3) {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.hero-category:nth-of-type(3) h3 {
  color: #15803d;
}

.hero-category:nth-of-type(3) .hero-category-subtitle {
  color: #166534;
}

.hero-category:nth-of-type(3) .challenge-button {
  border-color: #86efac;
}

.hero-category:nth-of-type(3) .question-number {
  background: #dcfce7;
  color: #15803d;
}

.hero-category:nth-of-type(3) .challenge-button:hover {
  background: #dcfce7;
}

/* ④ 応用AI：パープル */
.hero-category:nth-of-type(4) {
  background: #faf5ff;
  border-color: #e9d5ff;
}

.hero-category:nth-of-type(4) h3 {
  color: #7e22ce;
}

.hero-category:nth-of-type(4) .hero-category-subtitle {
  color: #6b21a8;
}

.hero-category:nth-of-type(4) .challenge-button {
  border-color: #d8b4fe;
}

.hero-category:nth-of-type(4) .question-number {
  background: #f3e8ff;
  color: #7e22ce;
}

.hero-category:nth-of-type(4) .challenge-button:hover {
  background: #f3e8ff;
}

/* カテゴリ見出し：アイコン左、文字右 */
.hero-category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

/* 150px × 150pxのアイコン */
.hero-category-icon {
  display: block;
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0;
}

/* 見出しとサブタイトル */
.hero-category-heading {
  min-width: 0;
}

.hero-category-heading h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}

.hero-category-heading .hero-category-subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}
		
.ai-start {
    width: 320px;
    height: 280px;
    object-fit: contain;
    flex-shrink: 0;
}
		
/* カード上部のメッセージ */
.hero-card-message {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #f7931e;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  letter-spacing: 0;
}

/* 左右の装飾線：各1本 */
.hero-card-message::before,
.hero-card-message::after {
  content: "";
  position: absolute;
  top: 14px;
  width: 7px;
  height: 38px;
  background: #ffad4d;
  border-radius: 8px;
}

/* 左側の装飾線 */
.hero-card-wrap-daily .hero-card-message::before {
  left: calc(50% - 130px);
  transform: rotate(-30deg);
}
		
/* 右側の装飾線 */
.hero-card-wrap-daily .hero-card-message::after {
  right: calc(50% - 130px);
  transform: rotate(30deg);
}

.hero-card-wrap-diagnosis .hero-card-message::before {
  left: calc(50% - 160px);
  transform: rotate(-30deg);
}

.hero-card-wrap-diagnosis .hero-card-message::after {
  right: calc(50% - 160px);
  transform: rotate(30deg);
}

/* カード上部の余白 */
.hero-card-wrap {
  position: relative;
  padding-top: 70px;
  min-width: 0;
  width: 100%;
}
		
.ai-typing-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
  margin-bottom: 28px;
}

.ai-typing-section-title::before {
  content: "";
  width: 5px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 5px;
  background: #f47721;
}

.ai-typing-section-title h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
  color: #30343b;
}

.ai-typing-section-title .count {
  margin-left: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff0df;
  color: #d95c12;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.free-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f7933b;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 3px 0 #d97724;
  white-space: nowrap;
}

.ai-typing-section-subtitle {
  margin: 5px 0 0;
  color: #77716b;
  font-size: 14px;
}


    .ai-typing-intro {
      width: 100%;
      max-width: 1600px;
      margin: 0 auto;
      margin-top: 48px;
    }

    .intro-grid {
      display: grid;
      grid-template-columns: 5fr 8fr;
      gap: 16px;
      margin-bottom: 20px;
    }

    .column { min-width: 0; }

    .lead2 {
      display: flex;
      align-items: center;
      font-size: 17px;
      line-height: 1.5;
      letter-spacing: .035em;
      font-weight: 700;
    }

.column0 {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lead3 {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  text-align: left;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: .035em;
  font-weight: 700;
}

.lead3 .highlight {
  color: #0070c0;
  font-size: 1.2em;
  font-weight: 700;
}

    .demo-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-height: 0;
  border: 1px solid #cbd5df;
  border-radius: 18px;
  background: #fff0e7;
  padding: 18px;
    }
		
.demo-side:first-child {
  flex: 5;
  min-width: 0;
}

.demo-side:last-child {
  flex: 6;
  min-width: 0;
}

    .demo-side {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
    }

.demo-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-bottom: -7px;
  position: relative;
  z-index: 1;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: .04em;
  white-space: nowrap;
  font-weight: 800;
  box-sizing: border-box;

  /* 角に丸みをつける */
  border-radius: 14px;

}

.demo-label.normal {
  color: #5e5048;
  background: #e8e2dd;
  border-bottom: 3px solid #b7a79b;
}

.demo-label.ai {
  color: #fff;
  background: linear-gradient(110deg, #ffbd38, #ff8900);
  border-bottom: 3px solid #d87500;
}

    .speech {
      position: relative;
      padding: 22px 20px;
      min-height: 69px;
      border-radius: 0 12px 12px 12px;
      background: #fff;
      font-size: clamp(12px, 1.05vw, 16px);
      line-height: 1.48;
      letter-spacing: .04em;
      font-weight: 900;
    }

    .speech.ai-speech {
      padding: 21px 20px 17px;
      line-height: 1.45;
    }

    .speech.ai-speech::after {
      content: "";
      position: absolute;
      top: -18px;
      right: 12px;
      width: 21px;
      height: 21px;
      border-top: 7px solid #fff;
      border-right: 7px solid #fff;
      border-radius: 0 8px 0 0;
    }

    .speech.normal-speech::after {
      content: "";
      position: absolute;
      top: -17px;
      right: 12px;
      width: 21px;
      height: 21px;
      border-top: 7px solid #fff;
      border-right: 7px solid #fff;
      border-radius: 0 8px 0 0;
    }
		
.hint {
  display: flex;
  align-items: center; 
  gap: 10px;
  margin: auto 0 0 4px;
  padding-top: 18px;
  width: calc(100% + 35px);
  position: relative;
  z-index: 1;
  white-space: nowrap;
  color: #ff6b12;
  font-size: clamp(11px, 1vw, 14px);
  line-height: 1.55;
  letter-spacing: .035em;
  font-weight: 900;
}

.hint span:last-child {
  white-space: nowrap;
}

    .bulb-placeholder {
      display: inline-flex;
      flex: 0 0 14px;
      height: 29px;
      align-items: center;
      justify-content: center;
      font-size: 25px;
      line-height: 1;
    }

    .arrow {
      flex: 0 0 24px;
      color: #ff5a1c;
      font-size: 39px;
      line-height: 1;
      text-align: center;
      margin-top: 15px;
      font-weight: 500;
    }

    .elements-card {
      padding: 14px 18px 12px 15px;
      border: 1px solid #cbd5df;
      border-radius: 19px;
      background: #fffaff;
    }

    .element-row {
      display: grid;
      grid-template-columns: 52px minmax(205px, 1fr) minmax(0, 1.15fr);
      align-items: center;
      gap: 13px;
      min-height: 40px;
    }

    .element-icon {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 25px;
      line-height: 1;
    }



    .icon-placeholder {
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: none;
    }
.icon-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

    .element-name {
      margin: 0;
      font-size: clamp(17px, 1.55vw, 24px);
      line-height: 1.2;
      white-space: nowrap;
      font-weight: 900;
    }

    .element-name small {
      font-size: .63em;
      letter-spacing: 0;
    }

    .element-name.role { color: var(--green); }
    .element-name.context { color: var(--orange); }
    .element-name.purpose { color: #1769d5; }
    .element-name.format { color: var(--pink); }

    .example {
  display: flex;
  align-items: flex-start;
  gap: 5px;
      font-size: clamp(12px, 1.05vw, 16px);
      line-height: 1.5;
      font-weight: 900;
      letter-spacing: -.015em;
    }

    .example-tag {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 23px;
      height: 24px;
      margin-right: 7px;
      border-radius: 5px;
      color: #fff;
      vertical-align: -4px;
      font-size: 16px;
      font-weight: 900;
  flex-shrink: 0;
    }

    .example-tag.role { background: var(--green); }
    .example-tag.context { background: var(--orange); }
    .example-tag.purpose { background: #1769d5; }
    .example-tag.format { background: var(--pink); }
		

.example-text {
  display: block;
  min-width: 0;
}

/* AIタイピング：特徴・プラン比較セクション */
.ai-feature-compare {
  width: 100%;
  padding: 36px 0;
  color: #343434;
}

.ai-feature-inner {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  gap: 28px;
  align-items: stretch;
}

/* 左側 */
.ai-feature-intro {
  min-width: 0;
  background: #fffaf0;
  border-radius: 14px;
}

.ai-feature-intro h2 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1.5;
}

.ai-feature-visual {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-feature-illustration {
  position: relative;
  text-align: center;
}

.ai-feature-illustration img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

/* 右側：プラン比較 */
.ai-plan-compare {
  min-width: 0;
}

.ai-plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  height: calc(100% - 38px);
  position: relative;
}

.ai-plan-arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #fbbf24);
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(249, 115, 22, 0.3);
}
		
.ai-plan-card {
  position: relative;
  min-width: 0;
  padding: 38px 34px;
  border-radius: 13px;
  box-sizing: border-box;
}

.ai-plan-card h4 {
  margin: 0;
  text-align: center;
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 24px;
}

.ai-plan-free {
    background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
    border: 1px solid #eadfd2;
    box-shadow: 0 6px 20px rgba(80, 50, 20, 0.05);
}

.ai-plan-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-plan-card li {
  position: relative;
  padding-left: 26px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
	
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 0;
}
		
.ai-plan-card li img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
}

.ai-plan-card li::before {
  content: none;
}

.ai-plan-free li {
  color: #888;
}

.ai-plan-free li::before {
  content: none;
}

.ai-plan-paid {
    background: linear-gradient(180deg, #fffaf0 0%, #fff2dd 100%);
    border: 2px solid #f59e0b;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.15);
}

.ai-plan-paid h4 {
  color: #f15b16;
  margin-bottom: 24px;
}

.ai-plan-crown {
  position: absolute;
  top: 5px;
  right: 10px;
  color: #f7b600;
  font-size: 23px;
}

/* AIタイピング 練習モーダル */
.practice-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.practice-modal.active {
    display: flex;
}

/* 暗転部分 */
.practice-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(3px);
}

/* 練習画面 */
.practice-window {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35);
    animation: practiceOpen 0.25s ease;
}

/* 表示アニメーション */
@keyframes practiceOpen {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 閉じるボタン */
.practice-close {
    position: absolute;
    top: 15px;
    right: 18px;
	z-index: 20;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #f3f3f3;
    color: #555;
    font-size: 28px;
    cursor: pointer;
    transition: 0.2s;
}

.practice-close:hover {
    background: #ff6b18;
    color: #fff;
}

/* ヘッダー */
.practice-header {
     display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-right: 45px;
    margin-bottom: 18px;
}

.practice-label {
    display: inline-block;
    color: #ff6b18;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}
		
.practice-label2 {
    display: inline-block;
    color: #536bd8;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.practice-header h2 {
    margin: 0;
    font-size: 28px;
    color: #222;
}

/* 問題 */
.practice-question {
    background: #fff8ed;
    border: 2px solid #ffd29e;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 10px;
}

.practice-question2 {
    background: #f4f7ff;
    border: 2px solid #d8e2ff;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 20px;
}

.practice-question p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #26364a;
	white-space: pre-line;
}

.line-break {
    color: red;
    font-weight: bold;
    margin-left: 4px;
}

/* ステータス */
.practice-status {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 0;
    color: #666;
    font-size: 16px;
}

.timer,
.character-count {
    display: flex;
    align-items: center;
    gap: 7px;
}

.timer strong {
    color: #ff6b18;
    font-size: 16px;
    min-width: 55px;
}

.character-count strong {
    color: #333;
}

/* 入力欄 */
#practiceInput {
    display: block;
    width: 100%;
    min-height: 220px;
    resize: vertical;
    padding: 18px;
    border: 2px solid #d9d9d9;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}

#practiceInput:focus {
    border-color: #ff8a26;
    box-shadow:
        0 0 0 3px rgba(255, 138, 38, 0.12);
}

/* 下部 */
.practice-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 15px;
}

.practice-hint {
    color: #777;
    font-size: 12px;
    line-height: 1.6;
}

.practice-submit {
    flex-shrink: 0;
    border: none;
    background: #ff6b18;
    color: #fff;
    border-radius: 30px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}

.practice-submit:hover {
    background: #ed5b0b;
    transform: translateY(-1px);
}
		
.practice-submit2 {
    flex-shrink: 0;
    border: none;
    background: #536bd8;
    color: #fff;
    border-radius: 30px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}
		
.practice-submit2:hover {
    background: #4056bd;
    transform: translateY(-1px);
}
		
/* 採点中・採点後はボタンを押せないようにする */
.practice-submit2:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}

/* 結果画面 */
.practice-result {
    display: none;
    text-align: left;
    padding: 10px;
    border-radius: 10px;
    gap: 10px;
}

.practice-result.active {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

.result-summary {
display: flex;
align-items: center;
flex-wrap: wrap;
column-gap: 40px;
padding: 16px 22px;
border-radius: 12px;
background: #f8fafc;
}

.result-summary .result-icon {
    margin: 0;
}

.result-summary h3 {
margin: 0;
margin-right: -40px;
font-size: 22px;
white-space: nowrap;
}

.result-summary .result-comment {
    margin-bottom: 0;
}

.result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    line-height: 1;
    background: none;
    border: none;
    box-shadow: none;
    width: auto;
    height: auto;
}
		
/* ◯・△・× 共通 */
.result-icon.good,
.result-icon.average,
.result-icon.bad {
	font-weight: 900;
}
		
/* ◯：良好 */
.result-icon.good {
	color: #15803d;
	-webkit-text-stroke: 2px currentColor;
    font-size: 20px;
}

/* △：あと少し */
.result-icon.average {
	color: #b45309;
	-webkit-text-stroke: 2px currentColor;
    font-size: 25px;
}

/* ×：練習中 */
.result-icon.bad {
	color: #b91c1c;
    font-size: 36px;
}
	

.practice-result h3 {
    color: #ff6b18;
}

.result-comment {
grid-column: 1 / -1;
grid-row: 2;
margin: 0;
color: #475569;
font-size: 17px;
line-height: 1.7;
}
		
/* 入力結果の比較表示 */
.typing-review {
    display: none;
    padding: 20px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 10px;
    text-align: left;
}

.typing-review.active {
    display: block;
}

.typing-review h4 {
    margin: 0 0 15px;
    font-size: 16px;
    color: #333;
}

.review-legend {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 15px;
}
		
.review-legend h4 {
    margin: 0;
    line-height: 1.5;
}
		
.review-legend .error-legend {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 0;
}

.review-legend span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.review-correct {
    color: #333;
}

.review-typo {
    position: relative;
    color: #fff;
    background: #e53935;
    cursor: help;
}

/* 正解表示の吹き出し */
.review-typo::after {
    content: attr(data-correct);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);

    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.15s ease;
    z-index: 100;
}

/* 吹き出しの三角 */
.review-typo::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 2px);
    transform: translateX(-50%);

    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #333;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    z-index: 101;
}

.review-typo:hover::after,
.review-typo:hover::before {
    opacity: 1;
    visibility: visible;
}

.review-extra {
    color: #fff;
    background: #f59e0b;
}

.review-omission {
    color: #1976d2;
    background: #e3f2fd;
}

.review-text {
    font-size: 16px;
    line-height: 1.6;
    word-break: break-all;
    white-space: pre-wrap;
}

.review-linebreak {
    display: inline-block;
    margin: 0 3px;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
}

/* スマホ */
@media (max-width: 600px) {
    .practice-modal {
        padding: 10px;
    }
    .practice-window {
        max-height: 95vh;
        padding: 22px 18px;
    }
    .practice-header {
        display: block;
    }
    .practice-question p {
        font-size: 15px;
    }
    .practice-bottom {
        display: block;
    }
    .practice-submit {
        width: 100%;
        margin-top: 15px;
    }
	.result-summary {
		padding: 14px;
}
.result-summary h3 {
    font-size: 16px;
}
.result-comment {
    font-size: 13px;
}
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.result-item {
    background: #f7f7f7;
    border-radius: 8px;
    padding: 8px 4px;
    text-align: center;
}

.result-item span {
    display: block;
    color: #777;
    font-size: 11px;
    margin-bottom: 6px;
}

.result-item strong {
    font-size: 18px;
    color: #333;
}

@media (max-width: 600px) {
    .practice-result.active {
        grid-template-columns: 1fr;
        gap: 15px;
    }
	
    .result-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
		
/* AIの回答：キャラクターアイコンとタイトル */
.ai-answer-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.ai-answer-character {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}
		
/* AIの回答本文 */
.ai-answer-content {
	display: none;
    margin-top: 20px;
    padding: 22px;
    background: #fff8ed;
    border: 1px solid #ffd29e;
    border-radius: 12px;
}

.ai-answer-content h4 {
    margin: 0 0 15px;
    font-size: 17px;
    color: #333;
    text-align: left;
}

.ai-answer-content .ai-answer-header h4 {
    margin: 0;
    font-size: 17px;
    color: #333;
    text-align: left;
}

.ai-answer-text {
    color: #333;
    font-size: 15px;
    line-height: 1.9;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.ai-answer-notice {
    color: #666;
    font-size: 15px;
    line-height: 1.9;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
}

/* 開始案内の背景 */
.space-start-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(2px);
    border-radius: 16px;
}

.space-start-overlay.active {
    display: flex;
}

/* 開始案内カード */
.space-start-card {
    width: 100%;
    max-width: 390px;
    padding: 32px 24px;
    background: #fff;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
    animation: spaceCardIn 0.25s ease;
}

.space-start-card h2 {
    margin: 0 0 12px;
    color: #222;
    font-size: 20px;
}

.space-start-card p {
    margin: 0 0 22px;
    color: #555;
    font-size: 14px;
    line-height: 1.8;
}

/* SPACEキーのデザイン */
.space-key {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    max-width: 100%;
    height: 52px;
    margin: 0 auto 14px;
    background: #fff7ed;
    border: 2px solid #ff8a26;
    border-bottom-width: 5px;
    border-radius: 10px;
    color: #ea580c;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 3px;
    animation: spaceKeyPulse 1.3s ease-in-out infinite;
}
		
/* AIタイピング診断のSPACEキーだけ青色にする */
#aiDiagnoseModal .space-key {
    background: #f4f7ff;
    color: #1d4ed8;
    border: 2px solid #1d4ed8;
    border-radius: 8px;
    box-shadow: 0 4px 0 #1e40af;
    font-weight: 700;
}

#aiDiagnoseModal .practice-close:hover {
    background: #2563eb;
}

.space-start-card > span {
    color: #777;
    font-size: 12px;
}

@keyframes spaceCardIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes spaceKeyPulse {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}
		
#diagnoseTopic {
    white-space: pre-wrap;
    line-height: 1.8;
}
		
#diagnosePrompt {
    display: block;
    width: 100%;
    min-height: 220px;
    resize: vertical;
    padding: 18px;
    border: 2px solid #d9d9d9;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}

#diagnosePrompt:focus {
    border-color: #536bd8;
    box-shadow: 0 0 0 3px rgba(83, 107, 216, 0.15);
}

#diagnoseTimer {
    color: #2196f3;
}

#aiDiagnoseModal #diagnoseResult {
    margin-top: 20px;
    padding: 22px;
    background: #fff8ed;
    border: 1px solid #ffd29e;
    border-radius: 12px;
}

#aiDiagnoseModal #diagnoseResult .diagnose-result-title {
    margin: 0;
    color: #333;
    font-size: 17px;
}

#aiDiagnoseModal #diagnoseResult .diagnose-total {
    margin: 0 0 16px;
    padding: 14px;
    background: #fff;
    border: 1px solid #ffd29e;
    border-radius: 8px;
    color: #e87528;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

#aiDiagnoseModal #diagnoseResult .diagnose-section {
    margin-top: 14px;
    padding: 14px;
    background: #fff;
    border-radius: 8px;
}

#aiDiagnoseModal #diagnoseResult .diagnose-section h4 {
    margin: 0 0 8px;
    color: #333;
    font-size: 15px;
}

#aiDiagnoseModal #diagnoseResult .diagnose-section p {
    margin: 0;
    color: #333;
    font-size: 15px;
    line-height: 1.9;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

#aiDiagnoseModal #diagnoseScores {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 0;
}


/* 採点結果：共通デザイン */
#aiDiagnoseModal #diagnoseScores p {
    margin: 0;
    padding: 14px 6px;
    border: 1px solid;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

/* 役割：緑 */
#aiDiagnoseModal #diagnoseScores p:nth-child(1) {
    background: #ecfdf3;
    border-color: #86d6a5;
    color: #167543;
}

/* 状況・条件：オレンジ */
#aiDiagnoseModal #diagnoseScores p:nth-child(2) {
    background: #fff4e5;
    border-color: #fdba74;
    color: #c2410c;
}

/* 目的：青 */
#aiDiagnoseModal #diagnoseScores p:nth-child(3) {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

/* 形式：ピンク */
#aiDiagnoseModal #diagnoseScores p:nth-child(4) {
    background: #fdf2f8;
    border-color: #f9a8d4;
    color: #be185d;
}

@media (min-width: 700px) {
    #aiDiagnoseModal #diagnoseScores {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.grid-btn028 {
    display: grid;
    gap: 16px;
    padding: 10px;
    max-width: 1200px;
    box-sizing: border-box;
}

.card028 {
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    border: 5px solid #b1bac7;
    box-sizing: border-box;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    height: 0;
    padding-top: 50%;
}
		
.card028 img {
    width: 45%;
    max-width: 260px;
    height: auto;
    object-fit: contain;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}
		
.card028 p {
    margin-top: -40px;
    font-weight: bold;
    font-size: 17px;
    z-index: 2;
    position: relative;
}
		
.card028 .cut-arrow-svg {
    position: absolute;
    left: 93%;
    top: 73%;
    width: 15%;
    height: auto;
    z-index: 3;
    pointer-events: none;
}

.grid-btn029 {
    display: grid;
    gap: 16px;
    padding: 10px;
    margin: 20px auto 0;
    max-width: 1200px;
    box-sizing: border-box;
}
		
.card029 {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: 5px solid #b1bac7;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: 0.2s;
}
		
.card029 img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
		
.card029 p {
    margin: 0;
}
		
.card029 .cut-arrow-svg {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 7%;
    height: auto;
    z-index: 3;
    pointer-events: none;
}

.card028:hover,
.card029:hover {
  background: #000;
  color: #fff;
  transform: translateY(-4px);
}
		
.character {
    width: 100px;
    transition: 0.1s;
}

@media (min-width: 701px) {
    .grid-btn028 {
        grid-template-columns: repeat(4, 1fr);
    }
    .grid-btn029 {
        grid-template-columns: repeat(2, 1fr);
    }
}
		
@media (max-width: 700px) {
    .grid-btn028 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-btn029 {
        grid-template-columns: 1fr;
}
}

.ai-feature-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* 文章部分 */
.ai-feature-intro .column {
  width: 100%;
  max-width: 650px;
}

/* 吹き出し */
.ai-talk-balloon {
  position: relative;
  background: #fff;
  border: 2px solid #F4A340;
  border-radius: 18px;
  padding: 16px 20px;
  margin-top: 20px;
}

/* しっぽ */
.ai-talk-balloon::before {
  content: "";
  position: absolute;
  bottom: -17px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 17px solid #258bd2;
  border-top-color: #F4A340;
}

.ai-talk-balloon::after {
  content: "";
  position: absolute;
  bottom: -13px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 13px solid #fff;
  border-top-color: #ffffff;
}

/* 文章 */
.ai-talk-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 600;
}

/* キャラクター */
.ai-feature-visual {
  width: 50%;
  max-width: 250px;
  margin: 0 auto;
}

.ai-feature-illustration img {
  display: block;
  width: 100%;
  height: auto;
}
		
@media screen and (max-width: 768px) {
  .ai-feature-intro {
    flex-direction: column;
    gap: 10px;
  }
  .ai-feature-intro .column {
    width: 100%;
    max-width: 100%;
  }
  /* 吹き出し */
  .ai-talk-balloon {
    width: 100%;
    box-sizing: border-box;
    padding: 15px 18px;
    margin-top: 10px;
    border-radius: 16px;
  }
  /* しっぽ */
  .ai-talk-balloon::before {
    bottom: -15px;
    border-left-width: 11px;
    border-right-width: 11px;
    border-top-width: 15px;
  }
  .ai-talk-balloon::after {
    bottom: -11px;
    border-left-width: 9px;
    border-right-width: 9px;
    border-top-width: 11px;
  }
  /* 文章 */
  .ai-talk-text {
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: .02em;
  }
  /* キャラクター */
  .ai-feature-visual {
    width: 45%;
    max-width: 180px;
    margin: 0 auto;
  }
  .ai-feature-illustration img {
    width: 100%;
    height: auto;
  }
}

/* 小型スマホ */
@media screen and (max-width: 480px) {
  .ai-talk-balloon {
    padding: 13px 15px;
  }
  .ai-talk-text {
    font-size: 13px;
  }
  .ai-feature-visual {
    width: 50%;
    max-width: 150px;
  }
}
		
.ai-intro {
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 28px;
}

/* 全体2列レイアウト */
.ai-intro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 46px 22px;
}

/* 各コンテンツ枠 */
.ai-intro-card {
  position: relative;
  border: 2px solid var(--theme);
  border-radius: 12px;
  padding: 42px 16px 24px;
  background: var(--bg);
  min-width: 0;
}
		
.ai-intro-card2 {
  position: relative;
  border: 2px solid var(--theme);
  border-radius: 12px;
  background: var(--bg);
  min-width: 0;
}

/* テーマカラー */
.ai-intro-card.blue {
  --theme: #0868dc;
  --bg: #f6faff;
}

.ai-intro-card.orange {
  --theme: #ff5900;
  --bg: #fff9f5;
}

.ai-intro-card.green {
  --theme: #55bd00;
  --bg: #f8fff5;
}

/* 上部の見出しラベル */
.ai-card-label {
  position: absolute;
  top: -19px;
  left: 50%;
  transform: translateX(-50%);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 96%;
  height: 48px;
  border-radius: 30px;
  background: var(--theme);
  color: #fff;
  font-size: 27px;
  font-weight: 800;
}

.ai-card-label span {
  margin-right: 12px;
  font-size: 27px;
}

/* メインタイトル */
.ai-card-title {
  margin: 5px 0 20px;
  text-align: center;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 800;
}

.ai-card-title strong {
  color: var(--theme);
}

/* 上段の2カラム */
.ai-content-row {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 14px;
  align-items: center;
  margin-top: 40px;
}

/* メリット枠 */
.ai-merit {
  position: relative;
  border: 1px solid var(--theme);
  border-radius: 10px;
  padding: 10px;
}

.ai-merit-title {
  position: absolute;
  top: -22px;
  left: 5px;
  background: var(--theme);
  color: #fff;
  border-radius: 6px;
  padding: 3px 18px;
  font-size: 16px;
  font-weight: bold;
}

.ai-merit-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 2px;
  border-bottom: 1px dashed var(--theme);
  color: var(--theme);
  font-size: 12px;
  font-weight: bold;
  line-height: 1.5;
}

.ai-merit-item:last-child {
  border-bottom: none;
}

.ai-check {
  flex-shrink: 0;
  width: 24px;
  height: 22px;
  border: 2px solid var(--theme);
  background: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-check img {
  display: block;
  width: 17px;
  height: 17px;
  object-fit: contain;
  transform: translateY(-2px);
}

/* 画像・画面表示部分 */
.ai-image-placeholder {
  width: 100%;
  overflow: hidden;
  border: 1px solid #9db8d2;
  background: rgba(255,255,255,0.4);
}
		
.ai-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 下段の説明エリア */
.ai-bottom-row {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.ai-description {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-description-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--theme);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}

.ai-description-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--theme);
  overflow: hidden;
}

.ai-description-icon img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 5px;
  box-sizing: border-box;
  object-fit: contain;
}

.ai-description p {
  margin: 0;
  font-size: 15px;
  font-weight: bold;
}

.ai-highlight {
  background: linear-gradient(transparent 60%, #fff27a 60%);
}

/* 矢印 */
.ai-arrow {
  color: var(--theme);
  font-size: 38px;
  font-weight: bold;
  text-align: center;
}

/* 下段左：AIアドバイス */
.ai-advice-box {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 16px 0 30px;
  padding: 18px;
  border: 1px solid var(--theme);
  border-radius: 10px;
  background: #fffbed;
}

.ai-advice-avatar {
  flex-shrink: 0;
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: #fff;
}
		
.ai-advice-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.ai-advice-text {
  font-size: 15px;
  line-height: 1.8;
}

/* 性格一覧 */
.ai-character-area {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 10px;
  align-items: center;
}

.ai-character-lead {
  padding: 20px 10px;
  border-radius: 50%;
  background: var(--theme);
  color: #fff;
  text-align: center;
  font-weight: bold;
}

.ai-character-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.ai-character-item {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 65px;
  padding: 5px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 13px;
  font-weight: bold;
}

.ai-character-image {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f5f5f5;
}
		
.ai-character-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
		
/* キャラクター名の共通設定 */
.ai-character-item strong {
  font-weight: bold;
}

/* サクラ先輩：ピンク */
.character-sakura {
  color: #e85b91;
}

/* さなえリーダー：緑 */
.character-sanae {
  color: #399b62;
}

/* ケンジ先生：青 */
.character-kenji {
  color: #3985d6;
}

/* いくぞうおじさん：水色 */
.character-ikuzo {
  color: #32b9c9;
}

/* ゴールドフィンガー先生：黄オレンジ */
.character-gold {
  color: #e6a323;
}

/* タツヤコーチ：オレンジ */
.character-tatsuya {
  color: #ed762c;
}

/* 信長：紫 */
.character-nobunaga {
  color: #8956bd;
}

/* 下段右：プロンプト一覧 */
.ai-prompt-heading {
  margin: -5px 0 12px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
}

.ai-prompt-heading strong {
  color: #ff5900;
  font-size: 25px;
}

.ai-prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.ai-prompt-group {
  border: 1px solid var(--theme);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}

.ai-prompt-group-title {
  padding: 7px;
  background: var(--theme);
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: bold;
}

.ai-prompt-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  padding: 7px;
}

.ai-prompt-item {
  min-height: 100px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 10px;
  line-height: 1.7;
}

.ai-prompt-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--theme);
  font-size: 10px;
}

.ai-prompt-footer {
  margin: 0 8px 8px;
  padding: 5px;
  border-radius: 20px;
  background: var(--theme);
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
}
		
/* ロゴ・アイコン画像 */
.ai-logo-img {
  display: inline-block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  vertical-align: middle;
}
		
.ai-logo-img2,
.ai-prompt-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  object-fit: contain;
  vertical-align: -2px;
  margin-right: 5px;
}
		
.ai-logo-img3 {
  display: inline-block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: -2px;
  margin-right: 5px;
}

.ai-card-label .ai-logo-img {
  width: 38px;
  height: 38px;
  margin-right: 10px;
}

/* スマホ対応 */
@media (max-width: 768px) {

  .ai-intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ai-card-label {
    min-width: 200px;
    height: 40px;
    font-size: 21px;
  }

  .ai-card-title {
    font-size: 18px;
  }

  .ai-content-row,
  .ai-bottom-row {
    grid-template-columns: 1fr;
  }

  .ai-image-placeholder {
    min-height: 180px;
  }

  .ai-arrow {
    transform: rotate(90deg);
  }

  .ai-advice-text {
    font-size: 15px;
  }

  .ai-character-area {
    grid-template-columns: 1fr;
  }

  .ai-character-lead {
    border-radius: 10px;
  }

  .ai-prompt-heading {
    font-size: 18px;
  }

  .ai-prompt-heading strong {
    font-size: 25px;
  }
}

@media (max-width: 420px) {
  .ai-card-label {
    min-width: 175px;
    font-size: 19px;
  }

  .ai-merit-item {
    font-size: 13px;
  }

  .ai-prompt-items {
    grid-template-columns: 1fr;
  }

  .ai-character-list {
    grid-template-columns: 1fr;
  }
}

.modal {
  display: none; /* 初期は非表示 */
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.modal-content {
  position: relative; 
  background: #fff2bf;
  width: 90%;
  max-width: 800px;
  padding-bottom: 50px; /* ボタン用の余白を確保 */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  overflow: hidden;
  animation: fadein 0.3s ease;
}

@keyframes fadein {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
	
.main-title {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  color: #000;
  padding: 40px;
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  background: url('../img/item/typing-school/wave-shape.png') repeat-x;
  background-size: contain;
  animation: bg-loop 48s linear infinite;
  cursor: pointer;
  margin-top: 20px;
  margin-bottom: 10px;
}

.ai-upgrade-guide {
    margin: 20px 0 8px;
    padding: 14px 12px;
    background: #f0f7ff;
    border: 1px solid #c9e2ff;
    border-radius: 10px;
    text-align: center;
}

.ai-upgrade-inner h3 {
    margin: 0 0 12px;
    font-size: 17px;
    color: #1d4e89;
}

/* 2列×2行 */
.ai-upgrade-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 8px;
    max-width: 420px;
    margin: 0 auto 12px;
    padding: 0;
    list-style: none;
    text-align: left;
}

.ai-upgrade-features li {
    position: relative;
    padding-left: 16px;
    line-height: 1.5;
    font-size: 12px;
}

.ai-upgrade-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #168348;
    font-weight: bold;
}

/* 購入ボタン */
.ai-upgrade-button {
    display: block;
    max-width: 320px;
    margin: 0 auto;
    padding: 10px 12px;
    background: #f39800;
    color: #fff !important;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 2px 0 #c77d00;
}

.ai-upgrade-button:hover {
    opacity: 0.85;
}

@keyframes bg-loop {
  from { background-position-x: 0; }
  to { background-position-x: -100%; }
}

.page {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 25px;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.left-image,
.text-and-character {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 260px;
  flex-direction: column;
  gap: 20px; 
}

.left-image img {
  max-width: 80%;
  height: auto;
}

.right-text {
  position: relative;
  width: 80%;
  font-size: 1.2em;
  line-height: 1.8;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.right-text::before {
  content: "";
  position: absolute;
  bottom: -30px;
  right: 50%;
  transform: translateX(50%);
  border: 20px solid transparent;
  border-top-color: #fff;
}

.right-text p {
   margin: 0 0 20px 0;
}
	
/* --- 吹き出し出現アニメーション --- */
@keyframes bubble-pop {
  0% {
    transform: scale(0.6) translateY(10px);
    opacity: 0;
  }
  60% {
    transform: scale(1.05) translateY(-3px);
    opacity: 1;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* 吹き出しアニメーション用クラス */
.bubble-animate {
  animation: bubble-pop 0.4s ease-out;
}

.character {
  width: 100px;
  transition: 0.1s;
}

#page-counter {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  align-self: center;
}

/* --- ナビゲーションボタン全体の配置 --- */
.nav-buttons {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

/* --- 共通ボタンスタイル --- */
.nav-buttons button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: white;
  background: #0097a7;
  font-size: 18px;
  transition: background 0.2s;
  white-space: nowrap;
}

/* --- 丸ボタン（矢印） --- */
.arrow-button {
  width: 40px;
  height:40px;
  border-radius: 50%;
  position: relative;
}

/* --- 三角形をCSSで描画 --- */
.arrow-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
}

/* 左矢印 */
#prev-btn::before {
  border-width: 10px 14px 10px 0;
  border-color: transparent white transparent transparent;
}

/* 右矢印 */
#next-btn::before {
  border-width: 10px 0 10px 14px;
  border-color: transparent transparent transparent white;
}

/* --- メニューボタン --- */
#pre-btn {
  width: 80px;
  height: 40px;
  border-radius: 8px;
  font-size: 16px;
}

/* --- ホバー時の共通効果 --- */
.nav-buttons button:hover {
  background: #00bcd4;
}

/* スマホ縦向き */
@media (max-width: 768px) and (orientation: portrait) {
  .page { flex-direction: column; padding: 15px; gap: 20px; }
  .main-title { font-size: 20px; padding: 20px; }
  .right-text { width: 90%; font-size: 1em; line-height: 1.6; }
  .right-text::before { bottom: -20px; border-width: 12px; }
  .character { width: 90px; }
  .nav-buttons { margin-top: 20px; }
  .nav-buttons button { padding: 10px 18px; font-size: 14px; }
}

/* スマホ横向き */
@media (max-width: 768px) and (orientation: landscape) {
  .page { flex-direction: row; justify-content: space-around; padding: 10px; alignment-adjust}
  .main-title { font-size: 20px; padding: 20px; }
  .left-image,
  .text-and-character {flex: 0 0 45%; }
  .left-image img {max-width: 100%; height: auto;}
  .right-text { width: 90%; font-size: 1em; line-height: 1.6; }
  .character { width: 70px; }
}

#island-video {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border: 5px solid #b1bac7; 
  border-radius: 12px; 
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
	
#video-progress-container {
  width: 100%;
  height: 6px;
  background: #ddd;
  border-radius: 3px;
  overflow: hidden;
}

#video-progress-bar {
  width: 0%;
  height: 100%;
  background: #ffae00;
  transition: width 0.1s linear;
}

@media (max-width: 600px) {
  .ai-plan-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    height: auto;
  }

  /* 縦並びでは中央の矢印を隠す */
  .ai-plan-arrow {
    display: none;
  }
	
    .space-start-card {
        padding: 26px 18px;
    }

    .space-start-card h2 {
        font-size: 20px;
    }
	
  .hero-menu-daily,
  .hero-diagnose-card {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
	
}

@media (max-width: 767px) {
    .hero-inner,.intro,.four-elements,.can-do-inner {
        grid-template-columns:1fr;
        display:grid;
    }
	
    .hero-inner {
        padding-top: 6px;
        padding-left: 6px;
        padding-right: 6px;
		gap: 6px;
    }
	
  .hero-buttons {
    flex-direction: column;
	margin-left: 0px;
	margin-bottom: 40px;
  }

  .hero-btn {
    width: 100%;
    box-sizing: border-box;
  }

    .hero-copy,.hero-device {
        width:100%;
    }
    .hero-menu-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-challenge {
        grid-template-columns: 1fr;
        gap: 14px;
    }
	
   .element-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px 10px;
    padding: 7px 0;
  }
	
  .elements-card {
    padding: 10px;
  }

  .element-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .element-name {
    font-size: 18px;
    white-space: normal;
  }

  .example {
    grid-column: 2;
    white-space: normal;
    font-size: 13px;
  }

  .example-tag {
    width: 21px;
    height: 21px;
    font-size: 14px;
  }
	
}

@media(max-width:940px) {

    h1 {
        font-size:37px;
		margin-left:40px;
    }
.lead {
	margin-left:40px;
	font-size: 14px;
}
    .hero-inner {
        padding-top:28px;
        padding-left:18px;
        padding-right:18px;
    }
    .hero-menu-section {
        padding: 24px 16px;
    }

  .hero-menu-image {
  width: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 16px;
  }

  .hero-menu-image img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  }

  .hero-menu-content {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
  }

    .hero-menu-btn {
        min-height: 54px;
        font-size: 14px;
    }
	
.hero-diagnose-note {
    font-size: 14px;
    padding-top: 10px;
    padding-bottom: 10px;
}

    .hero-challenge > h2 {
        font-size: 18px;
    }

    .hero-question-buttons {
		grid-template-columns: 1fr;
        gap: 8px;
    }

    .challenge-button {
        font-size: 13px;
    }
	
  .hero-menu-daily {
    padding: 16px;
  }

  .hero-menu-daily .topic {
    font-size: 18px;
  }

  .hero-menu-btn-action,
  .hero-menu-btn-action2{
    width: 100%;
  }

	  .hero-diagnose-card {
    padding: 16px;
  }

  .hero-diagnose-title {
    font-size: 18px;
  }
	
  .hero-category {
    padding: 14px;
  }

  .hero-category h3 {
    font-size: 16px;
  }
	
  .hero-category-header {
    gap: 12px;
  }

  .hero-category-icon {
    flex-basis: 60px;
    width: 60px;
    height: 60px;
  }

  .hero-category-heading h3 {
    font-size: 17px;
  }

  .hero-category-heading .hero-category-subtitle {
    font-size: 12px;
  }
    .hero-eyebrow {
		margin-left:20px;
    }
    .hero-eyebrow p {
       font-size: clamp(14px, 4.0vw, 20px);
    }
    .hero-rays {
        flex-basis: 20px;
        width: 20px;
        transform: scale(0.75);
    }
.ai-start {
    width: 240px;
    height: 210px;
    object-fit: contain;
    flex-shrink: 0;
}

  .hero-card-message {
    font-size: 15px;
    line-height: 1.4;
  }

  .hero-card-message::before,
  .hero-card-message::after {
    top: 16px;
    width: 5px;
    height: 22px;
  }
	
  .hero-card-wrap {
    padding-top: 48px;
  }
	
  .ai-typing-section-title h2 {
    font-size: 21px;
  }
	
  .ai-typing-section-title .count {
    padding: 5px 9px;
    font-size: 12px;
  }
	
  .intro-grid {
    grid-template-columns: 1fr;
    margin-bottom: 48px;
  }

  .lead2 {
    min-height: 0;
    font-size: 14px;
  }

  .demo-card {
    padding: 16px 12px;
    gap: 8px;
    align-items: stretch;
  }

  .demo-side {
    flex: 1 1 0;
    min-width: 0;
  }

  .hint {
    width: 100%;
    margin: 8px 0 0 4px;
    padding-top: 0;
  }

  .hint span:last-child {
    white-space: normal;
  }

  .demo-label {
    font-size: 14px;
    min-height: 36px;
  }

  .demo-label.ai {
    font-size: 15px;
  }

  .speech {
    padding: 15px 11px;
    font-size: 13px;
  }

  .speech.ai-speech {
    padding: 15px 11px;
  }

  .arrow {
    flex-basis: 16px;
    font-size: 27px;
    align-self: center;
  }
	
	  .ai-feature-compare {
    padding: 20px 0;
  }

  .ai-feature-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .ai-feature-intro {
    min-width: 0;
    box-sizing: border-box;
  }

  .ai-feature-intro .ai-typing-section-title2 {
    font-size: clamp(20px, 5.5vw, 25px);
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .ai-feature-intro .lead2 {
    font-size: 15px;
    line-height: 1.8;
    overflow-wrap: anywhere;
  }

  .ai-feature-visual {
    display: block;
  }

  .ai-feature-illustration img {
    width: 100%;
    max-width: 260px;
    height: auto;
  }

  .ai-plan-compare {
    min-width: 0;
    padding: 0;
  }

  .ai-plan-card {
    min-width: 0;
    padding: 20px 18px;
    border-radius: 12px;
  }

  .ai-plan-card h4 {
    margin-bottom: 16px;
    font-size: 19px;
  }

  .ai-plan-card ul {
    gap: 10px;
  }

  .ai-plan-card li {
    padding-left: 26px;
    font-size: 15px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .ai-plan-card li::before {
    top: 3px;
  }

  .ai-plan-crown {
    top: 8px;
    right: 12px;
    font-size: 20px;
  }
	
}

.boxback911 {
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-family: "Noto Sans JP", sans-serif;
  max-width: 1100px;
  margin: 0 auto;
  margin-top: 48px;
}
	
.boxback912 {
  display: flex;
  gap: 28px;
}

.image-card912 {
  flex: 0 0 46%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-card912 img {
  width: 100%;
  height: auto;
  background: #f6f8fa;
  border-radius: 12px;
  padding: 12px;
  display: block;
}
		
.video-wrap {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
}
		
.video-wrap iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.meta912 {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eyebrow912 {
  position: relative;
  padding-left: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #444;
  line-height: 1.6;
}

.eyebrow912::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #e53935; 
  border-radius: 2px;
}

.title912 {
  font-size: 26px;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
  color: #111;
}
	
.image-sp912 {
  display: none;
}


.divider912 {
  height: 1px;
  background: #e6e6e6;
  margin-top: 4px;
}

.meta-grid912 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}


.info912 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-row912 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.label912 {
  font-size: 16px;
  font-weight: 700;
  min-width: 64px;
  color: #000;
}

.price-list912 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #000;
  align-items: flex-end; 
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.monthly912 {
  display: block;
  width: 100%;
  font-size: 13px;
  color: #777;
  margin-top: 4px;
  font-weight: normal;
  white-space: nowrap;
}

.price-item912 {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin-bottom: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.price-item912 .term {
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

.price-item912 .amount912 {
  font-size: 14px;
  font-weight: bold;
  color: #222;
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* 月額換算は必ず次の行 */
.price-item912 .monthly912 {
  flex-basis: 100%;
  width: 100%;
  box-sizing: border-box;
}

.unit912 {
  font-size: 13px;
  font-weight: 600;
  margin-left: 2px;
}

.buy912 {
  display: flex;
  align-items: center;
  justify-content: center;
}

.amazon-btn912 {
  display: inline-flex;
  align-items: center;
  background: #0078ff;
  color: #fff;
  padding: 14px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 6px 18px rgba(0,120,255,0.18);
  transition: background 0.2s, transform 0.2s;
  width: 190px;
   justify-content: center; 
}

.amazon-btn912:hover {
  background: #005fcc;
  transform: translateY(-2px);
}

.steps912 {
  position: relative;
  padding-left: 22px; 
}

.steps912::before {
  content: "";
  position: absolute;
  left: 22px; 
  top: 0px;
  bottom: 0px;
  width: 12px;
  background: #e0e0e0;
  border-radius: 2px;
  z-index: 0;
}

.step912 {
  position: relative;
  padding: 18px 20px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.step-number912 {
  position: absolute;
  top: 40px;
  left: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 44px; 
  color: #e53935;
  z-index: 2;
}
	
.image-card913 {
  flex: 0 0 40%;
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}
		
.box019 {
    position: relative;
    display: inline-block;
    margin: 3em 0 0 0;
    padding: 8px 8px;
    min-width: 120px;
    max-width: 100%;
    font-size: 26px;
    font-weight: bold;
}
		
a.button_intro, .button_intro {
    border: none;
    font-family: inherit;
    font-size: inherit;
    color: #fff !important;
    background: #e28b00;
    cursor: pointer;
    padding: 20px 25px;
    display: inline-block;
    outline: none;
    font-size: 16px;
    text-align: center;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    font-weight: bold;
    min-width: 150px;
    border: 1px solid #e28b00;
}

.meta913 {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
		
.fa-classic, .fa-regular, .fa-solid, .far, .fas {
    font-family: "Font Awesome 6 Free";
}

@media (max-width: 820px) {
	
  .boxback912 {
    flex-direction: column;
  }

  .image-card912 {
    display: none;
  }

  .image-sp912 {
    display: flex;
  }

  .meta-grid912 {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .buy912 {
    width: 100%;
  }

  .eyebrow912 {
    font-size: 12px;
  }

  .title912 {
    font-size: 20px;
  }
	
.label912 {
  min-width: 44px;
}

  .amazon-btn912 {
    width: 100%;
  }
	
.step912 {
    flex-direction: column;
    padding: 16px;
	}
	
.step-number912 {
  width: 30px;
  height: 30px;
  font-size: 33px; 
  left: -21px;
	}

.steps912::before {
  left: 12px; 
  width: 12px;
}
	
}
		
/* =========================
   FAQ（タイムライン風）
========================= */
.faq {
  padding: 30px 20px;
}

.faq .section-title h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
}

/* 全体 */
.faq-timeline {
  position: relative;
  margin: 0 auto;
  padding-left: 30px;
}

/* 縦ライン */
.faq-timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  width: 3px;
  height: 100%;
  background: #ff7a00;
}

/* 各項目 */
.faq-item {
  position: relative;
  margin-bottom: 30px;
}

/* 丸アイコン */
.faq-item::before {
  content: "Q";
  position: absolute;
  left: -2px;
  top: 0;
  width: 24px;
  height: 24px;
  background: #ff7a00;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 内容 */
.faq-content {
  background: #fff7f0;
  padding: 18px 20px;
  border-radius: 12px;
}

/* 質問 */
.faq-q {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #333;
}

.faq-a {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}

.faq-a::before {
  content: "A.";
  font-weight: 700;
  color: #333;
  flex-shrink: 0;
}
		
.table-responsive-custom {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
		
/* 対応環境テーブル */
.table-responsive-custom {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table-responsive-custom th,
.table-responsive-custom td {
    border: 1px solid #ccc;
    padding: 10px;
    box-sizing: border-box;
}

.table-responsive-custom th {
    width: 100px;
    text-align: center;
    background-color: #D9EAF4;
}

.table-responsive-custom td {
    background-color: #FFF;
}

/* 画面下部固定の購入ボタン */
.fixed-buy {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px 12px;
    background: rgba(255,255,255,0.96);
    border-top: 1px solid #ddd;
    text-align: center;
    z-index: 100;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

/* スクロール後に表示 */
.fixed-buy.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fixed-buy a {
    display: inline-block;
    background: #0078ff;
    color: #fff;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}

/* スマホ */
@media screen and (max-width: 767px) {
    .table-responsive-custom,
    .table-responsive-custom tbody,
    .table-responsive-custom tr,
    .table-responsive-custom th,
    .table-responsive-custom td {
        display: block;
        width: 100%;
    }

    .table-responsive-custom tr {
        margin-bottom: 15px;
    }

    .table-responsive-custom th {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .ai-upgrade-guide {
        padding: 12px 10px;
    }

    .ai-upgrade-inner h3 {
        font-size: 16px;
    }

    .ai-upgrade-features li {
        font-size: 11px;
    }

    .ai-upgrade-button {
        font-size: 13px;
        padding: 9px 8px;
    }
}