/* PC/SP共通の操作・導線用CSS。ビルドを必要としない正本。 */
/* 生成AI研修のヒーローは、写真に重ねた訴求を左寄せで縦に積む。 */
.section-hero--ai-practice {
  padding: 100px 20px;
}

.section-hero--ai-practice .hero-image {
  height: 100%;
}

.section-hero--ai-practice > .inner {
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
}

.ai-practice-hero-content {
  box-sizing: border-box;
  width: 100%;
  max-width: 720px;
}

.ai-practice-hero-message {
  min-width: 0;
  color: #fff;
  text-align: left;
  text-shadow: 0 2px 12px rgba(6, 18, 33, 0.55);
}

.ai-practice-hero-message > p {
  text-align: left;
}

.ai-practice-hero-message__audience {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 26px;
  color: #90B8DA;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

/* 対象読者を示すラベルの横線。ぼかしやグラデーションは使わない。 */
.ai-practice-hero-message__audience::before {
  content: '';
  flex: 0 0 20px;
  width: 20px;
  height: 2px;
  background: #90B8DA;
}

.section-hero--ai-practice .page-title {
  margin: 0;
  color: #fff;
  font-size: 56px;
  font-weight: 900;
  line-height: 1.3;
}

/* キャッチの縦線は折り返しても先頭行へ残す。 */
.ai-practice-hero-message__catch {
  position: relative;
  margin: 26px 0 0;
  padding-left: 16px;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.5;
  color: #90B8DA;
}

.ai-practice-hero-message__catch::before {
  content: '';
  position: absolute;
  top: 0.2em;
  left: 0;
  width: 3px;
  height: 1em;
  background: #90B8DA;
}

.ai-practice-hero-message__text {
  margin: 10px 0 0;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.section-hero--ai-practice .idigi-cta-group--hero {
  justify-content: flex-start;
  margin-top: 40px;
}

.ai-practice-section-lead {
  margin: 0 auto 30px;
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
}

.sectionPrice--ai-practice > .inner > h2 {
  margin-bottom: 40px;
}

.ai-practice-price-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #d8e3ed;
  border-radius: 16px;
  background: #ffffff;
  color: #232323;
}

.ai-practice-price-card__details,
.ai-practice-price-card__fee {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
}

.ai-practice-price-card__details {
  background: #edf4f9;
}

.ai-practice-price-card__label {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.6;
}

.ai-practice-price-card__duration {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font-size: 22px;
  line-height: 1.4;
}

.ai-practice-price-card__duration strong {
  font-size: 48px;
  font-weight: bold;
}

.ai-practice-price-card__duration span {
  padding: 4px 12px;
  border-radius: 6px;
  background: #ffffff;
  font-size: 16px;
}

.ai-practice-price-card__summary {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.6;
}

.ai-practice-price-card__amount {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 0;
  line-height: 1.2;
}

.ai-practice-price-card__amount strong {
  font-size: 60px;
  font-weight: bold;
  letter-spacing: -1px;
}

.ai-practice-price-card__amount span {
  font-size: 16px;
}

.ai-practice-price-card .ai-practice-price-card__note {
  margin: 16px 0 0;
  font-size: 16px;
  font-weight: bold;
}

.ai-practice-grant-guide {
  padding: 32px;
  border: 2px solid #24629b;
  border-radius: 12px;
  background: #edf4f9;
  color: #20334c;
  text-align: center;
}

.ai-practice-grant-guide h3 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: bold;
  line-height: 1.6;
}

.ai-practice-grant-guide p {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
}

.ai-practice-grant-guide .course-grant-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  max-width: 480px;
  min-height: 56px;
  padding: 16px 24px;
  border-radius: 8px;
  background: #24629b;
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.6;
  text-decoration: none;
}

.ai-practice-grant-guide .course-grant-link:hover {
  background: #194b77;
}

.ai-practice-grant-guide .course-grant-link > span {
  text-align: center;
}

.ai-practice-grant-guide .course-grant-link:focus-visible {
  outline: 2px solid #20334c;
  outline-offset: 4px;
}

@media (max-width: 767px) {
  .section-hero--ai-practice {
    padding: 60px 16px;
  }

  .section-hero--ai-practice > .inner {
    width: 100%;
    max-width: 390px;
  }

  .sectionPrice--ai-practice > .inner > h2 {
    margin-bottom: 28px;
  }

  .ai-practice-grant-guide {
    padding: 24px 16px;
  }

  .ai-practice-grant-guide h3 {
    font-size: 20px;
  }

  .ai-practice-grant-guide .course-grant-link {
    padding: 14px 16px;
    font-size: 16px;
  }

  .ai-practice-hero-content {
    max-width: 100%;
  }

  .section-hero--ai-practice .page-title {
    font-size: clamp(28px, 8vw, 32px);
    line-height: 1.35;
    text-wrap: balance;
  }

  .section-hero--ai-practice .idigi-cta-group--hero {
    margin-top: 24px;
  }

  .section-hero--ai-practice .hero-image {
    object-position: center;
    filter: none;
  }

  .ai-practice-price-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .ai-practice-price-card__details,
  .ai-practice-price-card__fee {
    padding: 24px 16px;
  }

  .ai-practice-price-card__amount strong {
    font-size: 48px;
  }

  .ai-practice-hero-message__audience {
    gap: 10px;
    margin-bottom: 12px;
    font-size: 20px;
    letter-spacing: 0.04em;
  }

  .ai-practice-hero-message__audience::before {
    flex-basis: 16px;
    width: 16px;
  }

  .ai-practice-hero-message__catch {
    margin-top: 16px;
    padding-left: 12px;
    font-size: 17px;
    line-height: 1.5;
  }

  .ai-practice-hero-message__text,
  .ai-practice-section-lead {
    font-size: 15px;
    text-align: left;
  }

  .ai-practice-hero-message__text {
    margin-top: 10px;
    line-height: 1.7;
  }

  .ai-practice-hero-message__text br,
  .ai-practice-section-lead br {
    display: none;
  }
}

.idigi-cta.idigi-cta--download {
  border-width: 1px;
}

/* 価格側の下余白とCTA側の上余白が加算されないよう、間隔はCTA側で管理する。 */
.theme-sp .section-hero .pricing-section,
.theme-sp .section-fv .inner .box > .jyosei,
.theme-sp .section-fv .inner .box > .jyosei > li:last-child {
  margin-bottom: 0;
}

.theme-sp .pricing-section + .idigi-cta-group--hero,
.theme-sp .jyoseiOuter ~ .idigi-cta-group--hero,
.theme-sp .section-fv .jyosei + .idigi-cta-group--hero {
  margin-top: 30px;
}

.section-hero--excel-vba .pricing-section {
  max-width: calc(100% - 16px);
  background-color: transparent;
  color: #232323;
}

.section-hero--excel-vba .pricing-section::after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  transform: skewX(-15deg);
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.section-hero--excel-vba .pricing-section .price-comparison p,
.section-hero--excel-vba .pricing-section .price-comparison li:first-child p {
  display: block;
  font-weight: bold;
  text-align: center;
}

.section-hero .pricing-section .price-comparison li:only-child {
  margin-top: 0;
  padding-left: 0;
  transform: none;
}

.section-hero .pricing-section .price-comparison li:only-child::after {
  content: none;
}

.section-hero .pricing-section .price-comparison li:only-child p {
  display: block;
}

.course-price-note {
  margin-top: 10px;
  color: #333333;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.6;
  text-align: center;
}

[id^="course-"],
[id^="about-"],
[id^="faq-"] {
  scroll-margin-top: 100px;
}

/* 開閉操作を初期化できない場合も、本文は読める状態にする。 */
#toggle h3:not(.ux-disclosure-heading) + *,
#curriculumToggle h3:not(.ux-disclosure-heading) + *,
#faqAccordion dt:not(.ux-disclosure-heading) + dd,
.faqBox dt:not(.ux-disclosure-heading) + dd,
#page-faq-main section dt:not(.ux-disclosure-heading) + dd {
  display: block !important;
}

.ux-curriculum-note {
  max-width: 1000px;
  margin: 20px auto;
  line-height: 1.8;
}

.ux-curriculum-compact #curriculumToggle > div {
  display: none;
}

#form-error-summary:not(:empty) {
  margin-bottom: 16px;
  color: #a32218;
}

.ux-disclosure-heading > .ux-disclosure-button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}

/* ボタンで包んだ後も、各テーマの見出しの配置を引き継ぐ。 */
#curriculumToggle .ux-disclosure-button {
  flex-flow: inherit;
  align-items: inherit;
  justify-content: inherit;
}

.section-3feature {
  background: #eee9e2;
}

.section-3feature .grid-3 .item {
  box-shadow: none;
}

/* 見出しのbeforeはFAQの「Q.」に使うため、アイコンはボタン側に描く。 */
:is(#toggle, #curriculumToggle, #faqAccordion, .faqBox, #page-faq-main) .ux-disclosure-heading::after {
  content: none;
}

:is(.ux-disclosure-button, #faqAccordion .qa > summary)::before,
:is(.ux-disclosure-button, #faqAccordion .qa > summary)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: var(--ux-disclosure-icon-right, 10px);
  width: 14px;
  height: 1px;
  background: currentColor;
  pointer-events: none;
  transition: transform 0.35s ease;
}

:is(.ux-disclosure-button, #faqAccordion .qa > summary)::before {
  transform: translateY(-50%) rotate(0deg);
}

:is(.ux-disclosure-button, #faqAccordion .qa > summary)::after {
  transform: translateY(-50%) rotate(-90deg);
}

:is(.ux-disclosure-button[aria-expanded="true"], #faqAccordion .qa[open] > summary)::before,
:is(.ux-disclosure-button[aria-expanded="true"], #faqAccordion .qa[open] > summary)::after {
  transform: translateY(-50%) rotate(180deg);
}

#curriculumToggle {
  --ux-disclosure-icon-right: 40px;
}

#toggle {
  --ux-disclosure-icon-right: 3%;
}

#page-faq-main {
  --ux-disclosure-icon-right: 20px;
}

#faqAccordion .qa > summary {
  list-style: none;
}

#faqAccordion .qa > summary::-webkit-details-marker {
  display: none;
}

@media (max-width: 959px) {
  #curriculumToggle {
    --ux-disclosure-icon-right: 15px;
  }

  #faqAccordion,
  #page-faq-main {
    --ux-disclosure-icon-right: 0px;
  }
}

.page-nav .menu li > a,
.page-nav .menu li > button {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-decoration: none;
  cursor: pointer;
}

.ux-guide {
  width: min(1120px, 92%);
  margin: 32px auto;
  padding: 28px;
  border: 1px solid #d8e1ea;
  border-radius: 12px;
  background: #f6f9fc;
  color: #243447;
}

.ux-guide h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: bold;
  line-height: 1.5;
}

.ux-guide p {
  margin: 12px 0;
  line-height: 1.8;
}

.ux-guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.ux-guide-links li {
  flex: 1 1 200px;
}

.ux-guide-links a {
  display: block;
  padding: 16px;
  border: 1px solid #59748b;
  border-radius: 8px;
  background: #fff;
  color: #17486e;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ux-guide-links a:hover {
  background: #eaf2f9;
}

.ux-guide-links small {
  display: block;
  margin-top: 6px;
  font-size: 14px;
}

.home-purpose {
  padding: 80px 20px;
  background: #fff;
  color: #232323;
}

.home-purpose h2 {
  margin-bottom: 24px;
}

.home-purpose-lead {
  margin-bottom: 40px;
  line-height: 1.8;
  text-align: center;
}

.home-purpose-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  list-style: none;
}

.home-purpose-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  column-gap: 16px;
  align-items: start;
  position: relative;
  height: 100%;
  padding: 32px;
  overflow: hidden;
  border: 1px solid #dbe2e8;
  border-radius: 16px;
  background: #f6f8fa;
  color: #172c42;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}

.home-purpose-label {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  color: #526477;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.home-purpose-icon {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #e5edf4;
  color: #336699;
}

.home-purpose-icon svg {
  width: 32px;
  height: 32px;
}

.home-purpose-card h3 {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 28px 0 16px;
  font-size: 26px;
  font-weight: bold;
  line-height: 1.5;
  text-align: left;
}

.home-purpose-card p {
  grid-column: 1 / -1;
  grid-row: 3;
  margin-bottom: 32px;
  color: #526477;
  font-size: 14px;
  line-height: 1.9;
}

.home-purpose-action {
  grid-column: 1 / -1;
  grid-row: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid #dbe2e8;
  color: #336699;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.6;
}

.home-purpose-action::after {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.home-purpose-card:hover {
  background: #edf3f8;
  border-color: #7395b2;
}

.home-purpose-card:hover h3 {
  color: #065fd4;
}

.home-purpose-motion {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(160deg, #183d60, #0a1b2b);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s;
}

.home-purpose-motion--workflow {
  background: linear-gradient(160deg, #164f59, #0a1b2b);
}

.home-purpose-motion--marketing {
  background: linear-gradient(160deg, #253e66, #0a1b2b);
}

.home-purpose-motion::after {
  content: '';
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(5, 17, 29, 0.94));
}

.home-purpose-motion svg {
  position: absolute;
  top: 24px;
  left: 24px;
  width: calc(100% - 48px);
  height: auto;
}

.home-purpose-card h3 {
  position: relative;
  z-index: 1;
  padding-right: 28px;
  transition: transform 0.24s ease-out, color 0.16s;
}

.home-purpose-card h3::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 22px;
  height: 18px;
  background: currentColor;
  clip-path: polygon(0 44%, 76% 44%, 45% 8%, 53% 0, 100% 50%, 53% 100%, 45% 92%, 76% 56%, 0 56%);
  opacity: 0;
  transform: translate(-6px, -50%);
  transition: opacity 0.2s, transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .home-purpose-card:hover h3::after,
  .home-purpose-card:focus-visible h3::after {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.ux-disclosure-button, #faqAccordion .qa > summary)::before,
  :is(.ux-disclosure-button, #faqAccordion .qa > summary)::after,
  .home-purpose-card h3::after {
    transition: none;
  }
}

.home-purpose-card > .home-purpose-label,
.home-purpose-card > .home-purpose-icon,
.home-purpose-card > p,
.home-purpose-card > .home-purpose-action {
  transition: opacity 0.2s;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .home-purpose-card.is-purpose-playing .home-purpose-motion {
    opacity: 1;
  }

  .home-purpose-card.is-purpose-playing h3 {
    color: #fff;
    transform: translateY(var(--purpose-title-shift, 0px));
  }

  .home-purpose-card.is-purpose-playing > .home-purpose-label,
  .home-purpose-card.is-purpose-playing > .home-purpose-icon,
  .home-purpose-card.is-purpose-playing > p,
  .home-purpose-card.is-purpose-playing > .home-purpose-action {
    opacity: 0;
  }

  .home-purpose-motion .purpose-code-line,
  .home-purpose-motion .purpose-flow-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }

  .home-purpose-motion .purpose-motion-check {
    opacity: 0;
  }

  .home-purpose-motion .purpose-chart-bar {
    transform-box: fill-box;
    transform-origin: center bottom;
    transform: scaleY(0);
  }

  .is-purpose-playing .purpose-code-line {
    animation: purpose-code 0.32s ease-out both;
  }

  .is-purpose-playing .purpose-code-line:nth-child(2) { animation-delay: 0.12s; }
  .is-purpose-playing .purpose-code-line:nth-child(3) { animation-delay: 0.24s; }
  .is-purpose-playing .purpose-code-line:nth-child(4) { animation-delay: 0.36s; }

  .is-purpose-playing .purpose-motion-check {
    animation: purpose-check 0.18s ease-out 0.72s both;
  }

  .is-purpose-playing .purpose-flow-line {
    animation: purpose-code 0.6s ease-out both;
  }

  .is-purpose-playing .purpose-chart-bar {
    animation: purpose-chart 0.45s ease-out both;
  }

  .is-purpose-playing .purpose-chart-bar:nth-child(2) { animation-delay: 0.06s; }
  .is-purpose-playing .purpose-chart-bar:nth-child(3) { animation-delay: 0.12s; }
  .is-purpose-playing .purpose-chart-bar:nth-child(4) { animation-delay: 0.18s; }

  .is-purpose-playing .home-purpose-motion--marketing .purpose-code-line {
    animation-duration: 0.5s;
    animation-delay: 0.2s;
  }
}

@keyframes purpose-code {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes purpose-check {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes purpose-chart {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.home-purpose a:focus-visible {
  outline: 3px solid #336699;
  outline-offset: 4px;
}

#training-ai-dx {
  scroll-margin-top: 24px;
}

@media (max-width: 767px) {
  .home-purpose {
    padding: 50px 20px;
  }

  .home-purpose-lead {
    margin-bottom: 28px;
    font-size: 14px;
  }

  .home-purpose-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home-purpose-card {
    padding: 24px;
  }

  .home-purpose-card h3 {
    font-size: 22px;
  }

  .ux-guide {
    padding: 20px 16px;
    margin: 24px auto;
  }

  .ux-guide h2 {
    font-size: 21px;
  }

  .ux-guide-links li {
    flex-basis: 100%;
  }
}
