/* Rebootus corporate site
   旧サイト(Gatsby/Emotion製)の見た目を手書きCSSで再現したもの。 */

:root {
  --c-text: #111;
  --c-body: #333;
  --c-strong: #212121;
  --c-line: #ccc;
  --c-bg: #fafafa;
  --c-bg-gray: #f4f4f4;
  --c-accent: #44d62c;
  --grad: linear-gradient(100deg, #e3e829, #44d62c);
  --ff-base: "Jost", "Noto Sans JP", "Yu Gothic Medium", "游ゴシック Medium", YuGothic,
    "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ", "Hiragino Kaku Gothic Pro", Meiryo,
    Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  --ff-head: "Lato", "Noto Sans JP", sans-serif;
  --ff-jp: "Noto Sans JP", "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体",
    "ヒラギノ角ゴ Pro W3", "メイリオ", "Hiragino Kaku Gothic Pro", Meiryo, sans-serif;
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button { margin: 0; padding: 0; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
body {
  font-family: var(--ff-base);
  font-size: 15px;
  line-height: 1.5;
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
}
h2 { font-size: inherit; font-weight: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---- button (gradient) ---- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  height: 52px;
  margin: 0 auto;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--c-strong);
  background-image: var(--grad);
  border-radius: 8px;
  box-shadow: 0 6px 8px #00000033;
}
.btn:hover { opacity: 0.85; }
.btn__icon { display: flex; align-items: center; width: 12px; margin-left: 6px; }
@media (min-width: 768px) {
  .btn { max-width: 320px; height: 64px; font-size: 18px; border-radius: 12px; }
}

/* ---- header ---- */
.header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100vw - 32px);
  padding: 15px 16px;
  background-color: rgba(255, 255, 255, 0.98);
  border-radius: 6px;
  box-shadow: 0 3px 6px #ccc;
  transform: translate(-50%);
}
.header__logo { display: block; width: 90px; }

.header__panel {
  position: absolute;
  top: -16px;
  left: -16px;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  padding: 24px 0;
  background-color: #fff;
  visibility: hidden;
  transform: translateY(-100vh);
  transition: transform 0.8s ease, visibility 0s linear 0.8s;
}
.header.is-open .header__panel {
  visibility: visible;
  transform: none;
  transition: transform 0.8s ease, visibility 0s;
}
.header__panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 32px;
}
.header__close, .header__toggle { position: relative; width: 24px; height: 18px; }
.header__close::before, .header__close::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 100%;
  height: 2px;
  background: #000;
  border-radius: 1px;
}
.header__close::before { transform: rotate(45deg); }
.header__close::after { transform: rotate(-45deg); }
.header__toggle span {
  position: absolute;
  top: 8px;
  width: 100%;
  height: 2px;
  background: #000;
  border-radius: 1px;
}
.header__toggle span:nth-child(1) { transform: translateY(-9px); }
.header__toggle span:nth-child(3) { transform: translateY(9px); }

.nav { margin-top: 8px; }
.nav__list { display: flex; flex-direction: column; width: 100vw; }
.nav__item { text-align: center; }
.nav__link { display: flex; align-items: center; justify-content: center; padding: 12px 0; }
.nav__label { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.nav__ja { font-size: 12px; font-weight: 600; letter-spacing: 1.2px; color: var(--c-body); }
.nav__en { font-size: 28px; font-weight: 500; letter-spacing: 2px; color: var(--c-strong); }
.nav__item--contact { padding: 20px 16px 0; }
.nav__item--contact .btn {
  height: 52px;
  font-size: 16px;
}

@media (min-width: 768px) {
  .header {
    top: 40px;
    max-width: 1080px;
    padding: 12px 24px;
    box-shadow: 0 0 16px #ccc;
  }
  .header__toggle, .header__close, .header__panel-top { display: none; }
  .header__panel {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
    padding: 0;
    background: none;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav { margin: 0; }
  .nav__list { flex-direction: row; align-items: center; width: auto; }
  .nav__link { padding: 0 20px; line-height: 1.3; }
  .nav__ja { font-weight: 400; }
  .nav__en { font-size: 15px; }
  .nav__item--contact { padding: 0; margin-left: 20px; }
  .nav__item--contact .btn {
    width: auto;
    height: 100%;
    padding: 10px 22px;
    font-size: 16px;
    line-height: 1.6;
    border-radius: 8px;
    box-shadow: none;
  }
}
@media (min-width: 1020px) {
  .header__logo { width: 195px; }
}

/* ---- top page ---- */
.main { background-color: var(--c-bg); }

.hero { position: relative; display: flex; height: 300px; padding-top: 42px; }
.hero__scroll { display: none; }
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.hero__body { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 15px; }
.hero__logo { width: 240px; animation: fade 1s ease 0.5s 1 backwards; }
.hero__copy {
  margin-top: 28px;
  font-size: 20px;
  text-align: center;
  animation: fade 2s ease 1s 1 backwards;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 768px) {
  .hero { height: 595px; padding-top: 76px; }
  .hero__logo { width: 300px; }
  .hero__copy { margin-top: 56px; font-size: 30px; }
  .hero__scroll {
    position: absolute;
    top: 55%;
    left: 2px;
    display: block;
    font-size: 12px;
    letter-spacing: 1.2px;
    transform: rotate(90deg);
  }
  .hero__scroll::before, .hero__scroll::after { content: ""; position: absolute; background-color: #333; }
  .hero__scroll::before {
    top: 50%;
    left: calc(100% + 6px);
    width: 52px;
    height: 1px;
    transform: translateY(-50%);
  }
  .hero__scroll::after {
    top: 9px;
    left: calc(100% + 58px);
    width: 8.5px;
    height: 1px;
    transform: rotate(-135deg);
    transform-origin: 0 0;
  }
}
.br-sp { display: inline; }
@media (min-width: 480px) { .br-sp { display: none; } }

/* section heading: "NEWS / お知らせ" etc. */
.heading { position: relative; z-index: 1; color: var(--c-strong); text-align: center; }
.heading span { font-family: var(--ff-head); font-size: 28px; font-weight: 700; }
.heading span:last-child { font-size: 18px; font-weight: 600; letter-spacing: 2.5px; }
@media (min-width: 768px) {
  .heading span { font-size: 54px; letter-spacing: 0.054em; }
  .heading span:last-child { font-size: 28px; letter-spacing: 2.8px; }
}

/* news */
.news { position: relative; max-width: 1080px; padding: 57px 16px 0; margin: 0 auto; }
.news .heading { margin: 16px auto; text-align: left; }
.news .heading span { position: relative; z-index: 1; background-color: var(--c-bg); }
.news .heading span:last-child { padding: 0 12px; font-weight: 400; }
.news .heading::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 100%;
  height: 1px;
  background-color: var(--c-line);
}
.news__item { padding: 10px 0; color: var(--c-body); border-bottom: 1px dotted var(--c-line); }
.news__link { display: block; }
.news__date { font-size: 12px; font-weight: 300; letter-spacing: 1.2px; }
.news__title {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 1.4px;
  word-break: break-word;
}
.news__more {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 99;
  margin-top: 20px;
  font-size: 14px;
  letter-spacing: 1.4px;
  color: var(--c-body);
}
.news__more-icon { display: flex; align-items: center; width: 14px; margin-left: 6px; }
@media (min-width: 768px) {
  .news { padding-top: 101px; }
  .news .heading { display: flex; align-items: center; font-weight: 700; }
  .news .heading span:last-child { padding: 0 16px 0 22px; font-weight: 700; }
  .news__item { padding: 10px 0 24px; border-bottom: 0; }
  .news__link { display: flex; align-items: baseline; }
  .news__date { font-size: 14px; font-weight: 400; }
  .news__title { margin: 0 0 0 45px; font-size: 18px; font-weight: 600; }
  .news__more { font-size: 16px; }
  .news::after {
    content: "";
    position: absolute;
    bottom: 11px;
    width: calc(100% - 182px);
    height: 1px;
    background-color: var(--c-line);
  }
}

/* company */
.company { padding-top: 60px; }
.company__bg { background: var(--c-bg-gray); }
.company__inner { position: relative; padding: 0 16px; }
.company__inner .heading { position: relative; top: -20px; }
.company__list { margin-top: 38px; }
.company__row {
  padding: 24px 0;
  font-size: 14px;
  letter-spacing: 1.4px;
  color: var(--c-body);
  border-bottom: 1px dotted var(--c-line);
}
.company__row:first-of-type { padding-top: 0; }
.company__row dt { margin-bottom: 12px; font-weight: 300; }
.company__row dd { flex: 1; font-weight: 600; white-space: pre-line; }
@media (min-width: 768px) {
  .company { padding-top: 130px; }
  .company__inner .heading { top: -40px; }
  .company__list { margin-top: 80px; }
  .company__row { display: flex; max-width: 1080px; margin: 0 auto; }
  .company__row dt { width: 230px; padding-right: 40px; margin-bottom: 0; font-weight: 600; }
  .company__row dd { font-weight: 400; }
}

/* contact */
.contact { position: relative; padding: 60px 16px; }
.contact__bg {
  position: absolute;
  top: 78px;
  left: 0;
  width: 100%;
  height: 240px;
  background: #fff;
}
.contact__text {
  position: relative;
  margin: 16px auto;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 1px;
  color: var(--c-body);
}
.contact__action { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
@media (min-width: 768px) {
  .contact { padding: 120px 16px; }
  .contact__bg { top: 165px; height: 333px; }
  .contact__text { margin: 20px auto 30px; text-align: center; }
}

/* ---- footer ---- */
.footer { padding: 0 16px; background-color: var(--c-bg-gray); }
.footer__inner { padding: 24px 0 12px; color: var(--c-body); }
.footer__links { display: block; }
.footer__link {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 300;
  text-align: center;
  letter-spacing: 1.2px;
}
@media (min-width: 768px) {
  .footer__inner { display: flex; justify-content: space-between; max-width: 1080px; padding-top: 12px; margin: 0 auto; }
  .footer__links { display: flex; justify-content: space-between; }
  .footer__link { padding-right: 30px; margin: 0; }
}

/* ---- policy page ---- */
.policy { padding-top: 80px; margin-bottom: 24px; }
.policy__inner { padding: 112px 16px 60px; }
.policy__block { margin-bottom: 24px; }
.policy__block a, .policy__date a { text-decoration: underline; }
.policy__date { text-align: right; }
@media (min-width: 768px) {
  .policy__inner { max-width: 1080px; padding: 180px 16px 120px; margin: 0 auto; }
}
.policy h1, .policy h3 { font-size: inherit; font-weight: inherit; }
.policy h1 { margin-bottom: 24px; }

/* ---- contact page ---- */
.contact-page { padding: 128px 16px 60px; background-color: var(--c-bg); }
.contact-page__text { margin-top: 20px; font-size: 14px; text-align: center; color: var(--c-body); }
.contact-page__form { max-width: 720px; margin: 32px auto 0; }
@media (min-width: 768px) {
  .contact-page { padding: 190px 16px 120px; }
}
