/* 変数 */
:root {
  --main-blue: #074e98;
  --sub-blue: #1c7cb9;
  --emerald: #1db3b4;
  --light-green: #4ecc8f;
  --lime: #a4d963;
  --yellow: #f9d423;
  --orange: #ff8c43;
  --red:#ff5e63;
  --purple: #8d44ad;
  --text-size: 20px;
  --mini-text-size: 14px;
  --small-heading-size: 32px;
  --heading-size: 40px;
  --large-heading-size: 64px;
  --speaker-name-font-size: 28px;
  --contents-width: 1040px;
  --gradient-back: linear-gradient(to right, #fd8e7f, #ff4f63);
}

/* リセット */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
}
a {
  text-decoration: none;
  color: initial;
  transition: .3s;
}
a:hover,a:active {
  color: initial;
}
h1,h2,h3,h4,h5,h6,p {
  margin: 0;
}
ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
/* ヘッダー */
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: #ccc;
  box-shadow: #333 0 0 10px;
  z-index: 5;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
}
.header-logo {
  max-width: 220px;
}
.header-logo-img {
  width: 100%;
}
.header-menu-links {
  display: flex;
  gap: 12px;
}
.header-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: bold;
  transition: .3s
}
.header-menu-item--no-link {
  color: #666;
}
.header-menu-item--no-link span {
  font-size: 12px;
}
/* 背景 */
.background {
  background: linear-gradient(#fff, #a3daf6);
}
/* メイン */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 40px;
}
.main-inner {
  width: 100%;
  max-width: var(--contents-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 0 40px;
}
.main-contents {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.main-contents-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.main-contents-title {
  color: #afc9df;
  font-weight: normal;
  font-size: var(--heading-size);
  letter-spacing: 2px;
}
.main-contents-sub-title {
  font-size: var(--text-size);
  font-weight: bold;
}
.main-box {
  border: solid 2px #89cff0;
  border-radius: 12px;
  box-shadow: 0 0 8px #ccc;
  background: rgb(255 255 255/0.5);
}

/* フッター */
footer {
  display: flex;
  justify-content: center;
  width: 100%;
  background-image: url("../images/common/footer-back-img.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 64px 0;
}
.footer-sns-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}
.footer-sns-icon {
  max-width: 32px;
  height: auto;
}
.footer-contact-button {
  position: relative;
  padding: 8px 32px;
  background: var(--gradient-back);
  color: #fff;
  font-size: var(--text-size);
}
.footer-contact-button:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}
.footer-contact-button::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: #99313c;
  transform: scaleX(0);
  transform-origin: right;
  transition: all 0.5s ease;
  transition-property: transform;
}
.footer-contact-button-text {
  position: relative;
}
.footer-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: #fff;
}
.footer-text {
  font-size: 12px;
  text-align: center;
}
.footer-top-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
}
.footer-top-button-img {
  max-width: 40px;
  height: auto;
}
/* ホバー時 */
@media (hover:hover) {
  .header-menu-item:hover {
    opacity: .7;
  }
  .footer-top-button:hover {
    opacity: .7;
  }
  .footer-contact-button:hover {
    color: #fff;
  }
  .footer-sns:hover {
    opacity: .7
  }
}
/* アクティブ時 */
@media (hover:none) {
  .header-menu-item:active {
    opacity: .7;
  }
  .footer-top-button:active {
    opacity: .7;
  }
  .footer-contact-button:active {
    color: #fff;
  }
  .footer-sns:active {
    opacity: .7
  }
}

/* レスポンシブ */
.sp {
  visibility: hidden;
  opacity: 0;
  height: 0;
}

@media screen and (max-width:1100px) {
  /* ヘッダー */
  .header-logo-img {
    max-width: 200px;
  }
  .header-menu-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 5;
    cursor: pointer;
  }
  .header-menu-icon::before,
  .header-menu-icon::after {
    content: '';
    width: 40px;
    height: 2px;
    background: #000;
  }
  .header-menu-icon-border {
    width: 40px;
    height: 2px;
    background: #000;
  }
  .header-menu-icon.open {
    width: 40px;
    height: 40px;
  }
  .open .header-menu-icon-border {
    display: none;
  }
  .header-menu-icon.open::before,
  .header-menu-icon.open::after {
    position: absolute;
    top: 50%;
    left: 50%;
    transition: .3s;
  }
  .header-menu-icon.open::before {
    transform: translate(-50%,-50%) rotate(45deg);
  }
  .header-menu-icon.open::after {
    transform: translate(-50%,-50%) rotate(-45deg);
  }
  .header-menu-links {
    width: fit-content;
    position: absolute;
    top: 0;
    right: 0;
    flex-direction: column;
    transform: translateX(200%);
    gap: 0;
    transition: .3s;
  }
  .header-menu-links.show {
    top: 80px;
    transform: initial;
    background: #ccc;
  }
  .header-menu-item {
    width: 100%;
    padding: 24px;
  }
  .header-menu-item a {
    display: block;
  }
  /* メイン */
  main {
    padding-top: 80px;
  }
  .sp {
    visibility: visible;
    opacity: 1;
    height: auto;
  }
  /* フッター */
  .footer-top-button {
    bottom: 16px;
    right: 16px;
  }
  /* ホバー時 */
  @media (hover:hover) {
    .header-menu-item:hover {
      background: #fafafa;
    }
  }
  /* アクティブ時 */
  @media (hover:none) {
    .header-menu-item:active {
      background: #fafafa;
    }
  }
}

@media screen and (max-width: 600px) {
/* 変数 */
  :root {
    --text-size: 16px;
    --mini-text-size: 12px;
    --small-heading-size: 24px;
    --heading-size: 32px;
    --large-heading-size: 48px;
    --speaker-name-font-size: 22px;
  }
}

@media screen and (max-width:400px) {
  /* 変数 */
  :root {
    --small-heading-size: 20px;
  }
}