/**
 * File: main.css
 * Usage: トップページのスタイルを定義します。
*/

main {
  overflow: clip;
}

.ly_topImg {
  aspect-ratio: 375 / 515;
  width: 100%;
  border-block: 12px solid #fbc723;
}

.ly_topImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% center;
}

.ly_topHero {
  position: relative;
  padding-top: 48px;
}

.ly_topHero::before {
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  width: 24vw;
  max-width: 188px;
  background: url(../img/top/bg-top-left.svg) no-repeat;
  background-size: contain;
  aspect-ratio: 190 / 824;
  z-index: -1;
  transform: translateY(-8%);
}

.ly_topHero::after {
  position: absolute;
  content: '';
  top: 0;
  right: 0;
  width: 52vw;
  max-width: 380px;
  background: url(../img/top/bg-top-right.svg) no-repeat;
  background-size: contain;
  aspect-ratio: 380 / 870;
  height: 100%;
  z-index: -2;
  transform: translateY(-12%);
  background-position: center right;
}

.bl_topHero_content {
  padding: 80px 20px 65px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: center;
  text-align: center;
  position: relative;
  width: fit-content;
  margin-inline: auto;
}

.bl_topHero_content::after {
  position: absolute;
  content: '';
  background: #fff;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 5px solid #fbc723;
  height: 100%;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 1260px;
}

.bl_topHero_content h2 {
  font-weight: 600;
  line-height: 120%;
  font-size: clamp(1.25rem, 0.8125rem + 2.1875vw, 3.4375rem);
}

.bl_topHero_content p {
  line-height: 180%;
  font-size: clamp(1rem, 0.85rem + 0.75vw, 1.75rem);
}

.bl_topHero_icons > svg {
  position: absolute;
  height: auto;
}

.bl_topHero_icons #star1 {
  top: 12vh;
  left: 20vw;
  width: 20px;
}

.bl_topHero_icons #star2 {
  top: 8vh;
  right: 5vw;
  width: 24px;
}

.bl_topHero_icons #star3 {
  top: 60%;
  right: 12vw;
  width: 20px;
}

.ly_menu {
  margin-top: 34px;
  position: relative;
  padding-bottom: 75px;
}

.ly_menu::before {
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  width: 33vw;
  max-width: 268px;
  background: url(../img/top/bg-bottom-left.svg) no-repeat;
  background-size: contain;
  aspect-ratio: 268 / 1054;
  z-index: -1;
  transform: translateY(28%);
}

.ly_menu::after {
  position: absolute;
  content: '';
  top: 0;
  right: 0;
  width: 31vw;
  max-width: 308px;
  background: url(../img/top/bg-bottom-right.svg) no-repeat;
  background-size: contain;
  z-index: -2;
  transform: translateY(-38%);
  background-position: center right;
  aspect-ratio: 308 / 1260;
}

.bl_menuButtons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.bl_menuButtons h3 {
  font-size: clamp(1.625rem, 1.45rem + 0.875vw, 2.5rem);
  line-height: 1;
}

.bl_menuButtons a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 8px 16px;
  text-align: center;
  background: #fff;
  max-width: 192px;
  font-size: 14px;
  border-radius: 32px;
  border: 4px solid var(--color);
  position: relative;
  width: 100%;
  transition: top 0.2s ease;
  top: 0;
  aspect-ratio: 325 / 380;
  line-height: 1.1;
}

.bl_menuButtons a:hover {
  top: 8px;
}

.bl_menuButtons a svg {
  height: 64px;
  width: auto;
}

.bl_menuButtons a::before {
  position: absolute;
  content: '';
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 12px));
  width: calc(100% + 8px);
  height: 100%;
  border-radius: 32px;
  border: 4px solid var(--color-sub);
  background: var(--color-sub);
  z-index: -1;
  transition: transform 0.2s ease;
}

.bl_menuButtons a:hover:before {
  transform: translate(-50%, -50%);
}

.bl_menuSearch {
  background: #fff;
  border-block: #00b1a9 4px solid;
  margin-top: 115px;
  position: relative;
  padding: 60px 15px;
}

.bl_menuSearch h2 {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  font-size: clamp(1.5rem, 1.275rem + 1.125vw, 2.625rem);
  font-weight: 600;
  line-height: 1;
  text-align: center;
  background: #00b1a9;
  color: #fff;
  border-radius: 12px;
  padding: 14px 22px 8px;
}

.bl_menuSearch h2 span {
  background: linear-gradient(
    180deg,
    rgba(0, 177, 169, 1) 55%,
    rgba(0, 177, 169, 0) 55%
  );
  border-radius: 50%;
  width: 60px;
  height: 60px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.bl_menuSearch h2 span svg {
  width: 34px;
  height: 34px;
}

.bl_menuGroup h3 {
  font-size: clamp(1.25rem, 1.125rem + 0.625vw, 1.875rem);
  font-weight: 700;
  display: flex;
  gap: 6px;
  align-items: center;
}

.bl_menuGroup h3 svg,
.bl_menuGroup h3 img {
  max-width: 35px;
  height: auto;
}

.bl_menuGroupList {
  margin-block: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 12px;
}

.bl_searchBtn {
  position: relative;
  padding: 4px 22px 6px;
  border-radius: 30px;
  background: var(--color-main, var(--color));
  border: none;
  width: fit-content;
  color: #fff;
  font-weight: 600;
  font-size: clamp(1.25rem, 1.1375rem + 0.5625vw, 1.8125rem);
  box-shadow: 0 4px 0 var(--color-shadow, var(--color-sub));
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.bl_searchBtn:hover,
.bl_searchBtn:focus-visible {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--color-shadow, var(--color-sub));
}

/* Interest Modal */
.bl_interestModal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.bl_interestModal[aria-hidden='false'] {
  opacity: 1;
  visibility: visible;
}

.bl_interestModal_overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.bl_interestModal_content {
  position: relative;
  background: #fff;
  border-radius: 20px;
  max-width: 900px;
  width: calc(100% - 40px);
  max-height: 80vh;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.bl_interestModal[aria-hidden='false'] .bl_interestModal_content {
  transform: translateY(0);
}

.bl_interestModal_header {
  background: var(--modal-color, #ff8100);
  padding: 16px 50px 16px 20px;
  position: relative;
}

.bl_interestModal_close {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: center;
  transition: background 0.2s ease;
}

.bl_interestModal_close:hover {
  background: rgba(255, 255, 255, 0.5);
}

.bl_interestModal_title {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.bl_interestModal_posts {
  padding: 20px;
  max-height: calc(80vh - 60px);
  overflow-y: auto;
}

.bl_interestModal_post {
  display: block;
  padding: 16px 0;
  border-bottom: 2px dashed #ddd;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.bl_interestModal_post:last-child {
  border-bottom: none;
}

.bl_interestModal_post:hover {
  opacity: 0.7;
}

.bl_interestModal_post_link {
  color: var(--modal-color, #ff8100);
  text-decoration: underline;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
}

.bl_interestModal_post_title {
  display: inline;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  font-weight: 400;
}

.bl_interestModal_loading {
  text-align: center;
  padding: 40px;
  color: #666;
}

.bl_interestModal_empty {
  text-align: center;
  padding: 40px;
  color: #999;
}

.bl_menuGuide {
  border-color: #3669a3;
}

.bl_menuGuide h2 {
  background: #3669a3;
}

.bl_menuGuide h2 span {
  background: linear-gradient(
    180deg,
    rgba(54, 105, 163, 1) 55%,
    rgba(255, 255, 255, 0) 55%
  );
}

.bl_menuGuideList {
  padding: 20px;
  max-width: 910px;
  margin-inline: auto;
}

.bl_guidePost {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid #ddd;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.bl_guidePost:last-child {
  border-bottom: none;
}

.bl_guidePost:hover {
  opacity: 0.7;
}

.bl_guidePost_link {
  color: #3669a3;
  text-decoration: underline;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  margin-right: 0.5em;
}

.bl_guidePost_title {
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  font-weight: 400;
}

.bl_guidePost_empty {
  text-align: center;
  padding: 40px;
  color: #999;
}

.about-img {
  display: none;
}

@media screen and (min-width: 520px) {
  .bl_menuButtons {
    display: grid;
    width: fit-content;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.125rem, -0.7917rem + 3.9931vw, 4rem);
    margin-inline: auto;
  }

  .bl_menuButtons a {
    height: 100%;
    width: 100%;
    max-width: 325px;
    padding-block: clamp(1.25rem, 0.4167rem + 1.7361vw, 2.5rem);
    gap: clamp(0.5rem, 0rem + 1.0417vw, 1.25rem);
    aspect-ratio: 325 / 380;
    font-size: clamp(1rem, 0.6667rem + 0.6944vw, 1.5rem);
    border-radius: 16%;
    border-width: 8px;
  }

  .bl_menuButtons a:hover {
    top: 20px;
  }

  .bl_menuButtons a::before {
    border-radius: 16%;
    border-width: 8px;
    width: calc(100% + 16px);
    transform: translate(-50%, calc(-50% + 20px));
  }

  .bl_menuButtons a svg {
    flex-shrink: 0;
    height: clamp(4rem, 2rem + 4.1667vw, 7rem);
  }
}

@media screen and (min-width: 768px) {
  .ly_topImg {
    aspect-ratio: 1920 / 830;
  }

  .ly_topImg img {
    object-position: center 90%;
  }

  .bl_topHero_content {
    padding: 18vw 12vw;
  }

  .bl_topHero_icons #star1 {
    width: min(3vw, 56px);
    top: 20%;
    left: 10vw;
  }

  .bl_topHero_icons #star2 {
    width: min(2vw, 42px);
    top: 40%;
    right: 5vw;
  }

  .bl_topHero_icons #star3 {
    width: min(3.2vw, 63px);
    top: 90%;
    right: 15vw;
  }

  .ly_menu {
    margin-top: 120px;
    padding-bottom: 100px;
  }

  .ly_menu::after {
    transform: translateY(20%);
  }

  .ly_menu::before {
    transform: translateY(50%);
  }

  .bl_menuSearch {
    margin-top: 210px;
    max-width: 1265px;
    margin-inline: auto;
    border-radius: 30px;
    width: calc(100% - 40px);
    border: #00b1a9 8px solid;
  }

  .bl_menuGuide {
    border-color: #3669a3;
  }

  .bl_menuSearch h2 {
    padding: 20px 30px;
    min-width: 25vw;
  }

  .bl_menuGroup {
    max-width: 910px;
    margin-inline: auto;
  }

  .bl_menuGroup:not(:last-child) {
    padding-bottom: 24px;
    border-bottom: 1px solid #ccc;
  }

  .bl_menuGroup:not(:first-child) {
    padding-top: 24px;
  }

  .bl_menuGroup:last-child {
    padding-top: 24px;
  }

  .bl_guidePost {
    padding: 24px 0;
  }
}

@media screen and (min-width: 1024px) {
  .bl_menuButtons {
    grid-template-columns: repeat(4, 1fr);
  }

  .about-img {
    position: absolute;
    display: block;
  }

  .about-img img {
    position: relative;
    z-index: 1;
  }

  .about-img::after {
    content: '';
    position: absolute;
  }

  .about-img1 {
    top: 30%;
    left: 0;
    width: 20vw;
    max-width: 400px;
  }

  .about-img1::after {
    top: 0;
    left: 0;
    width: calc(100% + 20px);
    height: 100%;
    max-width: 420px;
    transform: translateY(20px);
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    background: #fbc723;
    z-index: 0;
  }

  .about-img2 {
    top: 10%;
    right: 0;
    width: 21.4vw;
    max-width: 412px;
  }

  .about-img2::after {
    top: 0;
    right: 0;
    width: calc(100% + 20px);
    height: 100%;
    max-width: 420px;
    transform: translateY(20px);
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    background: #00b1a9;
    z-index: 0;
  }

  .about-img3 {
    bottom: 20%;
    right: 5vw;
    width: 15vw;
    max-width: 288px;
  }

  .about-img3::after {
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    max-width: 288px;
    transform: translate(-20px, 20px);
    border-radius: 20px;
    background: #d80d18;
    z-index: 0;
  }
}

@media screen and (min-width: 1280px) {
  .bl_topHero {
    padding: 8vw;
    max-width: 1260px;
    width: fit-content;
    margin-inline: auto;
    aspect-ratio: 1 / 1;
  }

  .bl_topHero::after {
    width: 100%;
    height: 100%;
  }
}



@media screen and (min-width: 1440px) {
  .bl_topHero_content {
    padding: 12vw 12vw;
  }
}