:root {
  --color-main-teal: #0080a5;
  --color-main-teal-hover: #007395;
  --color-main-darkGray01: #333;
  --color-sub-paleMint: #edf5ef;
  --color-sub-lightAqua: #c8f2f9;
  --color-sub-raspberry: #e44a6f;
  --color-sub-raspberry-hover: #d05170;
}

@font-face {
  font-family: "Noto Sans JP CDN";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/notosansjp/v56/-F62fjtqLzI2JPCgQBnw7HFow2oe2EcP5pp0erwTqsSWs9Jezazjcb4.0.woff2) format("woff2");
}

h1,
h2,
h3,
h4,
h5,
p,
a,
li,
dt,
dd {
  color: var(--color-main-darkGray01);
}

/* ----------------------------------------------------------- */

.hero {
  position: relative;
  width: 100%;
  max-height: 862px;
  aspect-ratio: 560 / 519;
  background-image: url(/otomo/device/assets/img/hero_sp.webp);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom;

  @media screen and (min-width: 1024px) {
    min-height: auto;
    aspect-ratio: 1920 / 560;
    background-image: url(/otomo/device/assets/img/hero.webp);
  }
  @media screen and (min-width: 1921px) {
    height: 560px;
    aspect-ratio: unset;
  }
  @media screen and (min-width: 2561px) {
    height: auto;
    aspect-ratio: 2560 / 560;
  }
}

.hero_logo {
  position: absolute;
  top: calc(33 / 320 * 100%);
  left: 50%;
  width: calc(498 / 768 * 100%);
  max-width: 538px;
  translate: -50% 0;

  @media screen and (min-width: 1024px) {
    left: calc(50% - 142 / 1920 * 100%);
    top: calc(64 / 582 * 100%);
    width: calc(538 / 1920 * 100%);
    translate: -100% 0;
  }
  @media screen and (min-width: 1921px) {
    left: calc(50% - 412px);
    translate: -50% 0;
  }
  @media screen and (min-width: 2561px) {
    left: calc(50% - 108 / 1920 * 100%);
    width: calc(538 / 2560 * 100%);
    max-width: none;
    translate: -100% 0;
  }
}

/* ----------------------------------------------------------- */

.section.section {
  padding-block: 80px;
  background: transparent;

  @media screen and (min-width: 561px) {
    padding-block: 120px;
  }

  &.-seminar {
    padding-block: 32px;

    @media screen and (min-width: 561px) {
      padding-block: 64px;
    }
  }

  &.-concept {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding-block: 40px;
    background: url(/otomo/device/assets/img/bg_lead_sp.webp);

    @media screen and (min-width: 561px) {
      display: block;
      background: none;
      padding-block: 120px;
    }
  }

  &.-about {
    position: relative;
    padding-bottom: calc((307 + 40) / 560 * 100%);
    background: url(/otomo/device/assets/img/bg_about.webp);
    background-repeat: no-repeat;
    background-position: center 115%;
    background-size: 140%;

    @media screen and (min-width: 769px) {
      padding-bottom: 120px;
      background-position: calc(50% + 588px) center;
      background-size: 1278px;
    }

    &::after {
      position: absolute;
      left: 50%;
      bottom: 0;
      width: 120px;
      height: 40px;
      background: #fff;
      clip-path: polygon(0 0, 100% 0, 50% 100%);
      translate: -50% 99%;
      content: "";
      scale: 0.5;
      transform-origin: center top;

      @media screen and (min-width: 769px) {
        scale: 1;
      }
      @media screen and (min-width: 561px) {
        width: 180px;
        height: 60px;
      }
    }
  }

  &.-result {
    position: relative;

    &::after {
      position: absolute;
      left: 50%;
      top: 0;
      width: 120px;
      height: 40px;
      background: var(--color-sub-lightAqua);
      clip-path: polygon(50% 0, 100% 100%, 0 100%);
      translate: -50% -99%;
      scale: 0.5;
      transform-origin: center bottom;
      content: "";

      @media screen and (min-width: 561px) {
        scale: 1;
      }
      @media screen and (min-width: 769px) {
        width: 180px;
        height: 60px;
      }
    }
  }

  &.-lightGreen {
    background-color: var(--color-sub-paleMint);
  }

  &.-maxWidth1440 {
  }

  &:has(.leadBlock) {
    position: relative;
  }
}

.section_inner {
  .section.-maxWidth1440 & {
    max-width: 1440px;
  }

  .section.-concept & {
    padding: calc(48 / 560 * 100%);
    background: #fff;
    border-radius: 10px;

    @media screen and (min-width: 561px) {
      padding: 0;
    }
  }
}

.bgPolygon {
  background: url(/otomo/device/assets/img/bg_polygon.webp);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  & > .section:first-child:not(:only-child) {
    padding-bottom: 40px;

    @media screen and (min-width: 561px) {
      padding-bottom: 60px;
    }
  }

  & > .section:last-child:not(:only-child) {
    padding-top: 40px;

    @media screen and (min-width: 561px) {
      padding-top: 60px;
    }
  }

  & > .section:not(:first-child):not(:last-child):not(:only-child) {
    padding-block: 40px;

    @media screen and (min-width: 561px) {
      padding-block: 60px;
    }
  }
}

/* ----------------------------------------------------------- */

.seminarContainer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  max-width: 1440px;

  &:has(> :nth-child(n + 5)) {
    @media screen and (min-width: 769px) {
      gap: 32.1px;
    }
  }
}

.seminar {
  display: flex;
  flex-direction: row;
  gap: 16px;
  width: 100%;
  min-width: 256px;

  @media screen and (min-width: 769px) {
    max-width: 704px;
  }

  .seminarContainer:has(> :nth-child(2)):not(:has(> :nth-child(3))) & {
    @media screen and (min-width: 769px) {
      width: calc((100% - 32px) / 2);
    }
  }

  .seminarContainer:has(> :nth-child(n + 3)) & {
    @media screen and (min-width: 769px) {
      flex-direction: column;
      max-width: 336px;
    }
  }

  .seminarContainer:has(> :nth-child(3)):not(:has(> :nth-child(4))) & {
    @media screen and (min-width: 769px) {
      width: calc((100% - 32px) / 2);
    }
    @media screen and (min-width: 1024px) {
      width: calc((100% - 32px * 2) / 3);
    }
  }

  .seminarContainer:has(> :nth-child(4)):not(:has(> :nth-child(5))) & {
    @media screen and (min-width: 769px) {
      width: calc((100% - 32px) / 2);
    }
    @media screen and (min-width: 1367px) {
      width: calc((100% - 32px * 3) / 4);
    }
  }

  .seminarContainer:has(> :nth-child(n + 5)) & {
    @media screen and (min-width: 769px) {
      width: calc((100% - 32px * 2) / 3);
    }
  }
}

.seminar_imgArea {
  flex-shrink: 0;
  width: 30%;
  min-width: 160px;

  @media screen and (min-width: 769px) {
    width: calc(320 / 683 * 100%);
    flex-shrink: 0;
    min-width: 160px;
  }

  .seminarContainer:has(> :nth-child(n + 3)) & {
    @media screen and (min-width: 769px) {
      width: 100%;
    }
  }

  .seminarContainer:has(> :nth-child(3)):not(:has(> :nth-child(4))) & {
    @media screen and (min-width: 769px) {
    }
    @media screen and (min-width: 1024px) {
    }
  }

  .seminarContainer:has(> :nth-child(4)):not(:has(> :nth-child(5))) & {
    @media screen and (min-width: 769px) {
    }
    @media screen and (min-width: 1367px) {
    }
  }

  .seminarContainer:has(> :nth-child(n + 5)) & {
    @media screen and (min-width: 769px) {
    }
  }
}

.seminar_txtArea {
}

.seminar_ttl {
  font-weight: bold;
  font-size: 1.6rem;

  @media screen and (min-width: 769px) {
    font-size: 2rem;
  }

  .seminar:hover & {
    color: var(--color-main-teal);
    text-decoration: underline;
  }
}

.seminar_date {
  margin-top: 8px;
  font-size: 1.6rem;

  @media screen and (min-width: 769px) {
    font-size: 2rem;
  }
}

/* ----------------------------------------------------------- */

.leadBlock {
  display: flex;
  justify-content: center;
  align-items: center;
  container-type: inline-size;
  width: calc(128 / 375 * 100%);
  height: 100%;

  @media screen and (min-width: 561px) {
    position: absolute;
    left: 0;
    top: 0;
    width: calc(802 / 1920 * 100%);
    padding-left: calc(487 / 1920 * 100%);
    background: url(/otomo/device/assets/img/bg_lead.webp);
  }
}

.leadBlock_lead {
  writing-mode: vertical-rl;
  font-family: "Noto Sans JP CDN", sans-serif;
  font-weight: bold;
  font-size: clamp(1.8rem, 17cqw, 2.8rem);
  letter-spacing: 0.25em;
  color: #fff;

  @media screen and (min-width: 561px) {
    position: absolute;
    right: min(213px, 32%);
    font-size: clamp(2rem, 19cqw, 3.2rem);
  }
  @media screen and (min-width: 1024px) {
    font-size: 3.2rem;
  }

  .en {
    display: inline-block;
    margin-bottom: 0.3em;
    letter-spacing: 0;
    rotate: 270deg;
  }
}

.logo {
  width: 100%;

  @media screen and (min-width: 769px) {
    max-width: 480px;
  }

  & + * {
    margin-top: 40px;
  }
}

/* ----------------------------------------------------------- */

.heading2 {
  font-weight: bold;
  font-size: 3.2rem;
  text-align: center;

  @media screen and (min-width: 769px) {
    font-size: 4rem;
  }

  &.-left {
    text-align: left;
  }

  & + * {
    margin-top: 24px;

    @media screen and (min-width: 769px) {
      margin-top: 64px;
    }
  }
}
.heading3 {
  font-weight: bold;
  font-size: 2.8rem;
  text-align: center;

  @media screen and (min-width: 769px) {
    font-size: 3.2rem;
  }

  &.-sm {
    font-size: 2rem;
    line-height: 1.5;

    @media screen and (min-width: 769px) {
      font-size: 2.4rem;
    }
  }

  & + * {
    margin-top: 24px;

    @media screen and (min-width: 769px) {
      margin-top: 64px;
    }
  }
}
.heading3_em {
  font-size: 3.2rem;
  color: var(--color-main-teal);

  @media screen and (min-width: 769px) {
    font-size: 4rem;
  }
}
.heading4 {
  font-weight: bold;
  font-size: 2rem;
  text-align: center;

  @media screen and (min-width: 769px) {
    font-size: 2.4rem;
  }

  &.-left {
    text-align: left;
  }

  &.-teal {
    color: var(--color-main-teal);
  }

  & + * {
    margin-top: 16px;

    @media screen and (min-width: 769px) {
      margin-top: 24px;
    }
  }
}

/* ----------------------------------------------------------- */

.txt {
  font-size: 1.6rem;

  @media screen and (min-width: 769px) {
    font-size: 2rem;
  }

  &.-sm {
    font-size: 1.6rem;
  }
}

/* ----------------------------------------------------------- */

.eyebrow {
  padding: 8px 24px;
  width: fit-content;
  margin-inline: auto;
  border-radius: 4px;
  background: var(--color-main-teal);
  color: #fff;
  font-weight: bold;
  font-size: 1.6rem;
  text-align: center;
  box-shadow: 8px 8px 0 0 rgba(0, 128, 165, 0.15);

  @media screen and (min-width: 769px) {
    font-size: 2rem;
  }

  &.-white {
    background: #fff;
    color: var(--color-main-teal);
  }

  & + * {
    margin-top: 16px;
  }
}

/* ----------------------------------------------------------- */

.txtContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;

  @media screen and (min-width: 769px) {
    align-items: flex-start;
    width: calc(600 / 1200 * 100%);
  }

  &.-right {
    @media screen and (min-width: 561px) {
      margin-inline: auto 0;
      width: calc(600 / 1200 * 100%);
    }
  }
}

/* ----------------------------------------------------------- */

.reasonMedia {
  display: flex;
  flex-direction: column;
  gap: 64px;

  @media screen and (min-width: 769px) {
    flex-direction: row;
  }

  &.-reverse {
    @media screen and (min-width: 769px) {
      flex-direction: row-reverse;
    }
  }
}

.reasonMedia_txtArea {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  gap: 16px;

  @media screen and (min-width: 769px) {
    width: calc(100% - (500 + 64) / 1200 * 100%);
  }
}

.reasonMedia_txt {
  margin-top: 16px;

  @media screen and (min-width: 769px) {
    margin-top: 24px;
  }
}

.reasonMedia_imgArea {
  container-type: inline-size;
  position: relative;
  width: calc(100% - 12%);

  @media screen and (min-width: 769px) {
    width: calc(500 / 1200 * 100%);
  }
}

.reasonMedia_seal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(64px, 24cqw, 120px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: var(--color-sub-raspberry);
  color: #fff;
  font-weight: bold;
  font-size: clamp(1rem, 4cqw, 2rem);
  text-align: center;
  text-shadow: 0 0 4px #730019;
  translate: 50% -50%;

  @media screen and (min-width: 769px) {
    text-shadow: 0 0 4px #c3012c;
  }

  .reasonMedia.-reverse & {
    @media screen and (min-width: 769px) {
      left: 0;
      right: initial;
      translate: -50% -50%;
    }
  }
}

/* ----------------------------------------------------------- */

.highlightsBox {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 10px;
  background: #fff;
  box-shadow: 8px 8px 0 0 rgba(0, 128, 165, 0.15);
  overflow: hidden;
}

.highlightsBox_headingArea {
  width: 100%;
  padding: 16px;
  background-color: var(--color-main-teal);
  color: #fff;
  text-align: center;
}

.highlightsBox_heading {
  font-weight: bold;
  font-size: 2rem;
  color: #fff;
  text-align: center;

  @media screen and (min-width: 769px) {
    font-size: 3.2rem;
  }
}

.highlightsBox_contentArea {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: calc(48 / 560 * 100%);
}

/* ----------------------------------------------------------- */

.resultPanels {
  display: grid;
  justify-content: center;
  grid-template-columns: 1fr;
  gap: 16px;

  @media screen and (min-width: 561px) {
    grid-template-columns: 1fr 1fr;
  }
  @media screen and (min-width: 769px) {
    gap: 32px;
    max-width: 926px;
  }

  &.-col3 {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    max-width: 420px;

    @media screen and (min-width: 769px) {
      gap: 24px;
    }
    @media screen and (min-width: 1024px) {
      max-width: 926px;
    }
  }
}

.resultPanels_item {
}

/* ----------------------------------------------------------- */

.panel {
  width: 100%;
  padding: 24px;
  background-color: #fff;
  border-radius: 10px;

  @media screen and (min-width: 561px) {
    padding: 40px;
  }
}

/* ----------------------------------------------------------- */

.price {
  font-weight: bold;
  font-size: 2.4rem;
  text-align: center;

  @media screen and (min-width: 561px) {
    font-size: 4rem;
  }
}

.price_em {
  margin-left: 0.1em;
  font-size: 4rem;
  color: var(--color-sub-raspberry);

  @media screen and (min-width: 561px) {
    font-size: 6.4rem;
  }
}

.price_per {
  margin-left: 0.2em;
  font-size: 2rem;

  @media screen and (min-width: 561px) {
    font-size: 2.4rem;
  }
}

/* ----------------------------------------------------------- */

.list {
  font-size: 1.6rem;

  @media screen and (min-width: 769px) {
    font-size: 2rem;
  }

  &.-tealDot {
    > .listItem {
      position: relative;
      padding-left: 1em;

      &::before {
        position: absolute;
        top: 0.6em;
        left: 0.3em;
        width: 8px;
        aspect-ratio: 1 / 1;
        border-radius: 50%;
        background-color: var(--color-main-teal);
        content: "";
      }
    }
  }

  &.-sm {
    font-size: 1.6rem;
  }

  &.-xsm {
    font-size: 1.1rem;

    * + & {
      margin-top: 24px;
    }
  }
}

.reasonMedia_list {
}

.listItem {
}

/* ----------------------------------------------------------- */

.menuList {
  display: grid;
  grid-template-columns: 1fr;

  @media screen and (min-width: 769px) {
    grid-template-columns: 30% 1fr;
    align-items: center;
    row-gap: 40px;
    column-gap: 32px;
  }
}

.menuList_term {
  font-weight: bold;
  font-size: 2rem;
  color: var(--color-main-teal);

  &:not(:first-of-type) {
    margin-top: 24px;

    @media screen and (min-width: 769px) {
      margin-top: 0;
    }
  }
}

.menuList_description {
  margin-top: 8px;
  font-size: 1.6rem;

  @media screen and (min-width: 769px) {
    margin-top: 0;
  }
}

/* ----------------------------------------------------------- */

.flowPanel {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  width: 100%;
  max-width: 576px;
  margin-inline: auto;

  @media screen and (min-width: 1024px) {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: auto auto;
    max-width: none;
  }
}

.flowPanel_item {
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 20px;
  position: relative;
  padding: 20px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 8px 8px 0 0 rgba(0, 128, 165, 0.15);

  &:last-child {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  @media screen and (min-width: 1024px) {
    grid-template-rows: subgrid;
    grid-row: span 2;
  }

  &::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: var(--color-main-teal);
    clip-path: polygon(0 0, 100% 0, 100% 10px, 0 10px);
    content: "";
  }

  &:not(:last-of-type)::after {
    position: absolute;
    left: 50%;
    bottom: -28px;
    translate: -50% 0;
    width: 28px;
    height: 14px;
    background: var(--color-sub-raspberry);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    content: "";

    @media screen and (min-width: 1024px) {
      left: initial;
      right: -36px;
      top: 50%;
      translate: 0 -50%;
      rotate: 270deg;
    }
  }
}

.flowPanel_ttl {
  font-weight: bold;
  font-size: 2rem;
  text-align: center;
}

.flowPanel_description {
  font-size: 1.6rem;
}

.flowPanel_last {
  font-weight: bold;
  font-size: 2.4rem;
  color: var(--color-main-teal);
}

/* ----------------------------------------------------------- */

.newsList {
  display: flex;
  flex-direction: column;
  row-gap: 16px;
}

.newsList_item {
  display: flex;
  flex-direction: column;
  gap: 4px;

  @media screen and (min-width: 769px) {
    flex-direction: row;
    gap: 40px;
  }
}

.newsList_date {
  flex-shrink: 0;
  width: 160px;
  font-weight: bold;
  font-size: 2rem;
}

.newsList_link {
  font-size: 2rem;

  &:hover {
    text-decoration: underline;
  }
}

/* ----------------------------------------------------------- */

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 568px;
  padding: 20px;
  border-radius: 10px;
  background: var(--color-main-teal);
  font-weight: bold;
  font-size: 2.4rem;
  color: #fff;

  &:hover {
    background: var(--color-main-teal-hover);
  }

  &.-raspberry {
    background: var(--color-sub-raspberry);

    &:hover {
      background: var(--color-sub-raspberry-hover);
    }
  }
}

/* ----------------------------------------------------------- */

.floatingBnr {
  display: flex;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  padding: 14px;
  border-radius: 4px 0 0 4px;
  background: #fff;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25);
  transition:
    opacity 0.2s,
    visibility 0.2s;

  @media screen and (min-width: 1024px) {
    left: auto;
    bottom: 104px;
    width: fit-content;
    padding: 12px;
  }

  &.-show {
    visibility: visible;
    opacity: 1;
  }

  &.-onFooter {
    position: absolute;
  }
}

.floatingBnr_link {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;

  @media screen and (min-width: 1024px) {
    flex-direction: column;
    gap: 8px;
  }
}

.floatingBnr_txt {
  display: none;
  width: fit-content;
  font-weight: bold;
  font-size: 1.2rem;

  @media screen and (min-width: 561px) {
    font-size: 1.4rem;
  }
  @media screen and (min-width: 769px) {
    display: inline-block;
  }
}

.floatingBnr_point {
  display: inline-block;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 4px;
  background: var(--color-sub-raspberry);
  font-weight: bold;
  font-size: 1.4rem;
  color: #fff;

  @media screen and (min-width: 561px) {
    font-size: 1.6rem;
  }

  @media (hover: hover) {
    .floatingBnr_link:hover & {
      background: var(--color-sub-raspberry-hover);
    }
  }
  @media (hover: none) {
    .floatingBnr_link:active & {
      background: var(--color-sub-raspberry-hover);
    }
  }
}

.floatingBnr_close {
  position: absolute;
  top: 0;
  left: calc(50% - 144px);
  width: 26px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: #000;
  color: #fff;
  translate: 0 -50%;

  @media screen and (min-width: 769px) {
    left: calc(50% - 264px);
  }
  @media screen and (min-width: 1024px) {
    top: 0;
    left: 0;
    translate: -50% -50%;
  }

  &:focus-visible {
    outline: 2px solid #000;
    outline-offset: 1px;
  }

  &::before {
    position: absolute;
    top: 3px;
    left: 5px;
    font-size: 1.6rem;
    color: #fff;
    content: "×";
  }
}

/* ----------------------------------------------------------- */

.phantom {
  transform: translateY(50px);
  transition:
    opacity 1s,
    transform 1s;
  opacity: 0;

  &.-animated {
    transform: translateY(0);
    opacity: 1;
  }
}
