@charset "utf-8";
@import url(common.css);

/* ==========================================================
   1. BASE & MAIN VISUAL
   ========================================================== */
body {
  background-color: rgba(0, 0, 0, 0.5);
  margin: 0;
  font-family: "Yu Gothic", sans-serif;
  padding-top: 110px;
}

.topimg {
  position: relative;
  height: 100vh;
  overflow: hidden;
  margin: 0;
}

.topimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================
   2. ARTICLE HEADER
   ========================================================== */
article h1 {
  font-size: 85px;
  color: #fff;
  text-align: center;
  background-color: #0d1015;
  padding: 55px 0;
  margin: 0;
}

.title {
  position: relative;
  display: inline-block;
}

.title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 70%;
  height: 3px;
  background: red;
  transform: translateX(-50%);
}

/* ==========================================================
   3. ZIGZAG LAYOUT (PC版スタイル)
   ========================================================== */
section {
  padding: 0;
}

.item {
  max-width: 1110px;
  margin: 0 auto;
  height: 100vh;
  display: flex;
  align-items: center;
  gap: 0;
}

.item.reverse {
  flex-direction: row-reverse;
}

.item .img,
.item .text {
  width: 50%;
  height: 100%;
}

.item .img {
  line-height: 0;
  font-size: 0;
  overflow: hidden;
}

.item .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.item .text {
  color: #f2f2f2;
  padding: 80px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.item .text h2 {
  font-size: 48px;
  font-weight: bold;
  line-height: 1.4;
  margin: 0;
  padding-bottom: 15px;
}

.item .text .nengou {
  font-size: 22px;
  font-weight: bold;
  line-height: 1.2;
  margin: 0;
  padding-bottom: 40px;
}

.item .text p.desc {
  font-size: 22px;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================
   4. FOOTER
   ========================================================== */
.footer {
  background-color: #11141a;
  padding: 60px 0 40px 0;
  color: #a0a5b0;
  width: 100%;
  clear: both;
}

.finner {
  max-width: 1110px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #222833;
  padding-bottom: 30px;
  margin-bottom: 30px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
}

.footer a {
  color: #a0a5b0;
  text-decoration: none;
  font-size: 14px;
}

.footer a:hover {
  color: #fff;
}

.footer .sns img {
  width: 24px;
  height: auto;
  display: block;
}

.copyright {
  margin: 0;
  line-height: 2;
  text-align: center;
}

.copyright small {
  font-size: 11px;
  color: #666c7a;
}

/* ==========================================================
   7. RESPONSIVE (スマホ対応：完璧な状態を100%維持)
   ========================================================== */
@media screen and (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  .topimg {
    height: 50vh;
  }

  /* メインタイトルのスマホ調整 */
  article h1 {
    font-size: 40px;
    padding: 40px 0;
    margin: 0;
  }

  .title::after {
    height: 2px;
    bottom: -6px;
  }

  /* 横並びと反転を解除して「上画像・下テキスト」の1列に */
  .item,
  .item.reverse {
    flex-direction: column;
    width: 100%;
    margin: 0;
    gap: 0;
    height: auto; /* スマホ時は一画面表示を解除してコンテンツ長に合わせる */
  }

  /* スマホ版では100%幅にリセット */
  .item .img,
  .item .text {
    width: 100%;
  }

  /* スマホ画面に合わせた画像の高さ */
  .item .img img {
    height: 300px;
  }

  /* スマホの画面幅に合わせてテキストパディングを凝縮 */
  .item .text {
    padding: 40px 25px;
  }

  /* セクション見出しのスマホサイズ */
  .item .text h2 {
    font-size: 28px;
    margin-bottom: 20px;
    max-width: 100%;
  }

  /* 本文のスマホサイズ */
  .item .text p {
    font-size: 15px;
    line-height: 1.6;
    max-width: 100%;
  }

  /* フッターのスマホ調整 */
  .footer-top {
    flex-direction: column;
    gap: 25px;
    align-items: center;
  }

  .footer ul.hidari {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}
/* ==========================================================
   スマホ・タブレット用（画面幅768px以下）の調整コード
   ========================================================== */
@media screen and (max-width: 768px) {
  /* --- 1. 全体・ヘッダーのスマホ縮小 --- */
  body {
    padding-top: 70px; /* スマホ用にヘッダーが低くなる分、上の余白を詰める */
  }

  header,
  .header-inner {
    height: 70px; /* 110pxから70pxにコンパクト化 */
  }

  .logo img {
    height: 60px; /* ロゴもスマホサイズに縮小 */
  }

  /* --- 2. ハンバーガーメニューをスマホ用に最適化 --- */
  .nav {
    position: fixed;
    top: 70px; /* 縮小したヘッダーのすぐ下から */
    left: 0;
    transform: none;
    width: 100%;
    height: calc(100vh - 70px); /* 画面の縦いっぱいにメニューを広げる */
    padding: 40px 20px;
    box-sizing: border-box;
  }

  .nav ul {
    flex-direction: column; /* 横並びから「縦並び」に変更 */
    align-items: center;
    gap: 25px;
  }

  .nav a {
    font-size: 22px; /* 文字サイズをスマホ用に調整 */
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* 線を少し薄くして上品に */
  }
}