/* =========================================================
   1. 変数・基本設定 (Variables & Base)
========================================================= */
:root {
  --main-black: #000;
  --sub-grey: #f4f4f4;
  --accent-color: #000;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  margin: 0;
  color: var(--main-black);
  background-color: #fff;
  line-height: 1.7;
}

.container {
  max-width: 1200px; /* 'auto' から具体的な最大幅に変更（中央寄せのため） */
  margin: 0 auto;
  padding: 0 4%;
}

/* 共通ユーティリティ */
.section {
  padding: 80px 0;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.sub-title {
  display: block;
  font-weight: bold;
  color: #888;
  margin-bottom: 20px;
  letter-spacing: 5px;
}

.highlight {
  border-bottom: 4px solid #fff;
}

.main-btn {
  display: inline-block;
  padding: 15px 40px;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.main-btn:hover {
  background: #ccc;
}

/* =========================================================
   2. ヘッダー・ナビゲーション (Header & Navigation)
========================================================= */
header {
  background: #fff;
  border-bottom: 1px solid #000;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5px;
}

.header-logo {
  height: 80px;
  width: auto;
  margin-right: auto;
  mix-blend-mode: multiply;
  display: block;
  object-fit: contain;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--main-black);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 8px;
  display: inline-block;
}

.nav-btn {
  background: #000;
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 2px;
}

/* ナビゲーションのホバーエフェクト */
nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--main-black);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

nav a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* =========================================================
   3. ヒーローセクション (Hero)
========================================================= */
.hero {
  height: 70vh;
  background: var(--main-black);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
}

.hero-icon {
  width: 180px;
  margin: 0 auto 30px auto;
  animation: fadeInScale 1.5s ease-out;
  mix-blend-mode: screen;
  filter: brightness(1.2);
  display: block;
  object-fit: contain;
}

.hero h2 {
  font-size: clamp(1.5rem, 5vw, 3rem);
  line-height: 1;
  z-index: 1;
}

@keyframes fadeInScale {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

/* =========================================================
   スマホ専用アクションエリア（PCでは非表示）
========================================================= */
.mobile-action-area {
  display: none; /* デフォルト（PC）では非表示 */
  background: var(--sub-grey); /* ヒーローエリアとの区切りをわかりやすくする背景色 */
  padding: 30px 4%;
  text-align: center;
}

.mobile-regist-btn {
  width: 100%;
  max-width: 350px; /* ボタンが横に広がりすぎないように制限 */
  box-sizing: border-box; /* paddingを含めた幅計算にする */
  background: var(--main-black); /* 目立たせるために黒背景に変更 */
  color: #fff;
}

.mobile-regist-btn:hover {
  background: #333; /* ホバー時は少し明るい黒に */
}

/* =========================================================
   4. メインコンテンツ (Main Sections)
========================================================= */
/* Vision Box */
.vision-box {
  background: var(--sub-grey);
  padding: 60px 40px;
  text-align: center;
  border-radius: 4px;
}

/* Business Content (Issue Grid) */
.issue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.issue-card {
  border: 1px solid #ddd;
  padding: 30px;
}

.issue-card h5 {
  font-size: 1.2rem;
  margin-top: 0;
  border-left: 4px solid #000;
  padding-left: 15px;
}

/* Service Cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.service-card {
  padding: 40px;
  background: #fff;
  transition: 0.3s;
  border: 1px solid transparent;
}

.service-card:hover {
  background: var(--sub-grey);
  border: 1px solid #000;
}

.service-card h4 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  position: relative;
}

/* Company Table */
.company-table {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-collapse: collapse;
}

.company-table th, 
.company-table td {
  padding: 20px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.company-table th {
  width: 30%;
  color: #888;
  font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
  background: #000;
  padding: 80px 0;
}

/* =========================================================
   5. フッター (Footer)
========================================================= */
footer {
  padding: 40px 0;
  background: var(--main-black);
  color: #fff;
  text-align: center;
}

.footer-icon {
  width: 40px;
  filter: brightness(100);
  margin-bottom: 20px;
  mix-blend-mode: multiply;
  display: inline-block;
  object-fit: contain;
}

footer p {
  font-size: 12px;
  opacity: 0.6;
}

/* =========================================================
   6. モーダル・フォーム関連 (Modals & Forms)
========================================================= */
/* Contact Form */
#contactModal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid #ccc;
  padding: 40px;
  background: white;
  z-index: 1000;
  border-radius: 6px;
}

.contactForm {
  display: flex;
  flex-direction: column;
  width: 300px;
  gap: 10px;
}

.input_short { width: 150px; padding: 8px; }
.input_standard { width: 250px; padding: 8px; }
.input_large { width: 100%; height: 150px; padding: 8px; resize: vertical; }

/* Regist Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1001; /* ヘッダーより上に表示 */
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  width: 300px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 20px;
}

.modal-content input {
  padding: 10px;
  font-size: 16px;
}

.modal-content button {
  padding: 10px;
  background: #007bff;
  color: white;
  border: none;
  cursor: pointer;
}

/* Password Toggle */
.password-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-container input {
  width: 100%;
  padding-right: 50px;
}

.toggle-btn {
  position: absolute;
  right: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  user-select: none;
}

.toggle-btn:hover {
  color: #333;
}

/* =========================================================
   7. スマホ・タブレット対応 (Media Queries - max-width: 768px)
========================================================= */
/* ハンバーガーメニュー基本（PCでは非表示） */
.menu-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  display: none;
  height: 60px;
  width: 60px;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.menu-btn span,
.menu-btn span:before,
.menu-btn span:after {
  content: '';
  display: block;
  height: 2px;
  width: 25px;
  border-radius: 3px;
  background-color: #000;
  position: absolute;
  transition: all 0.3s;
}

.menu-btn span:before { bottom: 8px; }
.menu-btn span:after { top: 8px; }
#menu-btn-check { display: none; }

@media screen and (max-width: 768px) {
  /* レイアウト調整 */
  .container {
    width: 90%;
  }

  .section {
    padding: 50px 0;
  }

  .issue-grid {
    grid-template-columns: 1fr;
  }

  .service-container, 
  .flex-box {
    flex-direction: column;
  }

  /* 画像のレスポンシブ化 */
  img {
    max-width: 80%;
    height: auto; /* 80%にすると縦横比が崩れるためautoに変更 */
  }

  /* ヒーローテキスト */
  .hero h2 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }

  .mobile-action-area {
    display: block; /* スマホの時だけ表示する */
  }

  /* ヘッダー・ハンバーガーメニュー関連 */
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    position: relative;
  }

  .header-logo {
    height: 60px;
    margin: 0 auto 0 0;
  }

  /* ハンバーガーボタン表示 */
  .menu-btn {
    position: relative;
    top: 0;
    right: 0;
    display: flex;
  }

  /* スライドメニュー設定 */
  .menu-content {
    position: fixed; /* ヘッダー内に収めず全画面に被せるためfixed */
    width: 100%;
    height: 100vh;
    top: 0;
    left: 100%; /* 初期状態は画面外 */
    z-index: 90;
    background-color: rgba(255, 255, 255, 0.95);
    transition: all 0.5s;
    display: block; 
  }

  /* メニューが開いた時の動き */
  #menu-btn-check:checked ~ .menu-content {
    left: 0;
  }

  /* 三本線を「×」に変えるアニメーション */
  #menu-btn-check:checked ~ .menu-btn span {
    background-color: rgba(255, 255, 255, 0);
  }
  #menu-btn-check:checked ~ .menu-btn span:before {
    bottom: 0;
    transform: rotate(45deg);
  }
  #menu-btn-check:checked ~ .menu-btn span:after {
    top: 0;
    transform: rotate(-45deg);
  }

  /* メニュー内のリストデザイン */
  .menu-content ul {
    padding: 100px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
  }

  .menu-content ul li {
    margin: 20px 0;
  }
}
