/* 
 * 株式会社Trust Me - 企業サイト CSS
 * ロゴカラー #2F3488 を全体に統一
 */

/* ==================== 
   カスタムプロパティ（CSS変数）
   ==================== */
:root {
  --primary-color: #2F3488;
  --primary-dark: #1f2366;
  --primary-light: #4148a8;
  --primary-accent: #6a75e0;
  --text-dark: #333;
  --text-light: #666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 2px 10px rgba(47, 52, 136, 0.1);
  --shadow-hover: 0 5px 20px rgba(47, 52, 136, 0.2);
}

/* ==================== 
   リセット＆基本スタイル
   ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--white);
}

/* ==================== 
   ヘッダー
   ==================== */
.header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 30px;
  width: auto;
}

/* ナビゲーション */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

/* ==================== 
   ヒーローセクション
   ==================== */
.hero {
  background: linear-gradient(rgba(47, 52, 136, 0.2), rgba(47, 52, 136, 0.2)), url('../images/hero-bg2.jpg');
  background-size: cover;
  background-position: center 70%;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 60px 2rem 160px;
  text-align: center;
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 560px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
  max-width: 900px;
  margin: 0 auto 1rem;
  padding: 0.35rem 1rem;
  background-color: rgba(0, 0, 0, 0.22);
  border-radius: 10px;
  animation: fadeInUp 0.8s ease;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
}

.hero p {
  font-size: 1.2rem;
  max-width: 720px;
  margin: 0 auto 2rem;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease 0.2s both;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

.cta-button {
  display: inline-block;
  background-color: var(--white);
  color: var(--primary-color);
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* ==================== 
   セクション共通
   ==================== */
.section {
  padding: 80px 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-accent));
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 720px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ==================== 
   会社情報セクション
   ==================== */
.company-info {
  background-color: var(--bg-light);
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.info-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.info-card.show {
  opacity: 1;
  transform: translateY(0);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.info-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-card p {
  color: var(--text-dark);
  line-height: 1.8;
}

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

/* ==================== 
   サービスセクション
   ==================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  text-align: center;
  border: 2px solid transparent;
  opacity: 0;
  transform: translateY(20px);
  cursor: pointer;
}

.service-card.show {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.8;
}

/* ==================== 
   ハコビンセクション（特別）
   ==================== */
.hakobin {
  background: linear-gradient(135deg, #cfe6ff 0%, #b7daff 100%);
  color: var(--text-dark);
  padding: 20px 2rem 80px;
  text-align: center;
}

.hakobin .section-title {
  color: var(--primary-color);
}

.hakobin .section-title::after {
  background: var(--primary-color);
}

.hakobin-logo {
  display: block;
  width: 230px;
  max-width: 70%;
  height: auto;
  margin: 40px auto 1.2rem;
  transform: translateY(0);
}

.hakobin-content {
  max-width: 800px;
  margin: 40px auto 0;
}

.hakobin-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

.hakobin-content p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.hakobin-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hakobin-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* ====================
   採用情報ティザー
   ==================== */
.recruit-teaser {
  background: var(--bg-light);
}

.recruit-teaser-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.recruit-teaser-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.6rem;
}

.recruit-teaser-card p {
  color: var(--text-light);
}

/* ==================== 
   お問い合わせセクション
   ==================== */
.contact {
  background-color: var(--bg-light);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item-content h4 {
  color: var(--primary-color);
  margin-bottom: 0.3rem;
}

.contact-item-content p {
  color: var(--text-dark);
  line-height: 1.6;
}

/* お問い合わせフォーム */
.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(47, 52, 136, 0.3);
}

.error-message {
  color: #e74c3c;
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  text-align: center;
}

/* ==================== 
   フッター
   ==================== */
.footer {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  color: var(--white);
  padding: 3rem 2rem 1.5rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 0.8;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ==================== 
   トップへ戻るボタン
   ==================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(47, 52, 136, 0.3);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(47, 52, 136, 0.4);
}

/* ==================== 
   アニメーション
   ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== 
   レスポンシブデザイン
   ==================== */

/* タブレット */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .nav-menu {
    position: fixed;
    top: 64px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--white);
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    gap: 1rem;
    transition: left 0.3s ease;
    box-shadow: var(--shadow);
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .hero h1 {
    font-size: 2.2rem;
    padding: 0.35rem 0.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .company-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* スマートフォン */
@media (max-width: 480px) {
  body {
    font-size: 14.5px;
  }

  .logo img {
    height: 25px;
  }

  .header-container {
    padding: 0.75rem 1rem;
  }

  .hero {
    padding: 96px 1.25rem 72px;
    background-position: center 75%;
    min-height: auto;
  }

  .hero h1 {
    font-size: 1.55rem;
    padding: 0.35rem 0.6rem;
    white-space: nowrap;
  }

  .hero p {
    font-size: 0.98rem;
  }

  .hakobin-logo {
    width: 180px;
    margin: 0.2rem auto 1.2rem;
    transform: translateY(-8px);
  }

  .cta-button {
    padding: 0.8rem 2rem;
    font-size: 1.02rem;
  }

  .section {
    padding: 52px 1.25rem;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .service-card {
    padding: 1.75rem;
  }

  .contact-form {
    padding: 1.75rem;
  }

  .contact-item-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.7rem 0.8rem;
    font-size: 0.98rem;
  }

  .recruit-teaser-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}
