/* ==================================================
   AIガジェットラボ：ホーム専用CSS
   読み込み対象：is_front_page() のみ
   注意：下層ページ用CSSは css/agl-lower.css に書く
================================================== */

/* ==================================================
   AIガジェットラボ：ロゴ共通設定
   ヘッダー／フッターの文字ロゴ・左マークはここで管理
================================================== */

body.home .site-name-text {
  --agl-current-logo-font-size: var(--agl-logo-font-size);
  --agl-current-logo-mark-size: var(--agl-logo-mark-size);
  --agl-current-logo-mark-gap: var(--agl-logo-mark-gap);
}

body.home .agl-site-footer__logo {
  --agl-current-logo-font-size: var(--agl-footer-logo-font-size);
  --agl-current-logo-mark-size: var(--agl-footer-logo-mark-size);
  --agl-current-logo-mark-gap: var(--agl-footer-logo-mark-gap);
}

body.home .logo-header a,
body.home .site-name-text,
body.home .agl-site-footer__logo {
  display: inline-flex !important;
  align-items: center !important;
  color: var(--agl-logo-text-color) !important;
  text-decoration: none !important;
  line-height: var(--agl-logo-line-height) !important;
  vertical-align: middle !important;
}

/* body.home .site-name-text,
body.home .agl-site-footer__logo {
  max-width: 100% !important;
  font-family: var(--agl-logo-font-family) !important;
  font-size: var(--agl-current-logo-font-size) !important;
  font-weight: var(--agl-logo-font-weight) !important;
  letter-spacing: var(--agl-logo-letter-spacing) !important;
  white-space: nowrap !important;
} */

body.home .site-name-text {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: center;
  gap: 4px;
  font-size: 0;
  line-height: 1;
  text-decoration: none;
}

body.home .site-name-text::before {
  content: "AI GADGET LAB";
  white-space: nowrap;
  display: block;
  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
  font-size: 31px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.01em;
  line-height: 0.8;
  -webkit-text-stroke: 0.3px currentColor;
  /* color: var(--agl-text); */
  color: transparent;
  background: linear-gradient(100deg, #1687ff 0%, #22d3ee 48%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;

  transform: none;
}

body.home .site-name-text::after {
  content: "AIガジェットラボ";
  display: block;
  margin-top: 0px;
  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
  font-size: 11px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: right;

  color: #6b7280;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;

  transform: none;
}

/* body.home .site-name-text::before,
body.home .agl-site-footer__logo::before {
  content: "";
  display: inline-block !important;
  width: var(--agl-current-logo-mark-size) !important;
  height: var(--agl-current-logo-mark-size) !important;
  margin-right: var(--agl-current-logo-mark-gap) !important;
  border-radius: var(--agl-logo-mark-radius) !important;
  background: var(--agl-logo-mark-main) !important;
  box-shadow:
    calc(var(--agl-current-logo-mark-size) * 0.44) calc(var(--agl-current-logo-mark-size) * 0.44) 0 var(--agl-logo-mark-blue),
    calc(var(--agl-current-logo-mark-size) * 0.88) 0 0 var(--agl-logo-mark-purple) !important;
  transform: translateY(1px) rotate(-8deg) !important;
  flex: 0 0 auto !important;
} */

@media screen and (max-width: 1023px) {
  body.home .site-name-text {
    --agl-current-logo-font-size: var(--agl-mobile-logo-font-size);
    --agl-current-logo-mark-size: var(--agl-mobile-logo-mark-size);
    --agl-current-logo-mark-gap: calc(var(--agl-mobile-logo-mark-size) * 0.62);
  }
}

@media screen and (max-width: 480px) {
  :root {
    --agl-mobile-logo-font-size: 32px;
    --agl-mobile-logo-mark-size: 17px;
    --agl-footer-logo-font-size: 20px;
  }
}

/* Font Awesomeアイコン色 */
.agl-icon-green {
  color: var(--agl-green);
}

.agl-icon-purple {
  color: var(--agl-purple);
}

.agl-icon-mint {
  color: var(--agl-mint);
}

.agl-icon-orange {
  color: var(--agl-orange);
}

.agl-icon-blue {
  color: var(--agl-blue);
}

.agl-icon-yellow {
  color: var(--agl-yellow);
}

.agl-icon-red {
  color: var(--agl-red);
}


/* ==================================================
   通常サイドバー CATEGORY
   記事ページ・カテゴリページ用
   ================================================== */

.agl-sidebar-block {
  margin-bottom: 36px;
}

.agl-sidebar-title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: .04em;
  color: var(--agl-text);
}

.agl-side-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.agl-side-category-list li {
  margin: 0 0 12px;
  padding: 0;
}

.agl-side-category-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 16px;
  background: #fff;
  color: var(--agl-text);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.5;
  box-shadow:
    0 6px 0 rgba(0, 0, 0, .08),
    0 8px 22px rgba(0, 0, 0, .06);
  border: 1px solid rgba(0, 0, 0, .04);
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    color .2s ease;
}

.agl-side-category-list a::after {
  content: none !important;
}

.agl-side-category-list a:hover {
  transform: translateY(4px);
  color: var(--agl-text);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, .08),
    0 4px 14px rgba(0, 0, 0, .06);
}

.agl-side-category-list a:active {
  transform: translateY(6px);
  box-shadow:
    0 0 0 rgba(0, 0, 0, .08),
    0 2px 8px rgba(0, 0, 0, .05);
}

.agl-side-category-list i {
  width: 24px;
  min-width: 24px;
  font-size: 20px;
  text-align: center;
}

.agl-side-category-list span {
  flex: 1;
}


/* ==================================================
   ホーム全体
   ================================================== */

.agl-home {
  width: auto;
  max-width: 100%;
  margin: 0;
  color: var(--agl-text);
  overflow: visible;
}

.agl-home-section {
  margin: 56px 0;
}

.agl-home-section__head {
  margin-bottom: 24px;
}

.agl-home-section__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.4;
  color: var(--agl-text);
}

.agl-home-section__title::before {
  content: "";
  display: inline-block;
  width: 10px;
  min-width: 10px;
  height: 30px;
  border-radius: 999px;
  background: var(--agl-green);
}

.agl-home-section__lead {
  margin: 0;
  color: var(--agl-muted);
  font-size: 15px;
  line-height: 1.8;
  font-weight: 600;
}


/* ==================================================
   ホーム HERO
   → css/agl-hero.css に分離済み
   ================================================== */

/* ==================================================
   ホーム 3カテゴリ導線
   ================================================== */

.agl-home-category {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100vw - 40px));
  margin: -64px auto 64px;
}

.agl-home-category__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.agl-home-category-card {
  display: block;
  padding: 36px 28px 30px;
  border-radius: 24px;
  background: #fff;
  color: var(--agl-text);
  text-align: center;
  text-decoration: none;
  box-shadow: var(--agl-shadow-card);
  border: 1px solid rgba(0, 0, 0, .04);
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    color .2s ease;
}

.agl-home-category-card:hover {
  transform: translateY(4px);
  color: var(--agl-text);
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.06),
    0 8px 18px rgba(0, 0, 0, 0.08);
}

.agl-home-category-card__icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 20px;
  border-radius: 999px;
  color: #fff;
  font-size: 34px;
}

.agl-home-category-card--app .agl-home-category-card__icon,
.agl-home-category-card--app .agl-home-category-card__button {
  background: var(--agl-green);
}

.agl-home-category-card--gadget .agl-home-category-card__icon,
.agl-home-category-card--gadget .agl-home-category-card__button {
  background: var(--agl-purple);
}

.agl-home-category-card--printer .agl-home-category-card__icon,
.agl-home-category-card--printer .agl-home-category-card__button {
  background: var(--agl-blue);
}

.agl-home-category-card__title {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 900;
  color: var(--agl-text);
}

.agl-home-category-card__text {
  margin: 0;
  color: var(--agl-muted);
  font-size: 14px;
  line-height: 1.8;
  font-weight: 700;
}

.agl-home-category-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 40px;
  margin-top: 24px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}


/* ==================================================
   ホーム メイン＋サイドバー風
   ================================================== */

.agl-home-layout {
  width: min(1180px, 100%);
  margin: 56px auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.agl-home-main {
  min-width: 0;
}

.agl-home-side {
  display: block;
  position: sticky;
  top: 24px;
}

.agl-home-side__block {
  margin-bottom: 34px;
}

.agl-home-side__title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: .04em;
  color: var(--agl-text);
}

/* ホーム内 CATEGORY */
.agl-home-side-category {
  list-style: none;
  margin: 0;
  padding: 0;
}

.agl-home-side-category li {
  margin: 0 0 12px;
  padding: 0;
}

.agl-home-side-category a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 16px;
  background: #fff;
  color: var(--agl-text);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.5;
  box-shadow:
    0 6px 0 rgba(0, 0, 0, .08),
    0 8px 22px rgba(0, 0, 0, .06);
  border: 1px solid rgba(0, 0, 0, .04);
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    color .2s ease;
}

.agl-home-side-category a:hover {
  transform: translateY(4px);
  color: var(--agl-text);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, .08),
    0 4px 14px rgba(0, 0, 0, .06);
}

.agl-home-side-category i {
  width: 24px;
  min-width: 24px;
  font-size: 20px;
  text-align: center;
}

.agl-home-side-category span {
  flex: 1;
}

/* ホーム内 RECOMMEND */
.agl-home-recommend {
  display: grid;
  gap: 14px;
}

.agl-home-recommend__item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  color: var(--agl-text);
  text-decoration: none;
}

.agl-home-recommend__thumb {
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 16 / 9;
  background: #edf2f4;
}

.agl-home-recommend__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agl-home-recommend__title {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 800;
}

.agl-home-recommend__item:hover .agl-home-recommend__title {
  color: var(--agl-green);
}


/* ==================================================
   ホーム 記事カード
   ================================================== */

.agl-home-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.agl-home-post-card {
  overflow: hidden;
  display: block;
  border-radius: 20px;
  background: #fff;
  color: var(--agl-text);
  text-decoration: none;
  box-shadow: var(--agl-shadow-card);
  border: 1px solid rgba(0, 0, 0, .04);
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    color .2s ease;
}

.agl-home-post-card:hover {
  transform: translateY(4px);
  color: var(--agl-text);
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.06),
    0 8px 18px rgba(0, 0, 0, 0.08);
}

.agl-home-post-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #edf2f4;
}

.agl-home-post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agl-home-post-card__body {
  padding: 17px 18px 19px;
}

.agl-home-post-card__label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.agl-home-post-card__label--app {
  background: var(--agl-green);
}

.agl-home-post-card__label--gadget {
  background: var(--agl-purple);
}

.agl-home-post-card__label--printer {
  background: var(--agl-blue);
}

.agl-home-post-card__label--safety {
  background: var(--agl-orange);
}

.agl-home-post-card__title {
  margin: 10px 0 0;
  color: var(--agl-text);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 900;
}

.agl-home-post-card__text {
  margin: 10px 0 0;
  color: var(--agl-muted);
  font-size: 13px;
  line-height: 1.8;
  font-weight: 600;
}


/* ==================================================
   ホーム 安全CTA
   ================================================== */

.agl-home-safety {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  margin: 56px 0;
  padding: 28px 30px;
  border-radius: 22px;
  background: linear-gradient(90deg, #fff4cf 0%, #fffaf0 100%);
  border: 1px solid #ffe3a3;
  text-align: left;
}

.agl-home-safety__icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0;
  color: var(--agl-orange);
  font-size: 38px;
}

.agl-home-safety__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 900;
  color: var(--agl-text);
}

.agl-home-safety__text {
  margin: 0;
  color: var(--agl-muted);
  line-height: 1.8;
  font-weight: 700;
}

.agl-home-safety__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 2px solid var(--agl-orange);
  background: #fff;
  color: var(--agl-orange);
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
}

.agl-home-safety__button:hover {
  background: var(--agl-orange);
  color: #fff;
}


/* ==================================================
   ホーム ジャンル別リンク
   ================================================== */

.agl-home-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.agl-home-topic-box {
  padding: 26px 24px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--agl-shadow-card);
  border: 1px solid rgba(0, 0, 0, .04);
}

/* 上部の中途半端な色線は使わない */
.agl-home-topic-box--app,
.agl-home-topic-box--gadget,
.agl-home-topic-box--printer {
  border-top: 0;
}

.agl-home-topic-box__title {
  margin: -26px -24px 18px;
  padding: 16px 22px;
  border-radius: 22px 22px 0 0;
  font-size: 20px;
  font-style: italic;
  font-weight: 900;
  color: #ffffff;
}

/* タイトル背景色 */
.agl-home-topic-box--app .agl-home-topic-box__title {
  background: var(--agl-green);
}

.agl-home-topic-box--gadget .agl-home-topic-box__title {
  background: var(--agl-purple);
}

.agl-home-topic-box--printer .agl-home-topic-box__title {
  background: var(--agl-blue);
}

.agl-home-topic-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.agl-home-topic-box li {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf2f4;
}

.agl-home-topic-box li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.agl-home-topic-box a {
  color: var(--agl-text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 800;
}

.agl-home-topic-box a:hover {
  color: var(--agl-green);
}


/* ==================================================
   ホーム 最新記事
   ================================================== */

.agl-home-latest {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}


/* ==================================================
   フッター
   必要になったらホーム下部またはウィジェットで使用
   ================================================== */

.agl-footer {
  margin-top: 64px;
  padding: 48px 24px 20px;
  background: #fff;
  border-top: 1px solid var(--agl-border);
  color: var(--agl-text);
}

.agl-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  max-width: 1180px;
  margin: 0 auto;
}

.agl-footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 900;
  font-size: 24px;
}

.agl-footer__logo-icon {
  color: var(--agl-green);
  font-size: 26px;
}

.agl-footer__site-name {
  color: #111827;
}

.agl-footer__text {
  margin: 0 0 16px;
  line-height: 1.8;
  color: var(--agl-muted);
  font-size: 14px;
}

.agl-footer__sns {
  display: flex;
  gap: 8px;
}

.agl-footer__sns a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.agl-footer__nav h2,
.agl-footer__contact h2 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 900;
  color: #111827;
}

.agl-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.agl-footer__nav li {
  margin-bottom: 8px;
}

.agl-footer__nav a {
  color: #374151;
  text-decoration: none;
  font-size: 14px;
}

.agl-footer__nav a:hover {
  color: var(--agl-green);
}

.agl-footer__contact p {
  margin: 0 0 16px;
  line-height: 1.8;
  color: var(--agl-muted);
  font-size: 14px;
}

.agl-footer__contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--agl-green);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(22, 163, 74, .22);
}

.agl-footer__contact-button:hover {
  background: #12823c;
  color: #fff;
}

.agl-footer__bottom {
  max-width: 1180px;
  margin: 32px auto 0;
  padding-top: 18px;
  border-top: 1px solid #edf2f4;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}


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

@media screen and (max-width: 1023px) {
  .agl-home-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 48px 24px 92px;
    border-radius: 0 0 28px 28px;
  }

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

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

  .agl-home-category {
    width: auto;
    margin: -52px 16px 48px;
  }

  .agl-home-category__grid,
  .agl-home-layout,
  .agl-home-post-grid,
  .agl-home-topic-grid {
    grid-template-columns: 1fr;
  }

  .agl-home-side {
    position: static;
  }

  .agl-home-safety {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .agl-home-safety__icon {
    margin: 0 auto;
  }

  .agl-home-safety__button {
    width: 100%;
  }

  .agl-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .agl-footer__contact-button {
    width: 100%;
  }
}

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

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

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

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

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

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

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

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

  .agl-home-category-card {
    padding: 30px 22px 26px;
  }

  .agl-home-category-card__title {
    font-size: 20px;
  }

  .agl-home-section {
    margin: 44px 0;
  }

  .agl-home-section__title {
    font-size: 21px;
  }

  .agl-home-post-card__title {
    font-size: 15px;
  }

  .agl-sidebar-title,
  .agl-home-side__title {
    font-size: 20px;
  }

  .agl-side-category-list a,
  .agl-home-side-category a {
    min-height: 50px;
    padding: 11px 15px;
    border-radius: 14px;
    font-size: 14px;
  }

  .agl-footer {
    padding: 40px 18px 18px;
  }

  .agl-footer__logo {
    font-size: 22px;
  }
}

/* ==================================================
   AIガジェットラボ：front-page.php用補正
   ================================================== */

.agl-front-page {
  color: var(--agl-text);
  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
  overflow: visible;
}

.agl-home-wrap {
  width: min(1180px, calc(100vw - 40px));
  margin: 56px auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.agl-home-latest {
  width: min(1180px, calc(100vw - 40px));
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 1023px) {
  .agl-home-wrap {
    grid-template-columns: 1fr;
    width: min(100%, calc(100vw - 32px));
    margin: 48px auto;
  }
}

/* ==================================================
  AIガジェットラボ：Cocoonヘッダー・ヒーロー調整
  テンプレート化準備済み
  ・主な配色、ロゴ、角丸、影は :root で変更
  ・リンクURLは front-page.php 側で home_url() を使用
================================================== */

/* ページ全体は白背景に固定 */
body.home,
body.home #container,
body.home .container,
body.home .container-in,
body.home .wrap,
body.home .content,
body.home .content-in,
body.home .main,
body.home .main-in,
body.home .agl-front-page,
body.home .agl-home-wrap,
body.home .agl-home-latest,
body.home .agl-home-section,
body.home .agl-home-main,
body.home .agl-home-side {
  background: var(--agl-bg) !important;
}

/* ヘッダー全体：画面上部に固定 */
body.home #header-container,
body.home .header-container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 18px 0 0 !important;
  box-shadow: none !important;
  transition:
    background-color 0.25s ease,
    background 0.25s ease,
    backdrop-filter 0.25s ease,
    box-shadow 0.25s ease !important;
}

/* ヘッダー本体：白い角丸カード */
body.home .header-container-in {
  display: grid !important;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr) !important;
  grid-template-areas: "brand nav" !important;
  align-items: center !important;
  gap: 32px !important;
  width: min(var(--agl-header-width), calc(100vw - 48px)) !important;
  max-width: var(--agl-header-width) !important;
  margin: 0 auto !important;
  padding: 22px 34px !important;
  background: var(--agl-card-bg) !important;
  border-radius: var(--agl-radius-xl) !important;
  box-shadow: var(--agl-shadow-floating) !important;
  overflow: visible !important;
}

/* Cocoonヘッダー内の不要な背景・影を消す */
body.home #header,
body.home .header,
body.home .header-in,
body.home .logo-header,
body.home #navi,
body.home .navi,
body.home .navi-in {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* ロゴ・サイト名エリア */
body.home #header,
body.home .header {
  grid-area: brand !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.home .header-in {
  width: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.home .logo-header {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  align-self: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: left !important;
  line-height: 1 !important;
  transform: translateY(15px) !important;
}

/* キャッチコピーはヘッダー枠内では非表示 */
body.home .tagline {
  display: none !important;
}

/* 文字ロゴの見た目は「AIガジェットラボ：ロゴ共通設定」で管理 */

/* ナビゲーションエリア */
body.home #navi,
body.home .navi {
  grid-area: nav !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.home .navi-in {
  display: flex !important;
  justify-content: flex-end !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* メニュー全体 */
body.home .navi-in > ul {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: clamp(18px, 2.1vw, 30px) !important;
  flex-wrap: nowrap !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* メニュー項目 */
body.home .navi-in > ul > li {
  position: relative !important;
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* メニューは文字リンク化 */
body.home .navi-in > ul > li > a,
body.home .navi-in > ul > li.current-menu-item > a,
body.home .navi-in > ul > li.current_page_item > a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 40px !important;
  padding: 0 !important;
  color: #063018 !important;
  background: transparent !important;
  background-image: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transform: none !important;
  white-space: nowrap !important;
  transition: color 0.16s ease !important;
}

/* 現在ページ・ホバーもボタン化しない */
body.home .navi-in > ul > li > a:hover,
body.home .navi-in > ul > li.current-menu-item > a,
body.home .navi-in > ul > li.current_page_item > a,
body.home .navi-in > ul > li.current-menu-item > a:hover,
body.home .navi-in > ul > li.current_page_item > a:hover {
  color: var(--agl-link-hover) !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Cocoon側・過去CSSの疑似要素装飾を無効化 */
body.home .navi-in > ul > li > a::before,
body.home .navi-in > ul > li > a::after {
  display: none !important;
  content: none !important;
}

/* 検索メニュー：最後のメニュー項目を虫眼鏡だけにする */
body.home .navi-in > ul > li:last-child > a,
body.home .navi-in > ul > li:last-child > a:hover {
  position: relative !important;
  z-index: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 40px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: transparent !important;
  font-size: 0 !important;
  cursor: pointer !important;
  transform: translateY(10px) !important;
}

body.home .navi-in > ul > li:last-child > a::before {
  content: "\f002" !important;
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  display: inline-block !important;
  color: #063018 !important;
  font-size: 22px !important;
  line-height: 1 !important;
}

body.home .navi-in > ul > li:last-child > a:hover::before {
  color: var(--agl-link-hover) !important;
}

/* ヘッダー直下〜本文上部の余白を詰める */
body.home #content,
body.home .content,
body.home .content-in,
body.home .main,
body.home .main-in,
body.home .entry-content,
body.home .agl-front-page,
body.home .agl-home {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 固定ヘッダー分のヒーロー余白は css/agl-hero.css 側で管理 */

/* ==================================================
  AIガジェットラボ：ヘッダー＋ヒーロー背景 色切り替え
  後で切り替えやすいように候補はコメントアウトで保持
================================================== */

/* 現在有効：:root の --agl-hero-bg を使用 */
body.home #header-container,
body.home .header-container {
  background: var(--agl-hero-bg) !important;
}

/* グリーン横方向グラデーション */
/*
:root {
  --agl-hero-bg: linear-gradient(
    90deg,
    #a8e834 0%,
    #45bf3c 34%,
    #0fa34e 58%,
    #008a4a 100%
  );
}
*/

/* 明るいブルー系グラデーション */
/*
:root {
  --agl-hero-bg: linear-gradient(
    90deg,
    #38d5ff 0%,
    #1f8fff 36%,
    #2563eb 68%,
    #123c9c 100%
  );
}
*/

/* ディープブルー系グラデーション */
/*
:root {
  --agl-hero-bg: linear-gradient(
    90deg,
    #4fd9ff 0%,
    #1f73e8 42%,
    #2451c8 70%,
    #172b8a 100%
  );
}
*/

/* ブルー単色 */
/*
:root {
  --agl-hero-bg: #2451c8;
}
*/

/* ヒーロー通過後：固定ヘッダー外側を透過寄りにする */
body.home.agl-header-past-hero #header-container,
body.home.agl-header-past-hero .header-container {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(10px) !important;
}

/* 白背景上でもカプセル枠が浮くように影だけ少し調整 */
body.home.agl-header-past-hero .header-container-in {
  box-shadow: var(--agl-shadow-floating-soft) !important;
}

/* ==================================================
  AIガジェットラボ：ヘッダー検索フォーム展開
================================================== */

body.home .agl-header-search {
  position: absolute;
  right: 0;
  top: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 0;
  height: 42px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-50%);
  transition:
    width 0.22s ease,
    opacity 0.18s ease;
}

/* 開いた状態 */
body.home .agl-header-search.is-open {
  width: 260px;
  opacity: 1;
}

/* 入力欄 */
body.home .agl-header-search__input {
  width: 100%;
  height: 42px;
  padding: 0 48px 0 16px;
  border: 2px solid rgba(6, 48, 24, 0.14);
  border-radius: var(--agl-radius-pill);
  background: #ffffff;
  color: #063018;
  font-size: 14px;
  font-weight: 700;
  outline: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
}

body.home .agl-header-search__input::placeholder {
  color: rgba(6, 48, 24, 0.45);
}

/* 検索送信ボタン */
body.home .agl-header-search__button {
  position: absolute;
  right: 12px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #063018;
  font-size: 15px;
  transform: translateY(-50%);
  cursor: pointer;
}

/* 開いている時は虫眼鏡メニューを少し薄くする */
body.home .navi-in > ul > li:last-child.is-search-open > a::before {
  color: rgba(6, 48, 24, 0.35) !important;
}

/* タブレット */
@media screen and (max-width: 1023px) {
  body.home .header-container-in {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "brand"
      "nav" !important;
    gap: 14px !important;
    padding: 18px 20px !important;
  }

  body.home .logo-header {
    justify-content: center !important;
    text-align: center !important;
    transform: none !important;
  }

  body.home #navi,
  body.home .navi,
  body.home .navi-in {
    justify-content: center !important;
    width: 100% !important;
  }

  body.home .navi-in > ul {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 14px 22px !important;
  }

  body.home .navi-in > ul > li > a {
    font-size: 13px !important;
  }

  body.home .navi-in > ul > li:last-child > a {
    transform: none !important;
  }

  /* ヒーロー余白は css/agl-hero.css 側で管理 */
}

/* スマホ */
@media screen and (max-width: 834px) {
  body.home #header-container,
  body.home .header-container {
    padding: 12px 0 0 !important;
  }

  body.home .header-container-in {
    width: calc(100vw - 24px) !important;
    padding: 14px 16px !important;
    border-radius: 28px !important;
    box-shadow:
      0 14px 32px rgba(15, 35, 28, 0.14),
      0 6px 14px rgba(0, 0, 0, 0.08) !important;
  }

  body.home .navi-in > ul {
    gap: 12px 18px !important;
  }

  body.home .navi-in > ul > li > a {
    font-size: 12px !important;
  }

  body.home .agl-header-search.is-open {
    width: 220px;
  }

  /* ヒーロー余白は css/agl-hero.css 側で管理 */
}

/* ==================================================
  AIガジェットラボ：ホーム独自フッター
  ヘッダーと同じ白い角丸カード風
================================================== */

body.home .agl-site-footer {
  width: min(var(--agl-header-width), calc(100vw - 48px));
  margin: 76px auto 34px;
  color: #063018;
}

body.home .agl-site-footer__inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(420px, 1.6fr);
  align-items: center;
  gap: 34px;
  padding: 30px 34px;
  background: var(--agl-card-bg);
  border-radius: var(--agl-radius-xl);
  box-shadow: var(--agl-shadow-floating);
}

body.home .agl-site-footer__brand {
  min-width: 0;
}

body.home .agl-site-footer__menu {
  min-width: 0;
}

/* フッターロゴの見た目は「AIガジェットラボ：ロゴ共通設定」で管理 */

body.home .agl-site-footer__text {
  margin: 12px 0 0;
  color: var(--agl-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
}

body.home .agl-site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 22px;
}

body.home .agl-site-footer__nav a {
  color: #063018;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.16s ease;
}

body.home .agl-site-footer__nav a:hover {
  color: var(--agl-link-hover);
}

body.home .agl-site-footer__sns {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

body.home .agl-site-footer__sns-item {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 17px;
  transition:
    color 0.16s ease,
    transform 0.16s ease;
}

/* フッターSNS仮アイコン：色付き */
body.home .agl-site-footer__sns-item:nth-child(1) {
  color: var(--agl-sns-x);
}

body.home .agl-site-footer__sns-item:nth-child(2) {
  color: var(--agl-sns-pinterest);
}

body.home .agl-site-footer__sns-item:nth-child(3) {
  color: var(--agl-sns-video);
}

body.home .agl-site-footer__sns-item:hover {
  transform: translateY(2px);
}

body.home .agl-site-footer__copy {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

/* Cocoon標準フッターをホームでは非表示 */
body.home #footer,
body.home .footer {
  display: none !important;
}

@media screen and (max-width: 1023px) {
  body.home .agl-site-footer {
    width: calc(100vw - 32px);
    margin: 58px auto 28px;
  }

  body.home .agl-site-footer__inner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 22px;
  }

  body.home .agl-site-footer__brand {
    text-align: center;
  }

  body.home .agl-site-footer__menu {
    text-align: center;
  }

  body.home .agl-site-footer__nav {
    justify-content: center;
  }

  body.home .agl-site-footer__sns {
    justify-content: center;
  }
}

@media screen and (max-width: 480px) {
  body.home .agl-site-footer {
    width: calc(100vw - 24px);
  }

  body.home .agl-site-footer__nav {
    gap: 10px 16px;
  }

  body.home .agl-site-footer__nav a {
    font-size: 13px;
  }
}

/* ==================================================
   AIガジェットラボ：ホームメイン先頭セクション位置調整
   はじめての方におすすめ と CATEGORY の開始位置を揃える
================================================== */
.agl-home-main > .agl-home-section:first-child {
  margin-top: 0;
}

/* ==================================================
   AIガジェットラボ：ホーム右サイドバー POPULAR TAGS
================================================== */

.agl-home-side__block--tags {
  margin-top: 36px;
}

.agl-home-popular-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.agl-home-popular-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(31, 115, 232, 0.14);
  color: #263238;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 800;
  text-decoration: none;
  box-shadow:
    0 5px 0 rgba(0, 0, 0, 0.06),
    0 8px 18px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.agl-home-popular-tags a:hover {
  color: var(--agl-green);
  border-color: rgba(22, 163, 74, 0.28);
  transform: translateY(3px);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.06),
    0 5px 14px rgba(0, 0, 0, 0.05);
}

@media screen and (max-width: 1023px) {
  .agl-home-side__block--tags {
    margin-top: 28px;
  }
}


/* ==================================================
   AIガジェットラボ：ホーム右サイドバー SNS
   POPULAR TAGS下に表示
================================================== */

.agl-home-side__block--sns {
  margin-top: 30px;
}

.agl-home-sns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.agl-home-sns__item {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #ffffff;
  color: #111827;
  text-decoration: none;
  font-size: 20px;
  font-weight: 900;
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.10),
    0 10px 22px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.05);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    background 0.18s ease;
}

.agl-home-sns__item:hover {
  transform: translateY(4px);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.10),
    0 5px 14px rgba(15, 23, 42, 0.07);
}

.agl-home-sns__item--x {
  color: var(--agl-sns-x);
}

.agl-home-sns__item--pinterest {
  color: var(--agl-sns-pinterest);
}

.agl-home-sns__item--video {
  color: var(--agl-sns-video);
}

.agl-home-sns__x,
body.home .agl-site-footer__sns-x {
  display: inline-block;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

@media screen and (max-width: 1023px) {
  .agl-home-side__block--sns {
    margin-top: 24px;
  }

  .agl-home-sns {
    justify-content: center;
    gap: 10px;
  }

  .agl-home-sns__item {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 18px;
  }

  .agl-home-sns__x {
    font-size: 17px;
  }
}

/* ==================================================
   AIガジェットラボ：PCヒーロービジュアル位置調整
   対象：PATTERN 02 右側ビジュアル全体
================================================== */
@media screen and (min-width: 1024px) {
  .agl-combo-visual {
    transform: translateY(-18px) !important;
  }
}



/* ==================================================
   AIガジェットラボ：PCヘッダー高さ微調整
   スマホハンバーガー化は中止し、PCの白い外枠だけ少し低くする
================================================== */
@media screen and (min-width: 1024px) {
  body.home .header-container-in {
    padding: 17px 32px !important;
  }

  body.home .logo-header {
    transform: translateY(10px) !important;
  }

  body.home .navi-in > ul > li:last-child > a,
  body.home .navi-in > ul > li:last-child > a:hover {
    transform: translateY(7px) !important;
  }
}

/* ==================================================
   AIガジェットラボ：スマホ表示ヘッダー整理 v4
   対象：1023px以下のみ
   - 固定解除後のロゴ上部白背景は「透過」ではなくヒーロー背景色に合わせる
   - 白い角丸カードは解除
   - Cocoon純正スマホメニューボタンには触らない
   - ヘッダー内ナビだけ非表示
   - front-page.php内のヒーロー下3カテゴリ導線だけ非表示
================================================== */
@media screen and (max-width: 1023px) {
  :root {
    --agl-mobile-logo-offset-y: 18px;
    --agl-mobile-logo-hero-gap: 0px;
  }

  /* 固定解除後は透明にするとbodyの白が見えるため、ヒーローと同じ背景にする */
  body.home #header-container,
  body.home .header-container {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: 1 !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: var(--agl-mobile-logo-offset-y) 0 var(--agl-mobile-logo-hero-gap) !important;
    background: var(--agl-hero-bg) !important;
    background-color: transparent !important;
    background-image: var(--agl-hero-bg) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* PC用の白い角丸ヘッダーカードを解除 */
  body.home #header-container-in,
  body.home .header-container-in {
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 16px !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  body.home #header,
  body.home .header,
  body.home #header-in,
  body.home .header-in,
  body.home .logo-header,
  body.home .logo-header a,
  body.home .site-name-text {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.home #header,
  body.home .header,
  body.home #header-in,
  body.home .header-in,
  body.home .logo-header {
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: calc(100vw - 32px) !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    transform: none !important;
  }

  body.home .logo-header a,
  body.home .site-name-text {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--agl-logo-text-color) !important;
    line-height: 1.12 !important;
    white-space: nowrap !important;
  }

  /* 上部ヘッダー内のナビだけ非表示。Cocoon純正スマホメニューボタンには触らない */
  body.home #header-container #navi,
  body.home #header-container .navi,
  body.home #header-container #navi-in,
  body.home #header-container .navi-in {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
  }

  body.home .agl-header-search {
    display: none !important;
  }


  /* front-page.php内の右サイドCATEGORYだけ非表示
     対象：<!-- HOME SIDE --><aside class="agl-home-side"> 直下の最初のブロック
     Cocoon純正スマホメニュー内のカテゴリ、ヒーロー下3カテゴリ導線には触らない */
  body.home aside.agl-home-side > .agl-home-side__block:first-of-type {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
}

@media screen and (max-width: 480px) {
  :root {
    --agl-mobile-logo-hero-gap: 0px;
  }
}


/* ==================================================
   AIガジェットラボ：フッターロゴをPCヘッダーと同じ2段ロゴに統一
   対象：PC／スマホ共通
================================================== */
body.home .agl-site-footer__logo {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 4px !important;
  width: max-content !important;
  max-width: 100% !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

body.home .agl-site-footer__logo::before {
  content: "AI GADGET LAB";
  white-space: nowrap;
  display: block;
  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
  font-size: 31px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.01em;
  line-height: 0.8;
  -webkit-text-stroke: 0.3px currentColor;
  color: transparent;
  background: linear-gradient(100deg, #1687ff 0%, #22d3ee 48%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  transform: none;
}

body.home .agl-site-footer__logo::after {
  content: "AIガジェットラボ";
  display: block;
  margin-top: 0;
  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
  font-size: 11px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: right;
  color: #6b7280;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  transform: none;
}

@media screen and (max-width: 1023px) {
  body.home .agl-site-footer__logo {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ==================================================
   AIガジェットラボ：スマホ表示ロゴ微調整
   対象：1023px以下のみ
   - PC表示のロゴデザインは維持
   - スマホでは英字ロゴを白系にして背景グラデーション上の可読性を確保
   - 追加した ::after の日本語は非表示
   - Cocoon側のサイト名テキストは小さく表示
   - ロゴ全体を少し下げてヒーローに近づける
================================================== */
@media screen and (max-width: 1023px) {
  body.home .site-name-text {
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    transform: translateY(10px) !important;
  }

  body.home .site-name-text::before {
    color: rgba(255, 255, 255, 0.94) !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    text-shadow:
      0 2px 8px rgba(0, 20, 70, 0.24),
      0 0 18px rgba(255, 255, 255, 0.12);
  }

  body.home .site-name-text::after {
    display: none !important;
    content: none !important;
  }
}
