@charset "utf-8";

@layer reset, base, components, media-query, modified;

/* utility */
@layer base {
  html,
  body {
    height: 100%;
  }
  html {
    /* color */
    --main-color: #0277a6;
    --bg-color: #f2f2f2;
    --accent-color: #fa709a;
    --text-color: #2b2b2b;
    --grad-color1: #5efce8;
    --grad-color2: #736efe;
    --bg-grad: linear-gradient(90deg, rgba(52, 189, 199, 1) 0%, rgba(131, 212, 165, 1) 50%, rgba(245, 235, 152, 1) 100%);
    /* font-size */
    --small-font-size: clamp(1.4rem, 1.327rem + 0.36vw, 1.6rem);
    --main-font-size: clamp(1.6rem, 1.527rem + 0.36vw, 1.8rem);
    --large-font-size: clamp(2.1rem, 1.991rem + 0.55vw, 2.4rem);
    --exl-font-size: clamp(3.6rem, 3.236rem + 1.82vw, 4.6rem);
    /* other root */
    --transition: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    /* other settings */
    font-size: 62.5%;
    scroll-behavior: smooth;
  }
  body {
    position: relative;
    font-size: var(--main-font-size);
    font-family: 'BIZ UDPMincho', serif;
    line-height: 1.8;
    letter-spacing: 0.09em;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  }
  p {
    margin-bottom: 1em;
  }
  .section {
    position: relative;
    padding-top: 108px;
    padding-bottom: 108px;
    z-index: 0;
  }
  .inner {
    position: relative;
    max-width: 1200px;
    margin-inline: auto;
    padding-right: 24px;
    padding-left: 24px;
  }
  .section-title {
    position: relative;
    font-size: var(--large-font-size);
    margin-bottom: 2em;
    width: fit-content;
    opacity: 0;
    transform: translateY(24px);
    transition: all ease 0.4s;
    &.on {
      transform: translateY(0);
      opacity: 1;
    }
    &::after {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 80%;
      content: '';
      background-color: rgba(131, 212, 165, 0.35);
      rotate: -3deg;
      z-index: -1;
    }
  }
  .sub-title {
    font-size: var(--main-font-size);
    font-weight: bold;
    margin-bottom: 1em;
  }
  .bold {
    font-weight: bold;
  }
  a.btn {
    display: block;
    max-width: 270px;
    width: 100%;
    text-align: center;
    text-decoration: none;
    border: rgba(131, 212, 165, 0.75) solid 2px;
    background-color: rgba(131, 212, 165, 0.75);
    padding: 24px 36px;
    border-radius: 100vmax;
    font-weight: bold;
  }
  a.link {
    font-weight: bold;
    text-decoration-color: rgba(131, 212, 165, 0.75);
    text-decoration-thickness: 4px;
  }
  .large-text {
    font-size: var(--large-font-size);
  }
  .mb-2em {
    margin-bottom: 2em;
  }
  .mb-3em {
    margin-bottom: 3em;
  }
  .sns-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
    flex-wrap: wrap;
    & .content {
      line-height: 1.2;
      & a {
        font-size: var(--small-font-size);
        & span {
          display: inline;
        }
      }
    }
    .content[class*='sns-'] a {
      position: relative;
      display: inline-flex;
      justify-content: center;
      align-items: center;
      width: 40px;
      height: 40px;
      border-radius: 100vmax;
      background-color: var(--text-color);
      mask-size: contain;
      text-decoration: none;
      &::after {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        content: '';
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        transform-origin: center;
        transform: scale(0.68);
      }
      & span {
        display: none;
      }
    }
    .content.sns-homepage a::after {
      background-image: url(../img/icon-homepage.png);
      filter: invert(100%);
    }
    .content.sns-x a::after {
      background-image: url(../img/logo-x.svg);
      transform: scale(0.48);
    }
    .content.sns-instagram a::after {
      background-image: url(../img/logo-insta.svg);
      transform: scale(0.57);
    }
    .content.sns-note a::after {
      background-image: url(../img/logo-note.svg);
      transform: scale(1.02);
    }
    .content.sns-youtube a::after {
      background-image: url(../img/logo-youtube.png);
      transform: scale(0.65);
    }
  }
}

@layer components {
  /* header */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    z-index: 150;
  }
  .navigation {
    position: relative;
  }
  .navToggle {
    position: fixed;
    top: 12px;
    right: 12px;
    width: 48px;
    height: 48px;
    border-radius: 100vmax;
    color: #fff;
    font-family: sans-serif;
    font-size: 24px;
    line-height: 1;
    display: grid;
    place-items: center;
    background-color: transparent;
    transition: background-color var(--transition);
    z-index: 150;
    &.on {
      background-color: rgba(131, 212, 165, 0.75);
    }
  }
  .nav-list {
    display: none;
    &.on {
      display: flex;
      justify-content: center;
      background-color: var();
      flex-direction: column;
      min-height: 100lvh;
      min-width: 100lvw;
      overflow: hidden;
      background-color: rgba(131, 212, 165, 0.75);
      backdrop-filter: blur(8px);
      z-index: 120;
      padding: 24px 12px;
    }
  }
  .nav-content {
    font-weight: bold;
    margin-bottom: 1em;
    font-size: var(--large-font-size);
    & a {
      text-decoration: none;
    }
  }

  /* footer */
  .footer {
    position: relative;
    padding: 48px 12px;
    text-align: center;
    background-image: url(../img/mv-bg.jpg);
    background-size: cover;
    background-position: center;
  }
  .copyright {
    font-size: var(--small-font-size);
  }
  .backtoTop {
    position: fixed;
    right: 12px;
    bottom: 12px;
    width: 48px;
    height: 48px;
    color: #fff;
    content: '';
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    background-color: rgba(131, 212, 165, 0.75);
    font-size: 24px;
    font-weight: bold;
    border-radius: 100vmax;
    z-index: 10;
    cursor: pointer;
  }
  /* mv */
  .section#mv {
    height: 100dvh;
    width: 100%;
    padding-bottom: initial;
    background-image: url(../img/mv-bg.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    & .inner {
      display: grid;
      place-items: center;
      max-width: initial;
      width: 100%;
      height: 100%;
      overflow: hidden;
    }
  }
  /* .mv-title {
    font-weight: bold;
    font-size: var(--exl-font-size);
  } */
  .mv-title img {
    display: block;
    max-width: 480px;
    width: 100%;
    object-fit: contain;
    filter: drop-shadow(-0.2rem 0 0.6rem #cdcdcd);
  }
  .catchcopy {
    position: absolute;
    right: 24px;
    top: 0;
    display: inline-block;
    writing-mode: vertical-rl;
    font-size: var(--exl-font-size);
    font-weight: 400;
    opacity: 0;
    transform: translateY(24px);
    transition: all ease 0.8s;
    &.on {
      transform: translateY(0);
      opacity: 1;
    }
    & span {
      margin-top: 2em;
    }
  }
  .loader {
    position: absolute;
    width: 480px;
    height: 480px;
    content: '';
    border-radius: 59% 41% 21% 79% / 62% 53% 47% 38%;
    background: var(--bg-grad);
    mix-blend-mode: color-burn;
    animation: rotate 12s linear infinite;
    transform-origin: center;
  }
  @keyframes rotate {
    0% {
      transform: rotate(0deg);
      border-radius: 59% 41% 21% 79% / 62% 53% 47% 38%;
    }
    50% {
      border-radius: 26% 74% 52% 48% / 52% 32% 68% 48%;
    }
    100% {
      transform: rotate(360deg);
      border-radius: 59% 41% 21% 79% / 62% 53% 47% 38%;
    }
  }
  /* about */
  .about-profile {
    display: grid;
    grid-template-columns: 1fr 3fr;
    align-items: center;
    gap: 2em;
    background-color: #fff;
    border-radius: 24px;
    padding: 2em;
  }
  .about-img img {
    display: block;
    margin-inline: auto;
    max-width: 240px;
    border-radius: 100vmax;
  }
  .about-text {
    & .sns-list {
      justify-content: flex-start;
    }
  }
  .about-name {
    font-size: var(--large-font-size);
    margin-bottom: 1em;
    & span {
      font-size: var(--small-font-size);
      vertical-align: middle;
    }
  }
  /* campaign */
  .section#campaign {
    background-color: #fff;
    & a.btn {
      max-width: 100%;
    }
    & .caution {
      background-color: var(--bg-color);
      padding: 24px;
      margin-bottom: 3em;
      border-radius: 24px;
      & p {
        margin-bottom: initial;
      }
    }
  }
  /* sozai */
  .section#sozai {
    background-color: rgba(115, 110, 254, 0.08);
    & .caution {
      background-color: #fff;
      padding: 24px;
      margin-bottom: 3em;
      border-radius: 24px;
      & p {
        margin-bottom: initial;
      }
    }
  }
  .sozai-list {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 3em;
  }
  .sozai-content {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 2em;
    margin-bottom: 3em;
  }
  .sozai-img {
    display: block;
    margin-inline: auto;
  }
  .sozai-text-wrapper {
    & h4 {
      position: relative;
      font-size: var(--large-font-size);
      height: auto;
      width: fit-content;
      margin-bottom: 1em;
      &::after {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 80%;
        content: '';
        background-color: rgba(131, 212, 165, 0.35);
        rotate: -3deg;
        z-index: -1;
      }
    }
  }
  /* kikaku */
  .kikaku-list {
    position: relative;
    display: grid;
    gap: 2em;
  }
  .kikaku-content {
    padding: 48px 36px;
    background: #fff;
    border-radius: 24px;
    margin-bottom: 2em;
    z-index: 0;
    & h3 {
      position: relative;
      font-size: var(--large-font-size);
      margin-bottom: 2em;
      &::before {
        position: relative;
        width: fit-content;
        padding: 1rem 2rem;
        margin-bottom: 1em;
        margin-right: 2rem;
        background: rgba(131, 212, 165, 0.75);
        content: attr(data-number);
        border-radius: 12px;
        color: #fff;
      }
    }
    &:nth-of-type(even) h3::before {
      background: rgba(131, 212, 165, 0.75);
    }
    & img {
      display: block;
      margin-bottom: 1em;
    }
  }
  /* link */
  .section#link {
    background-color: #fff;
    & .sub-title {
      font-size: var(--large-font-size);
    }
  }
  .link-content {
    margin-bottom: 2em;
    & dt a {
      font-weight: bold;
      text-decoration-color: rgba(131, 212, 165, 0.75);
      text-decoration-thickness: 4px;
      &::before {
        content: '\02022';
      }
    }
  }
  /* contact */
  .section#contact {
    & .caution {
      background-color: #fff;
      padding: 24px;
      border-radius: 24px;
      & p {
        margin-bottom: initial;
      }
    }
  }
  /* staff */
  .section#staff {
    background-color: #fff;
  }
  .staff-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 4em;
  }
  .staff-content {
    padding: 36px 24px;
    text-align: center;
    background-color: var(--bg-color);
    border-radius: 24px;
    & img {
      display: block;
      margin-inline: auto;
      margin-bottom: 1em;
      width: 100%;
      height: 100%;
      max-height: 180px;
      max-width: 180px;
      aspect-ratio: 1 / 1;
      object-fit: cover;
      border-radius: 100vmax;
    }
  }
  .staff-name {
    font-weight: bold;
    margin-bottom: 1em;
    & p {
      margin-bottom: initial;
      font-size: var(--small-font-size);
    }
    & h3 {
      font-size: var(--main-font-size);
    }
  }
  /* loading */
  .loading-wrapper {
    position: fixed;
    inset: 0;
    width: 100%;
    height: var(--full-h, 100dvh);
    overflow: hidden;
    background-color: var(--bg-color);
    z-index: 9999;
    display: grid;
    place-items: start;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    padding-bottom: constant(safe-area-inset-bottom); /* old iOS */
  }
  .loading {
    position: absolute;
    left: 50%;
    top: calc(var(--visible-h, 100dvh) / 2); /* px を受け取る var を /2 で真ん中 */
    transform: translate(-50%, -50%);
    width: 120px;
    aspect-ratio: 1 / 1;
    border-radius: 100vmax;
    border: 24px solid;
    border-color: rgba(131, 212, 165, 0.75) transparent;
    animation: l1 1s linear infinite;
  }
  @keyframes l1 {
    to {
      transform: translate(-50%, -50%) rotate(0.5turn);
    }
  }
}

@layer media-query {
  /* tablet */
  @media (880px >= width) {
    .section#mv {
      & .inner {
        place-items: end center;
      }
    }
    .catchcopy {
      font-size: var(--large-font-size);
    }
    .about-profile {
      grid-template-columns: 1fr;
    }
    .sozai-content {
      grid-template-columns: 1fr;
      &:last-of-type {
        margin-bottom: 1em;
      }
    }
    .staff-list {
      grid-template-columns: 1fr 1fr;
    }
  }
  /* smartphone */
  @media (475px >= width) {
    .about-img {
      display: block;
      margin-inline: center;
      margin-bottom: 1em;
    }
    .kikaku-content h3::before {
      display: block;
    }
    .staff-list {
      grid-template-columns: 1fr;
    }
  }
  /* hover */
  @media (hover: hover) {
    a {
      transition: opacity var(--transition);
      &:hover {
        opacity: 0.65;
        transition: opacity var(--transition);
      }
    }
    a.btn {
      position: relative;
      transition: all var(--transition);
      opacity: 1;
      &:hover {
        opacity: 1;
        background-color: #fff;
        border-color: rgba(131, 212, 165, 0.75);
        transition: all var(--transition);
      }
    }
    a.campaign-link {
      transition: all var(--transition);
      opacity: 1;
      &:hover {
        opacity: 1;
        background-color: var(--grad-color1);
        border-color: var(--grad-color1);
        color: var(--grad-color2);
        filter: none;
        transition: all var(--transition);
      }
    }
    .backtoTop {
      transition: opacity var(--transition);
      &:hover {
        opacity: 0.65;
        transition: opacity var(--transition);
      }
    }
  }
}

@layer modified {
}

/* reset css */
@layer reset {
  *,
  *::before,
  *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  :where([hidden]:not([hidden='until-found'])) {
    display: none !important;
  }

  :where(html) {
    -webkit-text-size-adjust: none;
    tab-size: 2;
    scrollbar-gutter: stable;
    interpolate-size: allow-keywords;
    line-height: 1.5;
  }

  :where(html:has(dialog:modal[open])) {
    overflow: clip;
  }

  @media (prefers-reduced-motion: no-preference) {
    :where(html:focus-within) {
      scroll-behavior: smooth;
    }
  }

  :where(body) {
    line-height: inherit;
    font-family: system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
  }

  :where(button) {
    all: unset;
  }

  :where(input, button, textarea, select) {
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    word-spacing: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
  }

  :where(textarea) {
    resize: vertical;
    resize: block;
  }

  :where(button, label, select, summary, [role='button'], [role='option']) {
    cursor: pointer;
  }

  :where(:disabled, label:has(> :disabled, + disabled)) {
    cursor: not-allowed;
  }

  :where(a) {
    color: inherit;
    text-underline-offset: 0.2ex;
  }

  :where(ul, ol) {
    list-style: none;
  }

  :where(img, svg, video, canvas, audio, iframe, embed, object) {
    display: block;
  }

  :where(img, picture, svg, video) {
    max-inline-size: 100%;
    block-size: auto;
  }

  :where(h1, h2, h3) {
    line-height: calc(1em + 0.5rem);
  }

  :where(hr) {
    border: none;
    border-block-start: 1px solid;
    color: inherit;
    block-size: 0;
    overflow: visible;
  }

  :where(dialog, [popover]) {
    border: none;
    background: none;
    color: inherit;
    inset: unset;
    max-width: unset;
    max-height: unset;
    overflow: unset;
  }

  :where(dialog:not([open], [popover]), [popover]:not(:popover-open)) {
    display: none !important;
  }

  :where(:focus-visible) {
    outline-offset: 1px;
  }

  :where(:focus-visible, :target) {
    scroll-margin-block: 8vh;
  }

  :where(.visually-hidden:not(:focus-within, :active)) {
    clip-path: inset(50%) !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden !important;
    position: absolute !important;
    white-space: nowrap !important;
    border: 0 !important;
    user-select: none !important;
  }
}
