/* ===== Color Palette ===== */
:root {
    --primary: #006cce;              /* 基本カラー */
    --primary-light: #e6f1fd;        /* 薄いアクセント */
    --text: #333333;                 /* 文字色 */
    --bg: #ffffff;                   /* 背景色 */
    --header-height: 70px;           /* ヘッダー高さ */
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Noto Sans JP", sans-serif;
    color: var(--text);
  }
  
  body {
    background: var(--bg);
    line-height: 1.6;
  }
  
  /* ---------- Container ---------- */
  .container {
    width: 95%;
    margin: 0 auto;
  }
  
  /* ---------- Header ---------- */
  header {
    width: 100%;
    background: transparent; /* FV 背景画像の上に重ねる */
    position: fixed;          /* 文書フローから外し全面に重ねる */
    top: 0;
    left: 0;
    height: var(--header-height);
    z-index: 100;
  }
  
  .nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    color: black;
    font-weight: 700;
    font-size: 0.5rem;
  }
  
  .logo {
    font-weight: 700;
    font-size: 1.75rem;
    color: #ffffff; /* FV 上で視認しやすく */
    text-decoration: none;
    letter-spacing: 0.05rem;
  }
  
  .menu {
    display: flex;
    gap: 2rem;
  }
  
  .menu a {
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    color: #ffffff; /* ヘッダー透過時に白文字 */
  }
  
  .menu a:hover {
    color: var(--primary-light);
  }

  /* ===== スクロール時ヘッダー色 ===== */
header {
    transition: background 0.3s ease, box-shadow 0.3s ease;
  }
  
  header.scrolled {
    background: rgba(255, 255, 255, 0.9); /* 薄い白背景 */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }
  
  /* 文字色変更 */
  header.scrolled .logo {
    color: var(--text);
  }
  header.scrolled .menu a {
    color: var(--text);
  }
  
  
  /* ---------- Hero / FV ---------- */
  #fv {
    background: url("../images/fv-tainer.png") center/cover no-repeat;
    min-height: 100vh;
    padding-top: var(--header-height);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
  }
  
  #fv::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1; /* ← 追加: オーバーレイを下に */
  }
  
  .fv-content {
    position: relative;
    color: #ffffff;
    text-align: left;
    max-width: 1300px;
    width: 100%;
    padding-left: 5vw;
    z-index: 2; /* ← 追加: テキストをオーバーレイの上に */
  }
  

  .fv-content h1 {
    font-size: 3.5vw;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
  }
  
  .fv-content .en {
    display: block;
    font-size: clamp(2rem, 6vw, 5rem);
    color: #ffffff;
  }
  
  .fv-content .subtext {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: 500;
    text-align: left;
    font-weight: 700;

  }
  
  
  .fv-content h1 {
    font-size: clamp(1.8rem, 4vw + 1rem, 3rem);
    font-weight: 700;
    color: white;
  }
  
  /* ---------- Section Base ---------- */
  section {
    padding: 4rem 0;
  }
  
  section h2 {
    font-size: 2rem;
    padding-bottom: 13px;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text);
    position: relative;
  }

  section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1a237e, #5c6bc0);
  }
  

  /* ---------- News section ---------- */
  #news {
    background: #fafafa;
    padding: 4rem 0;
  }
  
  #news h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text);
    position: relative;
  }
  
  #news h2::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1a237e, #5c6bc0);
  }
  
  .news-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .news-list li {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #ddd;
  }
  
  .news-date {
    font-weight: bold;
    color: #232C87;
    min-width: 100px;
  }
  
  .news-text {
    color: var(--text);
  }

  

  /* ---------- Business Cards ---------- */
  #business{
    width: 70%;
    margin: auto;
  }
  #business .cards {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(3, 1fr);
  }
  
  @media (max-width: 768px) {
    #business .cards {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 500px) {
    #business .cards {
      grid-template-columns: 1fr;
    }
  }
  
  .card {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.5rem;
    transition: box-shadow 0.2s ease;
    background: #fff;
  }
  
  .card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }
  
  .card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: #1A237E;
    position: relative;
    display: inline-block;
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
  }
  
  h3::after {
    content: "";
    display: block;
    width: 40px; /* 下線の長さ */
    height: 4px; /* 下線の太さ */
    background: linear-gradient(to right, #1a237e, #5c6bc0); /* グラデーション */
    margin-top: 0.4rem;
  }

  /* ---------- Company Table ---------- */
  /* 会社概要テーブルに枠線を付ける */
#company table,
#company th,
#company td {
  border: 1px solid #cccccc; /* 色は適宜調整 */
}


  #company table {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    border-collapse: collapse;
  }
  
  #company th,
  #company td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
    vertical-align: top;
  }
  
  #company th {
    width: 35%;
    background: #f2f4f8;
    font-weight: 600;
  }
  
  /* ---------- Footer ---------- */
  footer {
  background: #191919;
  color: white;
  padding: 3rem 5vw 1rem;
  
}

footer small{
    font-size: 12px;
    color: white;
    
  }

.footer-upper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 2rem;
}

.footer-logo {
  font-size: 3rem;
  font-weight: 800;
  color: #f5f5f5; /* ← さらに薄く */
  opacity: 80%;
  font-style: italic;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 1.5rem;
  font-weight: 500;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-lower {
  text-align: center;
  font-size: 0.8rem;
  color: #ccc;
}

  