@import url('https://fonts.googleapis.com/css2?family=Zen+Antique&display=swap');

/* pc */
/* ヘッダー */
header {
  position: fixed;
  width: 100%;
  height: 88px;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(3px);
  top: 0;
  left: 0;
  box-shadow: 0 1px 4px #c8c8c8;
  z-index: 999;
}

.header__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  padding: 10px 0;
  margin: 0 auto;
}

.header__logo-img {
  margin-left: 20px;
}

.header__nav {
  margin-right: 20px;
}

.nav__toggle {
  display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  justify-content: right;
  gap: clamp(24px, 4vw, 47px);
  font-family: 'Zen Antique', serif;
  font-style: normal;
  font-size: 22px;
}

.nav__link {
  text-decoration: none;
  color: #715189;
  transition: 0.5s;
}

.nav__link:hover {
  color: #bb7eea;
}

/* メインコンテンツ */
body {
  font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 300;
  font-style: normal;
  line-height: 1.5;
}

main {
  width: 100%;
  color: #2a0e3e;
  background-image: url(../images/bg_main_under.png);
  background-size: 1280px auto;
  background-position: left calc(50% + 832px) bottom -40px;
  background-repeat: no-repeat;
}

.section {
  max-width: 948px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.br-sp {
  display: none;
}

.section__title {
  text-align: center;
  font-size: 35px;
  font-weight: 400;
  margin-bottom: 60px;
  font-family: 'Zen Antique', serif;
  font-style: normal;
}

.font-bold {
  font-weight: bold;
}

/* メインビジュアル */
.mainvisual {
  width: 100%;
  max-width: 100%;
  height: 835px;
  background-image: url(../images/bg_mainvisual.png);
  background-repeat: no-repeat;
  background-size: min(205%, 2080px);
  background-position: 52% 74%;
  color: #301544;
  opacity: 0;
  animation: fadeIn 3s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.mainvisual__spacer {
  padding-left: 37px;
}

.mainvisual__head {
  padding-top: 220px;
  text-align: center;
  font-size: 35px;
  font-family: 'Zen Antique', serif;
  font-weight: 400;
  font-style: normal;
}

.mainvisual__subhead {
  text-align: center;
  font-size: 16px;
  padding-top: 40px;
}

/* お知らせ */
.news {
  position: relative;
}

.news::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background-color: #f1f1f5;
  z-index: -1;
}

.news__content {
  max-width: 948px;
  margin: 0 auto 170px;
  padding: 80px 16px;
}

.news__list {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
}

.news__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px dashed #ccc;
}

.news__item:first-child {
  padding-top: 0;
}

.news__item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.news__date {
  width: 140px;
  flex-shrink: 0;
  font-size: 16px;
  color: #666;
  align-self: center;
}

.news__label {
  width: 90px;
  flex-shrink: 0;
  align-self: center;
  text-align: center;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid;
  white-space: nowrap;
}

.news__label--press {
  color: #2c7be5;
  border-color: #2c7be5;
}

.news__label--event {
  color: #f5a623;
  border-color: #f5a623;
}

.news__link {
  flex: 1;
  display: block;
  color: inherit;
  text-decoration: none;
}

.news__text {
  position: relative;
  display: inline;
  font-size: 16px;
  line-height: 1.6;
  color: #2a0d3e;
  margin-top: 10px;
}

.news__text::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.news__link:hover .news__text::after {
  opacity: 1;
}

/* 企業理念 */
.vision__content {
  margin-bottom: 170px;
  text-align: center;
}

.vision__img img {
  max-width: 100%;
  height: auto;
  vertical-align: top;
}

.vision__sub-title,
.vision__text {
  margin-top: 27px;
}

.vision__sub-title {
  font-size: 22px;
  font-weight: bold;
}

/* サービス */
.service {
  padding: 0 24px;
}

.service__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 100px;
  column-gap: clamp(24px, 3vw, 52px);
  margin-bottom: 170px;
}

.service__item {
  text-align: center;
}

.service__img {
  max-width: 424px;
  width: 100%;
  height: auto;
  aspect-ratio: 425 / 268;
}

.service__name {
  font-size: 22px;
  margin: 20px 0 24px;
}

.service__desc {
  text-align: left;
  font-size: 16px;
}

.br-tab {
  display: none;
}

.service__br {
  display: inline-block;
}

/* 会社概要 */
.overview {
  width: fit-content;
}

.overview__content {
  margin: 0 auto;
  margin-bottom: 170px;
}

.overview__item {
  display: flex;
  margin-bottom: 32px;
}

.overview__name {
  width: 130px;
  font-size: 20px;
  font-weight: 600;
}

.overview__desc {
  white-space: nowrap;
  font-size: 16px;
  margin-top: 4px;
}

.overview__desc-text:not(:first-of-type) {
  margin-top: 16px;
}

.overview__block {
  display: flex;
  gap: 32px;
}

.overview__info {
  flex: 1;
}

.overview__access {
  flex: 1;
  margin-top: 60px;
}

.overview__access .mt {
  margin-top: 27px;
}

.overview__location-name {
  font-weight: bold;
}

.overview__map {
  margin-top: 16px;
}

/* お問い合わせ / 関連導線 */
.related {
  padding: 0 0 170px;
}

.related__content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  padding: 0 16px;
  gap: clamp(16px, 5vw, 80px);
}

.related__card {
  position: relative;
  flex: 1;
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #2a0d3e;
}

.related__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.7);
  z-index: 0;
}

.related__bg--recruit {
  background-image: url('../images/recruit.jpg');
}

.related__bg--contact {
  background-image: url('../images/contact.jpg');
}

.related__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(241, 241, 245, 0.8);
  z-index: 1;
}

.related__inner {
  flex: 1;
  padding: 80px 27px;
  text-align: center;
  z-index: 2;
}

.related__title {
  font-size: 35px;
  margin-bottom: 60px;
  font-family: 'Zen Antique', serif;
}

.related__text {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 60px;
  height: 140px;
  overflow: hidden;
}

.related__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  max-width: 500px;
  height: 64px;
  background: #654087;
  color: #fff;
  border-radius: 32px;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.5s ease;
}

.related__btn::after {
  content: '';
  position: absolute;
  right: 24px;
  width: 12px;
  height: 16px;
  background: url('../images/icon-arrow.svg') no-repeat center / contain;
}

.related__btn:hover {
  background-color: #bb7eea;
}

/* フッター */
footer {
  width: 100%;
  height: auto;
  margin-bottom: 26px;
  padding-bottom: 98px;
  color: #2a0e3e;
}

.footer__wrapper {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  height: 100%;
  text-align: right;
  margin-right: 48px;
  vertical-align: middle;
}

.footer__privacy-policy {
  color: #2a0e3e;
  transition: opacity 0.3s;
  order: 2;
}

.footer__privacy-policy:hover {
  opacity: 0.6;
}

.footer__copyright {
  margin-right: 16px;
  order: 1;
}

.footer__copyright::after {
  content: '|';
  margin-left: 16px;
}

/* ヘッダーsp */
@media screen and (max-width: 978px) {
  header {
    height: 70px;
  }

  .header__wrapper {
    width: 100%;
    text-align: center;
  }

  .header__logo-img {
    width: 180px;
    height: 44px;
    margin-left: 23px;
  }

  .header__nav {
    position: relative;
    margin-right: 10px;
    height: 50px;
  }

  .nav__toggle {
    display: block;
    position: absolute;
    top: 10px;
    right: 0;
    width: 40px;
    height: 28px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1;
  }

  .nav__toggle-line,
  .nav__toggle-line::before,
  .nav__toggle-line::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #715188;
    transition: transform 0.5s ease, opacity 0.5s ease;
    border-radius: 3px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .nav__toggle-line::before {
    top: -14px;
  }

  .nav__toggle-line::after {
    top: 14px;
  }

  .nav__list {
    position: fixed;
    inset: 0;
    flex-direction: column;
    gap: 20px;
    justify-content: flex-start;
    width: 100vw;
    height: 100dvh;
    padding: 84px 10px 10px;
    background-color: #ffffffe6;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0s linear 0.5s;
    opacity: 0;
    visibility: hidden;
  }

  .nav__link:hover {
    color: #715189;
  }

  .header__nav.is-open .nav__toggle-line {
    background: transparent;
  }

  .header__nav.is-open .nav__toggle-line::before {
    transform: translateX(-50%) translateY(8px) rotate(45deg);
    top: -8px;
  }

  .header__nav.is-open .nav__toggle-line::after {
    transform: translateX(-50%) translateY(-8px) rotate(-45deg);
    top: 8px;
  }

  .header__nav.is-open .nav__list {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.5s ease, visibility 0s linear 0s;
  }

  .overview__title {
    font-size: 24px;
  }

  .overview__content {
    width: 100%;
    margin-bottom: 100px;
  }

  .overview__item {
    display: block;
    text-align: left;
  }

  .overview__name {
    width: 100%;
    font-size: 18px;
    margin-bottom: 16px;
  }

  .overview__desc {
    width: 100%;
    font-size: 16px;
    white-space: normal;
    margin: 0;
  }

  .overview__block {
    display: block;
  }

  .overview__info {
    width: 100%;
  }

  .overview__access {
    width: 100%;
    margin-top: 24px;
  }

  .overview__map iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .related__content {
    flex-direction: column;
    gap: 100px;
    padding: 0;
  }

  .related__card {
    border-radius: 0;
  }

  .related__inner {
    padding: 60px 20px;
    text-align: center;
  }

  .related__title {
    font-size: 24px;
    margin-bottom: 32px;
    line-height: 1.4;
  }

  .related__text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 27px;
    height: auto;
  }

  .related__btn {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    max-width: 500px;
    height: 56px;
    font-size: 20px;
    border-radius: 999px;
    margin: auto;
    padding: 0 24px;
  }

  .related__btn::after {
    right: 24px;
    width: 8px;
    height: 14px;
  }
}

@media screen and (max-width: 862px) {
  .br-tab {
    display: block;
  }

  footer {
    padding-bottom: 128px;
  }
}

/* sp */
@media screen and (max-width: 680px) {
  main {
    padding-bottom: calc(86px + 92px);
    background-image: url(../images/bg_main_under.png);
    background-size: 520px auto;
    background-position: left calc(50% + 160px) bottom;
    background-repeat: no-repeat;
  }

  .section {
    padding: 0 10px;
  }

  .section__title {
    margin-bottom: 32px;
  }

  .br-sp {
    display: block;
  }

  .mainvisual {
    padding: 0;
    height: 432px;
    background-image: url(../images/bg_mainvisual_sp.png);
    background-size: 840px;
    background-position: 56% -228px;
    opacity: 0;
    animation: fadeIn 3s forwards;
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .mainvisual__head {
    padding-top: 122px;
    font-size: 24px;
  }

  .mainvisual__spacer {
    padding: 0;
  }

  .mainvisual__subhead {
    font-size: 12px;
    padding-top: 16px;
  }

  .news__content {
    max-width: 948px;
    margin: 0 auto 100px;
    padding: 32px 10px;
  }

  .news__list {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 10px;
  }

  .news__item {
    display: block;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
    align-items: flex-start;
  }

  .news__date {
    order: 1;
    font-size: 12px;
  }

  .news__label {
    order: 2;
    width: auto;
    display: inline-block;
    font-size: 10px;
    padding: 1px 1px;
    border-radius: 4px;
    border: 1px solid;
    white-space: nowrap;
  }

  .news__link {
    order: 3;
    width: 100%;
    display: block;
  }

  .news__text {
    display: block;
    font-size: 16px;
    line-height: 1.6;
    flex: 1;
  }

  .vision__title {
    font-size: 20px;
  }

  .vision__content {
    margin-bottom: 100px;
  }

  .vision__sub-title {
    font-size: 18px;
  }

  .vision__text {
    text-align: left;
  }

  .service {
    max-width: 100%;
    padding: 0 10px;
  }

  .service__title {
    font-size: 24px;
  }

  .service__content {
    width: 100%;
    grid-template-columns: 1fr;
    row-gap: 60px;
    margin-bottom: 100px;
  }

  .service__desc {
    max-width: 540px;
    width: fit-content;
    margin: 0 auto;
  }

  .service__img {
    width: 82%;
    height: auto;
  }

  .br-tab {
    display: none;
  }

  footer {
    padding-bottom: calc(30px + 92px);
    margin-top: calc(-86px - 92px);
    margin-bottom: 0;
  }

  .footer__wrapper {
    flex-direction: column;
    justify-content: center;
    margin: 0;
    text-align: center;
  }

  .footer__privacy-policy {
    order: 1;
    float: none;
  }

  .footer__copyright {
    order: 2;
    margin: 0;
  }

  .footer__copyright::after {
    display: none;
  }
}

/* 追従お知らせバナー */
.info-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.1);
  z-index: 998;
  text-decoration: none;
  color: #2a0e3e;
  display: block;
  transition: background-color 0.3s ease;
}

.info-sticky:hover {
  background-color: #f1f1f5;
}

.info-sticky__text {
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  padding: 16px 20px;
  margin: 0;
}

.info-sticky__text-deco {
  text-decoration: underline;
}

@media screen and (max-width: 680px) {
  .info-sticky__text {
    font-size: 12px;
    padding: 12px 16px;
  }
}

@media screen and (max-width: 358px) {
  .mainvisual__head {
    font-size: 21px;
  }
}
