:root {
  --ink: #0e2347;
  --blue: #20a7e7;
  --sky: #dff3fc;
  --line: rgba(14, 35, 71, .23);
  --white: #fff;
  --max: 1560px;
  --content-max: 960px;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, textarea { font: inherit; }

:focus-visible {
  outline: 3px solid rgba(32, 167, 231, .72);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: #fff;
  border-bottom: 1px solid rgba(14, 35, 71, .07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 64px));
  height: 84px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  width: 139px;
  align-items: center;
}

.brand-logo {
  width: 100%;
  height: 44px;
  object-fit: contain;
  object-position: center;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.8vw, 50px);
}

.primary-nav a {
  position: relative;
  padding: 9px 0;
  color: #112443;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .72s cubic-bezier(.16, 1, .3, 1);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  z-index: 0;
  /* 最初の画面はヒーローだけにする：下の水色の面が92px重なるぶん、画面の高さより長くしておく */
  min-height: 682px;
  height: calc(100svh - 84px + 92px);
  overflow: hidden;
  background: #eef8fc;
  isolation: isolate;
}

.hero-slides {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: right top;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}

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

.hero-slide--01 {
  background-image: url("../images/hero/01-consult.webp");
}

.hero-slide--02 {
  background-image: url("../images/hero/02-morning.webp");
  background-position: right 0 top 40px;
}

.hero-slide--03 {
  background-image: url("../images/hero/03-window.webp");
  background-position: right 0 top 84px;
}

.hero-inner {
  display: flex;
  position: relative;
  z-index: 1;
  align-items: center;
  width: min(var(--max), calc(100% - 64px));
  min-height: max(590px, calc(100svh - 84px));
  margin: 0 auto;
}

.hero-copy {
  width: min(470px, 58%);
  padding: 24px 0 25px;
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 4.2vw, 64px);
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.38;
}

.hero-copy > p:not(.eyebrow) {
  margin: 20px 0 28px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 2;
}

/* 日本語の文が言葉の途中で改行されないよう、句のまとまりで折り返す */
.phrase { display: inline-block; }

.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 190px;
  min-height: 52px;
  padding: 0 14px 0 18px;
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, .1);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}

.outline-button::after {
  content: "›";
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}

.outline-button:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateX(3px);
}

/* Main content */
.content-surface {
  position: relative;
  z-index: 2;
  margin-top: -92px;
  background: var(--sky);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .65), 0 -18px 42px rgba(14, 35, 71, .08);
}

.content-wrap {
  width: min(var(--content-max), calc(100% - 64px));
  margin: 0 auto;
}

.section { padding: 94px 0 0; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.section-title {
  margin: 0;
  color: #112443;
  font-size: clamp(34px, 3vw, 44px);
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1;
}

.section-sub {
  margin: 0;
  font-size: 15px;
  letter-spacing: .06em;
}

.column-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}

.article-card { min-width: 0; }

.article-card__image {
  aspect-ratio: 1.28;
  overflow: hidden;
  background: #d5e9ee;
}

.article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

.article-card:hover img { transform: scale(1.055); }

.article-card__title {
  margin: 14px 0 9px;
  color: #122442;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.6;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  color: #344866;
  font-size: 13px;
  letter-spacing: .04em;
}

.all-articles { margin-top: 31px; }

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

.service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.service-card__image {
  aspect-ratio: 1.45;
  overflow: hidden;
  background: #d4e9ee;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

.service-card:hover img { transform: scale(1.055); }

.service-card h3 {
  margin: 16px 0 8px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .04em;
}

.service-card p {
  flex: 1;
  margin: 0 0 20px;
  color: #344866;
  font-size: 16px;
  line-height: 1.9;
}

.service-card .outline-button {
  min-width: 160px;
  min-height: 47px;
  align-self: flex-start;
}

.quick-links { padding: 92px 0 82px; }

.quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 116px;
  padding: 0 8px;
  border-top: 1px solid var(--line);
  transition: background-color .7s cubic-bezier(.16, 1, .3, 1);
}

.quick-link:last-child { border-bottom: 1px solid var(--line); }

.quick-link > span:first-child {
  transform: translateX(0);
  transition: transform .75s cubic-bezier(.16, 1, .3, 1);
}

.quick-link:hover,
.quick-link:focus-visible {
  background-color: rgba(255, 255, 255, .27);
}

.quick-link:hover > span:first-child,
.quick-link:focus-visible > span:first-child {
  transform: translateX(14px);
}

.quick-link h2 {
  margin: 0 0 8px;
  font-size: clamp(38px, 4vw, 50px);
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1;
}

.quick-link p {
  margin: 0;
  color: #405470;
  font-size: 15px;
  letter-spacing: .06em;
}

.circle-arrow {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #102541;
  color: var(--white);
  font-size: 0;
  transition: background-color .55s ease;
}

.circle-arrow::before,
.circle-arrow::after {
  position: absolute;
  top: calc(50% - 1px);
  right: calc(50% - 3.5px);
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transform-origin: 100% 50%;
}

.circle-arrow::before { transform: rotate(45deg); }
.circle-arrow::after { transform: rotate(-45deg); }

.quick-link:hover .circle-arrow,
.quick-link:focus-visible .circle-arrow {
  background-color: var(--blue);
}

/* Footer */
.site-footer { background: var(--white); }

.footer-inner {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
  padding: 54px 0 34px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand {
  width: 145px;
  flex: 0 0 auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px 44px;
}

.footer-nav a {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .12em;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 56px;
}

.socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.socials a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #0e2347;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

/* SNS・共有の丸の中の X・f・n。文字だとフォントの上下の余白で中心がずれるので、字の形の図形を1文字分の大きさで真ん中に置く */
.glyph {
  display: block;
  width: 1em;
  height: 1em;
}

/* 丸と図形の大きさの差を偶数にして、図形が画素の境目に乗らないようにする（差が奇数だと 0.5px 左上に寄って見えた） */
.share .glyph {
  width: 14px;
  height: 14px;
}

.socials .glyph {
  width: 16px;
  height: 16px;
}

.socials a:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

.copyright {
  margin: 0;
  color: #4f6077;
  font-size: 13px;
  letter-spacing: .04em;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   AIに聞く：固定ボタンと質問パネル
   ===================================================== */
.ai-ask-trigger {
  position: fixed;
  z-index: 90;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 1px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(14, 35, 71, .24);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), background-color .35s ease;
}

.ai-ask-trigger:hover,
.ai-ask-trigger:focus-visible {
  background: #1b4f80;
  transform: translateY(-4px);
}

.ai-panel-backdrop {
  position: fixed;
  z-index: 94;
  inset: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}

.ai-panel {
  position: fixed;
  z-index: 95;
  right: 18px;
  bottom: 18px;
  width: min(440px, calc(100vw - 36px));
  height: min(640px, calc(100svh - 36px));
  max-height: calc(100svh - 32px);
  overflow: hidden;
  border: 1px solid rgba(14, 35, 71, .36);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(14, 35, 71, .2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity .35s ease, transform .45s cubic-bezier(.16, 1, .3, 1);
}

.ai-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ai-panel-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ai-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid rgba(14, 35, 71, .17);
}

.ai-panel__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1.35;
}

.ai-panel__close {
  display: grid;
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(14, 35, 71, .32);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 0;
  transition: background-color .2s ease, color .2s ease;
}

.ai-panel__close::before,
.ai-panel__close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.ai-panel__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.ai-panel__close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.ai-panel__close:hover,
.ai-panel__close:focus-visible {
  background: var(--ink);
  color: #fff;
}

.ai-panel__body { padding: 13px 18px 20px; }

.ai-page-label {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 6px 9px;
  border: 1px solid rgba(14, 35, 71, .26);
  border-radius: 4px;
  background: #f8fcfe;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.ai-panel__label {
  display: block;
  margin: 0 0 5px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
}

.ai-panel__label[for="aiQuestion"] {
  margin-top: 3px;
  margin-bottom: 10px;
}

.ai-suggestions {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
}

.ai-suggestion {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(14, 35, 71, .24);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  line-height: 1.3;
  text-align: left;
  transition: background-color .2s ease, border-color .2s ease;
}

.ai-suggestion:hover,
.ai-suggestion:focus-visible {
  border-color: var(--blue);
  background: #f4fbff;
}

.ai-question {
  width: 100%;
  min-height: 68px;
  max-height: 68px;
  padding: 8px 10px;
  resize: none;
  border: 1px solid rgba(14, 35, 71, .34);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.ai-question:focus {
  outline: 2px solid rgba(32, 167, 231, .35);
  border-color: var(--blue);
}

.ai-question-meta {
  display: flex;
  justify-content: flex-end;
  margin: 4px 0 10px;
  color: #4f6077;
  font-size: 11px;
}

.ai-provider-list {
  display: grid;
  gap: 7px;
}

.ai-provider {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(14, 35, 71, .32);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.ai-provider:hover,
.ai-provider:focus-visible {
  border-color: var(--blue);
  background: #f5fbfe;
  transform: translateX(3px);
}

.ai-provider__logo {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  margin-right: 10px;
  overflow: hidden;
  border-radius: 3px;
}

.ai-provider__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ai-provider__logo--claude img { transform: scale(1.22); }
.ai-provider__logo--gemini img { transform: scale(1.5); }

.ai-provider__name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .03em;
}

.ai-provider__arrow {
  margin-left: auto;
  font-size: 18px;
  line-height: 1;
}

.ai-panel__status {
  min-height: 32px;
  margin: 10px 0 0;
  color: #1a5684;
  font-size: 11px;
  line-height: 1.35;
}

.ai-panel__note {
  margin: 8px 0 0;
  padding-bottom: 2px;
  color: #53667b;
  font-size: 11px;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .header-inner,
  .footer-inner,
  .hero-inner {
    width: min(100% - 36px, var(--max));
  }

  .content-wrap { width: min(100% - 36px, var(--content-max)); }
  .header-inner { height: 68px; }

  .brand { width: 118px; }
  .brand-logo { height: 38px; }

  .menu-button {
    display: block;
    width: 38px;
    height: 38px;
    padding: 0;
    font-size: 22px;
  }

  .primary-nav {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 18px;
    background: #fff;
    box-shadow: 0 12px 20px rgba(14, 35, 71, .08);
    transition: max-height .3s ease, padding .3s ease;
  }

  .primary-nav.is-open {
    max-height: 312px;
    padding: 10px 18px 18px;
  }

  .primary-nav a {
    padding: 13px 0;
    border-bottom: 1px solid rgba(14, 35, 71, .09);
  }

  .hero {
    min-height: 510px;
    height: calc(100svh - 68px);
  }

  .hero-slide {
    background-attachment: scroll;
    background-position: right top;
  }

  .hero-inner {
    min-height: 510px;
    align-items: flex-end;
  }

  .hero-copy {
    width: 100%;
    padding-bottom: 63px;
  }

  h1 { font-size: 39px; }
  .section { padding-top: 66px; }
  .section-head { margin-bottom: 22px; }
  .section-title { font-size: 30px; }

  .column-grid,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 17px;
  }

  .article-card__title { font-size: 17px; }
  .service-card h3 { font-size: 18px; }
  .service-card p { font-size: 14px; }

  .content-surface { margin-top: -48px; }
  .quick-links { padding: 68px 0 62px; }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 29px;
  }

  .footer-nav {
    justify-content: flex-start;
    gap: 17px 24px;
  }

  .footer-bottom { margin-top: 42px; }

  .ai-ask-trigger {
    right: 14px;
    bottom: 14px;
    width: 78px;
    height: 78px;
    font-size: 13px;
  }

  .ai-panel {
    right: 14px;
    bottom: 14px;
    width: min(440px, calc(100vw - 28px));
    height: min(640px, calc(100svh - 28px));
    max-height: calc(100svh - 28px);
    border: 1px solid rgba(14, 35, 71, .36);
    border-radius: 7px;
    transform: translateY(14px);
  }

  .ai-panel.is-open { transform: translateY(0); }

  .ai-panel__head { padding: 14px 18px 12px; }
  .ai-panel__title { font-size: 18px; }
  .ai-panel__body { padding: 13px 18px 20px; }
}

@media (max-width: 440px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 29px;
  }

  .service-card__image {
    aspect-ratio: 1.58;
  }

  .quick-link { min-height: 98px; }
  .quick-link h2 { font-size: 31px; }
  .quick-link p { font-size: 14px; }
  .circle-arrow { width: 38px; height: 38px; }
  .hero-copy > p:not(.eyebrow) { font-size: 15px; }
}

/* =====================================================
   スマホ最適化
   ===================================================== */
@media (max-width: 760px) {
  /* ヒーロー：写真を上、文字を下に分け、社長が画面の中心に来るようにする */
  .hero {
    height: auto;
    min-height: 0;
    background: #fff;
  }

  .hero-slides {
    position: relative;
    height: min(84vw, 420px);
  }

  .hero-slide--01 { background-position: 95% top; }
  .hero-slide--02 { background-position: 100% top; }
  .hero-slide--03 { background-position: 100% top; }

  .hero-inner {
    min-height: 0;
    align-items: flex-start;
  }

  .hero-copy {
    padding: 30px 0 44px;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 11px;
    letter-spacing: .1em;
  }

  h1 { font-size: 34px; }

  .hero-copy > p:not(.eyebrow) {
    margin: 14px 0 22px;
    font-size: 15px;
  }

  .content-surface {
    margin-top: 0;
    box-shadow: none;
  }

  /* コラム：写真を左、タイトルを右に置いたリストにする */
  .column-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .article-card {
    border-bottom: 1px solid var(--line);
  }

  .article-card > a {
    display: grid;
    grid-template-columns: 38% 1fr;
    grid-template-rows: 1fr auto auto 1fr;
    column-gap: 14px;
    padding: 14px 0;
  }

  .article-card__image {
    grid-row: 1 / 5;
    aspect-ratio: 1.28;
  }

  /* タイトルと日付をひとまとまりにして、写真の高さの真ん中に置く */
  .article-card__title {
    grid-column: 2;
    grid-row: 2;
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.55;
  }

  .meta {
    grid-column: 2;
    grid-row: 3;
    gap: 6px;
    font-size: 11px;
  }

  /* フッター：メニューを2列にそろえる */
  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
    width: 100%;
  }

  /* AIに聞く：小さな横長ボタンにして、中身に被りにくくする */
  .ai-ask-trigger {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    width: auto;
    height: 46px;
    padding: 0 18px;
    border-radius: 23px;
    font-size: 14px;
  }

  /* AIパネル：画面下から出る全幅のシートにし、中身の高さに合わせる */
  .ai-panel-backdrop { background: rgba(14, 35, 71, .32); }

  .ai-panel {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 92svh;
    overflow-y: auto;
    border: 0;
    border-radius: 14px 14px 0 0;
    transform: translateY(24px);
  }

  .ai-panel__head {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
  }

  .ai-panel__title { font-size: 17px; }

  .ai-panel__body {
    padding: 14px 18px calc(18px + env(safe-area-inset-bottom));
  }

  .ai-panel__head { padding: 12px 18px 10px; }
  .ai-page-label { margin-bottom: 8px; }
  .ai-suggestions { gap: 6px; margin-bottom: 8px; }

  .ai-suggestion {
    padding: 9px 12px;
    font-size: 14px;
  }

  /* iPhoneは16px未満の入力欄を自動で拡大するので16pxにする */
  .ai-question {
    min-height: 72px;
    max-height: 72px;
    font-size: 16px;
  }

  .ai-question-meta { margin: 2px 0 6px; }
  .ai-provider-list { gap: 6px; }
  .ai-provider { min-height: 46px; }
  .ai-panel__status { min-height: 0; }
}

/* パネルを開いている間はボタンを隠す */
.ai-ask-trigger[aria-expanded="true"] {
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }

  /* ヒーロー写真は動かず透明度が変わるだけなので、この設定の人にもフェードで切り替える */
  .hero-slide { transition-duration: 1.6s !important; }
}

/* フッター：個人情報の取り扱いへのリンク */
.footer-legal {
  color: #4f6077;
  font-size: 13px;
  letter-spacing: .04em;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal:hover { color: var(--blue); }
