@charset "utf-8";
@import url(common.css);

/* ==========================================================
   1. BASE (ページ全体)
   ========================================================== */
body {
  background-color: #0d1015; /* 固定背景はブランドカラーの黒 */
  margin: 0;
  font-family: "Yu Gothic", sans-serif;
  padding-top: 110px; /* 固定ヘッダーの高さ分の余白 */
  color: #111111;
}

/* ==========================================================
   2. TOP VISUAL (トップ画像)
   ========================================================== */
.topimg {
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

.topimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================
   3. ARTICLE & TITLE (コンテンツエリア・大見出し)
   ========================================================== */
article {
  background-color: #e7e7e7;
  padding-bottom: 0; /* 【修正】一番下の写真がフッターにピッタリくっつくよう0にリセット */
}

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%);
}

/* ==========================================================
   4. SECTION (セクション)
   ========================================================== */
section {
  padding: 0;
  background-color: #e7e7e7;
}

/* ==========================================================
   5. ZIGZAG GRID (PC版：1セクション1画面表示 ＆ 角連動レイアウト)
   ========================================================== */
.item {
  width: 100%;
  max-width: 100%;
  margin: 0;
  /* 【重要】1画面にぴったり収める設定（ヘッダー110px分を引いた計算） */
  height: calc(100vh - 110px);
  display: flex;
  align-items: stretch; /* 画像もテキストも縦いっぱいに広げる */
  gap: 0;
  background-color: #e7e7e7;
}

/* 交互に反転 */
.item.reverse {
  flex-direction: row-reverse;
}

/* 画像エリア：1画面の半分（50%）をダイナミックに専有 */
.item .img {
  width: 50%;
  line-height: 0;
  font-size: 0;
  overflow: hidden;
}

.item .img img {
  width: 100%;
  height: 100%; /* 【修正】親要素の高さ（一画面）に合わせて100%に */
  object-fit: cover;
  display: block;
}

/* テキストボックス（左右の80px余白は美しくキープ） */
.item .text {
  width: 50%;
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

/* テキスト幅が広がりすぎない最大幅制限（タイトルと綺麗に揃います） */
.item .text h2,
.item .text p {
  max-width: 475px;
  width: 100%;
}

/* 1つ目が通常（右画像）の場合、テキストは右（画像側）に寄せる */
.item:not(.reverse) .text h2,
.item:not(.reverse) .text p {
  margin-left: auto;
  margin-right: 0;
}

/* 2つ目が反転（left画像）の場合、テキストは左（画像側）に寄せる */
.item.reverse .text h2,
.item.reverse .text p {
  margin-left: 0;
  margin-right: auto;
}

.item .text h2 {
  font-size: 50px;
  margin-top: 0;
  margin-bottom: 40px;
  line-height: 1.2;
  color: #0d1015;
}

.item .text p {
  font-size: 22px;
  line-height: 1.5;
  color: #333333;
}

/* ==========================================================
   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;
}
/* ==========================================================
   RESPONSIVE
========================================================== */
@media screen and (max-width: 768px) {
  /* =========================
     BODY
  ========================= */
  body {
    padding-top: 70px;
  }

  /* =========================
     HEADER
  ========================= */
  header,
  .header-inner {
    height: 70px;
  }

  .logo img {
    height: 60px;
  }

  /* =========================
     TOP IMAGE
  ========================= */
  .topimg {
    height: 55vh;
  }

  /* =========================
     TITLE
  ========================= */
  article h1 {
    font-size: 40px;
    padding: 40px 20px;
    line-height: 1.4;
  }

  .title::after {
    height: 2px;
    bottom: -6px;
  }

  /* =========================
     ITEM
  ========================= */
  .item,
  .item.reverse {
    flex-direction: column;
    height: auto;
  }

  .item .img,
  .item .text {
    width: 100%;
  }

  .item .img img {
    height: 260px;
    object-fit: cover;
  }

  .item .text {
    padding: 40px 25px;
  }

  .item .text h2 {
    font-size: 32px;
    margin-bottom: 20px;
    max-width: 100%;
    line-height: 1.3;
  }

  .item .text p {
    font-size: 15px;
    line-height: 1.8;
    max-width: 100%;
  }

  /* PC時の寄せ解除 */
  .item:not(.reverse) .text h2,
  .item:not(.reverse) .text p,
  .item.reverse .text h2,
  .item.reverse .text p {
    margin-left: 0;
    margin-right: 0;
  }

  /* =========================
     NAV
  ========================= */
  .nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: #0d1015;
    transition: 0.4s;
    padding: 40px 20px;
    box-sizing: border-box;
    z-index: 999;
  }

  .nav.active {
    left: 0;
  }

  .nav ul {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .nav a {
    font-size: 22px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
  }

  /* =========================
     FOOTER
  ========================= */
  /* フッターのスマホ調整 */
  .footer-top {
    flex-direction: column;
    gap: 25px;
    align-items: center;
  }

  .footer ul.hidari {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  /* --- 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); /* 線を少し薄くして上品に */
  }
}
