/* ==========================================================================
ROUTETRUST Theme Styles
========================================================================== */

/* ==========================================================================
リセット・基本設定
========================================================================== */
:root {
  --primary-color: #003682;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: "Noto Sans JP", sans-serif;
  /* font-size: 10px; */
  font-size: 0.694vw;
  line-height: 1.7;
  color: #333;
  font-feature-settings: 'palt';
}

body {
  overflow-x: hidden;
}

h1,
h2 {
  font-family: "Baskervville", serif;
  font-weight: 400;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

p {
  font-size: 2rem;
}

.font--en {
  font-family: "Baskervville", serif;
}

.font--serif {
  font-family: "Noto Serif", serif;
}

.sp__only {
  display: none;
}

@media (max-width: 768px) {
  html {
    font-size: 1.162vw;
  }

  p {
    font-size: 3.2rem;
  }

  .pc__only {
    display: none;
  }

  .sp__only {
    display: block;
  }

}

/* ==========================================================================
アニメーション
========================================================================== */
.fade__up {
  opacity: 0;
  filter: blur(.2rem);
  transform: translateY(3rem);
  transition: .6s ease-out;
}

.fade__up.active {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.fade__left {
  opacity: 0;
  filter: blur(.2rem);
  transform: translateX(-4rem);
  transition: .4s ease-out;
}

.fade__left.active {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}

.clip__left {
  clip-path: inset(0 100% 0 0);
  transition: .6s linear;
}

.clip__left.active {
  clip-path: inset(0);
}

.clip__top {
  clip-path: inset(0 0 100% 0);
  transition: .6s linear;
}

.clip__top.active {
  clip-path: inset(0);
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeLeft {
  0% {
    opacity: 0;
    transform: translateX(-5rem);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==========================================================================
ヘッダー
========================================================================== */
.header {
  position: relative;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5rem;
  height: 8rem;
  background: rgba(0, 54, 130, 0.75);
  backdrop-filter: blur(1px);
  transition: opacity 0.3s ease;
}

.header__logo img {
  width: 30.3rem;
}

.header__nav {
  display: block;
}

.header__nav__menu {
  display: flex;
  font-family: "Baskervville", serif;
  gap: 3rem;
}

.header__nav__menu a {
  font-size: 2rem;
  font-weight: 400;
  color: #fff;
}

.header__hamburger {
  display: none;
}

.header__mobile__menu {
  display: none;
}

@media (max-width: 768px) {
  .header__container {
    justify-content: center;
  }

  .header__logo img {
    width: 35.3rem;
  }

  .header__nav {
    display: none;
  }

  /* ヘッダーをメニュー表示時に非表示 */
  .header__container.menu__open {
    opacity: 0;
    pointer-events: none;
  }

  /* ハンバーガーメニュー：4本線 */
  .header__hamburger {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 2rem;
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    width: 6rem;
    height: 3.8rem;
    justify-content: space-between;
    z-index: 1001;
  }

  .header__hamburger span {
    width: 100%;
    height: 0.2rem;
    background: #fff;
    transition: all 0.3s ease;
    transform-origin: center;
  }

  /* メニューオープン時：閉じるボタン（×） */
  .header__hamburger.active span {
    background: #fff;
  }

  .header__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(1.4rem, 1.4rem);
  }

  .header__hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-2rem);
  }

  .header__hamburger.active span:nth-child(3) {
    opacity: 0;
    transform: translateX(2rem);
  }

  .header__hamburger.active span:nth-child(4) {
    transform: rotate(-45deg) translate(1.2rem, -1.2rem);
  }

  .header__mobile__menu {
    display: none;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
  }

  .header__mobile__menu.active {
    display: flex;
  }

  .header__mobile__menu img {
    width: 55.5rem;
    margin-bottom: 3rem;
  }

  .header__mobile__nav {
    padding: 2rem;
    border-left: 1px solid #eee;
    width: 55.3rem;
  }

  .header__mobile__nav a {
    display: block;
    padding: 2rem 0;
    font-family: "Baskervville", serif;
    font-size: 5.6rem;
    color: #fff;
  }

  .header__mobile__nav a span {
    font-family: "Noto Serif", serif;
    font-size: 2.8rem;
    padding-left: 2rem;
  }
}


/* ==========================================================================
フッター
========================================================================== */
.footer {
  background: var(--primary-color);
  color: #fff;
  padding: 10.5rem 3.5rem 7.2rem;
}

.footer__container {
  display: flex;
  justify-content: space-between;
  max-width: 112rem;
  margin: 0 auto;
}

.footer__logo img {
  width: 36rem;
  margin: 0 0 3rem;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1.8rem 3rem;
  margin-bottom: 5rem;
}

.footer__nav a {
  font-size: 1.6rem;
}

.footer__info p {
  font-size: 1.4rem;
  line-height: 1.3;
  margin-top: 1em;
}

.footer__copyright p {
  font-size: 1.6rem;
  text-align: right;
}

@media (max-width: 768px) {
  .footer {
    padding: 15rem 3.5rem 7.2rem;
  }

  .footer__container {
    flex-direction: column;
  }

  .footer__logo img {
    width: 58rem;
    margin: 0 auto 3rem;
  }

  .footer__nav {
    margin-top: 6rem;
  }

  .footer__nav a,
  .footer__copyright p,
  .footer__info p {
    font-size: 2.8rem;
  }

  .footer__copyright p {
    text-align: center;
  }
}

/* ==========================================================================
ページ共通コンテンツ
========================================================================== */
.page__content {
  padding-top: 7rem;
}

.page__inner {
  max-width: 112rem;
  margin: 0 auto;
  padding: 6rem 0;
}

@media (max-width: 768px) {
  .page__inner {
    max-width: 78rem;
    margin: 0 auto;
  }
}

h2.com__title {
  font-size: 8rem;
  color: var(--primary-color);
  line-height: 1.2;
}

h2.com__title span {
  font-family: "Noto Serif", serif;
  font-size: 2.8rem;
  font-weight: bold;
  color: #333;
  display: block;
}

h2.com__title--white {
  color: #fff;
}

h2.com__title--white span {
  color: #fff;
}

@media (max-width: 768px) {
  h2.com__title {
    font-size: 12rem;
    line-height: 1.1;
  }

  h2.com__title span {
    font-size: 4.2rem;
  }
}

.page__title {
  font-size: 16rem;
  font-weight: 400;
  color: #E0E1E2;
  line-height: 1.2;
  padding-left: 8rem;
  width: fit-content;
}

.page__title p {
  margin-top: -3.8rem;
}

.page__title span {
  display: block;
  position: relative;
  font-size: 4rem;
  font-weight: bold;
  color: #333;
  background: #fff;
  line-height: 1.2;
  width: fit-content;
  padding-right: 2rem;
  z-index: 2;
}

.page__title p::after {
  content: "";
  display: block;
  font-size: 4rem;
  background-color: #333;
  height: .2rem;
  width: 100%;
  margin-top: -.7em;
}

@media (max-width: 768px) {
  .page__title {
    padding-left: 4rem;
  }

  .page__title span {
    font-size: 4.8rem;
  }

  .page__title p::after {
    margin-top: -.8em;
  }
}

/* ==========================================================================
ボタン
========================================================================== */
.com__button {
  position: relative;
  display: block;
  padding: 1.2rem 5rem;
  font-size: 2rem;
  font-family: "Noto Serif", serif;
  font-weight: bold;
  border: .2rem solid transparent;
  text-align: center;
  margin: auto;
  max-width: 40rem;
  overflow: hidden;
  transition: color 0.4s ease;
}

.com__button p {
  position: relative;
  z-index: 2;
  transition: color 0.4s ease;
}

/* 背景の塗りつぶしエフェクト */
.com__button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--primary-color);
  transition: width 0.4s ease;
  z-index: 1;
}

.com__button--blue {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.com__button--blue:hover {
  color: #fff;
}

.com__button--blue:hover::before {
  width: 100%;
}

.com__button--white {
  border-color: #fff;
  color: #fff;
}

.com__button--white::before {
  background: #fff;
}

.com__button--white:hover {
  color: var(--primary-color);
}

.com__button--white:hover::before {
  width: 100%;
}

/* SVG矢印のスタイル */
.com__button svg {
  position: absolute;
  right: 1.8rem;
  top: 44%;
  width: 8rem;
  z-index: 2;
  transition: right 0.2s ease;
}

.com__button:hover svg {
  right: 1.2rem;
}

.com__button svg path {
  transition: fill 0.2s ease;
}

.com__button.com__button--blue svg path {
  fill: var(--primary-color);
}

.com__button.com__button--blue:hover svg path {
  fill: #fff;
}

.com__button.com__button--white svg path {
  fill: #fff;
}

.com__button.com__button--white:hover svg path {
  fill: var(--primary-color);
}

@media (max-width: 768px) {
  .com__button {
    max-width: 60rem;
  }

  .com__button svg {
    width: 11rem;
  }
}

/* ==========================================================================
FV（共通）
========================================================================== */
.page__fv {
  position: relative;
  color: #fff;
  background: #f9fafb;
  width: 100%;
}

.page__fv img {
  width: 100%;
}

.page__fv__title {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  margin: auto;
  font-size: 8rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-align: center;
  text-shadow: 0 0 2rem #000;
  animation: fadeIn .8s both ease-in-out;
  animation-delay: .1s;
}

.page__fv__title span {
  display: block;
  font-size: 2.8rem;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .page__fv__title {
    font-size: 12rem;
    line-height: 1.0;
  }

  .page__fv__title span {
    font-size: 4.2rem;
  }
}

/* ==========================================================================
お問い合わせ（共通）
========================================================================== */
.footer__contact {
  padding: 10rem 8rem 0;
  background: linear-gradient(180deg, #fff 0%, #fff 83%, var(--primary-color) 17%, var(--primary-color) 100%);
}

.footer__contact__container {
  background-color: #F4F5F6;
  max-width: 112rem;
  margin: 0 auto;
  padding: 10rem 0;
  text-align: center;
}

.footer__contact .footer__contact__text {
  font-weight: 500;
  padding-top: 2rem;
  padding-bottom: 7rem;
}

@media (max-width: 768px) {
  .footer__contact__container {
    padding: 15rem 0;
  }
}

/* ==========================================================================
404
========================================================================== */
.error404__content {
  padding: 10rem 0;
  text-align: center;
}

.error404__text {
  padding-bottom: 10rem;
  text-align: center;
}
