@charset "UTF-8";

/* ==========================================================================
   Base & Reset
   ========================================================================== */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  color: #222222;
  background-color: #fafafa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.8;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================================
   1. 画面左上の透過固定ロゴ（本文幅 960px の左端と整列）
   ========================================================================== */
.floating-logo {
  position: fixed;
  top: 24px;
  /* 画面幅が広い時は 960px 本文の左端と整列、画面が狭い時は左から 24px */
  left: max(24px, calc((100vw - 960px) / 2 + 24px));
  right: auto;
  z-index: 2000;
  display: block;
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.floating-logo img {
  width: auto;
  height: 40px;
  display: block;
}

.floating-logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* ==========================================================================
   2. TOP画像上の透過ヘッダー（初期表示）
   ========================================================================== */
.top-nav-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
}

.top-nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 24px;
  display: flex;
  justify-content: flex-end; /* 右寄せ */
  align-items: center;
}

/* TOP写真上の文字色（白） */
.nav-transparent a {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.nav-transparent a:hover {
  color: #ffffff;
}

.nav-transparent .nav-contact {
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
}

.nav-transparent .nav-contact:hover {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
}

/* ==========================================================================
   3. スクロール出現ヘッダー（白背景バー）
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(250, 250, 250, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eaeaea;
  z-index: 1000;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: flex-end; /* 右寄せ */
  align-items: center;
}

/* ナビゲーション共通スタイル */
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #555555;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav a:hover {
  color: #000000;
}

.nav .nav-contact {
  padding: 5px 12px;
  border: 1px solid #222222;
  border-radius: 2px;
  color: #111111;
  font-size: 12px;
}

.nav .nav-contact:hover {
  background: #111111;
  color: #ffffff;
}

/* Instagram アイコンリンク（SVG） */
.nav .nav-sns {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

.sns-icon {
  width: 19px;
  height: 19px;
  vertical-align: middle;
  transition: transform 0.2s ease, stroke 0.2s ease, opacity 0.2s ease;
}

/* TOP写真上の白アイコン */
.nav-transparent .sns-icon {
  stroke: rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

.nav-transparent .nav-sns:hover .sns-icon {
  stroke: #ffffff;
  transform: scale(1.1);
  opacity: 1;
}

/* スクロール固定ヘッダー内のアイコン（ダークグレー） */
.site-header .sns-icon {
  stroke: #444444;
}

.site-header .nav-sns:hover .sns-icon {
  stroke: #000000;
  transform: scale(1.1);
}

/* ==========================================================================
   4. ヒーロー背景写真スライダー（画面最上部・高さ100vh）
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #111111;
  padding: 0 24px;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slider::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 2;
}

.bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: bgCrossfade 20s infinite; /* 20秒周期に変更 */
}

/* 4枚の背景画像と表示開始タイミング（5秒刻み） */
.bg-slide.img-1 {
  background-image: url('images/BLUE.webp');
  animation-delay: 0s;
}

.bg-slide.img-2 {
  background-image: url('images/ORANGE.webp');
  animation-delay: 5s;
}

.bg-slide.img-3 {
  background-image: url('images/BEACH.webp');
  animation-delay: 10s;
}

.bg-slide.img-4 {
  background-image: url('images/FOREST.webp');
  animation-delay: 15s;
}

/* 4枚用に調整したキーフレームアニメーション */
@keyframes bgCrossfade {
  0% {
    opacity: 0;
    transform: scale(1.0);
  }
  5% {
    opacity: 1; /* フェードイン完了 */
  }
  22% {
    opacity: 1; /* 表示維持 */
  }
  27% {
    opacity: 0; /* 次の画像へフェードアウト */
    transform: scale(1.04); /* 緩やかなズーム */
  }
  100% {
    opacity: 0;
    transform: scale(1.0);
  }
}

.hero-inner {
  position: relative;
  z-index: 10;
  max-width: 960px;
  width: 100%;
  padding: 60px 0;
  color: #ffffff;
}

.hero-sub {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 20px 0;
  text-transform: uppercase;
}

.hero-title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.03em;
  color: #ffffff;
  margin: 0 0 24px 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 680px;
  margin: 0;
  line-height: 1.9;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   5. メインコンテンツ共通レイアウト
   ========================================================================== */
.main-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  border-bottom: 1px solid #eaeaea;
}

.section-header {
  margin-bottom: 36px;
}

.sec-en {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #999999;
  display: block;
  margin-bottom: 6px;
}

.sec-title {
  font-size: 26px;
  font-weight: 600;
  color: #111111;
  margin: 0;
  letter-spacing: 0.05em;
}

.sec-lead {
  font-size: 15px;
  color: #444444;
  line-height: 1.9;
  margin: 0 0 44px 0;
  max-width: 760px;
}

/* ==========================================================================
   WORKS (グリッドカード)
   ========================================================================== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: #ffffff;
  border: 1px solid #e7e7e7;
  padding: 36px 32px;
  border-radius: 4px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  border-color: #bbbbbb;
  transform: translateY(-2px);
}

.card-num {
  font-size: 12px;
  font-weight: 700;
  color: #999999;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #111111;
}

.card p {
  font-size: 14px;
  color: #555555;
  margin: 0;
  line-height: 1.8;
}

/* ==========================================================================
   TRAINING (研修リスト)
   ========================================================================== */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-item {
  background: #ffffff;
  border: 1px solid #e7e7e7;
  padding: 32px;
  border-radius: 4px;
}

.service-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  background: #f0f0f0;
  color: #555555;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.service-item h3 {
  font-size: 19px;
  font-weight: 600;
  color: #111111;
  margin: 0 0 10px 0;
}

.service-item p {
  font-size: 14px;
  color: #555555;
  margin: 0;
  line-height: 1.8;
}

/* ==========================================================================
   SERVICES (4事業グリッド)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.col-box {
  background: #ffffff;
  border: 1px solid #e7e7e7;
  padding: 40px 32px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}

.col-label {
  font-size: 11px;
  font-weight: 700;
  color: #999999;
  letter-spacing: 0.16em;
  display: block;
  margin-bottom: 12px;
}

.col-box h3 {
  font-size: 20px;
  font-weight: 600;
  color: #111111;
  margin: 0 0 14px 0;
}

.col-box p {
  font-size: 14px;
  color: #555555;
  margin: 0;
  line-height: 1.85;
}

/* ==========================================================================
   INSTRUCTORS (講師陣)
   ========================================================================== */
.instructors-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.instructor-card {
  background: #ffffff;
  border: 1px solid #e7e7e7;
  padding: 36px;
  border-radius: 4px;
}

.inst-role {
  font-size: 12px;
  font-weight: 600;
  color: #777777;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.inst-name {
  font-size: 22px;
  font-weight: 600;
  color: #111111;
  margin: 0 0 18px 0;
}

.inst-sub {
  font-size: 13px;
  font-weight: 400;
  color: #888888;
  margin-left: 10px;
  letter-spacing: 0.05em;
}

.inst-bio {
  font-size: 14px;
  color: #444444;
  line-height: 1.95;
  margin: 0;
  text-align: justify;
}

/* ==========================================================================
   ABOUT (会社概要テーブル)
   ========================================================================== */
.about-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid #e7e7e7;
  border-radius: 4px;
  overflow: hidden;
}

.about-table th,
.about-table td {
  padding: 20px 24px;
  border-bottom: 1px solid #ebebeb;
  font-size: 14px;
  line-height: 1.8;
  vertical-align: top;
}

.about-table tr:last-child th,
.about-table tr:last-child td {
  border-bottom: none;
}

.about-table th {
  width: 22%;
  font-weight: 600;
  color: #333333;
  background-color: #fbfbfb;
  border-right: 1px solid #ebebeb;
  white-space: nowrap;
}

.about-table td {
  color: #444444;
}

.biz-list {
  margin: 0;
  padding-left: 20px;
}

.biz-list li {
  margin-bottom: 4px;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-section {
  border-bottom: none;
}

.contact-lead {
  font-size: 15px;
  color: #444444;
  line-height: 1.8;
  margin-bottom: 30px;
}

.contact-box {
  background: #ffffff;
  border: 1px solid #e7e7e7;
  padding: 36px;
  border-radius: 4px;
  text-align: center;
}

.contact-address {
  font-size: 18px;
  font-weight: 600;
  color: #111111;
  margin: 0 0 10px 0;
}

.contact-notice {
  font-size: 13px;
  color: #888888;
  margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #181818;
  color: #888888;
  padding: 50px 24px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-size: 14px;
  color: #dddddd;
  letter-spacing: 0.08em;
}

.copyright {
  font-size: 12px;
  margin: 0;
}

/* ==========================================================================
   スマートフォン縦画面・モバイル対応（重なり防止）
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. 左上固定ロゴ：スマホ用にすっきりサイズ調整 */
  .floating-logo {
    top: 14px;
    left: 16px;
  }
  .floating-logo img {
    height: 26px; /* ロゴの高さを抑えて圧迫感をなくす */
  }

  /* 2. TOP写真上の透過ヘッダー */
  .top-nav-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }

  .top-nav-inner {
    padding: 50px 16px 12px 16px; /* 上部に50px余白を空け、左上ロゴの下にメニューを落とす */
    justify-content: center;       /* メニューを中央揃えに */
  }

  /* 3. スクロール出現ヘッダー */
  .site-header {
    background: rgba(250, 250, 250, 0.98);
  }

  .header-inner {
    padding: 48px 16px 12px 16px; /* 上部に余白を確保してロゴと分離 */
    justify-content: center;
  }

  /* ナビゲーションメニューの配置とフォントサイズ */
  .nav {
    display: flex;
    flex-wrap: wrap;              /* 画面幅に収まらない場合は自然に折り返す */
    justify-content: center;
    align-items: center;
    gap: 8px 14px;                /* リンク同士の間隔 */
  }

  .nav a {
    font-size: 11px;              /* 文字をややコンパクトに */
    letter-spacing: 0.05em;
  }

  .nav .nav-contact {
    padding: 3px 8px;
    font-size: 10px;
  }

  /* Instagramアイコン */
  .sns-icon {
    width: 16px;
    height: 16px;
  }

  /* ヒーロー写真エリアの余白 */
  .hero {
    min-height: 85vh;
  }

  .hero-inner {
    padding: 100px 0 40px;
  }

  .hero-title {
    font-size: 24px;
    line-height: 1.5;
  }

  .hero-desc {
    font-size: 14px;
  }

  /* メインセクション */
  .section {
    padding: 60px 0;
  }

  .works-grid,
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 会社概要テーブル */
  .about-table,
  .about-table tbody,
  .about-table tr,
  .about-table th,
  .about-table td {
    display: block;
    width: 100%;
  }

  .about-table th {
    border-right: none;
    border-bottom: none;
    padding-bottom: 4px;
    background: transparent;
  }

  .about-table td {
    padding-top: 0;
    padding-bottom: 18px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}