/* =========================================================
   En MUSUBI NARA - TOPページ専用CSS
   index.html だけで使用
   ========================================================= */

/* ファーストビュー：背景 opening.png は固定、内容だけ位置調整 */
.hero.hero-opening {
  position: relative;
  min-height: 720px;
  padding: 0;
  display: flex;
  align-items: center;
  background: #278be0;
  overflow: hidden;
}

.hero.hero-opening .hero-opening-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0 84px;
}

.hero.hero-opening .hero-copy {
  max-width: 980px;
  transform: translateY(-80px);
}

.hero.hero-opening .eyebrow {
  color: #fff !important;
  letter-spacing: .18em;
  text-shadow: 0 2px 5px rgba(0, 55, 115, .48);
}

.hero.hero-opening h1 {
  margin: .55rem 0 1.7rem;
  color: #fff;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(2.5rem, 4.25vw, 4.6rem);
  line-height: 1.5;
  letter-spacing: .025em;
  text-shadow: 0 2px 5px rgba(0, 55, 115, .55), 0 0 12px rgba(0, 55, 115, .20);
}

.hero.hero-opening h1 .hero-line {
  display: block;
  white-space: nowrap;
  color: #fff !important;
  text-shadow: 0 2px 5px rgba(0, 55, 115, .55), 0 0 12px rgba(0, 55, 115, .20) !important;
}

.hero.hero-opening h1 .accent {
  color: var(--main-color) !important;
  text-shadow: 0 2px 5px rgba(80, 30, 65, .30), 0 0 10px rgba(255, 255, 255, .10) !important;
}

.hero.hero-opening .hero-lead {
  max-width: 900px;
  margin: 0 0 28px;
  color: #fff;
  font-size: 1.55rem;
  line-height: 2;
  text-shadow: 0 2px 5px rgba(0, 55, 115, .50);
}

.hero.hero-opening .hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  transform: translateY(50px);
}

.hero.hero-opening .btn-primary {
  background: var(--main-color);
  color: #fff;
}

.hero.hero-opening .btn-ghost {
  background: rgba(255, 255, 255, .94);
  border-color: var(--main-color);
  color: var(--main-dark);
}

/* CONCEPT */
.home-concept h2 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.55;
}

.concept-text {
  text-align: left;
}

.home-concept {
  padding-bottom: 60px;
}

.concerns {
  padding-top: 60px;
}

/* WORRIES */
.concerns {
  background: #fff
}

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

.concern-card {
  background: var(--pink-bg);
  border: 1px solid #FFB8DC;
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 8px 28px rgba(80, 58, 56, .04);
}

.concern-card:before {
  content: "✓";
  color: var(--main-color);
  font-weight: 800;
  margin-right: 10px;
}

.concern-message {
  margin-top: 50px;
  text-align: center;
}

.concern-message h3 {
  margin: 0 0 16px;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--main-color);
}

.concern-message p {
  margin: 0;
  font-size: 1rem;
  line-height: 2;
  color: var(--ink);
}


/* DATA preview */
.data-preview {
  background: #FFFFFF
}


/* FEATURES */

.features .section-heading {
  max-width: none;
}

.features .section-heading h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  white-space: nowrap;
}

.features {
  background: #fff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  background: #fff;
  min-height: 235px;
}

.feature-card span {
  font-family: "Noto Serif JP", serif;
  color: var(--main-color);
  font-size: 1.4rem;
}

.feature-card h3 {
  font-size: 1rem;
  margin: 12px 0;
}

.feature-card p {
  font-size: .85rem;
  color: var(--muted);
}

.text-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--main-dark);
  font-weight: 700;
}

/* TOPから各ページへのカード */

.home-links {
  padding-top: 10px;
}

.page-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.page-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px;
  box-shadow: var(--shadow);
  transition: .25s;
}

.page-card:hover {
  transform: translateY(-5px);
  border-color: #FFB8DC;
}

.page-card span {
  font-size: .7rem;
  letter-spacing: .15em;
  color: var(--main-dark);
  font-weight: 700;
}

.page-card h3 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.35rem;
}

/* TOP下部CTA */
.contact-mini {
  padding: 90px 0;
  background: linear-gradient(135deg, #FFFFFF, #FFFFFF);
}

.contact-mini h2 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.55;
}

/* 無料診断 + TMS / SCRUM */
.footer-tools {
  background: linear-gradient(180deg, #fff 0%, #FFFFFF 100%);
  border-top: 1px solid var(--line);
}

.tool-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 44px;
}

.tool-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 20px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
  transition: .25s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: #FFB8DC;
}

.tool-icon {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--main-light), #FFFFFF);
  color: var(--main-dark);
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 1.35rem;
}

.tool-label {
  margin: 0 0 4px;
  color: var(--main-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.tool-card h3 {
  margin: 0 0 8px;
  font-family: "Noto Serif JP", serif;
  font-size: 1.35rem;
}

.tool-card p {
  color: var(--muted);
  font-size: .88rem;
  margin: 0
}

.tool-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--main-dark);
  font-weight: 700;
  font-size: .85rem;
}

.membership-box {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 34px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.membership-copy h3 {
  margin: .2rem 0 1rem;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.6;
}

.membership-copy p:last-child {
  color: var(--muted);
  margin-bottom: 0
}

.membership-logos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.network-logo-card {
  min-width: 0
}

.logo-placeholder {
  min-height: 145px;
  border: 1px solid #d8d1cf;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 16px;
  color: #8b8986;
  white-space: nowrap;
}

.logo-placeholder strong {
  font-size: 2rem;
  letter-spacing: .08em;
  color: #B7D9C4;
}

.logo-placeholder>span:last-child {
  font-weight: 600;
  font-size: .82rem;
}

.mock-tms-mark {
  display: inline-grid;
  place-items: center;
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 900;
  color: #B7D9C4;
}

.mock-scrum-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #B7D9C4, #B7D9C4);
  color: #fff;
  font-weight: 800;
}

.scrum-logo-placeholder .mock-scrum-mark {
  margin-right: 4px
}

.network-logo-card small {
  display: block;
  margin-top: 6px;
  color: #a09894;
  font-size: .62rem;
  text-align: center;
}

.membership-logos img {
  width: 100%;
  height: 165px;
  object-fit: contain;
  border: none;
  background: transparent;
  padding: 8px;
}

/* TOP responsive */
@media (max-width:980px) {
  .hero.hero-opening {
    min-height: 640px;
    background-position: 64% center;
  }

  .hero.hero-opening .hero-copy {
    max-width: 760px
  }

  .hero.hero-opening h1 {
    font-size: clamp(2.2rem, 5.3vw, 3.7rem)
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .page-card-grid {
    grid-template-columns: 1fr
  }

  .membership-box {
    grid-template-columns: 1fr
  }
}

@media (max-width:800px) {
  .tool-card-grid {
    grid-template-columns: 1fr
  }

  .tool-card {
    grid-template-columns: 64px 1fr
  }

  .tool-icon {
    width: 64px;
    height: 64px
  }
}

@media (max-width:680px) {
  .hero.hero-opening {
    min-height: 620px;
    background-position: 69% center;
  }

  .hero.hero-opening:before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(13, 93, 177, .16);
    pointer-events: none;
  }

  .hero.hero-opening .hero-opening-inner {
    position: relative;
    width: min(100% - 28px, 1180px);
    padding: 64px 0;
  }

  .hero.hero-opening .hero-copy {
    transform: translateY(-35px);
  }

  .hero.hero-opening h1 {
    font-size: clamp(1.85rem, 8.2vw, 2.65rem);
    line-height: 1.55;
  }

  .hero.hero-opening h1 .hero-line {
    white-space: normal
  }

  .hero.hero-opening .hero-lead {
    font-size: .94rem;
    line-height: 1.85;
  }

  .hero.hero-opening .hero-actions {
    transform: translateY(24px);
  }

  .concern-grid,
  .feature-grid {
    grid-template-columns: 1fr
  }

  .membership-logos {
    grid-template-columns: 1fr
  }

  .logo-placeholder {
    min-height: 120px
  }
}

/* =========================================================
   EVENT - TMSイベントポータル
   AFFILIATIONと同じセクション内に表示
   ========================================================= */
.event-card {
  margin-top: 42px;
  background: #fff;
  border: 1px solid #FFB8DC;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(80, 58, 56, .05);

  display: grid;
  grid-template-columns: 1fr 1.25fr;
  overflow: hidden;
  min-height: 360px;
}

.event-content {
  padding: 38px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-image {
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.event-card .eyebrow {
  margin-bottom: 8px;
}

.event-card h3 {
  margin: 0 0 12px;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  line-height: 1.5;
  color: var(--ink);
}

.event-description {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.9;
}

.event-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  min-height: 54px;
  width: 100%;
  max-width: 640px;

  padding: 0 28px;
  border: 1px solid var(--main-color);
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;

  transition:
    transform .25s ease,
    background .25s ease,
    color .25s ease,
    box-shadow .25s ease;
}

/* 奈良県以外のイベントボタン */
.event-link-sub {
  margin-top: 14px;
}

/* ホバー */
.event-link:hover,
.event-link:focus-visible {
  transform: translateY(-3px);
  background: #FFB8DC;
  color: #000;
  box-shadow: 0 10px 25px rgba(255, 184, 220, .28);
}

.event-link span {
  font-size: 1.15em;
  transition: transform .25s ease;
}

.event-link:hover span,
.event-link:focus-visible span {
  transform: translateX(4px);
}

@media (max-width: 680px) {
  .event-card {
    margin-top: 30px;
    padding: 28px 22px;
    border-radius: 18px;
  }

  .event-link {
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
    text-align: center;
  }
}

/* TOPページ：ファーストビューCTA */
.hero.hero-opening main a.transition-btn,
.hero.hero-opening a.transition-btn {
  background: #fff !important;
  color: #000 !important;
  border-color: #FFB8DC !important;
}

.hero.hero-opening a.transition-btn:hover,
.hero.hero-opening a.transition-btn:focus-visible {
  background: #FFB8DC !important;
  color: #000 !important;
  border-color: #FFB8DC !important;
}

/* Corporate color alignment */
.concerns,
.home-links,
.event-card,
.affiliation-card {
  background-color: #fff;
}

/* EVENTボタン：白 → hoverでメインピンク */
.event-link {
  background: #fff;
  color: #3f3735;
  border-color: #FFB8DC;
}

.event-link:hover,
.event-link:focus-visible {
  background: #FFB8DC !important;
  color: #3f3735 !important;
  border-color: #FFB8DC !important;
}

/* TOPページ ボタン hover時の文字色：黒 */
.hero.hero-opening a.transition-btn:hover,
.hero.hero-opening a.transition-btn:focus-visible,
.event-link:hover,
.event-link:focus-visible {
  color: #000 !important;
}

/* =========================
   IMAGE FLOW
========================= */

.image-flow {
  position: relative;
  height: 80vh;

  background-image: url("../images/opening3.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  overflow: hidden;
}

/* PCではHTML内のimgは使わない */
.image-flow-sticky {
  display: none;
}

/* =========================================================
   CAMPAIGN NOTICE｜ヘッダーとファーストビューの間
   ========================================================= */
.campaign-ticker {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 50px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 184, 220, .75);
  background: #FFFAF2;
  color: var(--ink);
}

.campaign-ticker__track {
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.campaign-ticker__marquee {
  display: flex;
  width: max-content;
  animation: campaignTicker 30s linear infinite;
}

.campaign-ticker__content {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  white-space: nowrap;
  font-size: .88rem;
  font-weight: 500;
}

.campaign-ticker__label {
  color: #E978AE;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;

  padding: 4px 10px;
  border: 1px solid #FFB8DC;
  border-radius: 999px;
  background: #fff;
}

.campaign-ticker__dot {
  color: #B7D9C4;
  font-size: .62rem;
}

.campaign-ticker__link {
  position: relative;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  align-self: center;
  min-width: 0;
  min-height: 36px;
  margin: 7px 14px 7px 10px;
  padding: 0 22px;

  border: 1px solid #FFB8DC;
  border-radius: 999px;
  background: #fff;

  color: #3f3735;
  font-size: .86rem;
  font-weight: 600;
  white-space: nowrap;

  transition:
    background .25s ease,
    transform .25s ease;
}

.campaign-ticker__link:hover,
.campaign-ticker__link:focus-visible {
  background: #FFB8DC;
  transform: translateX(3px);
}

.campaign-ticker__link span {
  color: #3f3735;
  font-size: 1rem;
  transition: transform .25s ease;
}

.campaign-ticker__link:hover span,
.campaign-ticker__link:focus-visible span {
  transform: translateX(3px);
}

@keyframes campaignTicker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .campaign-ticker__marquee {
    animation: none;
  }
}

@media (max-width: 680px) {
  .campaign-ticker {
    min-height: 44px;
  }

  .campaign-ticker__content {
    gap: 20px;
    padding-right: 20px;
    font-size: .76rem;
  }

  .campaign-ticker__label {
    font-size: .72rem;
    letter-spacing: .08em;
    padding: 3px 8px;
    white-space: nowrap;
  }

  .campaign-ticker__link {
    min-width: 104px;
    padding: 0 12px;
    gap: 7px;
    font-size: .72rem;
  }
}

/* =========================================================
   IMAGE FLOW｜スマホ
   PCの固定背景と同じ見え方を、固定画像レイヤー＋クリップで再現
   ========================================================= */
@media (max-width: 680px) {
  .image-flow {
    position: relative;
    height: 80vh;
    background: none !important;
    overflow: hidden;
  }

  .image-flow-sticky {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    z-index: 0;
    pointer-events: none;
    visibility: hidden;
    clip-path: inset(100% 0 0 0);
    -webkit-clip-path: inset(100% 0 0 0);
  }

  .image-flow-sticky.is-active {
    visibility: visible;
  }

  .image-flow-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  /* DATA / FEATURESなど通常コンテンツを固定画像より前面に保つ */
  .data-preview,
  .features {
    position: relative;
    z-index: 1;
    background: #fff;
  }
}

/* EVENT｜スマホ表示調整 */
@media (max-width: 680px) {

  .event-card {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 28px 22px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .event-content {
    width: 100%;
    min-width: 0;
    padding: 0;
  }

  .event-card h3 {
    font-size: 1.55rem;
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .event-description {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .event-link {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    padding: 14px 18px;

    white-space: normal;
    overflow-wrap: anywhere;

    line-height: 1.6;
    text-align: center;
  }

  .event-link span {
    flex: 0 0 auto;
  }

  .event-image {
    width: 100%;
    height: auto;
    margin-top: 24px;
  }

  .event-image img {
    width: 100%;
    height: auto;
  }
}

/* CONCEPT｜スマホ */
@media (max-width: 680px) {
  .home-concept h2 {
    font-size: clamp(1.25rem, 5.2vw, 1.55rem);
    line-height: 1.8;
    letter-spacing: 0;
    white-space: nowrap;
  }
}

/* HERO見出し｜スマホ2行固定 */
@media (max-width: 680px) {
  .hero.hero-opening h1 {
    font-size: clamp(1.45rem, 6.3vw, 1.75rem);
    line-height: 1.65;
    letter-spacing: 0;
  }

  .hero.hero-opening h1 .hero-line {
    display: block;
    white-space: nowrap;
  }
}

/* HERO背景｜スマホ専用 */
@media (max-width: 680px) {
  .hero.hero-opening {
    background-image: url("../images/opening-sp.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }
}

/* CHECK見出し｜スマホ1行表示 */
@media (max-width: 680px) {
  .concerns .section-heading h2 {
    font-size: clamp(1.35rem, 6vw, 1.65rem);
    line-height: 1.5;
    letter-spacing: 0;
    white-space: nowrap;
  }
}

/* DATA見出し｜スマホ1行 */
@media screen and (max-width: 680px) {
  .data-preview .section-heading h2 {
    font-size: 1.35rem !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
  }
}

/* IMAGE FLOW｜スマホ専用画像 */
@media screen and (max-width: 680px) {
  .image-flow-img {
    content: url("../images/opening3-sp.jpg");
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }
}

/* FEATURES見出し｜スマホ1行 */
@media screen and (max-width: 680px) {
  .features .section-heading h2 {
    font-size: 1.25rem !important;
    line-height: 1.5 !important;
    letter-spacing: -0.02em !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
  }
}

/* CONTACT見出し｜スマホ2行固定 */
@media screen and (max-width: 680px) {
  .contact-mini h2 {
    font-size: 1.5rem !important;
    line-height: 1.5 !important;
    letter-spacing: -0.04em !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
  }
}

/* FREE CHECK 説明文｜スマホ左揃え */
@media screen and (max-width: 680px) {
  .footer-tools .section-heading>p:not(.eyebrow) {
    text-align: left !important;
  }
}

/* AFFILIATION｜スマホ3行固定 */
@media screen and (max-width: 680px) {

  .membership-copy .affiliation-title span,
  .membership-copy .affiliation-text span {
    display: block;
    white-space: nowrap;
  }

  .membership-copy .affiliation-title {
    font-size: 1.15rem !important;
    line-height: 1.8 !important;
    letter-spacing: -0.03em;
  }

  .membership-copy .affiliation-text {
    font-size: .82rem !important;
    line-height: 2 !important;
    letter-spacing: -0.02em;
  }
}

/* =========================================================
   TOP HERO｜2枚スライド（3秒ごと、画像と文章を同期）
   ========================================================= */
.hero.hero-opening .hero-slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .7s ease-in-out;
  pointer-events: none;
}

.hero.hero-opening .hero-slide-bg--first {
  background-image: url("../images/opening.png");
}

.hero.hero-opening .hero-slide-bg--second {
  background-image: url("../images/opening2.png");
}

.hero.hero-opening .hero-slide-bg.is-active {
  opacity: 1;
}

.hero.hero-opening .hero-opening-inner {
  position: relative;
  z-index: 2;
}

.hero.hero-opening .hero-copy-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease-in-out, visibility .7s;
}

.hero.hero-opening .hero-copy-slide.is-active {
  opacity: 1;
  visibility: visible;
}

/* 両スライドの文字を同じグリッド位置に配置 */
.hero.hero-opening .hero-opening-inner {
  display: grid;
}

.hero.hero-opening .hero-copy-slide,
.hero.hero-opening .hero-copy-slide--second {
  grid-area: 1 / 1;
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  margin: 0;
}

/* 2枚目も1枚目のh1と同じ書体・サイズ */
.hero.hero-opening .hero-slide-heading {
  margin: .55rem 0 1.7rem;
  color: #fff;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(2.5rem, 4.25vw, 4.6rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .025em;
  text-shadow: 0 2px 5px rgba(0, 55, 115, .55), 0 0 12px rgba(0, 55, 115, .20);
}

.hero.hero-opening .hero-slide-heading .hero-line {
  display: block;
  white-space: nowrap;
  color: #fff;
}

@media (max-width: 980px) {
  .hero.hero-opening .hero-slide-heading {
    font-size: clamp(2.2rem, 5.3vw, 3.7rem);
  }
}

@media (max-width: 680px) {
  .hero.hero-opening .hero-slide-bg--first {
    background-image: url("../images/opening-sp.png");
  }

  .hero.hero-opening .hero-slide-bg--second {
    background-image: url("../images/opening2-sp.png");
  }

  .hero.hero-opening:before {
    z-index: 1;
  }

  .hero.hero-opening .hero-slide-heading {
    font-size: clamp(1.45rem, 6.3vw, 1.75rem);
    line-height: 1.65;
    letter-spacing: 0;
  }

  .hero.hero-opening .hero-slide-heading .hero-line {
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero.hero-opening .hero-slide-bg,
  .hero.hero-opening .hero-copy-slide {
    transition: none;
  }
}

/* PC｜画面幅に合わせてファーストビューの高さを調整 */
@media (min-width: 981px) {
  .hero.hero-opening {
    min-height: 0;
    height: auto;
    aspect-ratio: 1800 / 788;
  }
}



/* 1枚目・2枚目とも既存の translateY を維持して同じ高さにする */
/* opening｜1枚目・2枚目の文字を左へ移動 */
@media (min-width: 681px) {
  .hero.hero-opening .hero-opening-inner {
    transform: translate(-60px, -10px);
  }
}

/* 2枚目｜メイン見出しの視認性を改善 */
.hero.hero-opening .hero-copy-slide--second .hero-slide-heading {
  text-shadow:
    0 2px 6px rgba(0, 45, 85, 0.65),
    0 4px 16px rgba(0, 45, 85, 0.35);
}

/* 2枚目｜説明文の視認性を改善 */
.hero.hero-opening .hero-copy-slide--second .hero-lead {
  text-shadow:
    0 2px 5px rgba(0, 45, 85, 0.85),
    0 3px 12px rgba(0, 45, 85, 0.55);
}
/* FREE CHECK：画像バナーの診断リンク */
.tool-banner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 44px;
}
.tool-banner {
  display: block;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease;
}
.tool-banner:hover,
.tool-banner:focus-visible {
  transform: translateY(-4px);
  border-color: #FFB8DC;
}
.tool-banner h3 {
  margin: 0 0 16px;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  text-align: center;
}
.tool-banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
@media (max-width: 680px) {
  .tool-banner-grid { grid-template-columns: 1fr; gap: 18px; }
  .tool-banner { padding: 16px; }
}
