/* ===============================
   基本設定
================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: #333;
  background: #fafafa;
}

/* TOP画像を画面幅いっぱいに */
.top-visual img {
    width: 100%;
    height: auto;
    display: block;
}

/* セクション共通 */
section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
}

h2 {
  text-align: center;
  font-size: 2.4rem;
  margin: 0 auto 40px;
  position: relative;
  display: block;
}


h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #009688;
  margin: 15px auto 0;
  border-radius: 2px;
}


/* ===============================
   HEROセクション
================================= */
.hero {
  height: 80vh;
  background: url('https://images.unsplash.com/photo-1506466010722-395aa2bef877?auto=format&fit=crop&w=1400&q=80')
    center/cover no-repeat;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.hero-content {
  z-index: 2;
  text-align: center;
}

.hero-content h1 {
  font-size: 3.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  animation: fadeInUp 1.2s ease both;
}

.hero-content p {
  font-size: 1.4rem;
  opacity: 0.9;
  animation: fadeInUp 1.8s ease both;
}


@keyframes blink {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/* アニメーション：下からふわっと */
@keyframes fadeInUp {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ===============================
   強み・カード
================================= */
.strengths .cards {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 28px rgba(0,0,0,0.12);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

/* ===============================
   事業内容：横スクロール
================================= */

/* ▼ 2列グリッド表示（scroll-wrapper → services-grid） */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 30px;
    padding: 0 20px;
}

.services-grid .item {
    background: #009688;
    color: #fff;
    border-radius: 8px;
    padding: 18px 12px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
}

/* ▼ スマホ（1列） */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ===============================
   求める人物像
================================= */
.persons ul {
  max-width: 700px;
  margin: auto;
  list-style: none;
}

.persons li {
  background: #fff;
  padding: 18px 25px;
  margin-bottom: 15px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  font-size: 1.2rem;
  position: relative;
}

.persons li::before {
  content: "✔";
  color: #009688;
  font-weight: 700;
  margin-right: 8px;
}

/* ===============================
   数字アニメ
================================= */
.numbers-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  text-align: center;
}

.num-box {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.num {
  font-size: 3rem;
  font-weight: 700;
  color: #009688;
  display: block;
  margin-bottom: 10px;
}

/* ===============================
   エントリーフォーム
================================= */
.entry form {
  max-width: 650px;
  margin: auto;
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.entry label {
  display: block;
  font-weight: 600;
  margin-bottom: 20px;
}

.entry input, .entry textarea {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 8px;
}

.btn {
  background: #009688;
  color: #fff;
  border: none;
  padding: 14px 26px;
  font-size: 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  display: block;
  margin: 25px auto 0;
  transition: 0.3s;
}

.btn:hover {
  background: #00796b;
}

/* ===============================
   レスポンシブ
================================= */
@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 2.4rem;
  }
  .hero-content p {
    font-size: 1.1rem;
  }
}

.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.card, .item, .persons li, .num-box, section h2 {
  opacity: 0;
  transform: translateY(25px);
  transition: 0.8s ease-out;
}
