/* ===== 共通（全ページ） ===== */
body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  background-color: #ffffff;
}
.wrapper {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}
.flex-split {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
}
.sp-only {
  display: none;
}

/* ===== ヘッダー ===== */
.header {
  background-color: #ffffff;
  padding: 20px 0;
}
.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 20px;
}
.header__title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #000000;
  margin: 0;
}
.header__title a {
  text-decoration: none;
  color: #000000;
}
.header__buttons {
  display: flex;
  gap: 16px;
}
.header__button {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 17px;
  color: #ffffff;
  text-decoration: none;
  padding: 10px 40px;
  text-align: center;
}
.header__button--contact {
  background-color: #fca504;
}
.header__button--request {
  background-color: #84bd09;
}

/* ===== フッター ===== */
.footer {
  background: #f3f3f3;
  padding: 40px 0 20px 0;
  font-family: 'Zen Kaku Gothic New', 'Roboto', sans-serif;
}
.footer__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 18px;
}
.footer__brand {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #000000;
  margin: 0;
  align-self: flex-start;
  text-align: left;
}
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__nav li a {
  color: #515151;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 580;
  font-size: 17px;
  text-decoration: none;
  transition: color 0.2s;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 2px;
}
.footer__nav li a:hover {
  color: #b7c34f;
}
.footer__copyright {
  color: #515151;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.8px;
  text-align: center;
}

/* =========================
   レスポンシブ対応 追加
   ========================= */

/* スマートフォン（〜599px） */
@media (max-width: 599px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }
  .wrapper {
    max-width: 100%;
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .flex-split {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }
  .header__container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
  }
  .header__title {
    font-size: 16px;
  }
  .header__buttons {
    width: auto;
  }
  .header__button {
    font-size: 12px;
    padding: 6px 10px;
    width: auto;
  }
  .footer__container {
    padding: 0 12px;
  }
  .footer__main {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }
  .footer__brand {
    font-size: 18px;
    flex: 1;
  }
  .footer__nav {
    align-items: flex-end;
    text-align: right;
    padding: 30px 0 0 0;
  }
  .footer__nav li a {
    font-size: 15px;
  }
}

/* タブレット（600px〜1023px） */
@media (min-width: 600px) and (max-width: 1023px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }
  .wrapper {
    max-width: 100%;
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .flex-split {
    gap: 24px;
    flex-direction: row;
  }
  .header__container {
    padding: 0 20px;
  }
  .header__title {
    font-size: 20px;
  }
  .header__button {
    font-size: 16px;
    padding: 8px 28px;
  }
  .footer__main {
    gap: 32px;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }
  .footer__brand {
    font-size: 20px;
  }
  .footer__nav {
    align-items: flex-end;
    text-align: right;
    padding: 30px 0 0 0;
  }
  .footer__nav li a {
    font-size: 16px;
  }
}

/* PC（1024px〜1280px）余白なし */
@media (min-width: 1024px) and (max-width: 1280px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }
  .wrapper {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .header__container,
  .footer__container {
    padding: 0 24px;
    max-width: 100%;
  }
}


a {
  word-wrap: break-word;
  color: inherit;
  text-decoration: none;
}
