:root {
  --main: #1f4e79;
  --bg: #fff;
  --text: #333;
  --line: #d9dee5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  /* font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;*/
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 400;
  font-style: normal;

  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
}

a { color: var(--main); }
.sp { display: none; }



/* ヒーロー */
.hero {
  /* background: var(--main); */
  color: #000000;
  text-align: center;
  padding: 100px 20px 50px 20px;
}
.hero .company { letter-spacing: .2em; margin-bottom: 50px; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.5; margin-bottom: 20px; }
.hero .lead { font-size: .95rem; }

.hero .company img {
  display: block;
  margin: 0 auto;
  width: 250px;      /* ロゴの大きさはここで調整 */
  max-width: 80%;    /* スマホで画面からはみ出さんように */
  height: auto;
}



/* セクション共通 */
main { max-width: 900px; margin: 0 auto; padding: 0 20px; }
section { padding: 60px 0 20px; }
h2 {
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 700;
  font-style: normal;
  text-align: center;
  font-size: 1.8rem;
  color: var(--main);
  margin-bottom: 32px;
}
h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--main);
  margin: 10px auto 0;
}

/* 事業内容 */
.cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.cards li {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--main);
  border-radius: 4px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);   /* 影 */
}
.cards h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--main); }
.cards p { font-size: .92rem; }


/* フェードインが終わったカードは、動きをキビキビにする */
.cards li.is-done {
  transition: transform .3s ease, box-shadow .3s ease;
}

/* カーソルを乗せた時 */
.cards li:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .15);
}

.banner {
  max-width: 500px;      /* パソコンでは最大500px */
  margin: 0 auto;
  padding: 0 20px;       /* スマホで画面の端にくっつかんように */
}

.banner a {
  display: block;
}

.banner img {
  display: block;
  width: 100%;           /* 枠いっぱいに広げる */
  height: auto;
}



/* 会社情報 */
.info {
  background: #fff;
  border-radius: 4px;
}
.info div {
  display: flex;
  border-bottom: 1px solid var(--line);
}
.info div:last-child { border-bottom: none; }
.info dt {
  width: 10em;
  flex-shrink: 0;
  padding: 16px 20px;
  font-weight: bold;
}
.info dd { padding: 16px 20px; }

/* フッター */
footer {
  margin-top: 60px;
  padding: 24px 20px;
  text-align: center;
  font-size: .8rem;
  background: #fff;
  border-top: 1px solid var(--line);
}


/* ふわっとフェードイン */
:root { --y: 30px; }  /* 浮き上がる距離。マイナスにすると上から降りてくる */

.js :where(.hero > *, h2, .cards li, .info > div, footer p, .banner) {
  opacity: 0;
  transform: translateY(var(--y));
  transition: opacity 1.2s ease, transform 1.2s ease;
}
.js .is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js :where(.hero > *, h2, .cards li, .info > div, footer p, .banner) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* スマホ */
@media (max-width: 600px) {
  .sp { display: inline; }
  .hero { padding: 56px 20px; }
  .info div { flex-direction: column; }
  .info dt { width: 100%; padding: 8px 16px; }
  .info dd { padding: 12px 16px; }
}
