/* CSSリセットと基本スタイル設定 */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* 非表示属性のスタイル */
:where([hidden]:not([hidden="until-found"])) {
  display: none !important;
}

/* HTML要素の基本設定 */
:where(html) {
  -webkit-text-size-adjust: none;
  font-size: 10px;
}

/* ブロックサイズのサポートがない場合のフォールバック */
@supports not (min-block-size: 100dvb) {
  :where(html) {
    block-size: 100%;
  }
}

/* ブロックサイズのサポートがない場合のフォールバック */
:where(body) {
  position: relative;
  min-height: 100%;
  block-size: 100%;
  block-size: 100dvb;
  vertical-align: bottom;
  width: 100vw;
  overflow-x: hidden;
}

/* フォーム要素の基本設定 */
:where(input, button, textarea, select) {
  font: inherit;
  color: inherit;
}

/* テキストエリアの基本設定 */
:where(textarea) {
  resize: vertical;
  resize: block;
}

/* インタラクティブ要素の基本設定 */
:where(button, label, select, summary, [role="button"], [role="option"]) {
  cursor: pointer;
}

/* 無効化された要素の基本設定 */
:where(:disabled) {
  cursor: not-allowed;
}

/* ラベル内の無効化された入力要素の基本設定 */
:where(label:has(> input:disabled), label:has(+ input:disabled)) {
  cursor: not-allowed;
}

/* ボタンの基本設定 */
:where(button) {
  border-style: solid;
}

/* リンクの基本設定 */
:where(a) {
  text-underline-offset: 0.2ex;
  text-decoration: none;
  color: var(--text);
}

/* リストの基本設定 */
:where(ul, ol) {
  list-style: none;
}

/* メディア要素の基本設定 */
:where(svg, canvas, audio, iframe, embed, object) {
  display: block;
  width: 100%;
  height: auto;
}

/* 画像の基本設定 */
:where(img) {
  display: block;
  width: 100%;
  height: auto;
}

/* 図要素の基本設定 */
:where(figure) {
  margin: 0;
}

/* ピクチャーとSVGの基本設定 */
:where(picture, svg) {
  max-inline-size: 100%;
  block-size: auto;
  overflow: inherit;
}

/* テキスト要素の基本設定 */
:where(p, h1, h2, h3, h4, h5, h6) {
  overflow-wrap: break-word;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 100%;
  font-style: normal;
  font-weight: normal;
  vertical-align: baseline;
  background: rgba(0, 0, 0, 0);
  line-height: 1.55;
  font-family: "Hiragino sans", sans-serif;
}

/* 水平線の基本設定 */
:where(hr) {
  border: none;
  -webkit-border-before: 1px solid;
  border-block-start: 1px solid;
  color: inherit;
  block-size: 0;
  overflow: visible;
}

/* フォーカス可視化の基本設定 */
:where(:focus-visible) {
  outline: 2px solid var(--focus-color, Highlight);
  outline-offset: 2px;
}

/* スクリーンリーダー用の非表示クラス */
:where(.visually-hidden:not(:focus, :active, :focus-within, .not-visually-hidden)) {
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  width: 1px !important;
  overflow: hidden !important;
  position: absolute !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* 共通フォント設定 */
@font-face {
  font-family: "notosans-el";
  src:
    url("../../assets/fonts/NotoSansJP-ExtraLight.woff2") format("woff2"),
    url("../../assets/fonts/NotoSansJP-ExtraLight.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "notosans-r";
  src:
    url("../../assets/fonts/NotoSansJP-Regular.woff2") format("woff2"),
    url("../../assets/fonts/NotoSansJP-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "notosans-m";
  src:
    url("../../assets/fonts/NotoSansJP-Medium.woff2") format("woff2"),
    url("../../assets/fonts/NotoSansJP-Medium.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "notosans-b";
  src:
    url("../../assets/fonts/NotoSansJP-Bold.woff2") format("woff2"),
    url("../../assets/fonts/NotoSansJP-Bold.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "notosans-black";
  src:
    url("../../assets/fonts/NotoSansJP-Black.woff2") format("woff2"),
    url("../../assets/fonts/NotoSansJP-Black.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "lexend-l";
  src:
    url("../../assets/fonts/Lexend-Light.woff2") format("woff2"),
    url("../../assets/fonts/Lexend-Light.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "lexend-zetta-black";
  src:
    url("../../assets/fonts/LexendZetta-Black.woff2") format("woff2"),
    url("../../assets/fonts/LexendZetta-Black.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "lexend-deca-light";
  src:
    url("../../assets/fonts/LexendDeca-Light.woff2") format("woff2"),
    url("../../assets/fonts/LexendDeca-Light.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "inter-b";
  src:
    url("../../assets/fonts/Inter_28pt-Bold.woff2") format("woff2"),
    url("../../assets/fonts/Inter_28pt-Bold.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "inter-b-i";
  src:
    url("../../assets/fonts/Inter_28pt-BoldItalic.woff2") format("woff2"),
    url("../../assets/fonts/Inter_28pt-BoldItalic.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "inter-black";
  src:
    url("../../assets/fonts/Inter_28pt-Black.woff2") format("woff2"),
    url("../../assets/fonts/Inter_28pt-Black.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "inter-black-i";
  src:
    url("../../assets/fonts/Inter_28pt-BlackItalic.woff2") format("woff2"),
    url("../../assets/fonts/Inter_28pt-BlackItalic.ttf") format("truetype");
  font-display: swap;
}

:root {
  --text: #414159;
  --main: #62539A;
  --accent: #E2C624;
  --sub: #DDD3F2;
  --white: #ffffff;
}

/* ボディの基本設定 */
body {
  position: relative;
  color: var(--text);
  font-weight: normal;
  font-style: normal;
  font-optical-sizing: auto;
  font-family: "notosans-r", "Hiragino Sans", sans-serif;
}

/* 共通クラス設定 */
main {
  position: relative;
}

/* コンテナ設定 */
.-container {
  padding: 0 4.186vw;
  margin-left: auto;
  margin-right: auto;
}

/* コンテナ設定 */
@media screen and (min-width: 1024px) {
  .-container {
    padding: 0 6.25vw;
  }
}

/* スマートフォン専用表示 */
@media screen and (min-width: 1024px) {
  .only_sp {
    display: none;
  }
}

/* パソコン専用表示 */
.only_pc {
  display: none;
}

/* パソコン専用表示 */
@media screen and (min-width: 1024px) {
  .only_pc {
    display: block;
  }
}

.bg-text {
  font-family: "lexend-zetta-black";
  font-size: clamp(45px, 14vw, 60px);
  color: rgba(43, 0, 255, 0.05);
}

.contact {
  background-color: #ede7f8;
  padding: 24vw 0;
}

@media screen and (min-width: 1024px) {
  .contact {
    padding: 8vw 0;
  }
}

.contact-form_form-field {
  margin-bottom: 3vw;
}

@media screen and (min-width: 1024px) {
  .contact-form_form-field {
    margin-bottom: 1vw;
  }
}

.contact-form_form-field:last-of-type {
  margin-bottom: 0;
}

.thanks {
  background-color: #ede7f8;
  padding: 16vw 0 14.88vw;
}

@media screen and (min-width: 1024px) {
  .thanks {
    padding: 10vw 0 10.15vw;
  }
}

.thanksContainer {
  max-width: 90vw;
  margin: 0 auto;
}

@media screen and (min-width: 1024px) {
  .thanksContainer {
    max-width: 60vw;
  }
}

.thanks_content {
  background-color: #fff;
  border-radius: 4.65vw;
  padding: 8.37vw 5.58vw;
  -webkit-box-shadow: 0 0.93vw 0.93vw rgba(0, 0, 0, 0.1);
  box-shadow: 0 0.93vw 0.93vw rgba(0, 0, 0, 0.1);
}

@media screen and (min-width: 1024px) {
  .thanks_content {
    border-radius: 1.5625vw;
    padding: 4.5vw 5vw;
    -webkit-box-shadow: 0 0.3125vw 0.3125vw rgba(0, 0, 0, 0.1);
    box-shadow: 0 0.3125vw 0.3125vw rgba(0, 0, 0, 0.1);
  }
}

.thanks-ttl {
  color: #414143;
  font-family: "notosans-b";
  font-size: 3.7209302326vw;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 4.65vw;
}

@media screen and (min-width: 1024px) {
  .thanks-ttl {
    font-size: 1.875vw;
    margin-bottom: 2.5vw;
  }
}

.thanks-text {
  color: #414143;
  font-family: "notosans-m";
  font-size: 2.7906976744vw;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 5.58vw;
}

@media screen and (min-width: 1024px) {
  .thanks-text {
    font-size: 1.171875vw;
    margin-bottom: 3.125vw;
  }
}

.thanks_info {
  background-color: #f9f9f9;
  border-radius: 2.32vw;
  padding: 4.65vw;
  margin-bottom: 5.58vw;
}

@media screen and (min-width: 1024px) {
  .thanks_info {
    border-radius: 1.25vw;
    padding: 2.5vw 3.125vw;
    margin-bottom: 3.125vw;
  }
}

.thanks_info-label {
  color: #414143;
  font-family: "notosans-m";
  font-size: 2.7906976744vw;
  line-height: 2;
}

@media screen and (min-width: 1024px) {
  .thanks_info-label {
    font-size: 1.171875vw;
  }
}

.thanks_info-label:not(:last-child) {
  margin-bottom: 1.16vw;
}

@media screen and (min-width: 1024px) {
  .thanks_info-label:not(:last-child) {
    margin-bottom: 0.625vw;
  }
}

.thanks_info-value {
  color: #414143;
  font-family: "notosans-m";
  font-size: 2.7906976744vw;
  margin-left: 1.16vw;
}

@media screen and (min-width: 1024px) {
  .thanks_info-value {
    font-size: 1.171875vw;
    margin-left: 0.625vw;
  }
}

.thanks-message {
  color: #414143;
  font-family: "notosans-m";
  font-size: 2.3255813953vw;
  line-height: 1.8;
  text-align: center;
}

@media screen and (min-width: 1024px) {
  .thanks-message {
    font-size: 0.859375vw;
  }
}

.thanks-message a {
  color: #15a93b;
  text-decoration: underline;
}

.thanks-message a:hover {
  color: #128a30;
}


/* =========================
 Header
========================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100vw;
  height: auto;
  background: #fff;
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.25);
}

/* ヘッダー内側 */
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 1280px;
  min-height: 50px;
  padding: 11px 40px;
  gap: 3.2vw;
  margin-inline: auto;
}

/* ヘッダーのACロゴ */
.header__logo {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
}

.header__logo-img {
  width: 238px;
  max-width: 100%;
  height: auto;
}

/* ボタン */
.header__btns {
  display: flex;
  flex-direction: row;
  flex: 0 0 auto;
  gap: 13px;
  align-items: flex-end;
}

.header__btn {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 38px;
  min-height: 38px;
  padding: 0 20px;
  font-size: 14px;
  font-family: "notosans-b";
  line-height: 1.5;
  white-space: nowrap;
  border-radius: 22px;
}

/* ボタン内のアイコン */
.header__btn-img {
  aspect-ratio: 1/1;
  max-width: clamp(18px, 1.7vw, 24px);
  max-height: clamp(18px, 1.7vw, 24px);
}

/* デモ・ご相談ボタン（黄色CTA） */
.header__btn--demo {
  width: 180px;
  background: linear-gradient(180deg, #f0bb0b 14.5%, #ffc000 37.94%, #ffc233 121.5%);
  box-shadow: 0 4px 0 #8a6024;
}

/* ダウンロードボタン（紫CTA） */
.header__btn--download {
  width: 180px;
  color: #fff;
  background: linear-gradient(180deg, #7044ef 0%, #562bce 100.96%);
  box-shadow: 0 4px 0 #362283;
}

.header__btn:hover {
  transform: translateY(4px);
  box-shadow: none;
}

/* =========================
 Footer
========================= */
.footer {
  background: #F2F0F5;
  padding: 60px 0 24px;
}

.footer__inner {
  width: min(calc(100% - 80px), 980px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 32px;
  align-items: start;
}

.footer__brand {
  display: grid;
  grid-template-columns: 1fr 72px;
  column-gap: 48px;
  align-items: end;
}

.footer__logo {
  grid-column: 1 / -1;
  width: 360px;
  max-width: 100%;
  height: auto;
  margin: 0 0 18px;
}

.footer__company {
  margin: 0 0 18px;
  font-size: 20px;
  font-family: "notosans-b";
  font-weight: 700;
  line-height: 1.4;
}

.footer__mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.footer__mail img {
  width: 18px;
  height: auto;
  flex: 0 0 18px;
}

.footer__mail a:hover {
  color: #6255a3;
  text-decoration: underline;
}
.footer__mail a,
.footer__links a {
  text-decoration: none;
}

.footer__agentexchange {
  width: 96px;
  height: auto;
  justify-self: center;
  margin-bottom: 2px;
}

.footer__nav {
  gap: 32px;
  padding-top: 72px;
}

.footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  gap: 12px;
}

.footer__links a {
  font-size: 14px;
  font-family: "notosans-b";
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.footer__links a:hover {
  color: #6255a3;
}

.footer__links a:hover,
.footer__mail a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer__copyright {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 0 20px;
  font-size: 12px;
  line-height: 17px;
}

.footer__mail a {
  font-size: 14px;
  line-height: 19px;
}

.footer__info {
  display: flex;
  gap: 30px;
  min-width: 0;
}

.footer__address {
  margin: 0 0 18px;
  font-size: 14px;
  font-style: normal;
  line-height: 1.65;
}

/* =========================
 Responsive additions
========================= */
@media screen and (max-width: 1024px) {
  .header__inner {
    width: 100%;
    padding: 11px 24px;
    gap: 16px;
  }

  .header__logo-img {
    width: min(238px, 34vw);
  }

  .header__btns {
    gap: 10px;
  }

  .header__btn {
    width: auto;
    min-width: 158px;
    padding-inline: 14px;
    font-size: 15px;
  }

  .footer {
    padding: 36px 0 24px;
  }

  .footer__inner {
    width: calc(100% - 56px);
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer__brand {
    grid-template-columns: 1fr 72px;
    column-gap: 36px;
    max-width: 620px;
  }

  .footer__logo {
    width: 320px;
  }

  .footer__company {
    margin-bottom: 2px;
    font-size: 16px;
  }

  .footer__nav {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding-top: 0;
  }

  .footer__copyright {
    width: calc(100% - 56px);
    margin-top: -10px;
  }
}

@media screen and (max-width: 767px) {
  .header {
    position: static;
    width: auto;
    background: transparent;
  }

  .header__inner {
    display: block;
    padding: 0;
    background: #fff;
  }

  /* ロゴだけ画面上部に固定 */
  .header__logo {
    position: fixed;
    top: 0;
    width: 100%;
    height: 50px;
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    z-index: 1000;
    box-sizing: border-box;
  }

   .header__logo-img {
    width: min(210px, 62vw);
    height: auto;
  }

  .header__btns {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding:
      14px
      16px
      calc(16px + env(safe-area-inset-bottom));
    background: #fff;
    box-sizing: border-box;
    z-index: 1000;
  }

  .header__btn {
    flex: 1 1 0;
    min-width: 0;
    max-width: 180px;
    height: 44px;
    min-height: 40px;
    padding-inline: 10px;
    gap: 6px;
    font-size: 15px;
  }

  .header__btn-img {
    max-width: 20px;
    max-height: 20px;
  }

  .footer {
    padding: 24px 0 60px;
  }

  .footer__inner {
    gap: 16px;
    width: 100%;
  }

  .footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    padding: 12px;
  }

  .footer__logo {
    width: 250px;
    margin: 0;
  }

  .footer__address {
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 1.5;
  }

  .footer__mail {
    font-size: 13px;
  }

  .footer__agentexchange {
    width: 72px;
    margin: 0;
  }

  .footer__nav {
    display: block;
    width: 100%;
  }

  .footer__links {
    gap: 0;
  }

  .footer__links li {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-right: 1px solid var(--text);
    border-bottom: 1px solid var(--text);
  }

  .footer__links {
    border-top: 1px solid var(--text);
    border-left: 1px solid var(--text);
  }

  .footer__links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 12px 2px;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.45;
  }

  .footer__links li:nth-child(7) {
    grid-column: 1 / -1;
  }

  .footer__copyright {
    width: calc(100% - 32px);
    margin-top: 8px;
    padding: 8px 0;
    font-size: 11px;
    line-height: 1.6;
  }
}

@media screen and (max-width: 480px) {
  .header__btn {
    font-size: 15px;
    padding-inline: 8px;
  }

  .footer__logo {
    width: 220px;
  }

  .footer__nav {
    gap: 2px;
  }

  .footer__links a {
    font-size: 12px;
  }
}