/* ==================================================
  AIガジェットラボ：ホーム HERO 専用CSS
  このファイルは style.css の後に読み込む
  - ヒーローの余白・背景・文字・ビジュアルを管理
  - ヘッダーやフッターは style.css 側で管理
================================================== */

body.home .agl-home-hero {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  padding:
    214px
    max(48px, calc((100vw - var(--agl-container)) / 2))
    110px;
  border-radius: 0 0 36px 36px;
  background: var(--agl-hero-bg);
  color: #fff;
  box-shadow: var(--agl-shadow);
}

body.home .agl-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 34px 34px, 84px 84px, 84px 84px;
  opacity: .34;
  pointer-events: none;
}

body.home .agl-home-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--agl-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 48px;
  align-items: center;
}

body.home .agl-home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
}

body.home .agl-home-hero__title {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.34;
  font-weight: 900;
  letter-spacing: .02em;
}

body.home .agl-home-hero__lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: #fff;
  font-size: 17px;
  line-height: 2;
  font-weight: 700;
}

body.home .agl-home-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

body.home .agl-home-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--agl-accent);
  text-decoration: none;
  font-weight: 900;
  box-shadow:
    0 8px 0 rgba(0, 0, 0, .10),
    0 12px 24px rgba(0, 0, 0, .12);
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    color .2s ease;
}

body.home .agl-home-hero__button:hover {
  transform: translateY(3px);
  color: var(--agl-accent);
  box-shadow:
    0 3px 0 rgba(0, 0, 0, .10),
    0 7px 16px rgba(0, 0, 0, .10);
}

body.home .agl-home-hero__button--outline {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .72);
}

body.home .agl-home-hero__button--outline:hover {
  color: #fff;
}

/* HERO CSS仮ビジュアル */
body.home .agl-home-hero__visual {
  position: relative;
  min-height: 340px;
}

body.home .agl-home-hero__visual-main {
  position: absolute;
  right: 54px;
  top: 72px;
  display: grid;
  place-items: center;
  width: 230px;
  height: 160px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .96);
  color: var(--agl-accent);
  font-size: 72px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .20);
}

body.home .agl-home-hero__visual-circle {
  position: absolute;
  left: 30px;
  top: 70px;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: #fff;
  color: var(--agl-purple);
  font-size: 42px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
}

body.home .agl-home-hero__cube {
  position: absolute;
  display: block;
  width: 66px;
  height: 66px;
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .16);
}

body.home .agl-home-hero__cube--orange {
  right: 8px;
  top: 12px;
  background: linear-gradient(135deg, #ffe04b, #ff8a1f);
}

body.home .agl-home-hero__cube--blue {
  right: 26px;
  bottom: 54px;
  background: linear-gradient(135deg, #4fd9ff, #1f73e8);
}

body.home .agl-home-hero__cube--mint {
  left: 0;
  bottom: 58px;
  background: linear-gradient(135deg, #82f3d6, #20bdb8);
}




/* ==================================================
  HERO：レスポンシブ
================================================== */

@media screen and (max-width: 1023px) {
  body.home .agl-home-hero {
    padding:
      224px
      24px
      92px !important;
    border-radius: 0 0 28px 28px;
  }

  body.home .agl-home-hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  body.home .agl-home-hero__visual {
    min-height: 230px;
  }
}

@media screen and (max-width: 834px) {
  body.home .agl-home-hero {
    padding-top: 206px !important;
    margin-top: 0 !important;
  }
}

@media screen and (max-width: 480px) {
  body.home .agl-home-hero {
    padding:
      206px
      20px
      82px !important;
  }

  body.home .agl-home-hero__title {
    font-size: 30px;
    line-height: 1.38;
  }

  body.home .agl-home-hero__lead {
    font-size: 15px;
    line-height: 1.9;
  }

  body.home .agl-home-hero__buttons {
    flex-direction: column;
  }

  body.home .agl-home-hero__button {
    width: 100%;
  }

  body.home .agl-home-hero__visual-main {
    right: 34px;
    top: 34px;
    width: 130px;
    height: 96px;
    font-size: 42px;
  }

  body.home .agl-home-hero__visual-circle {
    left: 18px;
    top: 42px;
    width: 64px;
    height: 64px;
    font-size: 26px;
  }

  body.home .agl-home-hero__cube {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }
}

/* ==================================================
  HERO：比較・差し替え用パターン
  front-page.php の section に以下のように追加して切替
  <section class="agl-home-hero agl-hero-pattern-01">
================================================== */

/* 案1：SEO重視・王道メディア型 */
body.home .agl-home-hero.agl-hero-pattern-01 .agl-home-hero__inner {
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, 0.84fr);
  gap: 56px;
}

body.home .agl-home-hero.agl-hero-pattern-01 .agl-home-hero__title {
  max-width: 760px;
  font-size: clamp(36px, 4.1vw, 58px);
  line-height: 1.28;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

body.home .agl-home-hero.agl-hero-pattern-01 .agl-home-hero__lead {
  max-width: 680px;
  font-size: 17px;
  line-height: 2;
  font-weight: 800;
}

/* 案2：デザイン重視・短いキャッチ型 */
body.home .agl-home-hero.agl-hero-pattern-02 .agl-home-hero__inner {
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  gap: 64px;
}

body.home .agl-home-hero.agl-hero-pattern-02 .agl-home-hero__title {
  max-width: 760px;
  font-size: clamp(34px, 4vw, 40px);
  line-height: 1.34;
  word-break: keep-all;
}

body.home .agl-home-hero.agl-hero-pattern-02 .agl-home-hero__inner > :first-child {
  transform: translateY(-40px);
}

/* 案3：カテゴリ導線特化型 */
body.home .agl-home-hero.agl-hero-pattern-03 .agl-home-hero__inner {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 54px;
}

body.home .agl-home-hero.agl-hero-pattern-03 .agl-home-hero__buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: start;
  gap: 12px;
}

body.home .agl-home-hero.agl-hero-pattern-03 .agl-home-hero__button::after {
  content: " →";
  margin-left: 4px;
}

@media screen and (max-width: 1023px) {
  body.home .agl-home-hero.agl-hero-pattern-01 .agl-home-hero__inner,
  body.home .agl-home-hero.agl-hero-pattern-02 .agl-home-hero__inner,
  body.home .agl-home-hero.agl-hero-pattern-03 .agl-home-hero__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  body.home .agl-home-hero.agl-hero-pattern-02 .agl-home-hero__inner > :first-child {
    transform: none;
  }

  body.home .agl-home-hero.agl-hero-pattern-03 .agl-home-hero__buttons {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  body.home .agl-home-hero.agl-hero-pattern-03 .agl-home-hero__button {
    width: 100%;
  }
}

/* =========================================================
   AGL Hero Phone Visual
   スマホ主役版ヒーロー右側ビジュアル
========================================================= */

:root {
  --agl-phone-visual-max: 520px;
  --agl-phone-visual-glow-main: rgba(78, 210, 255, 0.46);
  --agl-phone-visual-glow-sub: rgba(147, 117, 255, 0.28);
  --agl-phone-chip-bg: rgba(255, 255, 255, 0.82);
  --agl-phone-chip-border: rgba(126, 211, 255, 0.38);
  --agl-phone-chip-text: #12315f;
  --agl-phone-chip-shadow: 0 14px 36px rgba(26, 112, 180, 0.16);
}

.agl-home-hero__visual--phone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(360px, 42vw, 560px);
  overflow: visible;
}

.agl-phone-visual {
  position: relative;
  width: min(100%, var(--agl-phone-visual-max));
  aspect-ratio: 1 / 1.15;
  display: grid;
  place-items: center;
  transform: translate3d(0, 0, 0);
  transition: transform 0.18s ease-out;
  isolation: isolate;
}

.agl-phone-visual__glow {
  position: absolute;
  inset: 11% 2% 7%;
  z-index: 0;
  background:
    radial-gradient(circle at 45% 42%, var(--agl-phone-visual-glow-main), transparent 52%),
    radial-gradient(circle at 68% 58%, var(--agl-phone-visual-glow-sub), transparent 58%),
    radial-gradient(circle at 28% 68%, rgba(79, 255, 213, 0.22), transparent 52%);
  filter: blur(24px);
  opacity: 0.92;
  transform: scale(1.05);
  pointer-events: none;
}

.agl-phone-visual__image {
  position: relative;
  z-index: 2;
  width: min(92%, 440px);
  height: auto;
  display: block;
  filter: drop-shadow(0 32px 42px rgba(21, 62, 120, 0.22));
  transform: translate3d(0, 0, 0) rotate(-1.2deg);
  animation: aglPhoneFloat 6.5s ease-in-out infinite;
  will-change: transform;
}

.agl-phone-visual__chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 38px;
  padding: 0.62em 0.9em;
  border: 1px solid var(--agl-phone-chip-border);
  border-radius: 999px;
  background: var(--agl-phone-chip-bg);
  color: var(--agl-phone-chip-text);
  font-size: clamp(0.72rem, 1.2vw, 0.88rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: var(--agl-phone-chip-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  white-space: nowrap;
}

.agl-phone-visual__chip i {
  color: #229cff;
  font-size: 0.95em;
}

.agl-phone-visual__chip--ai {
  top: 18%;
  left: 2%;
  animation: aglChipFloatA 5.6s ease-in-out infinite;
}

.agl-phone-visual__chip--gadget {
  top: 43%;
  right: -2%;
  animation: aglChipFloatB 6.2s ease-in-out infinite;
}

.agl-phone-visual__chip--printer {
  left: 7%;
  bottom: 18%;
  animation: aglChipFloatC 5.9s ease-in-out infinite;
}

@keyframes aglPhoneFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1.2deg);
  }

  50% {
    transform: translate3d(0, -14px, 0) rotate(1.2deg);
  }
}

@keyframes aglChipFloatA {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(8px, -9px, 0);
  }
}

@keyframes aglChipFloatB {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-8px, 10px, 0);
  }
}

@keyframes aglChipFloatC {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(10px, 8px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .agl-phone-visual,
  .agl-phone-visual__image,
  .agl-phone-visual__chip {
    animation: none;
    transition: none;
  }
}

@media screen and (max-width: 834px) {
  .agl-home-hero__visual--phone {
    min-height: clamp(330px, 88vw, 470px);
    margin-top: 1.5rem;
  }

  .agl-phone-visual {
    width: min(100%, 430px);
    aspect-ratio: 1 / 1.08;
  }

  .agl-phone-visual__image {
    width: min(88%, 360px);
  }

  .agl-phone-visual__chip {
    font-size: 0.72rem;
    min-height: 34px;
    padding: 0.55em 0.75em;
  }

  .agl-phone-visual__chip--ai {
    top: 15%;
    left: 2%;
  }

  .agl-phone-visual__chip--gadget {
    top: 43%;
    right: 0;
  }

  .agl-phone-visual__chip--printer {
    left: 5%;
    bottom: 15%;
  }
}

@media screen and (max-width: 480px) {
  .agl-home-hero__visual--phone {
    min-height: 330px;
  }

  .agl-phone-visual__image {
    width: min(86%, 300px);
  }

  .agl-phone-visual__chip {
    font-size: 0.66rem;
    box-shadow: 0 10px 24px rgba(26, 112, 180, 0.13);
  }

  .agl-phone-visual__chip--ai {
    top: 12%;
    left: 0;
  }

  .agl-phone-visual__chip--gadget {
    top: 44%;
    right: -2%;
  }

  .agl-phone-visual__chip--printer {
    left: 1%;
    bottom: 13%;
  }
}

/* =========================================================
   AGL Hero Smartglass Visual
   スマートグラス主役版ヒーロー右側ビジュアル
========================================================= */

:root {
  --agl-smartglass-visual-max: 520px;
  --agl-smartglass-glow-main: rgba(73, 218, 255, 0.5);
  --agl-smartglass-glow-sub: rgba(119, 98, 255, 0.26);
  --agl-smartglass-orbit-bg: rgba(255, 255, 255, 0.82);
  --agl-smartglass-orbit-border: rgba(126, 211, 255, 0.42);
  --agl-smartglass-orbit-text: #102c56;
  --agl-smartglass-shadow: 0 34px 54px rgba(7, 45, 94, 0.24);
}

.agl-home-hero__visual--smartglass {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(350px, 40vw, 540px);
  overflow: visible;
}

.agl-smartglass-visual {
  position: relative;
  width: min(100%, var(--agl-smartglass-visual-max));
  aspect-ratio: 1 / 0.9;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.agl-smartglass-visual__glow {
  position: absolute;
  inset: 5% 2% 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 46%, var(--agl-smartglass-glow-main), transparent 48%),
    radial-gradient(circle at 68% 62%, var(--agl-smartglass-glow-sub), transparent 56%),
    radial-gradient(circle at 28% 58%, rgba(74, 255, 221, 0.2), transparent 52%);
  filter: blur(28px);
  opacity: 0.95;
  transform: scale(1.08);
  pointer-events: none;
}

.agl-smartglass-visual__image {
  position: relative;
  z-index: 2;
  width: min(94%, 455px);
  height: auto;
  display: block;
  filter: drop-shadow(var(--agl-smartglass-shadow));
  transform: translate3d(0, 0, 0) rotate(-1deg);
  animation: aglSmartglassFloat 6.8s ease-in-out infinite;
  will-change: transform;
}

.agl-smartglass-visual__orbit {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 38px;
  padding: 0.62em 0.9em;
  border: 1px solid var(--agl-smartglass-orbit-border);
  border-radius: 999px;
  background: var(--agl-smartglass-orbit-bg);
  color: var(--agl-smartglass-orbit-text);
  font-size: clamp(0.72rem, 1.15vw, 0.86rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(20, 103, 180, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  white-space: nowrap;
}

.agl-smartglass-visual__orbit i {
  color: #229cff;
  font-size: 0.95em;
}

.agl-smartglass-visual__orbit--voice {
  top: 17%;
  left: 3%;
  animation: aglSmartglassOrbitA 5.8s ease-in-out infinite;
}

.agl-smartglass-visual__orbit--translate {
  top: 44%;
  right: 0;
  animation: aglSmartglassOrbitB 6.4s ease-in-out infinite;
}

.agl-smartglass-visual__orbit--vision {
  left: 9%;
  bottom: 14%;
  animation: aglSmartglassOrbitC 6s ease-in-out infinite;
}

@keyframes aglSmartglassFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1deg);
  }

  50% {
    transform: translate3d(0, -13px, 0) rotate(1.2deg);
  }
}

@keyframes aglSmartglassOrbitA {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(9px, -8px, 0);
  }
}

@keyframes aglSmartglassOrbitB {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-8px, 9px, 0);
  }
}

@keyframes aglSmartglassOrbitC {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(9px, 8px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .agl-smartglass-visual__image,
  .agl-smartglass-visual__orbit {
    animation: none;
  }
}

@media screen and (max-width: 834px) {
  .agl-home-hero__visual--smartglass {
    min-height: clamp(300px, 76vw, 440px);
    margin-top: 1.5rem;
  }

  .agl-smartglass-visual {
    width: min(100%, 430px);
  }

  .agl-smartglass-visual__image {
    width: min(88%, 360px);
  }

  .agl-smartglass-visual__orbit {
    font-size: 0.72rem;
    min-height: 34px;
    padding: 0.55em 0.75em;
  }

  .agl-smartglass-visual__orbit--voice {
    top: 13%;
    left: 1%;
  }

  .agl-smartglass-visual__orbit--translate {
    top: 44%;
    right: 1%;
  }

  .agl-smartglass-visual__orbit--vision {
    left: 4%;
    bottom: 11%;
  }
}

@media screen and (max-width: 480px) {
  .agl-home-hero__visual--smartglass {
    min-height: 300px;
  }

  .agl-smartglass-visual__image {
    width: min(86%, 310px);
  }

  .agl-smartglass-visual__orbit {
    font-size: 0.66rem;
    box-shadow: 0 10px 24px rgba(20, 103, 180, 0.13);
  }

  .agl-smartglass-visual__orbit--voice {
    top: 10%;
    left: 0;
  }

  .agl-smartglass-visual__orbit--translate {
    top: 43%;
    right: -2%;
  }

  .agl-smartglass-visual__orbit--vision {
    left: 1%;
    bottom: 9%;
  }
}

/* =========================================================
   AGL Hero Combo Visual
   スマホ＋スマートグラス複合版ヒーロー右側ビジュアル
========================================================= */

:root {
  --agl-combo-visual-max: 660px;
  --agl-combo-glow-main: rgba(73, 218, 255, 0.48);
  --agl-combo-glow-sub: rgba(119, 98, 255, 0.28);
  --agl-combo-chip-bg: rgba(255, 255, 255, 0.84);
  --agl-combo-chip-border: rgba(126, 211, 255, 0.42);
  --agl-combo-chip-text: #102c56;
  --agl-combo-shadow-phone: 0 34px 48px rgba(15, 55, 116, 0.25);
  --agl-combo-shadow-glass: 0 30px 44px rgba(4, 36, 88, 0.24);
}

.agl-home-hero__visual--combo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(400px, 43vw, 580px);
  overflow: visible;
}

.agl-combo-visual {
  position: relative;
  width: min(100%, var(--agl-combo-visual-max));
  aspect-ratio: 1 / 0.86;
  display: grid;
  place-items: center;
  isolation: isolate;
  transform: translateX(-34px);
}

.agl-combo-visual__glow {
  position: absolute;
  inset: 2% 0 0;
  z-index: 0;
  background:
    radial-gradient(circle at 48% 42%, var(--agl-combo-glow-main), transparent 48%),
    radial-gradient(circle at 70% 56%, var(--agl-combo-glow-sub), transparent 56%),
    radial-gradient(circle at 30% 68%, rgba(74, 255, 221, 0.2), transparent 52%);
  filter: blur(28px);
  opacity: 0.95;
  transform: scale(1.06);
  pointer-events: none;
}

.agl-combo-visual__phone {
  position: absolute;
  z-index: 4;
  width: min(92%, 520px);
  right: 0%;
  top: -24%;
  height: auto;
  display: block;
  filter: drop-shadow(var(--agl-combo-shadow-phone));
  transform: rotate(-5deg);
  animation: aglComboPhoneFloat 6.6s ease-in-out infinite;
  will-change: transform;
  backface-visibility: hidden;
  clip-path: inset(12px 18px 12px 12px round 34px);
}

.agl-combo-visual__glass {
  position: absolute;
  z-index: 5;
  width: min(64%, 390px);
  left: -8%;
  top: 35%;
  height: auto;
  display: block;
  filter: drop-shadow(var(--agl-combo-shadow-glass));
  transform: rotate(2deg);
  animation: aglComboGlassFloat 6.9s ease-in-out infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.agl-combo-visual__chip {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 38px;
  padding: 0.62em 0.9em;
  border: 1px solid var(--agl-combo-chip-border);
  border-radius: 999px;
  background: var(--agl-combo-chip-bg);
  color: var(--agl-combo-chip-text);
  font-size: clamp(0.72rem, 1.15vw, 0.86rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(20, 103, 180, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  white-space: nowrap;
}

.agl-combo-visual__chip i {
  color: #229cff;
  font-size: 0.95em;
}

.agl-combo-visual__chip--apps {
  top: 48%;
  right: -2%;
  animation: aglComboChipA 5.8s ease-in-out infinite;
}

.agl-combo-visual__chip--glass {
  left: 10%;
  bottom: 10%;
  animation: aglComboChipB 6.4s ease-in-out infinite;
}

.agl-combo-visual__chip--printer {
  top: 2%;
  left: 12%;
  animation: aglComboChipC 6s ease-in-out infinite;
}

@keyframes aglComboPhoneFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-5deg);
  }

  50% {
    transform: translate3d(0, -8px, 0) rotate(-3.5deg);
  }
}

@keyframes aglComboGlassFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(2deg);
  }

  50% {
    transform: translate3d(0, 7px, 0) rotate(0deg);
  }
}

@keyframes aglComboChipA {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(9px, -8px, 0);
  }
}

@keyframes aglComboChipB {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-8px, 9px, 0);
  }
}

@keyframes aglComboChipC {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(9px, 8px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .agl-combo-visual__phone,
  .agl-combo-visual__glass,
  .agl-combo-visual__chip {
    animation: none;
  }
}

@media screen and (max-width: 834px) {
  .agl-home-hero__visual--combo {
    min-height: clamp(330px, 86vw, 470px);
    margin-top: 1.5rem;
  }

  .agl-combo-visual {
    width: min(100%, 440px);
    aspect-ratio: 1 / 0.9;
  }

  .agl-combo-visual__phone {
    width: min(58%, 260px);
    right: 9%;
    top: 8%;
  }

  .agl-combo-visual__glass {
    width: min(62%, 290px);
    left: 0;
    top: 40%;
  }

  .agl-combo-visual__chip {
    font-size: 0.72rem;
    min-height: 34px;
    padding: 0.55em 0.75em;
  }

  .agl-combo-visual__chip--apps {
    top: 50%;
    right: -1%;
  }

  .agl-combo-visual__chip--glass {
    left: 4%;
    bottom: 7%;
  }

  .agl-combo-visual__chip--printer {
    top: 8%;
    left: 0;
  }
}

@media screen and (max-width: 480px) {
  .agl-home-hero__visual--combo {
    min-height: 330px;
  }

  .agl-combo-visual {
    width: min(100%, 350px);
  }

  .agl-combo-visual__phone {
    width: 58%;
    right: 5%;
    top: 9%;
  }

  .agl-combo-visual__glass {
    width: 62%;
    left: -2%;
    top: 41%;
  }

  .agl-combo-visual__chip {
    font-size: 0.66rem;
    box-shadow: 0 10px 24px rgba(20, 103, 180, 0.13);
  }

  .agl-combo-visual__chip--apps {
    top: 50%;
    right: -2%;
  }

  .agl-combo-visual__chip--glass {
    left: 0;
    bottom: 5%;
  }

  .agl-combo-visual__chip--printer {
    top: 5%;
    left: 0;
  }
}

/* ==================================================
   AIガジェットラボ：スマホ表示ヒーロー崩れ修正
   - 長い見出し・リード・ボタンの横はみ出しを防止
   - 1023px以下ではPATTERN 02のPC専用詰めを解除
================================================== */
@media screen and (max-width: 1023px) {
  body.home .agl-home-hero,
  body.home .agl-home-hero * {
    box-sizing: border-box;
  }

  body.home .agl-home-hero__inner,
  body.home .agl-home-hero__inner > *,
  body.home .agl-home-hero.agl-hero-pattern-02 .agl-home-hero__inner > * {
    min-width: 0;
    max-width: 100%;
  }

  body.home .agl-home-hero.agl-hero-pattern-02 .agl-home-hero__title {
    max-width: 100%;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  body.home .agl-home-hero__lead {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media screen and (max-width: 480px) {
  body.home .agl-home-hero.agl-hero-pattern-02 .agl-home-hero__title {
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.36;
  }

  body.home .agl-home-hero__buttons {
    width: 100%;
  }

  body.home .agl-home-hero__button {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    white-space: normal;
    text-align: center;
  }
}

/* ==================================================
   AIガジェットラボ：スマホヒーロー収まり調整
   - 上部ヘッダーがロゴのみになった分、余白を圧縮
   - Combo Visual の左右はみ出しを防止
================================================== */
@media screen and (max-width: 834px) {
  body.home .agl-home-hero {
    padding:
      118px
      18px
      72px !important;
    overflow: hidden !important;
  }

  body.home .agl-home-hero__inner {
    gap: 24px !important;
  }

  body.home .agl-home-hero.agl-hero-pattern-02 .agl-home-hero__title {
    font-size: clamp(30px, 8.2vw, 40px) !important;
    line-height: 1.36 !important;
  }

  body.home .agl-home-hero__visual--combo {
    min-height: clamp(300px, 78vw, 390px) !important;
    margin-top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  body.home .agl-combo-visual {
    width: min(100%, 360px) !important;
    max-width: 100% !important;
    aspect-ratio: 1 / 0.92 !important;
    transform: none !important;
    overflow: visible !important;
  }

  body.home .agl-combo-visual__phone {
    width: min(56%, 205px) !important;
    right: 10% !important;
    top: 9% !important;
  }

  body.home .agl-combo-visual__glass {
    width: min(58%, 225px) !important;
    left: 5% !important;
    top: 44% !important;
  }

  body.home .agl-combo-visual__chip {
    font-size: 0.68rem !important;
    min-height: 32px !important;
    padding: 0.5em 0.72em !important;
  }

  body.home .agl-combo-visual__chip--apps {
    top: 48% !important;
    right: 2% !important;
  }

  body.home .agl-combo-visual__chip--glass {
    left: 3% !important;
    bottom: 4% !important;
  }

  body.home .agl-combo-visual__chip--printer {
    top: 4% !important;
    left: 3% !important;
  }
}

@media screen and (max-width: 480px) {
  body.home .agl-home-hero {
    padding:
      112px
      16px
      66px !important;
  }

  body.home .agl-home-hero__eyebrow {
    max-width: 100% !important;
    white-space: normal !important;
  }

  body.home .agl-home-hero__visual--combo {
    min-height: 292px !important;
  }

  body.home .agl-combo-visual {
    width: min(100%, 330px) !important;
  }

  body.home .agl-combo-visual__phone {
    width: 54% !important;
    right: 9% !important;
    top: -5% !important;
  }

  body.home .agl-combo-visual__glass {
    width: 57% !important;
    left: 5% !important;
    top: 45% !important;
  }

  body.home .agl-combo-visual__chip {
    font-size: 0.62rem !important;
  }

  body.home .agl-combo-visual__chip--apps {
    right: 1% !important;
  }

  body.home .agl-combo-visual__chip--glass {
    left: 2% !important;
  }

  body.home .agl-combo-visual__chip--printer {
    left: 0 !important;
  }
}

/* ==================================================
   AIガジェットラボ：スマホヒーロービジュアル非表示
   - 1023px以下は右側ビジュアルを安全に非表示
   - テキスト・CTAだけでヒーローを成立させる
================================================== */
@media screen and (max-width: 1023px) {
  body.home .agl-home-hero {
    padding:
      112px
      18px
      74px !important;
    overflow: hidden !important;
  }

  body.home .agl-home-hero__inner {
    display: block !important;
    max-width: 100% !important;
  }

  body.home .agl-home-hero__visual,
  body.home .agl-home-hero__visual--combo,
  body.home .agl-combo-visual {
    display: none !important;
  }

  body.home .agl-home-hero.agl-hero-pattern-02 .agl-home-hero__inner > :first-child {
    transform: none !important;
  }

  body.home .agl-home-hero.agl-hero-pattern-02 .agl-home-hero__title {
    max-width: 100% !important;
    font-size: clamp(30px, 8.4vw, 42px) !important;
    line-height: 1.36 !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  body.home .agl-home-hero__lead {
    max-width: 100% !important;
  }
}

@media screen and (max-width: 480px) {
  body.home .agl-home-hero {
    padding:
      106px
      18px
      68px !important;
  }

  body.home .agl-home-hero__eyebrow {
    max-width: 100% !important;
    white-space: normal !important;
  }

  body.home .agl-home-hero__buttons {
    width: 100% !important;
  }

  body.home .agl-home-hero__button {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    text-align: center !important;
  }
}

/* ==================================================
   AIガジェットラボ：スマホ表示 ロゴ下〜ヒーロー本文の間隔調整
   対象：スマホ表示のみ
   調整値：--agl-mobile-hero-padding-top
================================================== */
@media screen and (max-width: 1023px) {
  :root {
    --agl-mobile-hero-padding-top: 64px;
  }

  body.home .agl-home-hero {
    padding-top: var(--agl-mobile-hero-padding-top) !important;
  }
}

@media screen and (max-width: 480px) {
  :root {
    --agl-mobile-hero-padding-top: 56px;
  }
}
