/*
Theme Name:   tk3 One-Page Theme
Theme URI:    https://example.com/
Author:       あなたの名前
Author URI:   https://example.com/
Description:  株式会社tk3 コーポレートサイト用ワンページテーマ
Version:      1.0
*/

/* ——— カスタムプロパティ ——— */
:root {
  --color-primary:   #005A9C;
  --color-secondary: #F2B705;
  --color-text:      #333333;
  --color-bg:        #FFFFFF;
  --color-section:   #F9F9F9;
  --font-base:       'Noto Sans JP', sans-serif;
  --fs-hero:         3.2rem;
  --fs-h2:           2rem;
  --fs-body:         1rem;
  --lh-body:         1.6;
  --space-sm:        0.5rem;
  --space-md:        1rem;
  --space-lg:        2rem;
  --space-xl:        4rem;
}

/* 以降に Reset や各セクションのスタイルを続けてください… */


/* Reset & Global */
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: var(--lh-body);
}
.container {
  width:90%; max-width:1024px; margin:0 auto;
}
h1 { font-size: var(--fs-hero); margin-bottom: var(--space-md); }
h2 { font-size: var(--fs-h2); margin-bottom: var(--space-md); }

html {
  scroll-behavior: smooth;
}




/* ——— Header ——— */
header {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-lg);
}
nav a {
  color: var(--color-text);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 0.25rem;
  transition: background 0.2s, color 0.2s;
}
nav a:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ── モバイル用固定ヘッダー ── */
@media (max-width: 600px) {
  /* ヘッダー自体を固定 */
  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(6px);
    z-index: 1000;
  }

  /* コンテナは中央寄せ */
  header .container {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* ロゴだけを表示 */
  nav {
    display: none;
  }
}

/* デフォルト（デスクトップ） */
.header-logo {
  height: 60px;   /* お好みのサイズに調整 */
  width: auto;
}

/* モバイル時に小さめに */
@media (max-width: 600px) {
  .header-logo {
    height: 40px; /* スマホ表示では高さ40pxに */
  }
}








/* Hero セクション全体を相対配置＆隠し領域設定 */
#hero {
  position: relative;
  overflow: hidden;
  align-items: center;     /* 上下中央揃え */
  justify-content: center; /* 左右中央揃え */
  min-height: calc(90vh - 80px);
  align-items: center;
  padding: var(--space-xl) 0;
  background: var(--color-section); /* フォールバックカラー */
}

/* 動画を全背景に展開 */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 100%;
  min-width: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}
@media (max-width: 480px) {
  /* Hero 動画を左寄せ */
  #hero .hero-video {
    /* 左端に */
    left: 0;
    /* 縦方向のみ中央に */
    transform: translateY(-50%);
    /* 幅は100%を維持 */
    min-width: 100%;
    width: auto;
  }
}



/* Hero コンテナ */
#hero .container {
  position: relative;
  z-index: 1;
  color: #fff;
　width: 90%;
  margin: 0 auto;
  text-align: left;
}

/* Hero 見出し */
#hero h1 {
  /* スライドイン用 */
  opacity: 0;
  transform: translateX(-50px);
  animation: slideIn 0.8s ease-out forwards;

  /* タイポグラフィ */
  font-family: "ttForts","ttForts Fallback",sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.0;
  margin-bottom: var(--space-md);

  /* 背景ボックス */
  display: inline-block;
  background-color: rgba(255,255,255,0.85);
  color: #000;
}

/* Hero サブテキスト */
#hero p {
  max-width: 520px;
  font-weight: 400;
  font-size: clamp(1rem, 4vw, 1.25rem);
  line-height: 1.5;
  margin-bottom: var(--space-lg);
}

/* モバイル時の調整 */
@media (max-width: 480px) {
  #hero h1 {
    font-size: 2rem;
  }
  #hero p {
    font-size: 0.875rem;
  }
}

/* スライドイン用キーフレーム */
@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}





/* ——— Services ——— */
/* Services カードデザイン */
.services {
  background: var(--color-section);
  padding: var(--space-xl) 0;
}

.services h2 {
  text-align: center;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

/* カード本体 */
.service-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 1rem;
  overflow: hidden;
  padding: var(--space-lg);
  transition: box-shadow .3s, transform .3s;
}

/* サムネイル画像 */
.service-thumb {
  width: 100%;
  overflow: hidden;
  border-radius: .75rem;
}
.service-thumb img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* タイトル */
.service-title {
  font-size: 1.3rem;
  margin: var(--space-md) 0 .5rem;
  margin-bottom: 15px;
  line-height: 1.2;
}
.service-subtitle {
  font-size: .875rem;
  font-weight: normal;
  display: block;
  margin-top: .25rem;
  color: #666;
}

/* 説明文 */
.service-desc {
  flex: 1;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

/* ボタン */
.service-btn {
  align-self: flex-start;
  padding: var(--space-sm) var(--space-md);
  background: #222;
  color: #fff;
  border-radius: .5rem;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.service-btn:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

/* ホバーでカードに影 */
.service-item:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

/* レスポンシブ */
@media (max-width: 600px) {
  .services-list {
    grid-template-columns: 1fr;
  }
  .service-btn {
    width: 100%;
    text-align: center;
  }
}



/* ——— Features ——— */
.features {
  background: var(--color-bg);
  padding: var(--space-xl) 0;
}
.features .h2 {
  text-align: center;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}
.features-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* 各アイテム共通 */
.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

/* 偶数番目は左右反転 */
.feature-item:nth-child(even) {
  flex-direction: row-reverse;
}

/* テキスト領域 */
.feature-text {
  flex: 1;
}
.feature-text h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}
.feature-text p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
}

/* 画像領域 */
.feature-image {
  flex: 1;
}
.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
  object-fit: cover;
}

/* レスポンシブ：スマホは縦並び */
@media (max-width: 768px) {
  .feature-item {
    flex-direction: column !important;
  }
  .feature-item:nth-child(even) {
    flex-direction: column !important;
  }
}




/* ——— About ——— */
#about {
  background: var(--color-section);
  padding: var(--space-xl) 0;
}
#about h2 {
  text-align: center;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}
.company-info {
  display: grid
}

/* ——— About ——— */
#about {
  background: var(--color-section);
  padding: var(--space-xl) 0;
}
#about h2 {
  text-align: center;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}
/* 会社概要 <dl> の２カラムレイアウト */
.company-info {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-sm) var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
}
.company-info dt {
  font-weight: bold;
  padding: var(--space-sm) 0;
}
.company-info dd {
  margin: var(--space-sm) 0;
}


/* About セクション内のマップ */
.map-container {
  width: 90%;
  max-width: 1024px;
  margin: var(--space-lg) auto 0;  /* 上に余白が欲しい場合は var(--space-lg) など */
}

.map-container iframe {
  width: 100%;
  height: 450px;      /* 好きな高さに調整してください */
  border: 0;
  border-radius: 0.5rem;
}




/* ——— Contact ——— */
#contact {
  padding: var(--space-xl) 0;
}
#contact h2 {
  text-align: center;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}
/* フォーム全体のレイアウト */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
/* 入力フィールド */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  font-size: var(--fs-body);
  color: var(--color-text);
}
/* テキストエリア高さ調整 */
.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}
/* 送信ボタン */
.contact-form button {
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-md);
  border: none;
  border-radius: 0.25rem;
  font-size: var(--fs-body);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}
.contact-form button:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
}








/* Hero テキストのスライドイン設定 */
.hero-content .slide-in {
  opacity: 0;
  transform: translateX(-50px);
  /* アニメーション名、時間、イージング、最終状態キープ */
  animation: slideIn 0.8s ease-out forwards;
}

/* 2行目以降を少し遅らせたいなら */
.hero-content .slide-in.delay-1 {
  animation-delay: 0.4s;
}

/* キーフレーム定義 */
@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


