* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Helvetica Neue", "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP",
    sans-serif;
  line-height: 1.6;
  color: #1e2b3c;
  background-color: #fafafa;
}

/* Logo */
.logo {
  height: 18vh;
  background-color: white;
  padding: 1rem 2rem;
  background-image: url("imgs/セキュリティのサカイ_0911 1.png");
  background-size: 60% auto;
  background-position: 65% center;
  background-repeat: no-repeat;
  position: relative;
}

/* Hero full screen image */
.hero {
  height: 130vh;
  background-image: url("imgs/TIEN4.png");
  background-size: 100% auto;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* Surface Pro 7 */
@media (max-width: 912px) {
  .hero {
    height: 45vh;
    background-size: 100% auto;
    background-position: center;
  }
}

/* Ipad mini */
@media (max-width: 768px) {
  .hero {
    height: 50vh;
    background-size: 100% auto;
    background-position: center;
  }
}

@media (max-width: 720px) {
  .hero {
    height: 45vh;
    background-size: 100% auto;
    background-position: center;
  }
}

/* Iphone 14Promax */
@media (max-width: 430px) {
  .hero {
    height: 30vh;
    background-size: 100% auto;
    background-position: center;
  }
}

/* 4 navigation buttons */
.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  background-color: #ffffff;
  padding: 1.5rem 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid #e0e7ed;
  border-bottom: 5px solid rgb(65, 0, 127);
}

.nav-btn {
  background-color: #f0f4f9;
  color: #0a3147;
  padding: 0.9rem 2.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  border-radius: 40px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  border: 1px solid #d6dee7;
  letter-spacing: 0.03em;
}

.nav-btn:hover {
  background-color: #e8491d;
  background-color: rgb(65, 0, 127);
  color: white;
  border-color: rgb(65, 0, 127);
  transform: translateY(-2px);
}

/* Main content container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 0 1.5rem;
}

/* Sections common */
section {
  margin-bottom: 3.5rem;
  scroll-margin-top: 2rem; /* offset for better anchor view */
}

h2 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #0a3147;
  border-left: 8px solid rgb(65, 0, 127);
  padding-left: 1.2rem;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

h3 {
  font-size: 1.6rem;
  font-weight: 500;
  color: #1e3c5a;
  margin-bottom: 1.2rem;
}

/* 事業案内・求人 テキスト */
.lead-text {
  font-size: 1.2rem;
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 20px;
  line-height: 1.9;
  color: #1f2f40;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

/* 採用問い合わせブロック */
.recruit-contact {
  background: linear-gradient(145deg, #eef3f9, #ffffff);
  border: 1px solid #bdd3e8;
  border-radius: 40px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 3rem 0 2rem 0;
  box-shadow: 0 8px 18px rgba(0, 40, 70, 0.08);
}

.recruit-contact h3 {
  font-size: 1.9rem;
  font-weight: 600;
  color: #0a3147;
  margin-bottom: 1.2rem;
}

.external-btn {
  display: inline-block;
  background-color: rgb(65, 0, 127);
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 1rem 4rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 12px rgb(65, 0, 127);
  transition:
    background-color 0.2s,
    transform 0.2s;
  border: none;
  letter-spacing: 0.1rem;
}

.external-btn:hover {
  background-color: rgb(115, 11, 213);
  transform: scale(1.02);
}

/* FAQ */ 
/* .faq-item {
  background-color: white;
  border-radius: 20px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.02);
  border: 1px solid #e6edf4;
} */

/* .question {
  font-weight: 700;
  color: #0f3b5c;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.question::before {
  content: "Q.";
  color: #e8491d;
  font-weight: 800;
  font-size: 1.6rem;
  margin-right: 0.8rem;
}

.answer {
  color: #2a4055;
  padding-left: 2.6rem;
  position: relative;
}

.answer::before {
  content: "A.";
  color: #0a6e9c;
  font-weight: 700;
  font-size: 1.4rem;
  position: absolute;
  left: 0;
  top: -0.1rem;
} */

/* 会社概要 テーブル風 */
.company-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0.8rem 1rem;
  background-color: white;
  border-radius: 28px;
  padding: 2rem 2.5rem;
  border: 1px solid #dce5ef;
  box-shadow: 0 6px 14px rgba(0, 20, 40, 0.04);
  
}

.company-item {
  display: contents;
}

.company-label {
  font-weight: 700;
  color: #1f4460;
  border-bottom: 1px dashed #b8cbd9;
  padding: 0.7rem 0;
  /* text-align: center; */
}


.company-value {
  color: #1b2e41;
  border-bottom: 1px dashed #d0dee9;
  padding: 0.5rem 0;
}

.list {
  list-style: none;
}

.list li::before {
  content: "〇";
  font-size: 20px;   /* chỉnh kích thước */
  margin-right: 8px; /* khoảng cách với chữ */
}

/* アクセス */
.access-block {
  background-color: white;
  border-radius: 28px;
  padding: 2rem 2.5rem;
  border: 1px solid #dce5ef;
}

.address {
  font-size: 1.2rem;
  margin: 1.2rem 0 1.8rem 0;
  padding-left: 1rem;
  border-left: 4px solid rgb(65, 0, 127);
}

/* 地図プレースホルダ（map placeholder） */
.map-placeholder {
  background: #e2eaf2;
  height: 320px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2c577b;
  font-size: 1.6rem;
  font-weight: 500;
  border: 2px dashed #8daec9;
  margin-top: 1.8rem;
  background-image:
    radial-gradient(circle at 20px 20px, #b6cfe6 2px, transparent 2px),
    linear-gradient(to right, #b0c9df, #b0c9df);
  background-size:
    40px 40px,
    100% 100%;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.map-placeholder span {
  background: rgba(255, 255, 255, 0.7);
  padding: 0.8rem 2rem;
  border-radius: 60px;
  backdrop-filter: blur(3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* フッター（簡単に） */
.footer-note {
  text-align: center;
  padding: 2rem;
  color: #6e8ba3;
  border-top: 1px solid #d2e0ec;
  /* margin-top: 2rem; */
  background-color: #f3f7fc;
}

/* レスポンシブ */
@media (max-width: 700px) {
  .nav-buttons {
    gap: 0.8rem;
    padding: 1rem;
  }
  .nav-btn {
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
  }
  .logo {
    height: 10vh;
  }
  h2 {
    font-size: 1.9rem;
  }
  .company-grid {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .company-label {
    border-bottom: none;
    padding-bottom: 0.2rem;
  }
  .company-value {
    padding-top: 0;
    margin-bottom: 0.8rem;
  }
  .recruit-contact h3 {
    font-size: 1.5rem;
  }
  .external-btn {
    font-size: 1.3rem;
    padding: 0.8rem 2rem;
  }
  .map-placeholder {
    height: 220px;
    font-size: 1.2rem;
  }
}

/* Nút back to top */
#back-to-top {
  display: none; /* Ẩn khi chưa cuộn */
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  width: 30px;
  height: 30px;
  background-color: #e8491d;
  color: white;
  border: none;
  border-radius: 10%;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition:
    opacity 0.3s,
    transform 0.3s;
  opacity: 0.8;
}

#back-to-top:hover {
  opacity: 1;
  transform: scale(1.1);
}

    /* 特別スタイル: 挨拶文の後ろに余白を作り、写真を中央配置 */
    .greeting-text {
      border-bottom: none !important; /* 既存の破線を消す */
    }
    /* ポートレート専用セル: グリッドを2列にまたがせて中央寄せ */
    .portrait-cell {
      /* grid-column: 1 / -1; */
      display: flex;
      justify-content: center;
      /* align-items: center ; */
      margin: 1.5rem 0 0.5rem 0;
    }

    .portrait-frame {
      width: 150px;
      height: 170px;
      /* border-radius: 100px / 120px; */
      background: linear-gradient(135deg, #b1c6d9, #7f9ebc);
      box-shadow: 0 16px 30px -8px rgba(30, 40, 70, 0.3);
      display: flex;
      align-items: flex-end;
      justify-content: center;
      overflow: hidden;
      border: 4px solid white;
      outline: 1px solid #d0ad6f;
      transition: transform 0.2s ease;
    }

    .portrait-frame:hover {
      transform: scale(1.02);
    }

    /* 実際の画像の代わりに背景グラデーション＋シルエット風アイコン */
    .portrait-image {
      width: 100%;
      height: 100%;
      background-image: url('imgs/画像.png');
      background-size: cover;
      background-position: center 30%;
      background-repeat: no-repeat;
    }

    .portrait-caption {
      margin-top: 1rem;
      font-size: 0.8rem;
      font-weight: 600;
      color: #1c3f5c;
      background: #f0f6fe;
      padding: 0.4rem 1rem;
      /* border-radius: 60px; */
      display: inline-block;
      box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }