@charset "UTF-8";

:root {
  --black-color:#222222;
  --gray-color:#888888;
  --white-color:#fff;
  --coral-color:#ec7a75;
  --blue-color:#5d78e4;
  --orange-color:#db934f;
  --green-color:#5ca9ac;
}

body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  color: var(---black-color);
  font-size: 15px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  line-height: 1.25;
}

main{
  background-image: url("../img/background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 0 0 10rem;
  margin-top: calc(4rem - 4rem);
}

a{
  text-decoration: none;
}

a:hover {
  opacity: 0.7;
}

.sp-br {
  display: none;
}

.pc-br {
  display: block;
}

@media screen and (max-width: 1000px) {
  .sp-br {
    display: block;
  }

  .pc-br {
    display: none;
  }
}

/* top_about */
.top_about{
  position: relative;
  overflow: hidden;
  padding-top: 4rem;
  border-bottom: 1px solid var(--black-color);
}

.top_about-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
    background-image: url("../img/loading_bg.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  opacity: 1;
  transition: opacity 1.5s ease;
  filter: grayscale(100%);
}

.top_about-loading img {
  position: relative;
  z-index: 2;
  width: 80%;
  max-width: 250px;
  opacity: 0;
  animation: fadeInLogo 1.5s ease forwards;
}

@keyframes fadeInLogo {
  to { opacity: 1; }
}

.top_about-loading.hide {
  opacity: 0;
  pointer-events: none;
}

.top_about-wrapper {
  opacity: 0;
  transition: opacity 1.5s ease, transform 1.5s ease;
  width: 90%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 5rem 0;
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  height: 90vh;
}

.top_about-wrapper.show {
  opacity: 1;
}

.top_about-wrapper .about-copy{
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 4.0rem);
  padding-bottom: 1.25rem;
  width: 0;
  line-height: 1.5;
}

.top_about-wrapper .about-detail{
  font-weight: 600;
  margin-bottom: 2rem;
  line-height: 2;
}

.top_about-wrapper .about-button {
  width: 240px;
  border: 1px solid var(--black-color);
  text-align: center;
  position: relative;
  font-weight: 600;
}

.top_about-wrapper .about-button a{
  display: block;
  width: 100%;
  height: 100%;
  padding: 2px;
  box-sizing: border-box;
}

.top_about-wrapper .about-button::before {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: var(--black-color);
  position: absolute;
  top: 0;
  bottom: 0;
  right: -30px;
  margin: auto;
  transition: transform 0.3s ease;
}

.top_about-wrapper .about-button:hover::before {
  transform: translateX(15px);
}

.top_about-wrapper .about-text.is-show .about-copy {
  animation: typing 1.5s forwards;
}

.top_about-wrapper .about-detail,
.top_about-wrapper .about-button {
  opacity: 0;
  transition: opacity 1s ease-out;
}

.top_about-wrapper .about-text.is-show .about-detail,
.top_about-wrapper .about-text.is-show .about-button {
  opacity: 1;
  transition-delay: 1.5s;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

.about-img {
  position: relative;
  overflow: hidden;
}

.scroll-wrap {
  display: flex;
  flex-direction: column;
  animation: scrollUp 35s linear infinite;
}

.infinite-scroll {
  display: flex;
  flex-direction: column;
}

.about-img img {
  width: 350px;
  height: 500px;
  object-fit: cover;
  margin-bottom: 2vh;
}

@keyframes scrollUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}


@media (max-aspect-ratio: 1/1), (max-width: 800px){

  .top_about-wrapper{
    height: auto;
    flex-direction: column;
    width: 100%;
  }

  .top_about-wrapper .about-text{
    width: 90%;
  }

  .top_about-wrapper .about-copy{
    line-height: 1.5;
  }

  /* 横スクロール用に行方向へ */
  .about-img {
    display: flex;
    overflow: hidden;
    width: 100%;
    position: relative;
  }

  /* ★ここが重要：2セットを包む親を横方向に */
  .scroll-wrap {
    display: flex;
    flex-direction: row;
    animation: scrollLeft 35s linear infinite;
  }

  /* 各セットの中身も横に並ぶ */
  .infinite-scroll {
    display: flex;
    flex-direction: row;
  }

  .about-img img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    margin-right: 2vw;
  }

  /* ★ここも重要：1セット分（= 全体の 50%）だけ動かす */
  @keyframes scrollLeft {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

}


@media (max-width: 600px){
  .top_about-wrapper{
    padding: 4rem 0 3rem;
  }

}

/* top_logo */

.top_all-logo{
  width: 90%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 5.0rem 0 5.0rem;
}

.logo-list {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1vw;
  justify-items: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.logo-item img {
  transition: transform 0.3s ease;
}

.logo-item:hover img {
  transform: scale(1.05);
}

.logo-item.show {
  opacity: 1;
  transform: translateY(0);
}

@media screen and (max-width: 600px) {
  .logo-list {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* top_article */

.top_article-wrapper{
  width: 90%;
  max-width: 1220px;
  margin: 6.0rem auto;
}

.top_article-item {
  display: flex;
  align-items: flex-end;
  position: relative;
  margin-bottom: 8rem;
}

.top_post-img {
  flex-shrink: 0;
  width: 50%;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

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

.top_article-detail {
  width: 60%;
  position: relative;
  z-index: 1;
  margin-left: auto;
  border: none;
  margin-left: -5rem;
}

.top_article-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  position: relative;
  z-index: 3;
}

.top_article-title .title-line {
  display: inline-block;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  padding: 0 1.0rem;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
  line-height: 1.6;
  white-space: nowrap;
}

.top_profile-box{
  margin: 2.0rem 8rem 0rem;
  font-weight: 600;
}

.top_profile-box .person{
  display: flex;
  gap: 2rem;
  font-size: 1.25rem;
}

.profile-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 12px;
}

.post-excerpt {
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.6;
  margin-top: 1rem;
}

.article-button {
  width: 120px;
  border: 1px solid var(--black-color);
  text-align: center;
  position: relative;
  font-size: 0.8rem;
  margin: 0.8rem 0 0 auto;
  font-weight: 500;
}

.article-button a{
  display: block;
  width: 100%;
  height: 100%;
  padding: 2px;
  box-sizing: border-box;
}

.article-button::before {
  content: "";
  display: block;
  width: 30px;
  height: 1px;
  background: var(--black-color);
  position: absolute;
  top: 0;
  bottom: 0;
  right: -15px;
  margin: auto;
  transition: transform 0.3s ease;
}

.article-button:hover::before {
  transform: translateX(7px);
}

.top_article-item:nth-of-type(even) {
  flex-direction: row-reverse;
}

.top_article-item:nth-of-type(even) .top_article-detail{
  margin-right: -3rem;
}

.top_article-item:nth-of-type(even) .top_profile-box{
  margin: 2.0rem 8rem 0rem;
}

.top_article-item:nth-of-type(even) .top_article-title{
  align-items: flex-end;
}


.top_post-img::before,
.top_post-img::after,
.top_post-img span::before,
.top_post-img span::after {
  content: "";
  position: absolute;
  background-color: #000;
  opacity: 0;
  transition: all 0.1s linear;
}

.top_post-img::before {
  top: 0;
  left: 0;
  height: 0.25rem;
  width: 0;
}

.top_post-img::after {
  top: 0;
  right: 0;
  width: 0.25rem;
  height: 0;
}

.top_post-img span::before {
  bottom: 0;
  right: 0;
  height: 0.25rem;
  width: 0;
}

.top_post-img span::after {
  bottom: 0;
  left: 0;
  width: 0.25rem;
  height: 0;
}

.top_article-item:has(.article-button:hover) .top_post-img::before {
  width: 100%;
  opacity: 1;
  transition-delay: 0s;
}

.top_article-item:has(.article-button:hover) .top_post-img::after {
  height: 100%;
  opacity: 1;
  transition-delay: 0.1s;
}

.top_article-item:has(.article-button:hover) .top_post-img span::before {
  width: 100%;
  opacity: 1;
  transition-delay: 0.2s;
}

.top_article-item:has(.article-button:hover) .top_post-img span::after {
  height: 100%;
  opacity: 1;
  transition-delay: 0.3s;
}



@media screen and (max-aspect-ratio: 1/1),(max-width: 800px) {
  .top_article-item{
    flex-direction: column;
    align-items: flex-start;

  }
  .top_post-img {
    width: 90%;
  }

  .top_article-detail{
    width: 100%;
    margin-left: 0rem;
    margin-top: -5rem;
  }

  .top_article-title{
    align-items: flex-end;
  }

  .top_profile-box{
    margin: 0px;
  }

  .post-excerpt{
    width: 90%;
  }
  
  .top_article-item:nth-of-type(even){
    flex-direction: column;
  }

   .top_article-item:nth-of-type(even) .top_post-img{
    margin-left: auto;
  }

  .top_article-item:nth-of-type(even) .top_article-detail{
    margin-left: 0;
    margin-right: 0;
  }

  .top_article-item:nth-of-type(even) .top_article-title{
    align-items: flex-start;
  }

  .top_article-item:nth-of-type(even) .top_profile-box{
    margin: 2rem 0;
  }

}

@media screen and (max-width: 500px) {
  .top_article-title .title-line {
    font-size: 1.75rem;
  }
}

/* single */
.contents-head{
  position: relative;
  margin-top: 4.0rem;
  height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  
}

.head-img {
  flex-shrink: 0;
  width: 70%;
  overflow: hidden;
  z-index: 0;
}

.head-img img{
  margin-left: auto;
  height: 70vh;
  object-fit: cover;
}

.head-detail{
  width: 50%;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  margin: 0 5rem 5rem -5rem;
}

.article_title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  position: relative;
  z-index: 3;
}

.article_title .title-line {
  display: inline-block;
  background-color: var(--white-color);
  border: 1px solid var(--black-color);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  padding: 0 1.0rem;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
  line-height: 1.6;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50px);
}

.profile_box{
  opacity: 0;
  transform: translateY(30px);
  margin-top: 2.0rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 7.0rem;
}

.person{
  font-size: 1.5rem;
  margin-top: 0.75rem;
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.title-line.is-show {
  animation: slideInLeft 0.6s ease forwards;
}

.profile_box.is-show {
  animation: fadeUp 0.8s ease forwards;
}


.contents-body{
  width: 90%;
  max-width: 1000px;
  margin: 5rem auto;
}

.contents-text{
  line-height: 2.0;
}

.contents-text h3{
  font-weight: 500;
  font-size: 1.3rem;
  margin: 2.0rem auto;
  border-bottom: 1px solid var(--black-color)
}

.contents-body img{
  margin: 2.0rem auto;
}

.contents-text h3::first-letter {
  font-size: 1.7rem;
}

.profile-area{
  width: 90%;
  max-width: 1000px;
  margin: 80px auto;
  background-color: var(--white-color);
  padding: 2.5rem;
  font-size: 0.8rem;
  line-height: 1.5;
}

.name{
  font-weight: 500;
  font-size: 1.25rem;
}

.profile_text{
  font-size: 0.85rem;
}

.profile_url{
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.75rem;
}

.top-button{
  width: 160px;
  text-align: center;
  padding: 0.25rem 1.5rem;
  border: 1px solid var(--black-color);
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0 auto;
}

@media (max-aspect-ratio: 1/1) {
  .contents-head {
    margin-top: 0rem;
    flex-direction: column;
    height: auto;
  }
  
  .head-detail{
    width: 100%;
    margin: 0 auto;
    margin-top: -2.0rem;
    padding: 0 3rem 4rem;
  }

  .head-img {
    width: 100%;
    margin-left: 0;
    margin-top: 3.0rem;
  }

  .head-img img{
    margin-left: auto;
    position: relative;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    overflow: hidden; 
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
  }

  .article_title .title-line {
    font-size: clamp(1.5rem, 4vw, 2.75rem);
  }

  .profile-area{
    padding: 1.5rem;
  }

  .profile_box {
    margin: 1.0rem 1.0rem 0;
    align-items: flex-end;
  }
}

@media screen and (max-width: 600px) {
  .head-detail{
    width: 100%;
    margin: 0 auto;
    margin-top: -1.0rem;
    padding: 0 1rem 2rem;
  }

  .profile_name {
    display: block;
  }

}


/* page-common */

.page-head{
  height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-head h2{
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 5rem;
}

.contents-wrapper{
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* about */

.contents-wrapper .about-copy{
  font-weight: 900;
  font-size: 1.5rem;
}

.contents-wrapper .about-detail{
  padding: 2.0rem 0;
}

.contents-wrapper .about-end{
  text-align: right;
}


/* privacy policy */
.policy-text{
  background-color: var(--white-color);
  margin-top: 4rem;
  padding: 3rem 0;
}

.policy-item{
  width: 90%;
  margin: 0rem auto 3rem;
}

.policy-item h2{
  font-weight: 600;
  border-bottom: 1px solid var(--black-color);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.policy-wrapper a{
  font-weight: 500;
}

.policy-wrapperr a:hover{
  color: #db934f;
  opacity: 1.0;
}

@media screen and (max-width: 768px) {
  .page-head{
    height: 10rem;
  }

  .page-head h2{
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 5rem;
  }
}


/* contact page */

.contents-wrapper .sub{
  font-size: 0.85rem;
}

.contact_form{
	margin: 4rem auto;
  max-width: 800px;
}

.contact_form .form_list{
	align-items: center;
	padding: 1.25rem 0;
}

.contact_form .form_list.textarea{
    align-items: flex-start;
}

.contact_form .form_list.textarea .dt{
	margin-top: 15px;
}

.contact_form .form_list .dt .Item_name{
	font-weight: 500;
}

.contact_form .form_list .dt .required{
  display: inline-block;
  align-items: center;
  color: var(--orange-color);
  font-weight: 500;
  font-size: 0.85rem;
  margin-left: 0.75rem;
}

.contact_form .form_list label{
	width: 70%;
}

.contact_form .form_list label input,
.contact_form .form_list label textarea{
	padding: 0.5rem;
	width: 100%;
	background-color: var(--white-color);
}

.contact_form .form_list label input{
  height: 3rem;
}

.contact_form .form_list .wpcf7-not-valid-tip{
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange-color)
}

.contact_form .submit_area{
	margin: 3rem auto 0 auto;
  width: fit-content;
  text-align: center;
}

.contact_form .submit_area .wpcf7-list-item{
	margin: 0;
}


.contact_form .privacy_check{
  font-weight: 500;
}

.privacy_check label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.privacy_check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--black-color);
  margin-right: 0.75rem;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.privacy_check input[type="checkbox"]:checked {
  background-color: var(--black-color);
  border-color: var(--black-color);
}

.privacy_check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 5px;
  width: 5px;
  height: 10px;
  border-right: 2px solid var(--white-color);
  border-bottom: 2px solid var(--white-color);
  transform: rotate(45deg);
}

.contact_form .privacy_check a{
  color: var(--orange-color);
}

.contact_form .submit{
	margin-top: 1rem;
}

.contact_form .submit input{
  width: 260px;
  padding: 0.5rem;
  color: var(--white-color);
  font-weight: 600;
  border: none;
	background-color: var(--gray-color);
	cursor: pointer;
	transition: background-color 0.3s ease-in-out;
}

.contact_form .submit input:hover{
	background-color: var(--black-color);
}

.contact_form .submit span{
	display: none;
}

.wpcf7 form .wpcf7-response-output{
  border: none;
}

@media screen and (max-width: 768px) {
	.contact_form{
    padding: 1rem;
	}
}

@media screen and (max-width: 400px) {
  .contact_form{
    padding: 0;
	}
	.contact_form .form_list{
		padding: 0.75rem 0;
	}

	.contact_form .form_list .dt .Item_name{
		font-size: 0.85rem;
	}

	.contact_form .form_list .dt .required{
		font-size: 0.75rem;
	}
}


/* --- theme-color --- */

/* coral */
.theme-coral .contents-head {
  background-color: #ec7a75;
}
.theme-coral .contents-text h3::first-letter {
  color: #ec7a75;
}
.theme-coral .profile_url a {
  color: #ec7a75;
}
.theme-coral .top_article-title .title-line {
  background-color: #ec7a75;
}

.theme-coral .top_post-img::before,
.theme-coral .top_post-img::after,
.theme-coral .top_post-img span::before,
.theme-coral .top_post-img span::after {
  background-color: #ec7a75;
}


/* blue */
.theme-blue .contents-head {
  background-color: #5d78e4;
}
.theme-blue .contents-text h3::first-letter {
  color: #5d78e4;
}
.theme-blue .profile_url a {
  color: #5d78e4;
}
.theme-blue .top_article-title .title-line {
  background-color: #5d78e4;
}

.theme-blue .top_post-img::before,
.theme-blue .top_post-img::after,
.theme-blue .top_post-img span::before,
.theme-blue .top_post-img span::after {
  background-color: #5d78e4;
}

/* green */
.theme-green .contents-head {
  background-color: #5ca9ac;
}
.theme-green .contents-text h3::first-letter {
  color: #5ca9ac;
}
.theme-green .profile_url a {
  color: #5ca9ac;
}
.theme-green .top_article-title .title-line {
  background-color: #5ca9ac;
}

.theme-green .top_post-img::before,
.theme-green .top_post-img::after,
.theme-green .top_post-img span::before,
.theme-green .top_post-img span::after {
  background-color: #5ca9ac;
}


/* orange */
.theme-orange .contents-head {
  background-color: #db934f;
}
.theme-orange .contents-text h3::first-letter {
  color: #db934f;
}
.theme-orange .profile_url a {
  color: #db934f;
}
.theme-orange .top_article-title .title-line {
  background-color: #db934f;
}

.theme-orange .top_post-img::before,
.theme-orange .top_post-img::after,
.theme-orange .top_post-img span::before,
.theme-orange .top_post-img span::after {
  background-color: #db934f;
}


input {
  background-color: white;
  border: 1px solid var(--gray-color);
}
