/* minimaga-child 共通スタイル
 * すべてのページで読み込む追加CSS
 * ここに今後のカスタマイズを追記していきます。
 */

:root {
  --font-family-base: "Shippori Mincho", serif;
  --font-family-second: "Noto Serif JP", serif;
}

:root {
  --cq-ref-mobile: 375;
  --cq-ref: 1366;
  --fluid-basis-mobile: (100vw - 320px) / (375 - 320);
  --fluid-basis: (100vw - 768px) / (1366 - 768);
  --fluid-basis-2: (100vw - 1366px) / (1800 - 1366);
}

:root {
  --main-color: #339;
  --main-color-sub: #8787CF;
}

:root {
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;
}

:root {
  --padding-inner: 30px;
}

@media (max-width: 767px) {
  :root {
    --padding-inner: 24px;
  }
}

body.home,
body.privacy-policy {
  background-color: #F7F7F7;
}

.sp-only-inline {
  display: none;
}

.pc-only-inline {
  display: inline;
}


@media (max-width: 767px) {
  .pc-only-inline {
    display: none;
  }
  .sp-only-inline {
    display: inline;
  }
}

.section-inner {
  max-width: calc(1142px + var(--padding-inner) * 2);
  margin-inline: auto;
  padding-inline: var(--padding-inner);
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .section-inner {
    max-width: 500px;
  }
}


/* ===============================================
# トップページ
=============================================== */

.mv {
  height: 100vh;
  overflow: hidden;
}

.mv__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
.mv {
  height: 378px;
}
}

.top-lead {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 88px;
}

@media (max-width: 767px) {
  .top-lead {
    margin-top: 35px;
  }
}

.top-lead__text {
  position: relative;
  writing-mode: vertical-rl;
  font-family: var(--font-family-base);
  font-size: clamp(28px, calc(30 * 100 / var(--cq-ref) * 1.5cqw), 30px);;
  font-weight: var(--font-weight-semibold);
  line-height: 1.53;
  letter-spacing: .53em;
  text-align: left;
  color: #111111;
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 21px;
  margin-left: 39px;
}

@media (max-width: 767px) {
  .top-lead__text {
    font-size: 20px;
    letter-spacing: .36em;
    margin-left: 0;
    margin-right: 20px;
    gap: 7px;
  }
}

.top-lead__text span {
  display: inline-block;
}

.top-lead__text::after {
  content: "";
  position: absolute;
  top: -5px;
  bottom: 0;
  right: -27px;
  width: 1px;
  height: 224px;
  background: var(--main-color-sub);
}

@media (max-width: 767px) {
  .top-lead__text::after {
    right: -16px;
    height: 127px;
  }
}


/* ---------- FEATUREセクション（できること / 選ばれる理由 / ブランドストーリー） ---------- */

.top-features {
  margin-top: min(163px, calc(163 * 100 / var(--cq-ref) * 1cqw));;
}

@media (max-width: 767px) {
  .top-features {
    margin-top: 55px;
  }
}

.top-features__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(106px, calc(156 * 100 / var(--cq-ref) * 1cqw), 156px);;
}

@media (max-width: 767px) {
  .top-features__inner {
    gap: 81px;
  }
}

.top-feature {
  display: grid;
  grid-template-columns: minmax(0, 608fr) minmax(0, 501fr);
  grid-template-areas: "image body";
  column-gap: clamp(20px, calc(32 * 100 / var(--cq-ref) * 1cqw), 32px);;
  align-items: center;
}

@media (max-width: 767px) {
  .top-feature {
    grid-template-columns: 1fr;
    grid-template-areas: "headline" "text" "image" "btn";
    column-gap: 0;
  }
}

.top-feature__img-link {
  display: block;
  border-radius: 5px;
  overflow: hidden;
  grid-area: image;
  transition: opacity 0.5s ease-in-out;
}

@media (max-width: 767px) {
  .top-feature__img-link {
    margin-top: 24px;
  }
}

@media (any-hover: hover) {
  .top-feature__img-link:hover {
    opacity: 0.8;
  }
  .top-feature__img-link:hover .top-feature__img {
    transform: scale(1.05);
  }
}


.top-feature__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 608 / 451;
  transition: transform 0.4s ease-in-out;
  will-change: transform;
}

@media (max-width: 767px) {
  .top-feature__img {
    aspect-ratio: 342 / 240;
  }
}

.top-feature__body {
  grid-area: body;
  padding-right: min(39px, calc(39 * 100 / var(--cq-ref) * 1cqw));;
}

@media (max-width: 767px) {
  .top-feature__body {
    display: contents;
  }
}

.top-feature:nth-child(even) {
  grid-template-areas: "body image";
  grid-template-columns: minmax(0, 501fr) minmax(0, 608fr);
  column-gap: clamp(20px, calc(24 * 100 / var(--cq-ref) * 1cqw), 24px);;
}

@media (max-width: 767px) {
  .top-feature:nth-child(even) {
    grid-template-areas: "headline" "text" "image" "btn";
    grid-template-columns: 1fr;
    column-gap: 0;
  }
}

.top-feature:nth-child(even) .top-feature__body {
  padding-right: 0;
  padding-left: min(39px, calc(39 * 100 / var(--cq-ref) * 1cqw));
}

.top-feature__img {
  display: block;
  width: 100%;
  height: auto;
}

.top-feature__headline {
  position: relative;
}

@media (max-width: 767px) {
  .top-feature__headline {
    grid-area: headline;
    padding-top: 23px;
  }
}

.top-feature__headline::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 135px;
  height: 1px;
  background-color: var(--main-color-sub);
}

@media (max-width: 767px) {
  .top-feature__headline::before {
    width: 90px;
  }
}

.top-feature__label {
  display: inline-block;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-semibold);
  font-size: clamp(23px, calc(25 * 100 / var(--cq-ref) * 1cqw), 25px);;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: var(--main-color);
}

@media (max-width: 767px) {
  .top-feature__label {
    font-size: 20px;
  }
}

.top-feature__text {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-semibold);
  font-size: clamp(13px, calc(16 * 100 / var(--cq-ref) * 1cqw), 16px);;
  line-height: 1.875;
  color: #111111;
  padding: 0;
  margin-top: min(27px, calc(27 * 100 / var(--cq-ref) * 1cqw));;
}

@media (max-width: 767px) {
  .top-feature__text {
    grid-area: text;
    font-size: 14px;
    margin-top: 16px;
    padding-right: 6px;
    line-height: 1.7;
  }
}


.top-feature__btn {
  margin-top: min(27px, calc(27 * 100 / var(--cq-ref) * 1cqw));
}

@media (max-width: 767px) {
  .top-feature__btn {
    grid-area: btn;
    margin-top: 16px;
  }
}

@media (any-hover: hover) {
  .top-feature__btn:hover {
    opacity: 1;
  }
}


/* ---------- 会社紹介セクション ---------- */

.top-company {
  margin-top: 114px;
}

@media (max-width: 767px) {
  .top-company {
    margin-top: 98px;
  }
}

.top-company__content {
  display: grid;
  grid-template-columns: minmax(461px, 461px) minmax(0, 720fr);
  grid-template-areas: "body img";
  column-gap: clamp(20px, calc(34 * 100 / var(--cq-ref) * 1cqw), 34px);
  align-items: center;
  margin-right: calc(50% - 50cqw);
  padding-left: 39px;
}

@media (max-width: 767px) {
  .top-company__content {
    grid-template-columns: 1fr;
    grid-template-areas: "headline" "text" "image" "btn";
    column-gap: 0;
    margin-right: 0;
    padding-left: 0;
  }
}

.top-company__body {
  grid-area: body;
  max-width: 461px;
}

@media (max-width: 767px) {
  .top-company__body {
    display: contents;
  }
}

.top-company__headline {
  position: relative;
}

@media (max-width: 767px) {
  .top-company__headline {
    grid-area: headline;
    padding-top: 23px;
  }
}

.top-company__headline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 135px;
  height: 1px;
  background-color: var(--main-color-sub);
}

@media (max-width: 767px) {
  .top-company__headline::before {
    width: 90px;
  }
}

.top-company__label {
  display: inline-block;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-semibold);
  font-size: clamp(23px, calc(25 * 100 / var(--cq-ref) * 1cqw), 25px);
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: var(--main-color);
}

@media (max-width: 767px) {
  .top-company__label {
    font-size: 20px;
  }
}

.top-company__text {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-semibold);
  font-size: clamp(13px, calc(16 * 100 / var(--cq-ref) * 1cqw), 16px);
  line-height: 1.875;
  color: #111111;
  padding: 0;
  margin-top: min(27px, calc(27 * 100 / var(--cq-ref) * 1cqw));
}

@media (max-width: 767px) {
  .top-company__text {
    grid-area: text;
    margin-top: 16px;
    padding-right: 6px;
    font-size: 14px;
  }
}


.top-company__btn {
  margin-top: min(27px, calc(27 * 100 / var(--cq-ref) * 1cqw));
}

@media (max-width: 767px) {
  .top-company__btn {
    grid-area: btn;
    margin-top: 16px;
  }
}

@media (any-hover: hover) {
  .top-company__btn:hover {
    opacity: 1;
  }
}

.top-company__img-link {
  grid-area: img;
  display: block;
  border-radius: 5px 0 0 5px;
  overflow: hidden;
  max-width: 1200px;
  transition: opacity 0.5s ease-in-out;
}

@media (any-hover: hover) {
  .top-company__img-link:hover .top-company__img {
    transform: scale(1.05);
  }
  .top-company__img-link:hover {
    opacity: 0.8;
  }
}

@media (max-width: 767px) {
  .top-company__img-link {
    grid-area: image;
    margin-top: 24px;
    border-radius: 5px;
  }
}

.top-company__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 720 / 529;
  transition: transform 0.4s ease-in-out;
  will-change: transform;
}

@media (max-width: 767px) {
  .top-company__img {
    aspect-ratio: 342 / 280;
  }
}

/* ---------- サービスセクション（Movie works / Contents creation） ---------- */

.top-service {
  margin-top: 114px;
  border-top: 1.5px solid #DCDCDC;
  border-bottom: 1.5px solid #DCDCDC;
}

@media (max-width: 767px) {
  .top-service {
    margin-top: 73px;
  }
}


.top-service__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.top-service__card {
  border-right: 1.5px solid #DCDCDC;
  display: flex;
  align-items: center;
  background-color: #F7F7F7;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

.top-service__card:last-child {
  border-right: none;
}

@media (max-width: 767px) {
  .top-service__card {
    border-right: 1px solid #DCDCDC;
  }
}

.top-service__body {
  padding: 96px 0 97px min(154px, calc(94 * 100 / var(--cq-ref) * 1cqw));
}

@media (max-width: 767px) {
  .top-service__body {
    max-width: none;
    padding: 41px 18.5px 25px 21px;
  }
}

.top-service__headline {
  position: relative;
  display: flex;
  flex-direction: column;
}

.top-service__headline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 135px;
  height: 1px;
  background-color: var(--main-color-sub);
}

@media (max-width: 767px) {
  .top-service__headline::before {
    width: 70px;
    top: -17px;
  }
}

.top-service__label {
  display: block;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-semibold);
  font-size: clamp(23px, calc(25 * 100 / var(--cq-ref) * 1cqw), 25px);
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: var(--main-color);
}

@media (max-width: 767px) {
  .top-service__label {
    font-size: 18px;
    letter-spacing: 0.1em;
    line-height: 1.56;
  }
}

.top-service__title {
  display: block;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-semibold);
  font-size: clamp(23px, calc(25 * 100 / var(--cq-ref) * 1cqw), 25px);
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: #111111;
  margin-top: 14px;
}

@media (max-width: 767px) {
  .top-service__title {
    font-size: 18px;
    margin-top: 10px;
    line-height: 1.56;
word-break: keep-all;
  }
}

.top-service__text {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-semibold);
  font-size: clamp(13px, calc(15 * 100 / var(--cq-ref) * 1cqw), 15px);
  line-height: 1.733;
  color: #111111;
  padding: 0;
  margin-top: 14px;
}

@media (max-width: 767px) {
  .top-service__text {
    font-size: 13px;
    line-height: 1.54;
    margin-top: 13px;
  }
}


.top-service__btn {
  margin-top: 14px;
}

@media (max-width: 767px) {
  .top-service__btn {
    margin-top: 13px;
  }
}

@media (any-hover: hover) {
  .top-service__card:hover {
    background-color: #FFFFFF;
  }

  .top-service__card:hover .more-btn__text {
    color: var(--main-color);
  }

  .top-service__card:hover .more-btn__icon {
    transform: translateX(5px);
  }
}


/* ---------- ブランディングセクション（入門書 / ひとコマ） ---------- */

.top-branding {
  padding-block: 135px;
}

@media (max-width: 767px) {
  .top-branding {
    padding-block: 74px 87px;
  }
}

.top-branding__inner {
  max-width: calc(929px + var(--padding-inner) * 2);
  margin-inline: auto;
  padding-inline: var(--padding-inner);
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .top-branding__inner {
    max-width: 500px;
  }
}

.top-branding__content {
  display: grid;
  grid-template-columns:1fr 1fr;
  column-gap: clamp(24px, calc(129 * 100 / var(--cq-ref) * 1cqw), 129px);
  justify-content: center;
}

@media (max-width: 767px) {
  .top-branding__content {
    grid-template-columns: 1fr;
    row-gap: 80px;
    column-gap: 0;
  }
}

.top-branding__card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

@media (max-width: 767px) {
  .top-branding__card {
    max-width: none;
    background-color: #F7F7F7;
  }
}

.top-branding__img-wrap {
  display: block;
  overflow: hidden;
}

@media (any-hover: hover) {
  .top-branding__card:hover .top-branding__img {
    transform: scale(1.05);
  }
}

.top-branding__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 400 / 329;
  transition: transform 0.3s ease-in-out;
  will-change: transform;
}

@media (max-width: 767px) {
  .top-branding__img {
    aspect-ratio: 342 / 220;
  }
}

.top-branding__body {
  display: flex;
  flex-direction: column;
}

.top-branding__headline {
  position: relative;
  margin-top: 24px;
}


@media (max-width: 767px) {
  .top-branding__headline {
    margin-top: 39px;
  }
}


.top-branding__headline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 193px;
  height: 1px;
  background-color: var(--main-color-sub);
}

@media (max-width: 767px) {
  .top-branding__headline::before {
    width: 120px;
    top: -15px;
  }
}

.top-branding__label {
  display: block;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-semibold);
  font-size: clamp(18px, calc(20 * 100 / var(--cq-ref) * 1cqw), 20px);
  line-height: 1.875;
  letter-spacing: 0.1em;
  color: var(--main-color);
}

@media (max-width: 767px) {
  .top-branding__label {
    font-size: 16px;
  }
}

.top-branding__sub {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-semibold);
  font-size: clamp(13px, calc(15 * 100 / var(--cq-ref) * 1cqw), 15px);
  line-height: 1.733;
  color: #333333;
 margin-top: 7px;
  padding: 0;
}

@media (max-width: 767px) {
  .top-branding__sub {
    font-size: 13px;
  }
}

.top-branding__title {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-semibold);
  font-size: clamp(18px, calc(22 * 100 / var(--cq-ref) * 1cqw), 22px);
  line-height: 1.7;
  letter-spacing: 0.1em;
  color: #111111;
  margin: 0;
  padding: 0;
}

@media (max-width: 767px) {
  .top-branding__title {
    font-size: 18px;
    margin-top: 9px;
  }
}


.top-branding__btn {
  margin-top: 14px;
}

@media (max-width: 767px) {
  .top-branding__btn {
    margin-top: 24px;
  }
}

@media (any-hover: hover) {
  .top-branding__card:hover .more-btn__text {
    color: var(--main-color);
  }

  .top-branding__card:hover .more-btn__icon {
    transform: translateX(5px);
  }
}

/* ===============================================
# プライバシーポリシー
=============================================== */

.privacy-policy {
  padding-block: 94px 63px;
}

@media (max-width: 767px) {
  .privacy-policy {
    padding-block: 74px 50px;
  }
}

.privacy-policy__inner {
  max-width: calc(908px + var(--padding-inner) * 2);
  margin-inline: auto;
  padding-inline: var(--padding-inner);
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .privacy-policy__inner {
    max-width: 500px;
  }
}

.privacy-policy__title {
  font-family: "Noto Serif JP", serif;
  font-weight: var(--font-weight-semibold);
  font-size: 35px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  color: var(--main-color);
  margin: 0;
}

@media (max-width: 767px) {
  .privacy-policy__title {
    font-size: 28px;
  }
}

.privacy-policy__lead {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  font-size: 15px;
  line-height: 2.333;
  color: #000;
  margin: 73px 0 0;
  padding: 0 0 0 24px;
}

@media (max-width: 767px) {
  .privacy-policy__lead {
    font-size: 14px;
    line-height: 2.2;
    margin-top: 40px;
    padding-left: 0;
  }
}

.privacy-policy__block {
  margin-top: 45px;
  margin-bottom: 0;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.privacy-policy__lead + .privacy-policy__block {
  margin-top: 69px;
}

@media (max-width: 767px) {
  .privacy-policy__block {
    margin-top: 40px;
    padding-left: 0;
  }

  .privacy-policy__lead + .privacy-policy__block {
    margin-top: 40px;
  }
}

.privacy-policy__heading {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-semibold);
  font-size: 18px;
  line-height: 1.448;
  color: #000;
  margin: 0;
  padding: 0;
  border: none;
}

@media (max-width: 767px) {
  .privacy-policy__heading {
    font-size: 16px;
    margin-bottom: 8px;
  }
}

.privacy-policy__text {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  font-size: 15px;
  line-height: 2.333;
  color: #000;
  margin: 0;
  padding: 0;
}

@media (max-width: 767px) {
  .privacy-policy__text {
    font-size: 14px;
    line-height: 2.2;
  }
}

.privacy-policy__top-link-wrap {
  margin-top: 93px;
}

@media (max-width: 767px) {
  .privacy-policy__top-link-wrap {
    margin-top: 64px;
  }
}

.privacy-policy__top-link-wrap .top-link:hover {
  background-color: #f7f7f7;
}