@charset "UTF-8";

/* ========================================
   Typography & Section Layout
======================================== */

* {
  font-family: "kaku-gothic-antique-ann", sans-serif;
  font-style: normal;
}

.en {
  font-family: futura, sans-serif;
  font-style: normal;
}

section {
  padding: 80px 40px;
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto;
}

h1 span {
  font-size: 96px;
  line-height: 120%;
  white-space: nowrap;
}

h2 span {
  font-size: 64px;
  line-height: 100%;
}

h3 span {
  font-size: 64px;
  line-height: 100%;
}

/* ========================================
   Colors（ブランドカラーなど）
======================================== */

.main {
  color: #22589a;
}
.bg_main {
  background-color: #22589a;
}

/* ========================================
   Sections（背景・レイアウト）
======================================== */
/* 背景動画 */
.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1; /* 一番背面に配置 */
  overflow: hidden;
}

.video-bg video {
  min-width: 100%;
  min-height: 100%;
  object-fit: cover; /* 画面いっぱいに広げる */
}

footer {
  position: relative;
  z-index: 10; /* 動画より上に持ってくる */
  background: #fff; /* 背景色を指定して動画を隠す */
}

main {
  position: relative;
  z-index: 1; /* 動画よりは上だけど、ヘッダーよりは下 */
  background: transparent; /* ここは透明にして動画を見せる */
}

/* mv */
/* =================================================
   メインビジュアル (FV) セクション
================================================= */

/* --- 1. 全体レイアウト --- */
.fv {
  width: 100%;
  position: relative;
  background: transparent; /* 背面のグラデーションを活かす */
}

.fv-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
  overflow: hidden; /* アニメーション中のはみ出し防止 */
}

.fv-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  gap: 40px;
  position: relative;
}

/* --- 2. テキストエリア --- */
.fv-text-group {
  flex: 1;
  z-index: 10;
}

.main-copy span {
  display: block;
  /* 初期状態 */
  opacity: 0;
  clip-path: inset(100% 0 0 0);
  /* 速度：0.6秒 / 初速の速いイージング */
  transition:
    clip-path 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease-out;
}

/* --- 3. 画像エリア --- */
.fv-image-group {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: flex-end;
  min-height: 400px; /* 読み込み時のガタつき防止 */
}

/* メイン画像 f1.png */
.fv-image {
  /* width: 90%; */
  position: relative;
  z-index: 1;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  /* 速度：0.8秒 */
  transition:
    clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease-out;
}

.fv-image img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.1);
  transition: transform 3s ease-out;
}

/* 装飾ボックス f2.png */
.fv-decoration {
  position: absolute;
  bottom: -123px;
  right: -77px;
  width: 264px;
  z-index: 2;
  opacity: 0;
  clip-path: inset(0 0 0 100%);
  /* 速度：0.5秒（一番速い） */
  transition:
    clip-path 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease-out;
}

.fv-decoration img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- 4. アニメーション発火状態 --- */
.js-anim.is-active {
  opacity: 1 !important;
  clip-path: inset(0 0 0 0) !important;
}

.js-anim.is-active img {
  transform: scale(1) !important;
}

/* 画面外リセット時は一瞬で隠す */
.js-anim:not(.is-active) {
  transition: none !important;
}

/* --- 5. スマホ対応 (レスポンシブ) --- */
@media screen and (max-width: 768px) {
  .fv-container {
    padding: 80px 5%; /* 上下に余白を確保 */
  }

  .fv-inner {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .fv-text-group {
    width: 100%;
    order: 1;
  }

  .fv-image-group {
    width: 100%;
    order: 2;
    margin-top: 40px;
    min-height: auto;
    justify-content: center;
  }

  .fv-image {
    width: 100%;
  }

  .fv-decoration {
    width: 60%;
    bottom: -72px;
    right: 0;
  }
}

.flex-start {
  align-items: flex-start;
  margin: 0 !important;
  width: fit-content;
}

/* philosophy */
.philosophy .f20 {
  line-height: 60px;
}

.bg_alpha {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(100px);
  -webkit-backdrop-filter: blur(100px);
  padding: 4px 0px 4px 15px;
}

/* greeting */
.greeting .inner {
  background-image: url(img/bg_greeting.png);
  background-size: cover;
  background-position: center;
}

/* message */
.gap-20 {
  gap: 200px;
}
.hidden {
  overflow: hidden; /* これが本命！ */
}

/* --- 円形テキスト：要素に対して180%の巨大サイズ --- */
.circle-text-wrapper {
  position: absolute;
  top: 50%;
  /* 左端をMessageのMあたりに合わせる */
  left: -20%;
  transform: translateY(-50%);

  /* 180%くらいの巨大なサイズ感 */
  width: 140%;
  aspect-ratio: 1 / 1;

  z-index: 1;
  pointer-events: none;
}

.circle-text-wrapper svg {
  width: 100%;
  height: 100%;
  /* viewBox 100に対して巨大な文字を扱うのでvisibleが必須 */
  overflow: visible;
  animation: rotation 30s linear infinite;
}

/* --- 文章部分：円の上に重ねる --- */
.inner {
  position: relative;
  z-index: 2;
}

/* --- くるくる回転アニメーション --- */
@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
/* service */
.card .bg_white {
  width: fit-content;
  padding: 4px 8px;
}
.point::before {
  content: "";
  display: inline-block;
  width: 56px; /* 線の長さ */
  height: 1px; /* 線の太さ */
  background-color: #000000;
}

/* company */
.bg_blue {
  background-image: url(img/bg_blue.png);
  background-size: cover;
  transform: scale(1.01);
}

.company-inner {
  max-width: 640px; /* ご要望の幅 */
  margin: 0 auto; /* 中央寄せ */
  width: 90%; /* スマホ時の左右余白確保 */
}

/* 各行（dl）の調整 */
.company-inner dl {
  padding: 24px 0; /* py-4の代わり（上下のゆとり） */
  margin: 0; /* デフォルトの余白を消す */
}

/* 左側の項目名（dt）を揃える */
.company-inner dt {
  width: 120px; /* 左側の幅を固定（ここが w-20 の代わり） */
  flex-shrink: 0; /* 横幅を固定して潰さない */
}

/* 右側の内容（dd） */
.company-inner dd {
  margin: 0;
  flex: 1; /* 残りの幅いっぱいに広げる */
  line-height: 1.8; /* 行間を広げて読みやすく */
}

/* 線の色の上書き（背景が青いので白の透過にする） */
.company-inner .border-b {
  border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important;
}

/* history */
/* 共通レイアウト */
/* 1. 全体の土台：ここを基準にする */
.history-inner {
  max-width: 720px;
  margin: 0 auto;
  width: 90%;
  padding: 80px 0;
}

/* 2. 線と丸の親：ここを relative にして基準を固定 */
.history-container {
  position: relative;
  /* 丸(24px)がはみ出さないように左に余白をしっかり取る */
  padding-left: 64px;
}

/* 3. 縦線：左端(0)に固定 */
.history-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
}

/* 4. 各行：flexなどはPCのみに限定して、スマホでのズレを防ぐ */
.history-item {
  position: relative;
  margin-bottom: 64px;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
  /* スマホのセンター寄せを強制解除 */
  display: block !important;
  text-align: left !important;
}

.history-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 5. 丸ドット：線の中心に完璧に重ねる (ここが一番大事！) */
.history-item::before {
  content: "";
  position: absolute;
  /* 縦線(2px)の中心に、丸(24px)の中心を置くための絶対値 */
  /* 左に11pxズラせば完璧に重なる */
  left: -75px;
  top: 25px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  z-index: 2;
}

/* --- スマホ設定（デフォルト） --- */
.history-header {
  margin-bottom: 16px;
  display: block; /* 縦並びを確定 */
}

/* --- PC設定（768px以上） --- */
@media screen and (min-width: 768px) {
  .history-item {
    display: flex !important; /* 横並びに戻す */
    align-items: center !important;
    gap: 32px;
  }

  .history-header {
    margin-bottom: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }

  /* PCのみ横線(48px)を表示 */
  .history-year {
    display: flex;
    align-items: center;
  }

  .history-year::after {
    content: "";
    width: 48px;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    display: inline-block;
    margin-left: 16px; /* gap-2相当 */
  }
}

.history-content {
  line-height: 1.8;
}

.history-item:last-child {
  margin-bottom: 0;
}

/* 最初は透明で、20px下に下げておく */
.js-fadein {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 1.2s ease-out,
    transform 1.2s ease-out; /* 1.2秒かけてふわっと */
}

/* JSで is-visible クラスがついたら表示する */
.js-fadein.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* contact */
/* style.css */
.contact-form dt {
  width: 250px;
}
.contact-form dd {
  flex: 1;
  width: 100%;
}
/* 送信ボタン以外（入力欄）だけに当てる */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100% !important;
    padding: 16px !important;
    border: none !important;
    border-radius: 4px !important;
    outline: none !important;
    box-sizing: border-box;
    /* background: #fff !important; */
}


/* CF7が勝手に作るspanタグを制御 */
.wpcf7-form-control-wrap {
  display: block;
}
/* スマホ（768px以下）での表示切り替え */
@media screen and (max-width: 768px) {
  .flexbox {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .flexbox dt {
    width: 100% !important;
    margin-bottom: 8px; /* mg-1相当 */
  }

  .flexbox dd {
    width: 100% !important;
  }
}

button.btn {
  /* ブラウザ固有のスタイルをリセット */
  -webkit-appearance: none;
  appearance: none;
  border: none;
  padding: 0; /* paddingを一旦0にする */

  /* デベロッパーツールに映っていたスタイルを反映 */
  display: inline-block;
  width: 184px;
  height: 56px;
  line-height: 56px; /* 高さと同じ値にすることで上下中央揃えになる */
  text-align: center;
  border-radius: 28px; /* heightの半分を指定すると綺麗な丸になる */

  /* テキストのズレを完全に防ぐ魔法のプロパティ */
  vertical-align: middle;
  overflow: hidden;
}

.gray {
  color: #5f5f5f;
  text-decoration: underline;
}

.clone {
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  display: inline;
  padding: 10px !important;
  line-height: 2;
}

.f64 {
  font-size: 64px;
  line-height: 100%;
}
/* ========================================
   Responsive : max-width 1199px（SP）
======================================== */

@media screen and (max-width: 1199px) {
  section {
    padding: 40px 16px;
    box-sizing: border-box;
  }

  /* mv & 背景SP */
  .mv {
    background-image: url(img/fv_sp.png);
  }

  h1 span {
    font-size: 40px;
  }

  h2 span {
    font-size: 50px;
  }

  h3 span {
    font-size: 50px;
  }

  .gap-20 {
    gap: 16px;
  }

  .f64 {
    font-size: 40px;
    line-height: 100%;
  }

  .f40 {
    font-size: 24px;
  }
  .f32 {
    font-size: 28px;
  }

  .f20 {
    font-size: 16px;
  }

  .philosophy .f20 {
    line-height: 30px;
  }
}

/* ========================================
   Responsive : min-width 1200px（PC）
======================================== */

@media screen and (min-width: 1200px) {
  .inner {
    max-width: 1200px;
    margin: 0 auto;
  }

  .w800 {
    max-width: 800px;
    margin: 0 auto;
  }

  .w1000 {
    max-width: 1000px;
    margin: 0 auto;
  }

  /* 左側の画像固定設定 */
  .images {
    width: 40%;
    height: 100vh;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
  }

  .philosophy .images {
    width: 50%;
  }

  .images p {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    margin: auto;
    transform: translateY(-50%);

    /* --- ふわっとさせるための修正点 --- */
    opacity: 0;
    visibility: hidden;
    /* 1.0sに伸ばすとより優雅になります。ease-in-outで動きを滑らかに。 */
    transition:
      opacity 0.4s ease-in-out,
      visibility 0.4s;
  }

  /* activeクラスがついた画像だけ表示 */
  .images p.active {
    opacity: 1;
    visibility: visible;
  }

  /* 右側のテキスト：スクロール量を稼ぐための余白 */
  .contents {
    width: 50%;
  }

  .contents .card {
    /* テキストが画面中央に来た時に画像が切り替わるよう余白を確保 */
    padding-top: 50vh;
    padding-bottom: 50vh;
  }

  .contents div:last-child {
    padding-bottom: 80vh;
  }

  .greeting img {
    max-width: 40%;
    height: auto;
  }
}
