/* top.css */
@charset 'utf-8';

@media screen and (max-width: 740px){/* SP */}
@media screen and (min-width: 741px){/* PC */}

/*==============================
TOP
==============================*/
main { margin-top: 0 !important; }
main.scrolled { margin-top: 0 !important; }
.h1_wrap { padding-top: 0; }
header .teaser_wrap { display: none; }
header { transform: translateY(-120px); transition: all 0.5s ease; }
header.scrolled { transform: translateY(0px); }
.header_top { color:#8B4040; }

/* --- TOP全体 --- */
#TOP {
  position: relative;
  width: 100vw;
  overflow: hidden;
  background: #fff;
  padding-bottom: 60px;
}

/* 背景タイトル */
.top_site_title {
  display: none;
  text-align: center;
  font-size: 7vw;
  letter-spacing: 0.08em;
  color: #25565B;
  opacity: 0.5;
  line-height: 1.4em;
  padding-top: 4vw;
  pointer-events: none;
  white-space: nowrap;
}

/* 内側レイアウト（SPファースト：縦並び） */
.top_inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: min(90%, 1100px);
  margin: 0 auto;
  padding-top: 16px;
}

/* ロゴ */
@media screen and (max-width: 740px){
    .top_logo_wrap {
      position: absolute;
      top: 16px;
      left: 0;
      width: 160px; /* お好みで調整 */
    }
}


/* アーチフレーム */
.top_arch_frame { width: 80vw; display: flex;
  justify-content: center;
  align-items: center;}
.top_arch_img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  
}
.top_arch_frame .pc { display:none; }
@media screen and (min-width: 741px){ 
  .top_arch_wrap { padding-top:40px;}
  .top_arch_frame .pc { display:block; } 
  .top_arch_frame .sp { display:none; } 
}


/* テキスト・ボタンエリア */
.top_text_wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  max-width: 90vw;
}
.top_sub_text {
  color: #25565B;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.1em;
  line-height: 1.6em;
}
.top_h1 {
  font-size: 6.5vw;
  line-height: 1.4em;
  color: #25565B;
  font-weight: 500;
}
.top_desc {
  font-size: 14px;
  line-height: 2em;
  color: #555;
}

/* 問い合わせボタン */
.top_contact_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #8B4040;
  color: #FFF;
  font-size: 12px;
  line-height: 1.6em;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.3s;
}
.top_contact_btn:hover { opacity: 0.8; }
.top_contact_btn img { display: block; width: 24px; }

#CONTACT_CTA .link_button {
  background: #FFF;
  border-color: #FFF;
  color: #8B4040;
}
#CONTACT_CTA .link_button .link_button_arrow {
  filter: invert(27%) sepia(30%) saturate(800%) hue-rotate(314deg) brightness(80%);
}
#CONTACT_CTA .link_button:hover { color: #8B4040; }

/* --- PC（min-width: 741px） --- */

@media screen and (min-width: 741px) {
  .top_site_title {
    display:block;
    font-size: 6.7vw;
    letter-spacing: 0.2em;
    padding-top:0;
    margin-top: -3vh;
    opacity: 0.2;
  }

  .top_inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: min(4vw, 60px);
    padding-top: 40px;
  }

  .top_logo_wrap {
    width:255px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;flex-shrink: 0;
  }
  
  .top_logo_img { width:200px; }

  .top_arch_wrap { flex-shrink: 0; padding-top:0;}
  .top_arch_frame { width: min(38vw, 420px); }

  .top_text_wrap {
    align-items: flex-start;
    text-align: left;
    gap: 16px;
    max-width: 340px;
  }

  .top_h1 { font-size: min(2.4vw, 32px); }

  .top_contact_btn {
    width: 90px;
    height: 90px;
    align-self: flex-end;
  }
}


/*---------- animation ----------*/
.top_bg_mask { position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; }
.top_bg_mask_1 { width: 100%; }
.top_bg_mask_2, .top_bg_mask_3, .top_bg_mask_4 { width: 0%; }
.top_bg_mask_1 .top_bg_1,
.top_bg_mask_2 .top_bg_2,
.top_bg_mask_3 .top_bg_3,
.top_bg_mask_4 .top_bg_1 { position: absolute; top: 0; left: 0; width: 100vw; height: 100%; }



/* SP用タイトルはPCで非表示 */
.top_title_sp { display: none; text-align: center; }

/* top_text_wrap内のタイトルはSPで非表示 */
@media screen and (max-width: 740px) {
  .top_title_sp { display: block; padding-top: 70px;}

  .top_text_wrap .top_sub_text,
  .top_text_wrap .top_h1 { display: none; }
}


/*==============================
CONCEPT
==============================*/
.concept_copy { display: inline; margin: 0 auto; line-height: 2em; text-align: left; writing-mode: vertical-rl; }
.concept_line_wrap { display: block; margin: 40px; }
.concept_line { position: relative; display: inline-block; width: 60px; height: 8px; }
.concept_line:nth-child(1) { background: #8B9BAD; }
.concept_line:nth-child(2) { background: #8BC0C4; }
.concept_line:nth-child(3) { background: #FFCC33; }
@media screen and (max-width: 740px){/* SP */
  .concept_line { width: 40px; height: 6px; }
}




/*==============================
CONTENTS
==============================*/
.contents_link .link_button { flex: 1; padding: 20px 24px; }
.contents_link .link_button_arrow { margin-left: 24px; }
.contents_link .contents_link_text .contents_link_title { position: absolute !important; top: -20px; left: -25px; font-size: 48px; opacity: 0.4; }
.contents_link .contents_link_text p { margin-top: 24px; font-size: 16px; line-height: 1.5em; }
@media screen and (max-width: 1200px){/* SP */
  .contents_link { flex-direction: column; }
}



/*==============================
ABOUT
==============================*/
.about_wrap { display: flex; flex-direction: column; gap: 60px; padding-top: 40px; }

.about_row { display: flex; flex-direction: column; gap: 60px; }

.about_box { border: #99844A 1px solid; padding: 24px 24px 24px; position: relative; border-radius: 70% 70% 4px 4px / 250px 250px 4px 4px; }

.about_number {
  display: block;
  color: #25565B;
  text-align: center;
  font-size: 32px;
  font-style: italic;
  font-family: serif;
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
}

.about_title { display: block; text-align: center; font-size: 20px; color: #25565B; margin-bottom: 24px; padding-top: 16px; line-height: 2.0rem;}

.about_img {
  width: 100%;
  display: block;
  margin-bottom: 14px;
}

#STEP {
  background-image: url('../img/top/about_bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about_text { line-height:2.0em; text-align: justify; }

@media screen and (min-width: 741px) {
  .about_wrap {
    gap: 50px;
    padding-top: 50px;
  }

  .about_row {
    flex-direction: row;
    justify-content: center;
    gap: 30px;
  }

  .about_box {
    width: calc(33.333% - 20px);
  }

  .about_number {
    font-size: 40px;
    top: -16px;
  }
}


/* 追加 */
.about_arrow_wrap {
  text-align: center;
  padding: 20px 0;
}

.about_arrow_wrap img {
  width: 24px;
  margin: 0 auto;
}

.about_bottom_wrap {
  text-align: center;
  padding-top: 20px;
}

.about_bottom_title {
  color: #25565B;
  margin-bottom: 24px;
  line-height: 2em;
}

.about_bottom_text {
  line-height: 2.2em;
  margin-bottom: 40px;
  font-size: 15px;
}

.about_bottom_img {
  margin: 0 auto;
  border-radius: 4px;
}

@media screen and (min-width: 741px) {
  .about_bottom_img { max-width: 600px; }
}


.about_strong_wrap { width: 70px; padding-bottom: 10px; justify-content: center; display: flex; margin: 0 auto;}
.caption_text_about { font-size:18px; }
.caption_text_about strong { font-weight:bold; }

@media screen and (min-width: 741px) {
  .about_strong_wrap { width: 70px;}
}


/*==============================
MESSAGE
==============================*/
#MESSAGE { background-color: #F7F4EB;}

.message_main_img {
  width: 100%;
  margin-bottom: 40px;
  border-radius: 8px;
}

.message_body {
  display: block;
}

.MESSAGE_text {
  line-height: 2; margin-bottom: 40px; text-align: justify;
}

.message_imgs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
}

.message_imgs img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

@media screen and (min-width: 1200px) {
  .message_body {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
  }

  .MESSAGE_text { flex: 1;  }

  .message_imgs img {
    max-width: 500px;
  }
}

/*==============================
CONTACT CTA
==============================*/
#CONTACT_CTA { background: #8B4040; }
#CONTACT_CTA .contents { padding:80px 0; }

.contact_cta_wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.contact_cta_text {
  color: #fff;
  line-height: 2em;
  font-size:16px; 
}

#CONTACT_CTA .link_button {
  background: #FFF;
  border-color: #FFF;
  color: #8B4040;
  padding: 8px 24px;
}
#CONTACT_CTA .link_button .link_button_arrow {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(27%) sepia(30%) saturate(800%) hue-rotate(314deg) brightness(80%);
}
#CONTACT_CTA .link_button.bg_skew_x:hover .link_button_arrow {
  filter: brightness(0) invert(1);
}
#CONTACT_CTA .link_button:hover { color: #8B4040; }
#CONTACT_CTA .link_button.bg_skew_x::before { background: #8B4040; }

#CONTACT_CTA .link_button.bg_skew_x:hover { color: #FFF; background: #8B4040;}
#CONTACT_CTA .link_button.bg_skew_x:hover .link_button_arrow {
  filter: brightness(0) invert(1);
}

@media screen and (min-width: 741px) {
  .contact_cta_text { font-size:20px; }
}


/* ipad用 */
@media screen and (min-width: 741px) and (max-width: 1200px) {
  .about_row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .about_box {
    width: calc(40% - 20px);
  }

  .about_box:last-child:nth-child(odd) {
    width: calc(40% - 20px);
  }
}

@media screen and (min-width: 741px) and (max-width: 1200px) {

  .top_logo_img {
    width: 140px; padding-top: 10px;
  }
  /* TOP */
  .top_site_title {
    display: none;
  }

  .top_inner {
    flex-direction: column;
    align-items: center;
    padding-top: 16px;
    gap: 24px;
  }

  .top_logo_wrap {
    position: absolute;
    top: 16px;
    left: 0;
    width: 160px;
  }

  .top_arch_frame {
    width: 45vw;
  }

  .top_text_wrap {
    align-items: center;
    text-align: center;
    max-width: 90vw;
  }

  .top_h1 {
    font-size: 5.5vw;
  }

  .top_contact_btn {
    width: 80px;
    height: 80px;
    align-self: auto;
  }

  .top_arch_frame .pc { display: none; }
  .top_arch_frame .sp { display: block; }

  /* SP用タイトル表示 */
  .top_title_sp { display: block; padding-top: 100px; }
  .top_text_wrap .top_sub_text,
  .top_text_wrap .top_h1 { display: none; }
}