/* -------------------------
    mainvisual (first)
----------------------------*/
.mainvisual {
  --mainvisual-cap: 1030px; /* 大画面で高さの上限。変更時はここだけ */
  height: min(87vw, var(--mainvisual-cap));
}
.mainvisual__bg {
  background: url(../imgs/main_visual.jpg) no-repeat center center / cover;
  height: 100%;
}
.mainvisual__contents {
  width: 100%;
  position: relative;
  z-index: 2;
}
.mainvisual__log {
  position: absolute;
  top: min(4.5vw, 50px);
  left: min(4.5vw, 50px);
  width: min(12.5vw, 150px);
  z-index: 2;
}

/* .mainvisual-view */
.mainvisual-view {
  position: absolute;
  top: min(4.167vw, 50px);
  left: 50%;
  transform: translate(-50%, 0%);
  -webkit-transform: translate(-50%, 0%);
  -ms-transform: translate(-50%, 0%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* gap: min(3.333vw, 40px); */
  color: white;
  width: 100%;
  margin: 0 auto;
}
.mainvisual-view__1 {
  width: 95%;
  padding: 0 5%;
  max-width: calc(1000px + 10%);
}
.mainvisual-view__2 {
  margin-top: min(3.333vw, 40px);
  font-size: min(4.5vw, 3.375rem); /* 54px */
  font-style: oblique;
  line-height: 1.5;
  text-align: center;
  text-shadow: 2px 3px 3px rgba(0, 0, 0, 0.2);
  padding: 0 7.14%;
  max-width: calc(800px + 14.28%);
}
.mainvisual-view__3 {
  margin-top: min(6.667vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-style: oblique;
  text-shadow: 2px 3px 3px rgba(0, 0, 0, 0.4);
  padding: 0 7.14%;
  max-width: calc(800px + 14.28%);
}
.mainvisual-view__3 h4 {
  font-size: min(2.167vw, 1.625rem); /* 26px */
  font-style: oblique;
}
.mainvisual-view__3 p {
  margin-top: min(2vw, 20px);
  font-size: min(1.333vw, 1rem); /* 16px */
  font-style: oblique;
  line-height: 1.8;
}
.mainvisual-button {
  margin-top: min(2.5vw, 30px);
  width: clamp(130px, 18.5vw, 200px);
}
.mainvisual-button a.btn:hover {
  opacity: 1;
}

/* -----------------------------
      top-intro (second)
-------------------------------*/

/* top-intro */
.top-intro {
  position: relative;
}
.top-intro--first .top-intro__before {
  top: max(-4.1vw, -50px);
}
.top-intro--second .top-intro__before {
  top: -25%;
}
.top-intro--third .top-intro__before {
  top: -10%;
}
.top-intro--first .top-intro__contents {
  padding-top: min(22vw, 250px);
}
.top-intro--second .top-intro__contents {
  padding-top: min(16.7vw, 220px);
}
.top-intro--third .top-intro__contents {
  padding-top: min(20.85vw, 250px);
}
.top-intro__before {
  position: absolute;
  left: 50%;
  width: min(36.5%, 440px);
  z-index: 1;
  transform: translate(-50%, 0%);
  -webkit-transform: translate(-50%, 0%);
  -ms-transform: translate(-50%, 0%);
}
.top-intro__contents {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.top-intro__picture {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* 右から左へ段々表示されるリビール（スクロールで表示されたら再生） */
.top-intro__picture picture {
  display: block;
  clip-path: inset(0 100% 0 0); /* 初期は非表示（右から0%表示） */
}
.top-intro__picture.is-inview picture {
  animation: intro-picture-reveal 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes intro-picture-reveal {
  from {
    clip-path: inset(0 100% 0 0); /* 右端から0%表示＝非表示 */
  }
  to {
    clip-path: inset(0 0 0 0); /* 全体表示 */
  }
}
.top-intro__picture img {
  height: min(17.5vw, 220px);
  display: block;
}
.top-intro__explanation {
  font-size: min(2.5vw, 2rem); /* 32px */
  line-height: 1.5;
  margin-top: min(4.5vw, 55px);
  text-align: center;
  color: #004187;
  padding: 0 5%;
}
.top-intro__button {
  width: clamp(130px, 18.5vw, 200px);
  margin-top: min(2.8vw, 40px);
}
.top-intro__button-2 {
  width: min(75%, 850px);
}

/* -------------------------
    top-visa
----------------------------*/
.top-visa {
  margin-top: min(5vw, 60px);
  background-color: #eef4f7;
  /* padding: min(7vw, 85px) 0 min(8.33vw, 100px); */
  padding: min(7vw, 85px) 0 min(18.5vw, 200px);
}
.top-visa__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.top-visa__title {
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.5rem); /* 24px */
  line-height: 1.5;
  color: #ca0011;
}
.top-visa__title span {
  font-size: clamp(2.5rem, 5vw, 3.75rem); /* 60px */
}
.top-visa__title h3::before {
  content: '〈\00a0';
}
.top-visa__title h3::after {
  content: '\00a0〉';
}
.top-visa__list {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: min(5vw, 60px);
  gap: min(8.33vw, 100px);
}
.top-visa-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.top-visa-item__tit {
  display: flex;
  align-items: center;
  gap: min(2vw, 20px);
  padding: 10px;
  border-bottom: 1px solid #302d2c;
  border-left: 1px solid #302d2c;
}
.top-visa-item__tit-img {
  width: min(10.23vw, 44px);
  top: -25px;
}
.top-visa-item__tit-text {
  font-size: clamp(1rem, 2vw, 1.5rem); /* 24px */
  line-height: 1.5;
  color: #004187;
}
.top-visa-item__content {
  width: 100%;
  gap: min(4vw, 50px);
  display: flex;
  justify-content: center;
}
.top-visa-item__content-text {
  margin-top: min(4vw, 50px);
  width: 50%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.top-visa-item__title {
  font-size: clamp(0.75rem, 1.5vw, 1.125rem); /* 18px */
  line-height: 1.5;
  color: #ca0011;
}
.top-visa-item__description {
  margin-top: min(1.5vw, 20px);
  font-size: clamp(0.65rem, 1.167vw, 0.81rem);
  line-height: 1.75;
  color: #302d2c;
}
.top-visa-item__content-picture {
  flex: 1;
}

.top-visa__button {
  width: clamp(130px, 18.5vw, 200px);
  margin-top: min(5vw, 60px);
}

/* top-visa__contact-bnr（鉤括弧風枠） */
.top-visa__contact-bnr {
  position: relative;
  margin: min(5vw, 50px) 0;
  padding: min(3.333vw, 40px) min(2.5vw, 30px);
  background-color: transparent;
  text-align: center;
  /* 鉤括弧風：左上と右下のみL字 */
  --kagi-color: #004187;
  --kagi-length-1: 50%;
  --kagi-length-2: 50%;
  --kagi-thick: 1.5px;
  background-image:
    /* 左上：右方向＋下方向 */
    linear-gradient(to right, var(--kagi-color), var(--kagi-color)),
    linear-gradient(to bottom, var(--kagi-color), var(--kagi-color)),
    /* 右下：左方向＋上方向 */
    linear-gradient(to left, var(--kagi-color), var(--kagi-color)),
    linear-gradient(to top, var(--kagi-color), var(--kagi-color));
  background-size:
    var(--kagi-length-2) var(--kagi-thick),
    var(--kagi-thick) var(--kagi-length-1),
    var(--kagi-length-2) var(--kagi-thick),
    var(--kagi-thick) var(--kagi-length-1);
  background-position:
    0 0,
    0 0,
    100% 100%,
    100% 100%;
  background-repeat: no-repeat;
}
.top-visa__contact-bnr-text {
  color: #004187;
  font-size: clamp(0.75rem, 2.2vw, 1.29rem);
  line-height: 1.8;
  letter-spacing: 0.05em;
}
.top-visa__contact-bnr-button {
  width: clamp(130px, 18.5vw, 200px);
  margin: min(2.5vw, 30px) auto 0;
}

/* top-contact */
.top-contact {
  margin-top: min(5vw, 60px);
  background-color: #eef4f7;
  padding: min(5vw, 60px) 0 min(18.5vw, 200px);
}
.top-contact__inner {
  width: 100%;
}
.top-contact__title {
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.5rem); /* 24px */
  line-height: 1.5;
  color: #ca0011;
}
.top-contact__button {
  width: clamp(240px, 35vw, 350px);
  margin: min(2vw, 25px) auto 0;
}
.top-contact__button a.btn {
  padding: min(2vw, 20px);
  font-size: clamp(0.7rem, 1.333vw, 1rem); /* 16px */
}
.top-contact__description {
  width: 100%;
  margin-top: min(2.5vw, 40px);
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.5rem); /* 24px */
  letter-spacing: -0.02em;
}
.top-contact__contents {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: min(4vw, 50px);
  margin-top: min(2.9vw, 35px);
  align-items: stretch;
  position: relative;
}
.top-contact__contents::after {
  content: 'フィリピンの事なら何でもご相談ください!';
  display: block;
  width: 100%;
  margin: 0 auto;
  position: absolute;
  bottom: min(4vw, 50px);
  left: 0;
  right: 0;
  text-align: center;
  font-size: clamp(0.7rem, 2vw, 1.5rem); /* 20px */
  line-height: 1.5;
  color: #ca0011;
  letter-spacing: 0.2em;
}
.top-contact__content-philippine {
  flex: 1;
}
.top-contact__content-japanese {
  flex: 1;
}
.top-contact__list {
  border-top: 1px solid #302d2c;
  border-bottom: 1px solid #302d2c;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: min(10vw, 120px);
}
.top-contact-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.top-contact-item__picture {
  margin-top: min(3vw, 35px);
  width: min(40%, 140px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.top-contact-item__tit {
  margin-top: 10px;
  font-size: clamp(1rem, 2vw, 1.5rem); /* 24px */
  line-height: 1.5;
  color: #004187;
}
.top-contact-item__name {
  text-align: center;
}
.top-contact-item__name p {
  font-size: clamp(0.75rem, 1.5vw, 1.125rem); /* 18px */
}
.top-contact-item__name span {
  font-size: clamp(0.7rem, 1.333vw, 1rem); /* 16px */
}
.top-contact-item__address {
  margin-top: 10px;
  font-size: clamp(0.65rem, 1.167vw, 0.875rem); /* 14px */
  line-height: 1.5;
  text-align: center;
}
.top-contact-item__tel-text {
  font-size: clamp(0.65rem, 1.167vw, 0.875rem); /* 14px */
  text-align: center;
}
.top-contact-item__tel-text span {
  font-size: clamp(0.75rem, 1.5vw, 1.125rem); /* 18px */
  line-height: 1.5;
  color: #004187;
}
.top-contact-item__tel-num {
  font-size: clamp(1.9rem, 3.833vw, 2.875rem); /* 46px */
  line-height: 1.5;
  text-align: center;
  color: #ca0011;
}
.top-contact-item__tel-num a {
  color: #ca0011;
  text-decoration: none;
}
.top-contact-item__tel-num a:link {
  color: #ca0011;
}
.top-contact-item__tel-num a:visited {
  color: #ca0011;
}
.top-contact-item__tel-num a:hover {
  color: #ca0011;
  /* text-decoration: underline; */
}
.top-contact-item__tel-fax {
  font-size: clamp(1rem, 2vw, 1.5rem); /* 24 px */
  line-height: 1.5;
  text-align: center;
  margin-top: 10px;
}
.top-contact-item__tel-time {
  font-size: clamp(0.65rem, 1.167vw, 0.875rem); /* 14px */
  text-align: center;
}
.top-contact-item__mail-text {
  text-align: center;
  font-size: clamp(0.65rem, 1.167vw, 0.875rem); /* 14px */
}
.top-contact-item__mail-text span {
  font-size: clamp(0.75rem, 1.5vw, 1.125rem); /* 18px */
  line-height: 1.5;
  color: #004187;
}
.top-contact-item__mail-btn {
  width: 80%;
  margin: 10px auto 0;
}
.top-contact-item__mail-add {
  width: 100%;
  text-align: center;
  margin-top: 10px;
  font-size: clamp(0.65rem, 1.167vw, 0.875rem); /* 14px */
}
.top-contact-item__other-text {
  font-size: clamp(0.75rem, 1.5vw, 1.125rem); /* 18px */
  text-align: center;
  color: #004187;
}
.top-contact-item__other-num {
  font-size: clamp(0.75rem, 1.5vw, 1.125rem);
  line-height: 1.5;
}
.top-contact-item__other-num a {
  font-size: clamp(0.75rem, 1.7vw, 1.25rem);
  text-align: center;
  color: #004187;
  text-decoration: underline;
}
.top-contact-item__other-num a:link {
  color: #004187;
  text-decoration: underline;
}
.top-contact-item__form-btn {
  width: 90%;
}
.top-contact-item__line-btn {
  width: 90%;
  margin-top: min(2vw, 20px);
}
.top-contact__content-philippine .top-contact-item::after {
  content: '';
  display: block;
  width: 1.2em;
  height: 1.2em;
  margin: min(2vw, 24px) auto;
  background: url(../imgs/philippine-icon.png) no-repeat center / contain;
}
.top-contact__content-philippine .top-contact-item:last-child::after {
  display: none;
}
.top-contact__content-japanese .top-contact-item::after {
  content: '';
  display: block;
  width: 0.8em;
  height: 0.8em;
  margin: min(2vw, 24px) auto;
  background: url(../imgs/japanese-icon.png) no-repeat center / contain;
}
.top-contact__content-japanese .top-contact-item:last-child::after {
  display: none;
}

/*
TB用----------------------------------- */
@media all and (max-width: 960px) {
}
/*
SP用----------------------------------- */
@media all and (max-width: 530px) {
  .mainvisual {
    height: min(202.33vw, 870px);
  }
  /* .mainvisual-mask */
  .mainvisual-mask {
    height: min(195.35vw, 900px);
  }
  /* mainvisual-view */
  .mainvisual-view {
    width: 100%;
    top: min(19.53vw, 90px);
    /* gap: min(3.49vw, 15px); */
  }
  /* mainvisual__log */
  .mainvisual__log {
    width: min(38vw, 165px);
    top: min(4.65vw, 20px);
    left: 5%;
  }
  .mainvisual-view__1 {
    width: min(100%, 430px);
  }
  .mainvisual-view__2 {
    font-size: min(9.5vw, 2.56rem);
    width: 100%;
    padding: 0 2.5%;
    margin-top: min(4.65vw, 20px);
  }
  .mainvisual-view__3 {
    width: 100%;
    padding: 0 2.5%;
    margin-top: min(6.98vw, 30px);
  }
  .mainvisual-view__3 h4 {
    font-size: min(5.58vw, 1.5rem); /* 24px */
  }
  .mainvisual-view__3 p {
    margin-top: min(3.49vw, 15px);
    font-size: min(3vw, 0.81rem);
    line-height: 2;
  }
  .mainvisual-button {
    width: min(100%, 215px);
    margin-top: min(3.49vw, 15px);
  }

  /* top-intro */
  .top-intro__before {
    position: absolute;
    left: 50%;
    width: min(83%, 400px);
  }
  .top-intro--first .top-intro__before {
    top: max(-11.63vw, -50px);
  }
  .top-intro--second .top-intro__before {
    top: max(-23.26vw, -100px);
  }
  .top-intro--third .top-intro__before {
    top: max(-11.63vw, -50px);
  }
  .top-intro--first .top-intro__contents {
    padding-top: min(51.16vw, 250px);
  }
  .top-intro--second .top-intro__contents {
    padding-top: min(39.53vw, 200px);
  }
  .top-intro--third .top-intro__contents {
    padding-top: min(51.16vw, 250px);
  }
  .top-intro--first .top-intro__picture img {
    height: min(21vw, 100px);
  }
  .top-intro--second .top-intro__picture img {
    height: min(26.74vw, 120px);
  }
  .top-intro--third .top-intro__picture img {
    height: min(26.74vw, 120px);
  }
  .top-intro__explanation {
    font-size: min(6.74vw, 1.81rem);
    line-height: 1.4;
    margin-top: min(9.3vw, 40px);
    padding: 0 2%;
  }
  .top-intro__button {
    margin-top: min(6.98vw, 30px);
    width: 50%;
  }
  .top-intro__button-2 {
    width: 90%;
  }

  /* top-visa */
  .top-visa {
    margin-top: min(9.3vw, 40px);
    padding: min(11.63vw, 50px) 0 min(37.21vw, 160px);
  }
  .top-visa-item__content {
    flex-direction: column;
    gap: min(5.81vw, 25px);
  }
  .top-visa__title {
    font-size: min(5.81vw, 1.56rem);
  }
  .top-visa__title h3::before,
  .top-visa__title h3::after {
    display: none;
  }
  .top-visa-item__tit {
    flex-direction: column;
    align-items: flex-start;
    gap: min(3.49vw, 15px);
    padding: 0 0 min(4.65vw, 20px) min(3.49vw, 15px);
  }
  .top-visa-item__tit-text {
    font-size: min(4.88vw, 1.31rem);
  }
  .top-visa__list {
    margin-top: min(9.3vw, 40px);
    gap: min(8.14vw, 35px);
  }
  .top-visa-item__content-text {
    width: 100%;
    margin-top: min(4.65vw, 20px);
  }
  .top-visa-item__title {
    font-size: min(4.19vw, 1.13rem);
  }
  .top-visa-item__description {
    font-size: min(2.79vw, 0.75rem);
    margin-top: min(4.65vw, 20px);
  }
  .top-visa__contact-bnr {
    margin: min(11.63vw, 50px) auto min(5.81vw, 25px);
    padding: min(6.98vw, 30px) min(3.49vw, 15px);
    --kagi-length-1: 30%;
    --kagi-length-2: 100%;
  }
  .top-visa__contact-bnr-text {
    font-size: min(3.72vw, 1rem); /* 16px */
    letter-spacing: 0;
  }
  .top-visa__contact-bnr-button {
    width: 55%;
    margin-top: min(5.81vw, 25px);
  }
  .top-visa__button {
    width: 50%;
    margin-top: min(6.98vw, 30px);
  }

  /* top-contact */
  .top-contact {
    margin-top: min(10.47vw, 45px);
    padding: min(9.3vw, 40px) 0 min(18.6vw, 80px);
  }
  .top-contact__title {
    font-size: min(5.12vw, 1.38rem);
  }
  .top-contact__description {
    font-size: min(5.35vw, 1.44rem); /* 23px */
    margin-top: min(6.98vw, 30px);
  }
  .top-contact__contents {
    flex-direction: column;
    gap: 0;
    margin-top: min(6.98vw, 30px);
  }
  .top-contact__contents::after {
    content: 'フィリピンの事なら\A何でもご相談ください!';
    white-space: pre-line;
    letter-spacing: 0.1em;
    bottom: 0;
    font-size: min(5.81vw, 1.56rem);
    border-top: 1px solid black;
    padding-top: min(6.98vw, 30px);
  }
  .top-contact__button {
    width: min(100%, 375px);
    margin: min(5.81vw, 25px) auto 0;
  }
  .top-contact__button a.btn {
    padding: min(4.65vw, 20px);
    font-size: min(3.72vw, 1rem); /* 16px */
  }
  .top-contact-item__picture {
    width: min(30.23vw, 130px);
    margin-top: min(9.3vw, 40px);
  }
  .top-contact-item__tit {
    font-size: min(4.65vw, 1.25rem);
  }
  .top-contact-item__name p {
    font-size: min(3.49vw, 0.94rem);
  }
  .top-contact-item__name span {
    font-size: min(3.02vw, 0.81rem);
  }
  .top-contact-item__address {
    font-size: min(3.02vw, 0.81rem);
  }
  .top-contact__content-philippine .top-contact-item::after {
    margin: min(4.65vw, 20px) auto;
    width: min(3.72vw, 0.8em);
    height: min(3.72vw, 0.8em);
  }
  .top-contact__content-japanese .top-contact-item::after {
    margin: min(4.65vw, 20px) auto;
    width: min(3.72vw, 0.8em);
    height: min(3.72vw, 0.8em);
  }
  .top-contact-item__tel-text {
    font-size: min(3.02vw, 0.81rem);
  }
  .top-contact-item__tel-text span {
    font-size: min(3.49vw, 0.94rem);
  }
  .top-contact-item__tel-num {
    font-size: min(9.3vw, 2.5rem);
  }
  .top-contact-item__tel-time {
    font-size: min(3.02vw, 0.81rem);
  }
  .top-contact-item__tel-fax {
    font-size: min(4.88vw, 1.31rem);
  }
  .top-contact-item__mail-text {
    font-size: min(3.02vw, 0.81rem);
  }
  .top-contact-item__mail-text span {
    font-size: min(3.49vw, 0.94rem);
  }
  .top-contact-item__other-text {
    font-size: min(3.49vw, 0.94rem);
  }
  .top-contact-item__other-num {
    font-size: min(3.49vw, 0.94rem);
  }
  .top-contact-item__other-num a {
    font-size: min(3.49vw, 0.94rem);
  }
  .top-contact-item__mail-btn {
    max-width: 250px;
    width: 65%;
  }
  .top-contact-item__form-btn {
    max-width: 280px;
    width: 75%;
  }
  .top-contact-item__line-btn {
    max-width: 280px;
    width: 75%;
    margin-top: min(2.33vw, 10px);
  }
  .top-contact-item__mail-add {
    margin-top: min(2.33vw, 10px);
    font-size: min(3.02vw, 0.81rem);
  }
  .top-contact__content-philippine .top-contact__list {
    border-bottom: none;
    padding-bottom: min(9.3vw, 40px);
  }
  .top-contact__content-japanese .top-contact__list {
    border-bottom: none;
    padding-bottom: min(32.56vw, 140px);
  }
}
