/* Google Fontsの読み込み */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&family=Playwrite+AU+QLD:wght@400&display=swap');

:root {
  --font-heading: 'Playwrite AU QLD', cursive;
  --font-body: 'Noto Sans JP';
  --color-background: #ffffff; 
  --color-text: #333333;
  --color-card-bg: #FFFFFF;
  --color-heading: #378D8D;
}

/* ▼ 基本設定 */
*, *::before, *::after {
    box-sizing: border-box;
}
/* リセットCSS (基本的なブラウザのデフォルトスタイルを調整) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* paddingやborderを幅と高さに含める */
}
body {
  font-family: var(--font-body);
  color: var(--color-text);
  margin: 0;
  padding-top: 4rem;
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
.video-background {
  position: fixed; /* または absolute */
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh; /* 画面の高さいっぱい */
  z-index: -2; /* 他のコンテンツの背面に配置 */
  overflow: hidden;
}

.video-background__video {
  width: 100%;
  height: 100%;
  /* 縦横比を維持したまま、要素全体を覆うように拡大・縮小 */
  object-fit: cover; 
}
.video-background__video__sp {
    display: none;
}
.confirm-body {
  background-color: #ffffff;
}
/* 6. Responsive Adaptation (Mobile) */
@media (max-width: 768px) {
  body {
    padding: 0;
  }
  main {
    padding: 0 ;
  }
}
@media (max-width: 640px) {
   .video-background__video {
    display: none;
   } 
   .video-background__video__sp {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; 
}
}
a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}


/* ▼ 背景映像 */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

/* ▼ ヘッダー（スマホ・PC共通） */
.header {
    position: fixed; /* 画面上部に固定 */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1920px;
    margin: 0 auto;
    padding: 20px 40px;
}
.header__background {
    background-color: rgba(0,73,88,0.7);
}
.header__logo a {
    width: 400px;
    transition: opacity 0.3s;
}
.header__logo a img {
    width: 100%;
    margin-top: 0.5rem;
}

/* ▼ スマホ・タブレット版のスタイル（デフォルト） */
.header__nav-pc {
    display: none; /* PCナビは隠す */
}

.contact-button {
    display: inline-block;
    background-color: #004a4e;
    color: #ffffff;
    font-size: 18px;
    padding: 12px 30px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 4px;
}
.contact-button:hover {
    background-color: #378D8D;
}
.step-button {
    display: inline-block;
    background-color: #004a4e;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.3;
    padding: 19px 30px 20px 30px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 4px;
}
.step-button:hover {
    background-color: #378D8D;
}



/* ▼ パソコン版のスタイル（画面幅769px以上で適用） */
@media (min-width: 909px) {
    .header__inner {
    padding: 20px 45px;
    }
    .header__logo {
    width: 300px;
    }    
    .modal-nav__button {
        display: none; /* ハンバーガーは隠す */
    }

    .header__nav-pc {
        display: block; /* PCナビを表示 */
    }

    .header__nav-pc ul {
        display: flex;
        align-items: center;
        gap: 40px; /* メニュー間のスペース */
        color: #ffffff;
        font-size: 18px;
        font-weight: 600;
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    }
    .nav-button {
        color: #ffffff;
        transition: color 0.3s, color 0.3s;
    }      
    .nav-button:hover {
        color: #378D8D;
    }
}
@media (max-width: 745px) {
        .header__inner {
        padding: 10px 20px 0;
        }
        .header__logo  {
        width: 275px;
        }
    }
@media (max-width: 385px) {
        .header__background {
        background-color: rgba(0,73,88,0.5);
        height: 90px;
        }
        .header__logo  {
        width: 200px;
        padding-top: 2px;
        }
    }
/* ▼ フッター（ここから追加） */
.footer {
    background-color: rgba(0,51,62,0.9);
    backdrop-filter: blur(2px);
    background-image: url(../img/9_Footer_LineDrawing_G.png);
    background-repeat: no-repeat;
    background-size: 23vw;
    background-position: 80% center;
    color: #ffffff;
    padding: 90px 40px 30px;
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    align-items: flex-start;
}

.footer__info {
    margin-right: 70px;
    flex-shrink: 0;
}
.company-name {
    font-size: 18px;
}
.ceo-name, .location {
    font-size: 14px;
}
.footer__info-sp {
    display: none;
}
.footer__logo {
    display: block;
    max-width: 350px;
    margin-bottom: 400px;
    transition: opacity 0.3s;
}
.footer__logo img {
    width: 100%;
}

.footer__address {
    font-size: 14px;
    line-height: 1.7;
    color: #BCBCBC;
}

.footer__nav {
    margin-top: 20px; /* ロゴの高さと合わせるため微調整 */
}

.footer__nav ul {
    display: flex;
    gap: 30px;
    display: block;
}
.footer__nav ul li {
    padding-bottom: 40px;
}
.privacy-button {
    text-decoration: underline;
}
.footer__nav a {
    font-size: 18px;
    font-weight: 600;
    transition: opacity 0.3s;
}    
.footer__nav a:hover {
    opacity: 0.7;
}
.footer__contact-button {
    display: inline-block;
    background-color: #ffffff;
    color: #004a4e;
    font-size: 18px;
    padding: 12px 30px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 4px;
}
.footer__contact-button:hover {
    background-color: #378D8D;
    color: #ffffff;
}
.footer__bottom {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px auto 0;
    padding-top: 30px;
}
.footer__sns {
    width: 40px;
    margin-top: 130px;
}
.footer__sns img {
    width: 100%;
}
.footer__kookaburra-image {
    width: 300px;
}
.footer__kookaburra-image img {
    width: 100%;
}
.footer__copyright {
    color: #A7A7A7;
    font-size: 12px;
}

/* --- Responsive for Footer --- */
@media (max-width: 768px) {
    .footer {
        padding: 40px 20px 20px;
        background-size: 60vw;
        background-position: 80% 20%;
        color: #ffffff;
    }
    .footer__inner {
        flex-direction: column;
        /* align-items: center; */
        text-align: center;
    }
    .footer__info p {
        display: none;
    }
    .footer__info-sp {
        display: block;
        margin-top: 80px;
    }
    .footer__logo {
        margin-bottom : 40px;
    }

    .footer__nav {
        width: 100%;
        margin : 0;
        text-align: left;
    }

    .footer__nav ul {
        flex-direction: column;
        gap: 20px;
    }
    .footer__sns {
    margin: 90px auto 0;
    }
    .footer__bottom {
        flex-direction: column-reverse;
        gap: 20px;
        width: 100%;
    }
}

/* 画像をふわっと表示させる */
.fadeInUp {
    opacity: 0;
    transform: translateY(40px); /* 下から */
    transition: all 0.8s ease-out;
}
.fadeInUp.active {
  opacity: 1;
  transform: translateY(0);
}

/* 横からスッと表示されるアニメーション用のスタイル */
.slideInFromLeft {
  transition: transform 0.8s ease-out, opacity 0.8s ease-out; /* アニメーションの変化を定義 */
  transform: translateX(-50px); /* 初期状態：左に50pxずらす */
  opacity: 0;                   /* 初期状態：透明にする */
}

/* activeクラスがついたら、元の位置に戻り、不透明になる */
.slideInFromLeft.active {
  transform: translateX(0);
  opacity: 1;
}

/* --- to top button --- */
.back-to-top-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    right: 40px;
    bottom: 30px;
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
    background-image: url('../img/to-top.png');
    background-size: 150%; 
    background-position: 44% 41%; /* 中央に配置 */
    background-repeat: no-repeat; /* 繰り返しなし */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}
.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); 
}