/* ===========================================
   page-top.css  採用総合TOP
   =========================================== */

/* ===========================================
   header（FVと重ねる／背景透明／スクロールでガラス化）
   =========================================== */
.top_header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(25px, 4vw,60px);
  background: rgba(255, 255, 255, 0);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0);
  box-shadow: none;
  transition:
    background 0.35s ease,
    backdrop-filter 0.35s ease,
    -webkit-backdrop-filter 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    height 0.35s ease;
}

.top_header.is_scrolled {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
}

.top_header_brand {
  display: flex;
  align-items: center;
}

.top_header_brand img {
  display: block;
  width: 152px;
  height: auto;
}

.top_header_cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  background: linear-gradient(135deg, #ffb21a 0%, var(--top-color-primary) 48%, #ff7a00 100%);
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 8px;
  padding: 13px 22px;
  font-weight: 900;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(243, 152, 0, .32), 0 2px 14px rgba(0, 0, 0, .18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  letter-spacing: 0.05em;
}

.top_header_cta::before {
  content: "";
  width: 23px;
  height: 18px;
  /* flex: 0 0 16px; */
  background: currentColor;
  -webkit-mask: url("../../images/top/icon_mail.svg") center/contain no-repeat;
  mask: url("../../images/top/icon_mail.svg") center/contain no-repeat;
}

.top_header_cta:link,
.top_header_cta:visited,
.top_header_cta:hover,
.top_header_cta:active {
  color: #fff;
}

.top_header_cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(243, 152, 0, .42), 0 4px 18px rgba(0, 0, 0, .2);
}

.top_header.is_scrolled .top_header_cta {
  border-color: rgba(243, 152, 0, .22);
  box-shadow: 0 10px 24px rgba(243, 152, 0, .22);
}

/* ---- reveal ---- */
.top_reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.top_reveal.is_visible {
  opacity: 1;
  transform: none;
}

.top_body {
  display: flex;
  align-items: flex-start;
}

.top_bg_word {
  position: absolute;
  width: 140px;

}

.pc_br {
  display: inline;
}
.sp_br {
  display: none;
}

/* ============================
   FV
   ============================ */
.top_fv {
  position: relative;
  height: 100svh;
  min-height: 700px;
  overflow: hidden;
  isolation: isolate;
  background: #fff4e3;
}

.top_fv_video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.top_fv_overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.top_fv_content {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  padding: 0 24px;
  text-shadow: 0 7px 24px rgba(122,61,0,.30), 0 2px 8px rgba(0,0,0,.18);
}

.top_fv_label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  margin-bottom: 20px;
  opacity: 0;
  animation: topTextIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
}
.top_fv_label::before,
.top_fv_label::after {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.82));
  transform: scaleX(0);
  transform-origin: right;
  animation: topLabelLine 0.85s cubic-bezier(0.22, 1, 0.36, 1) 1.05s forwards;
}
.top_fv_label::after {
  background: linear-gradient(90deg, rgba(255,255,255,.82), transparent);
  transform-origin: left;
}

.top_fv_content h1 {
  color: #fff;
  margin: 0;
  font-size: clamp(14px, 5vw - 2px, 70px);
  line-height: 1.4;
  letter-spacing: 0.157em;
  white-space: nowrap;
  opacity: 0;
  animation: topTextIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.42s forwards;
  /* text-align: center; */
}

.top_fv_content p {
  margin: 20px 0 0;
  font-size: clamp(14px, 1.35vw, 19px);
  font-weight: 800;
  letter-spacing: 3px;
  opacity: 0;
  animation: topTextIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.58s forwards;
}


/* scroll indicator */
.top_scroll_indicator {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  opacity: 0;
  animation: topScrollIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
  transition: transform 0.25s ease;
}
.top_scroll_indicator:link,
.top_scroll_indicator:visited,
.top_scroll_indicator:active {
  color: #fff;
}
.top_scroll_indicator:hover {
  color: #fff;
  transform: translateX(-50%) translateY(-4px);
}
.top_scroll_indicator span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-size: 13px;
  letter-spacing: .12em;
  background: #33333354 !important;
  border-color: rgba(255, 255, 255, .68) !important;
  box-shadow: 0 10px 26px rgba(161, 75, 0, .20);
}
.top_scroll_indicator em {
    margin-top: 20px;
    font-style: normal;
    font-size: 10px;
    letter-spacing: 2px;
    color: #fff;
    font-weight: 600;
}
.top_scroll_indicator::after {
  content: "";
  display: block;
  width: 1px;
  height: 54px;
  margin-top: 2px;
  background: linear-gradient(180deg, var(--top-color-primary-light), rgba(255,255,255,.15));
  animation: topScrollLine 1.7s cubic-bezier(0.6, 0, 0.2, 1) infinite;
  transform-origin: top;
}

/* ============================
   Entry Route section
   ============================ */
.top_entry {
  padding: 92px 0 78px;
  text-align: center;
  scroll-margin-top: 72px;
}
.top_section_label {
  margin: 0 0 18px;
  color: var(--top-color-primary);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 4px;
}
.top_entry h2 {
  font-size: 30px;
  margin: 0 0 40px;
  letter-spacing: 3px;
}

.top_card_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 32px;
}

.top_entry_card {
  position: relative;
  display: block;
  height: 300px;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(48,42,36,.13);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  text-decoration: none;
  color: inherit;
}
.top_entry_card:hover {
  box-shadow: 0 24px 48px rgba(48,42,36,.18);
}
.top_entry_card_thumb {
  position: relative;
  height: 230px;
  overflow: hidden;
}
.top_entry_card_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease-out;
}
.top_entry_card:hover .top_entry_card_thumb img {
  transform: scale(1.1);
}
.top_entry_card_label {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  background: linear-gradient(90deg, var(--top-color-primary), var(--top-color-primary-light));
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.08em;
  padding: 13px 24px;
  border-radius: 14px 0 10px 0;
}
.top_entry_card em {
  display: flex;
  position: relative;
  justify-content: end;
  align-items: center;
  padding-right: 65px;
  height: 70px;
  font-style: normal;
  color: var(--top-color-primary);
  font-weight: 800;
  font-size: 14px;
}
.top_entry_card_external_icon {
    flex: 0 0 auto;
    margin-left: 6px;
}
.top_entry_card_icon {
    display: inline-flex;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: inherit;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(243, 195, 109);
    border-image: initial;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================
   Contact section
   ============================ */
.top_contact {
  padding: 0 0 108px;
  scroll-margin-top: 72px;
}
.top_contact h2 {
  font-size: 30px;
  margin: 0 0 40px;
  letter-spacing: 3px;
}
.top_form_box {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-radius: 22px;
  padding: 65px 115px 80px;
  box-shadow: 0 20px 48px rgba(45,38,32,.11);
  text-align: center;
}
.top_form_lead {
  font-size: 16px;
  margin: -18px 0 44px;
  color: #777;
  letter-spacing: 2.56px;
}
.top_form_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
}
.top_form_box label {
  text-align: left;
  font-weight: 800;
  font-size: 16px;
  display: block;
}
.top_form_box label span {
  margin-left: 4px;
  color: var(--top-color-primary);
  font-size: 16px;
}
.top_form_box input,
.top_form_box select,
.top_form_box textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #ddd7ce;
  border-radius: 8px;
  padding: 14px 15px;
  font-family: inherit;
  font-size: 16px;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.top_form_box select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23777' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 10px 6px;
}
.top_form_box input:focus,
.top_form_box select:focus,
.top_form_box textarea:focus {
  border-color: var(--top-color-primary);
  box-shadow: 0 0 0 3px rgba(243,152,0,.12);
}
.top_form_box textarea {
  height: 170px;
  resize: vertical;
}
.top_form_box input::placeholder,
.top_form_box textarea::placeholder {
  color: #b5b5b5;
  opacity: 1;
}
.top_form_box select:invalid {
  color: #b5b5b5;
}
.top_form_box select option {
  color: var(--top-color-text-base);
}
.top_form_full {
  margin-top: 24px;
}
.top_form_box input.is_error,
.top_form_box select.is_error,
.top_form_box textarea.is_error {
  border-color: var(--top-color-primary);
  box-shadow: 0 0 0 3px rgba(208,2,27,.1);
}
.top_form_box .top_form_error {
  margin-left: 0;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--top-color-primary);
  letter-spacing: 0.06em;
}
.top_form_box .top_form_error:empty {
  display: none;
}
.top_privacy_text {
  margin: 34px 0 28px;
  text-align: left;
  font-size: 14px;
  line-height: 30px;
  color: #444;
}
.top_privacy_text ul {
  list-style: none;
}
.top_privacy_text ul li {
  position: relative;
  padding-left: 1em;
  font-size: 14px;
  margin-bottom: 0;
  line-height: 2;
}
.top_privacy_text span {
  font-size: 14px;
}
.top_privacy_text ul li::before {
  content: "・";
  position: absolute;
  left: 0;
}
.top_privacy_text p {
  font-size: 14px;
  font-weight: 600;
  margin: 40px 0;
  line-height: 2;
  letter-spacing: 1.4px;
}
label.top_agree_label {
  text-align: center;
  font-size: 14px;
}
.top_agree_label input {
  width: auto;
  margin-right: 8px;
  accent-color: var(--top-color-primary);
}
.top_form_box button[type="submit"] {
  position: relative;
  margin-top: 28px;
  border: 0;
  border-radius: 8px;
  background: var(--top-color-primary);
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  width: 360px;
  height: 65px;
  max-width: 100%;
  padding: 18px;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(243,152,0,.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
  letter-spacing: 0.06em;
}
.top_form_submit_icon {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: inherit;
  border-width: 1px;
  border-style: solid;
  border-color: #fff;
  border-radius: 50%;
}
.top_form_box button[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(243,152,0,.36);
}
.top_pmark {
  margin: 50px auto 0;
  background: #f5f5f4;
  border-radius: 10px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  text-align: left;
  font-size: 11px;
  line-height: 1.8;
  justify-content: space-around;
}
.top_pmark img {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}
.top_pmark p {
  letter-spacing: 0.84px;
  line-height: 30px;
  font-size: 14px;
  font-weight: 600;
}

/* ============================
   Footer
   ============================ */
.top_footer {
  background: #36312f;
  color: #fff;
  text-align: center;
  padding: 64px 20px 32px;
}

.top_footer_inner {
  max-width: var(--top-container-width);
  margin: 0 auto;
}

.top_footer_logo {
  display: inline-block;
}

.top_footer_logo img {
  width: 220px;
  opacity: .95;
}

.top_footer_nav {
  margin: 40px 0 0;
}

.top_footer_nav_list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.top_footer_nav_item {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.top_footer_nav_item + .top_footer_nav_item {
  position: relative;
  margin-left: 28px;
  padding-left: 28px;
}
.top_footer_nav_item + .top_footer_nav_item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, .3);
}

.top_footer_nav_item a {
  color: #fff;
  text-decoration: none;
  opacity: .88;
  transition: opacity 0.2s ease;
}
.top_footer_nav_item a:hover {
  opacity: 1;
}

.top_footer_bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.top_footer_link_list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.top_footer_link_item a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  opacity: .75;
  transition: opacity 0.2s ease;
}
.top_footer_link_item a:hover {
  opacity: 1;
}

.top_footer_external_icon {
  flex: 0 0 auto;
}

.top_footer_sns_list {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.top_footer_sns_link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}
.top_footer_sns_link:hover {
  background: rgba(255, 255, 255, .8);
  transform: translateY(-2px);
}

.top_footer_sns_icon {
  width: 25px;
  height: auto;
  filter: invert(1);
}

.top_footer_copyright {
  display: block;
  margin-top: 28px;
  opacity: .45;
  font-size: 10px;
}

/* ============================
   Keyframes
   ============================ */
@keyframes topFvVideoIn {
  0%   { transform: scale(1.08); filter: saturate(1.06) contrast(1.02) brightness(0.96) sepia(0.08) hue-rotate(-8deg); }
  100% { transform: scale(1.02); filter: saturate(1.18) contrast(1.02) brightness(1.08) sepia(0.10) hue-rotate(-8deg); }
}
@keyframes topTextIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes topLabelLine {
  to { transform: scaleX(1); }
}
@keyframes topScrollIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes topScrollLine {
  0%  { transform: scaleY(0); opacity: 0.35; transform-origin: top; }
  45% { transform: scaleY(1); opacity: 1;    transform-origin: top; }
  46% { transform-origin: bottom; }
  100%{ transform: scaleY(0); opacity: 0.35; transform-origin: bottom; }
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 1100px) {
  .top_form_box { 
    margin: 0 20px;
  }
}

@media (max-width: 760px) {
  .top_header {
    padding: 0 16px;
  }
  .top_footer_logo img {
    width: 250px;
  }
  .top_header_brand img {
    width: 118px;
  }
  .top_header_cta {
    padding: 11px 14px;
    font-size: 12px;
  }
  .top_header_cta::before {
    width: 14px;
    height: 14px;
  }
  .top_footer {
    padding: 48px 35px 28px;
  }
  .top_footer_inner {
    text-align: left;
  }
  .top_footer_logo {
    display: block;
    width: fit-content;
    margin: 0 auto;
  }
  .top_footer_nav {
    margin-top: 32px;
  }
  .top_footer_nav_list {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .top_footer_nav_item {
    font-size: 14px;
  }
  .top_footer_nav_item + .top_footer_nav_item {
    margin-left: 0;
    padding-left: 0;
  }
  .top_footer_nav_item + .top_footer_nav_item::before {
    content: none;
  }
  .top_footer_bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-top: 32px;
    padding-top: 0;
    border-top: 0;
  }
  .top_footer_link_list {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .top_footer_sns_list {
    gap: 16px;
  }
  .top_footer_copyright {
    text-align: center;
    margin-top: 100px;
  }
  .top_fv_content h1 {
    font-size: 40px;
    white-space: normal;
    letter-spacing: 0px;
  }
  .top_scroll_indicator { bottom: 22px; }
  .top_scroll_indicator span { 
    min-width: 160px;
    font-size: 12px;
  }
  .top_entry { padding-top: 48px; }
  .top_entry h2 {
    margin-bottom: 72px;

  }
  .top_card_grid,
  .top_form_grid { 
    grid-template-columns: 1fr;
    padding: 0px;
    gap: 25px;
  }
  .top_card_grid {
    margin: 0 20px;
  }
  .top_entry_card { height: 230px; }
  .top_entry_card_thumb { height: 180px; }
  .top_form_box { padding: 38px 20px; }
  .top_form_box label { font-size: 14px; }
  .top_bg_side { display: none; }
  .top_pmark {
    display: block;
    margin: 50px 20px 0;
    text-align: center;
    padding-top: 32px;
    padding-bottom: 70px;
  }
  .top_pmark p { text-align: left; }
  .top_entry_card_label { font-size: 14px;}
  .top_entry_card em { height: 50px;}
  .top_form_full {
    margin-left: 0px;
    margin-right: 0px;
  }
  .top_contact h2 { 
    font-size: 22px; 
    letter-spacing: 2.2px;
    line-height: 1.5;
  }
  .top_form_lead { 
    font-size: 14px;
    letter-spacing: 2.24px;
  }
  .pc_br { display: none; }
  .sp_br { display: inline; }

  .top_form_box button[type="submit"] {
    width: 300px;
    height: 60px;

  } 
  
}

@media (max-width: 380px) {
  .top_header {
    padding: 0 12px;
  }
  .top_header_brand img {
    width: 92px;
  }
  .top_header_cta {
    padding: 9px 10px;
    font-size: 10px;
  }
  .top_scroll_indicator {
    bottom: 0px;
  }
}


#contact {
   scroll-margin-top: 120px;
}



/* cf7 */

/* CF7のspanラッパーをblock化（input幅復活） */
.top_form_box .wpcf7-form-control-wrap { display: block; width: 100%; }

/* 同意チェックの多重span対策 */
.top_agree_label .wpcf7-form-control-wrap,
.top_agree_label .wpcf7-acceptance,
.top_agree_label .wpcf7-list-item { display: inline; width: auto; margin: 0; }
.top_agree_label .wpcf7-list-item-label { display: none; }

/* CF7標準のエラー表示を消して、自作の .top_form_error に統一 */
.top_form_box .wpcf7-not-valid-tip {
  display: none !important;
}


/* reCAPTCHA */
/* デフォルト（フォームが画面外にあるとき）は非表示 */
.grecaptcha-badge {
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease !important;
}

/* フォームが画面内に入ったら、ふわっとスライドイン表示 */
body.show-recaptcha .grecaptcha-badge {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}


