h1, h2, h3, h4, h5, h6{
    margin: 0;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
/* リンクの青残りを完全に防ぐ */
a,
a:visited,
a:hover,
a:active,
a:focus {
  text-decoration: none;
}
a:focus,
button:focus {
  outline: none;
}
a:focus-visible,
button:focus-visible {
  outline: none;
}
wp-person a:focus .gravatar, a:focus, a:focus .media-icon img, a:focus .plugin-icon {
    color: #043959;
    box-shadow: none !important;
    outline: none !important;
}

body {
  font-family: "Inter", sans-serif;
  color: #111;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}



.hero {
  position: relative;
  width: 100%;
  /* min-height: 100vh; */
  font-family: "Inter", sans-serif;
}

.hero-bg {
  position: absolute;
  inset: 0;
}
.top-fv-box{
    min-height: 100vh;
}
/* 赤グラデーション */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #d3011c 0%,
    rgba(211, 1, 28, 0.85) 35%,
    rgba(211, 1, 28, 0.4) 55%,
    rgba(211, 1, 28, 0) 75%
  );
  z-index: 1;
}

.hero-bg img,
.hero-bg video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-overlay {
  position: relative;
  z-index: 3;
  padding: 10px 0;
}

.nav-inner {
  max-width: 1400px;
  padding: 10px;
  margin: 0 auto;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.12);
}

.logo {
  width: 180px;
  display: flex;
  flex-direction: column;
  color: #fff;
}

.navbar{
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-menu ul{
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu li a {
    color: #d3011c;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-menu li a:hover {
  opacity: 0.7;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;
  font-weight: 500;
  color: #d3011c;
  text-decoration: none;
  border-radius: 10px;
}

/* アクティブ */
.current_page_item a{
  background-color: #d3011c;
  color: #fff !important;
  padding: 10px 30px;
}

.has-dropdown {
  position: relative;
  padding-right: 42px;
}

/* 下矢印 */
.has-dropdown::after {
  content: "▼";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-45%);
  font-size: 10px;
  color: currentColor;
  opacity: 0.9;
}

/* hover */
.nav-menu a:hover {
  opacity: 0.7;
}

.nav-contact {
  padding: 14px 34px;
  background-color: #d3011c;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  transition: 0.3s;
  text-decoration: none;
}

.nav-contact:hover {
  opacity: 0.7;
}

.nav-conact::after {
  content: ">";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  font-weight: 600;
  opacity: 0.9;
}

.fv {
  max-width: 1200px;
  margin: 0 auto;
  color: #fff;
}

.fv h1 {
  font-size: 52px;
  line-height: 1.4;
  font-weight: normal;
  letter-spacing: 0.08em;
  margin-bottom: 80px;
}

.fv .strong {
  font-size: 54px;
}

.btn {
  display: flex;
  gap: 16px;
}

.cta-btn {
  display: inline-block;
  padding: 14px 50px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s;
  text-decoration: none;
}

/* 資料請求 */
.cta-btn:first-child {
  background-color: transparent;
  border: 1px solid #fff;
  color: #fff;
}

.cta-btn:first-child:hover {
  background-color: #fff;
  color: #d3011c;
}

/* 相談 */
.cta-btn:last-child {
  background-color: #fff;
  color: #d3011c;
}

.cta-btn:last-child:hover {
  background-color: #d3011c;
  color: #fff;
  border: 1px solid #fff;
}

.has-arrow {
  position: relative;
  padding-right: 56px;
}

.has-arrow1 {
  position: relative;
  padding-right: 30px;
}

.has-arrow::after {
  content: ">";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);

  font-size: 18px;
  font-weight: 600;
  opacity: 0.7;
}

.hero-notice {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 640px;
  padding: 20px 28px;
  background-color: #fff;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);

  text-decoration: none;
  cursor: pointer;
  position: absolute;
  bottom: 40px;
  right: 0;
}

.notice-date {
  font-size: 14px;
  font-weight: 400;
  color: #d3011c;
  white-space: nowrap;
}

.notice-text {
  font-size: 14px;
  color: #111;
  margin: 0;
  white-space: nowrap;
}

.notice-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: auto;
  background-color: #d3011c;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
}



@media (max-width: 1023px) {
  /* hero全体 */
  .hero {
    /* height: 600px; */
    min-height: unset;
    position: relative;
    overflow: hidden;
  }

  .hero-bg,
  .hero-bg img,
  .hero-bg video {
    height: 100%;
  }

  .hero-bg img,
  .hero-bg video {
    object-fit: cover;
  }

  .fv h1 {
    font-size: 40px;
    line-height: 1.3;
  }

  .fv .btn {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .fv .cta-btn {
    width: 220px;
    padding: 14px 0;
    text-align: center;
  }

  /* お知らせ */
  .hero-notice {
    position: absolute;
    right: 0;
    bottom: 16px;
    max-width: 420px;
    padding: 12px 16px;
    font-size: 14px;
    z-index: 5;
  }

}



.hero-page-post{
    position: relative;
    width: 100%;
    max-height: 500px;
    font-family: "Inter", sans-serif;
    height: 100vh;
    display: flex;
}
.hero-page-post .fv{
  /* margin: auto 10vw; */
}
.hero-page-post .fv {
    margin: auto;
    max-width: 1100px;
    width: 100%;
    padding: 20px;
}
h1.en-ttl {
    margin: 0 0 20px !important;
}
.ja-ttl {
    position: relative;
    margin-left: 24px;
    font-size: 18px;
}
.ja-ttl::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 50%;
    width: 10px;
    height: 10px;
    background: #fff;
    transform: translateY(-50%) rotate(45deg);
}

.menu-item {
  position: relative;
  margin: 0;
}
.mega-menu {
    position: absolute;
    right: 0;
    top: 0;
    width: fit-content;
    display: none;
    z-index: 1000;
    padding: 30px 0;
}
.mega-thumb {
    width: 300px;
}
.menu-item:hover .mega-menu {
  display: block;
}
.mega-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  background: #333333d7;
  border-radius: 30px;
}
.mega-card {
  display: block;
  text-decoration: none;
  color: #fff;
}

.mega-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  margin-right: auto;
}

.mega-title {
  display: block;
  margin-top: 12px;
  padding-left: 16px;
  font-size: 15px;
  font-weight: 600;
  position: relative;
  margin-right: auto;
}

.mega-title::before {
  content: "»";
  position: absolute;
  left: 0;
  color: #e60012; /* 赤アクセント */
}
.mega-card::after {
  content: "";
  display: block;
  margin-top: 12px;
  border-bottom: 1px solid rgba(255,255,255,.3);
}
.mega-card img {
  transition: transform .3s ease;
  border-radius: 10px;
}

.mega-card:hover img {
  transform: scale(1.05);
}

.mega-card:hover .mega-title {
  text-decoration: underline;
}
.mega-card a {
    background: #fff;
    padding: 10px;
}

/* =====================
   ハンバーガーボタン
===================== */
.hamburger {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 10001;
  position: fixed;
  top: 26px;
  right: 22px;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #d3011c;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
  bottom: 0;
}


.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { bottom: 0; }
#menu-sp-menu{
  display: none;
}

/* =====================
   SP用メニュー
===================== */
@media (max-width: 768px) {
  .nav-menu{
    display: none;
  }
  .nav-contact{
    display: none !important;
  }
#menu-sp-menu{
  display: block;
  margin: 30px 0;
}
ul#menu-sp-menu a {
    color: #d3011c;
    border: 1px solid #d3011c;
    font-size: 16px;
    padding: 10px 0;
    display: block;
    background: #fff;
    margin: 10px 0;
    padding: 20px 10px;
    border-radius: 10px;
    font-weight: normal;
}
.current_page_item a{
  color: #fff;
  background: #d3011c !important;
}
  .hamburger {
    display: block;
  }

  .spnavbar{
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    padding: 80px 24px 24px;
    transition: right .3s ease;
    z-index: 10000;
  }

  .spnavbar.is-open {
      right: 0;
      display: flex;
      flex-direction: column;
      background: #fff;
      position: fixed;
  }
  
.spnavbar.is-open::before {
    position: absolute;
    left: 20px;
    top: 26px;
    content: "";
    width: 200px;
    height: 28px;
    background: url(../img/logo.png);
    background-size: contain;
    background-repeat: no-repeat;
}

  .menu {
    flex-direction: column;
    gap: 16px;
  }

  .nav-contact {
    display: block;
    margin-top: 32px;
  }

  .hamburger.is-active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

  .mega-menu {
    display: none !important;
  }

  .menu-item:hover .mega-menu {
    display: none !important;
  }
  .menu-item{
    margin: 0;
  }
}
