/* ==========================================================
  変数（複数箇所で使う色・フォントのみ）
========================================================== */
:root {
  --color-base: #fffaf2;
  --color-main: #f08a24;
  --color-sub: #ffd45c;
  --color-text: #3a2e25;
  --color-white: #fff;
  --font-ja: "Zen Maru Gothic", sans-serif;
  --font-en: "Poppins", sans-serif;
}

/* ==========================================================
  ベース
========================================================== */
html {
  /* ページ内リンクをなめらかにスクロールさせる */
  scroll-behavior: smooth;
  /* 追従ヘッダー（高さ72px）に見出しが隠れないよう、止まる位置を下げる */
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-base);
}

/* ==========================================================
  l-inner（共通の左右余白・最大幅）
========================================================== */
.l-inner {
  width: 100%;
  /* コンテンツ幅1000px + 左右余白40px×2 */
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ==========================================================
  l-header
========================================================== */
.l-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: var(--color-base);
}

.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.l-header__logo {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-main);
}

.l-header__nav-list {
  display: flex;
  gap: 32px;
}

.l-header__nav-link {
  font-size: 15px;
  font-weight: 700;
}

.l-header__nav-link:hover {
  color: var(--color-main);
}

/* ==========================================================
  l-footer
========================================================== */
.l-footer {
  padding: 32px 0;
  color: var(--color-white);
  background-color: var(--color-text);
}

.l-footer__copyright {
  font-size: 13px;
  text-align: center;
}

/* ==========================================================
  m-heading（セクション見出し）
========================================================== */
.m-heading {
  text-align: center;
}

.m-heading__en {
  display: block;
  font-family: var(--font-en);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-main);
}

.m-heading__ja {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
}

/* ==========================================================
  m-card
========================================================== */
.m-card {
  padding: 40px 32px;
  background-color: var(--color-base);
  border-radius: 20px;
}

.m-card__number {
  font-family: var(--font-en);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-main);
  text-align: center;
}

.m-card__title {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.m-card__text {
  margin-top: 12px;
  font-size: 15px;
}

/* ==========================================================
  p-top mv
========================================================== */
.p-top__mv {
  position: relative;
  /* はみ出させた円のあしらいで横スクロールが出ないようにする */
  overflow: hidden;
  padding: 100px 0 140px;
}

/* あしらい：右上の大きな黄色い円 */
.p-top__mv::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -180px;
  width: 440px;
  height: 440px;
  background-color: var(--color-sub);
  border-radius: 50%;
}

/* あしらい：右下の小さなオレンジの円 */
.p-top__mv::after {
  content: "";
  position: absolute;
  right: 80px;
  bottom: 48px;
  width: 120px;
  height: 120px;
  background-color: var(--color-main);
  border-radius: 50%;
}

.p-top__mv-inner {
  /* 文字を円のあしらいより手前に出す */
  position: relative;
  z-index: 1;
}

.p-top__mv-en {
  font-family: var(--font-en);
  font-size: 120px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-main);
}

.p-top__mv-title {
  margin-top: 24px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.5;
}

.p-top__mv-text {
  margin-top: 24px;
}

/* ==========================================================
  p-top business
========================================================== */
.p-top__business {
  padding: 120px 0;
  background-color: var(--color-white);
  border-radius: 60px;
}

.p-top__business-lead {
  margin-top: 32px;
  text-align: center;
}

.p-top__business-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

/* ==========================================================
  p-top company
========================================================== */
.p-top__company {
  padding: 120px 0;
}

.p-top__company-list {
  max-width: 800px;
  margin: 56px auto 0;
  padding: 16px 48px;
  background-color: var(--color-white);
  border-radius: 20px;
}

.p-top__company-row {
  display: flex;
  padding: 24px 0;
  border-bottom: 2px dotted #e8dccb;
}

.p-top__company-row:last-child {
  border-bottom: none;
}

.p-top__company-term {
  flex-shrink: 0;
  width: 180px;
  font-weight: 700;
}

.p-top__company-link {
  text-decoration: underline;
  text-decoration-color: var(--color-main);
  text-underline-offset: 4px;
}

.p-top__company-link:hover {
  color: var(--color-main);
}

/* ==========================================================
  表示切り替え（is-pc：PCのみ表示 / is-sp：SPのみ表示）
========================================================== */
@media screen and (min-width: 768px) {
  .is-sp {
    display: none;
  }
}

/* ==========================================================
  SP（767px以下）
========================================================== */
@media screen and (max-width: 767px) {
  html {
    scroll-padding-top: 60px;
  }

  .is-pc {
    display: none;
  }

  .l-inner {
    padding: 0 20px;
  }

  .l-header__inner {
    height: 60px;
  }

  .l-header__logo {
    font-size: 24px;
  }

  .l-header__nav-list {
    gap: 20px;
  }

  .l-header__nav-link {
    font-size: 14px;
  }

  .l-footer {
    padding: 24px 0;
  }

  .m-heading__en {
    font-size: 36px;
  }

  .m-heading__ja {
    font-size: 15px;
  }

  .m-card {
    padding: 32px 24px;
  }

  .m-card__number {
    font-size: 32px;
  }

  .m-card__title {
    font-size: 18px;
  }

  .p-top__mv {
    padding: 64px 0 96px;
  }

  .p-top__mv::before {
    top: -70px;
    right: -90px;
    width: 200px;
    height: 200px;
  }

  .p-top__mv::after {
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
  }

  .p-top__mv-en {
    font-size: 64px;
  }

  .p-top__mv-title {
    margin-top: 16px;
    font-size: 22px;
  }

  .p-top__mv-text {
    margin-top: 16px;
    font-size: 15px;
  }

  .p-top__business {
    padding: 72px 0;
    border-radius: 32px;
  }

  .p-top__business-lead {
    margin-top: 24px;
    font-size: 15px;
  }

  .p-top__business-list {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }

  .p-top__company {
    padding: 72px 0;
  }

  .p-top__company-list {
    margin-top: 32px;
    padding: 8px 24px;
  }

  .p-top__company-row {
    flex-direction: column;
    gap: 4px;
    padding: 20px 0;
  }

  .p-top__company-term {
    width: auto;
    font-size: 14px;
  }

  .p-top__company-desc {
    font-size: 15px;
  }
}