/* ファーストビュー */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-white);
    background-color: var(--color-black);
}

.hero-content {
    z-index: 3;
    position: relative;
}

/* スライダー画像の調整 */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.scroll {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-white);
    font-size: 14px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.scroll .txt {
    position: relative;
    z-index: 2;
}

.scroll::before {
    animation: scroll 3.5s infinite;
    border: solid var(--color-white);
    border-width: 0 0 2px 2px;
    content: "";
    display: inline-block;
    margin: auto;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    transform: rotate(-45deg);
    width: 20px;
    height: 20px;
}
@keyframes scroll {
    0% {
      transform: rotate(-45deg) translate(0, 0);
    }
    80% {
      transform: rotate(-45deg) translate(-30px, 30px);
    }
    0%, 80%, 100% {
      opacity: 0;
    }
    40% {
      opacity: 1;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 125%;
    }
}

/* 会社概要セクション */
.about {
    position: relative;
    padding-left: 10%;
    max-width: 90%;
    height: 45rem;
    background: var(--color-base);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    border-radius: 10px;
}

/* 写真部分 */
.about-image {
    height: 45rem;
    width: 70%;
    background: url('/assets/images/webp/slide1.webp') center/cover no-repeat;
    background-size: cover;
    background-position: center;
}

/* テキスト部分 */
.about-text {
    position: relative;
    margin-right: -10%;
    padding: 4rem;
    width: 40rem;
    z-index: 2;
    background: var(--color-white);
    border-radius: 10px;
}

.about-text p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    font-size: 1rem;
    color: var(--color-black);
}

.about hr {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    height: 0.7rem;
    border: 0;
    box-shadow: 0 10px 10px -10px #8c8b8b inset;
}

.txt-rgt {
    text-align: right;
}

.btn,
a.btn,
button.btn {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  position: relative;
  display: inline-block;
  padding: 1rem 3.7rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  letter-spacing: 0.1em;
  color: #212529;
  border-radius: 0.5rem;
  outline: none;
}

a.btn-flat {
  overflow: hidden;

  color: var(--color-white);
  border-radius: 0;
  background: #000;
}

a.btn-flat span {
  position: relative;
}

a.btn-flat:before {
  position: absolute;
  top: 0;
  left: 0;

  width: 150%;
  height: 500%;

  content: "";
  -webkit-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
  -webkit-transform: translateX(-98%) translateY(-25%) rotate(45deg);
  transform: translateX(-98%) translateY(-25%) rotate(45deg);

  background: #00b7ee;
}

a.btn-flat:hover:before {
  -webkit-transform: translateX(-9%) translateY(-25%) rotate(45deg);
  transform: translateX(-9%) translateY(-25%) rotate(45deg);
}

.about-text {
    opacity: 0;
}
.about-text.is-visible {
    animation: fadeIn 0.9s ease-in forwards;
    animation-delay: 0.5s;
}

/* .about-image は少し遅れてフェードイン */
.about-image {
    opacity: 0;
}
.about-image.is-visible {
    animation: fadeIn 0.9s ease-in forwards;
}

@media (max-width: 1024px) {
    .about-image {
        width: 91%;
    }

    .about-text p {
        line-height: 1.4;
        letter-spacing: 0.1em;
        font-size: 90%;
    }
}
@media (max-width: 768px) {
    .about {
      flex-direction: column;
      height: auto;
    }
    .about-image {
      width: 100%;
      height: 250px;
    }

    .about-text {
      width: 100%;
      margin-right: 0;
      padding: 2rem;
      margin-top: 2rem;
    }

    .btn,
    a.btn,
    button.btn {
      font-size: 1.2rem;
      padding: 0.8rem 2rem;
    }
}

/* .projects セクション */
.slide-media {
    opacity: 0;
}
.slide-media.is-visible {
    animation: fadeIn 1.2s ease-in-out forwards;
}

.thumb-media {
    opacity: 0;
}
.thumb-media.is-visible {
    animation: fadeIn 1.2s ease-in-out forwards;
}
.thumb-media:nth-child(1).is-visible { animation-delay: 0.3s; }
.thumb-media:nth-child(2).is-visible { animation-delay: 0.6s; }
.thumb-media:nth-child(3).is-visible { animation-delay: 0.9s; }
.thumb-media:nth-child(4).is-visible { animation-delay: 1.2s; }

.projects {
    margin-bottom: 6rem;
}

.projects h2, .projects p {
    text-align: center;
}

.projects .tagline::before {
    content: ' ';
    display: inline-block;
    width: 20px;
    height: 1px;
    background: var(--color-black);
    margin-right: 11px;
    line-height: 1;
}

.button a {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    text-decoration: none;
    display: block;
    max-width: 250px;;
    background: #000;
    margin: auto;
    padding: 0.6rem 1.8rem;
    font-family: var(--font-sans);
    font-weight: 500;
    text-align: center;
    line-height: 1.8;
    text-decoration: none;
    outline: none;
    transition: ease-in-out 1s;
}

.button a span {
    position: relative;
    z-index: 3;
    color: var(--color-white);
    font-size: 1.2rem;
    font-weight: 600;
}

.center-out:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    background: #00b7ee;
    width: 100%;
    height: 100%;
    transition: transform .6s cubic-bezier(0.8, 0, 0.2, 1) 0s;
    transform: scale(0, 0);
    transform-origin:center;
}

.center-out:hover:before{
    transform:scale(1, 1);
}

[class*=swiper]:focus {
    outline: none;
}

.slide-media,
.thumb-media {
    position: relative;
    overflow: hidden;
}
.slide-media img,
.thumb-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.swiper-button-prev, .swiper-button-next {
    display: grid;
    place-content: center;
    width: 6.4rem;
    height: 6.4rem;
    cursor: pointer;
    -webkit-transition: var(--transition);
    transition: var(--transition);
}

/* Swiper純正アイコンのみ非表示にする（擬似要素は残す） */
.gallery .swiper-button-prev > svg,
.gallery .swiper-button-next > svg,
.gallery .swiper-button-prev > span,
.gallery .swiper-button-next > span {
  display: none !important;
}

.swiper-button-prev::before, .swiper-button-next::before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    content: "";
    border-radius: 50%;
    -webkit-box-shadow: var(--box-shadow);
            box-shadow: var(--box-shadow);
}
.swiper-button-prev::after, .swiper-button-next::after {
    width: 1.2rem;
    height: 1.2rem;
    content: "";
    border: solid #ddd;
    border-width: 3px 3px 0 0;
}
.swiper-button-prev::after {
    margin-left: 0.4rem;
    -webkit-transform: rotate(-135deg);
            transform: rotate(-135deg);
}
.swiper-button-next::after {
    margin-right: 0.4rem;
    -webkit-transform: rotate(45deg);
            transform: rotate(45deg);
}

.swiper-button-disabled {
    pointer-events: none;
    opacity: 0;
}

.gallery {
    overflow: hidden;
}
.gallery .swiper,
.gallery .thumb-wrapper {
    max-width: 720px;
    margin: auto;
}
.gallery .swiper {
    overflow: visible;
}
.gallery .swiper-fade .swiper-slide {
    -webkit-transition-property: opacity, -webkit-transform !important;
    transition-property: opacity, -webkit-transform !important;
    transition-property: opacity, transform !important;
    transition-property: opacity, transform, -webkit-transform !important;
    pointer-events: none;
}
.gallery .swiper-fade .swiper-slide-active {
    pointer-events: auto;
}
.gallery .swiper-controller {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 62.5%;
}
.gallery .swiper-button-prev, .gallery .swiper-button-next {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    margin: auto;
}
.gallery .swiper-button-prev {
    right: calc(100% + 3.2rem);
}
.gallery .swiper-button-next {
    left: calc(100% + 3.2rem);
}
.gallery .slide {
    display: block;
    overflow: hidden;
}
.gallery .slide-media {
    display: block;
    padding-top: 62.5%;
    border-radius: 4px;
}
.gallery .slide-media img {
    -o-object-fit: contain;
       object-fit: contain;
}
.gallery .slide-title {
    font-weight: bold;
    line-height: 1.6;
    padding: 3.2rem 0;
}
.gallery .thumb-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.gallery .thumb-media {
    padding-top: 100%;
    cursor: pointer;
    -webkit-transition: var(--transition);
    transition: var(--transition);
    border-radius: 4px;
}
.gallery .thumb-media img {
    -webkit-transition: var(--transition);
    transition: var(--transition);
}
.gallery .thumb-media-active {
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
    opacity: 0.3;
}
.gallery .thumb-media-active img {
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
}

@media only screen and (max-width: 1024px) {
    .gallery .swiper-button-prev::before, .gallery .swiper-button-next::before {
        background-color: rgba(0, 0, 0, 0.3);
        -webkit-box-shadow: var(--box-shadow-dark);
                box-shadow: var(--box-shadow-dark);
    }
    .gallery .swiper-button-prev::after, .gallery .swiper-button-next::after {
        border-color: var(--color-white);
    }
    .gallery .swiper-button-prev {
        right: 100%;
    }
    .gallery .swiper-button-next {
        left: 100%;
    }

    .gallery .swiper-button-prev,
    .gallery .swiper-button-next {
        width: 3rem;
        height: 3rem;
  }
}

@media only screen and (max-width: 599px) {
    .gallery .thumb-wrapper {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media only screen and (min-width: 1025px) {
    .swiper-button-prev::before, .swiper-button-next::before {
        -webkit-transition: var(--transition);
        transition: var(--transition);
    }
    .swiper-button-prev:hover::before, .swiper-button-next:hover::before {
        -webkit-transform: scale(1.2);
                transform: scale(1.2);
    }
    .gallery .thumb-media:hover {
        -webkit-transform: scale(0.9);
                transform: scale(0.9);
    }
    .gallery .thumb-media:hover img {
        -webkit-transform: scale(1.1);
                transform: scale(1.1);
    }
}

/*ニュースセクション*/
.news{
    background-color: var(--color-base2);
    text-align: center;
    padding-bottom: 50px;
}

.news h2 {
    padding-top: 1rem;
}

.news .tagline::before {
    content: ' ';
    display: inline-block;
    width: 20px;
    height: 1px;
    background: var(--color-black);
    margin-right: 11px;
    line-height: 1;
}

.p-top-notice__list {
    position: relative;
    padding-top: 30px;
    border-top: 2px solid var(--color-white);
    border-right: 2px solid var(--color-white);
}

.p-top-notice__list::before {
    position: absolute;
    top: -2px;
    left: 0;
    width: 25%;
    height: 2px;
    content: "";
    background-color: #00b7ee;
}

.c-article::before, .c-article::after {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    content: "";
}

.c-article::before {
    width: 100%;
    background-color: var(--color-white);
}

.news a::after {
    width: 25%;
    background-color: #00b7ee;
    transition: width .6s cubic-bezier(0.65, 0, 0.35, 1);
}

.news a:hover:after {
    width: 100%;
    transform: width translate(0, 0);
}

.c-article {
    position: relative;
    display: block;
    padding-bottom: 35px;
}

.c-article.-small .c-article__meta {
    margin-bottom: 0;
}
.c-article__meta {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

@media screen and (min-width: 769px) {
    .p-top-notice__inner>.list {
        width: 75%;
    }
}
@media screen and (min-width: 769px) {
    .p-top-notice__list {
        margin-left: 25%;
        margin-right: 25%;
    }
}

.terms::before {
    position: absolute;
    top: 15px;
    left: 0;
    width: 1px;
    height: 16px;
    content: "";
    background-color: var(--color-black);
}

.c-article__meta>.date {
    padding-top: 5px;
    font-size: 14px;
    line-height: 1;
    color: var(--color-black);
    font-family: var(--font-mincho);
    font-weight: 500;
}

.c-article__meta>.terms {
    position: relative;
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    padding-left: 10px;
    margin-top: -10px;
    margin-left: 16px;
}

.c-article__meta>.terms>.category {
    margin-top: 10px;
    margin-left: 10px;
}

.c-tag {
    max-width: none;
}

.c-tag {
    display: inline-block;
    max-width: 14.5em;
    height: 25px;
    padding-right: 15px;
    padding-left: 15px;
    overflow: hidden;
    font-size: 12px;
    line-height: 25px;
    color: var(--color-white);
    font-family: var(--font-gothic);
    font-weight: 700;
    letter-spacing: 0;
    background-color: #485a69;
    border-radius: 12px;
}

.u-fw-bold {
    font-family: var(--font-gothic);
    font-weight: 700;
}

.c-article__title {
    color: var(--color-black);
}

.c-article.-small .c-article__title {
    flex: 1;
    margin-top: 5px;
    line-height: 2;
}

@media screen and (max-width: 1024px) {
    .c-article.-small .c-article__title {
        text-align: left;
        padding-left: 15%;
    }
}

.c-article.-small {
    padding-bottom: 40px;
    outline: none;
}

.p-top-notice__list>.item+.item {
    margin-top: 30px;
}

@media screen and (max-width: 768px) {
    .p-top-notice__list {
        margin: 5.33vw;
    }

    .c-article.-small .c-article__title {
        font-size: 0.8rem;
        padding-left: 18%;
    }
}

/* アクセス */
.access h2 {
    margin-left: 1rem;
    padding-bottom: 1rem;
}

.access iframe {
    width: 100%;
    height: 50vh;
    border: none;
}