@charset "UTF-8";
/*====================
スマホを基本設計にする
 - 〜479px：スマートフォン縦
 - 480px〜599px：スマートフォン横
 - 600px〜959px：タブレット
 - 960px〜1279px：小型PC
 - 1280px〜：大型PC
====================*/

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  color: #24292e;
  font-family: "Sawarabi Gothic";
  background-color: #640000; /* 背景色 赤 */
  text-align: center; /* テキストをセンター揃え */
  font-size: 16px; /* フォントサイズ 初期設定 */
  margin: 0;
  padding: 0;
}

/* ==============================
   共通スタイル
============================== */
.container {
  max-width: 960px;
  margin: 0 auto;
  background-color: white; /* 中央の白背景部分 */
  min-height: 100vh;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

a {
  text-decoration: none;
  color: blue; /* リンク色を青にする */
}

/* ホバー時に色を変えたい場合 */
a:hover {
  color: darkblue; /* マウスオーバー時に濃い青 */
}

p {
  font-size: 1.3rem;
}

picture {
  display: block;
  width: 100%;
  text-align: center;
  line-height: 0;
}

.responsive-image {
  display: block;
  margin: 0 auto;
  height: auto;
}

@media (min-width: 560px) {
  .responsive-image {
    width: auto;
    max-width: 100%;
  }
}

@media (max-width: 960px) {
  .responsive-image {
    width: 100%;
  }
}

/* ベーススタイル */
.image-container {
  position: relative; /* ←追加: ホバー画像の絶対配置のため */
  vertical-align: bottom;
}

/* 共通画像は非表示にしておく */
.imageA, .imageB {
  display: none;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* 画像Cはホバー時に表示するため、最初は非表示 */
.hover-imageC {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  cursor: pointer;
  z-index: 2; /* ←追加: 前面に表示するため */
}

/* 960px以上で画像A表示 */
@media screen and (min-width: 960px) {
  .imageA {
    display: block;
  }

  /* ホバー時に画像C表示 */
  .image-container:hover .hover-imageC {
    display: block;
  }
}

/* 560px以下で画像B表示 */
@media screen and (max-width: 560px) {
  .imageB {
    display: block;
  }
}

/* 561px〜959pxの間で画像Aを表示（拡大縮小対応） */
@media screen and (min-width: 561px) and (max-width: 959px) {
  .imageA {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  /* ホバー時の画像Cも有効にする */
  .image-container:hover .hover-imageC {
    display: block;
  }
}

/* -------------------------
   kakei-images
------------------------- */
.kakei-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pc-only {
  display: none;
}

.sp-only {
  display: none;
}

/* PC: 横並び */
@media (min-width: 560px) {
  .pc-only {
    display: block;
  }
  .kakei-images {
    flex-direction: row;
  }
}

/* SP: 縦並び */
@media (max-width: 559px) {
  .sp-only {
    display: block;
  }
  .kakei-images {
    flex-direction: column;
    align-items: center;
  }
}

/* ==========================
   kakei-images を2分割で横並び
   ========================== */
@media (min-width: 560px) {
  .kakei-images {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .kakei-images a {
    flex: 1;              /* 均等に幅を分割 */
    max-width: 50%;       /* 横に2分割 */
  }

  .kakei-images picture,
  .kakei-images img {
    width: 100%;          /* 枠に合わせる */
    height: auto;
  }
}

/* -------------------------
   モーダル
------------------------- */
.modal {
  display: none; /* 初期は非表示 */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  margin-top: 5%;
}

/* -------------------------
   フローティングリンク
------------------------- */
.floating-buttons {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  max-width: 560px;
  width: 100%;
  z-index: 999;
  background-color: transparent;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  padding: 0;
  line-height: 0;
  height: 88px;
  align-items: flex-end;
  box-sizing: border-box;
}

.float-btn {
  flex: 1;
  text-align: center;
  background: transparent;
  border: none;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: auto;
  height: 100%;
}

.float-btn img {
  max-width: 280px;
  height: 80px;
  width: auto;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
  will-change: transform;
  transform-origin: center bottom;
  vertical-align: bottom;
}

/* ホバー拡大 */
.float-btn img:hover {
  transform: scale(1.05);
}

/* PC用右寄せ */
@media screen and (min-width: 561px) {
  .floating-buttons {
    left: auto;
    right: 0;
    transform: none;
  }
}

/* 560px以下でレスポンシブ対応 */
@media screen and (max-width: 560px) {
  .floating-buttons {
    max-width: 100%;
    width: 100%;
    height: auto;
    padding: 0;
    box-sizing: border-box;
  }

  .float-btn img {
    width: 100%;
    height: auto;
    max-width: none;
  }
}

/* -------------------------
   フッター
------------------------- */
#footer {
  margin: 0px auto 50px;
  padding: 0 20px;
  padding-bottom: 5%;
  text-align: center;
}

#footer p{
  font-size: 85%;
  margin-bottom: 2%;
}


/* -------------------------
   ダウンロードフォーム
------------------------- */
.download-container {
  width: 90%;        /* 画面幅に応じて伸縮 */
  max-width: 900px;  /* 最大幅900px */
  margin: 0 auto;    /* 上下マージン0で背景と上端揃え */
  padding: 20px;
  border: 2px solid #ccc;
  border-radius: 12px;
  background: #fff;
  position: relative; /* 背景より前面 */
  z-index: 1;
  box-sizing: border-box;
}

.download-content {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.download-image {
  display: flex;
  align-items: stretch;
}

.download-image img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

.download-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.download-description {
  font-size: 22px;
  font-weight: bold;
  text-align: left;
}

.download-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-form label {
  font-size: 16px;
  font-weight: bold;
  text-align: left;
  margin-bottom: 0;
}

.form-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.download-form input[type="password"] {
  padding: 8px 10px;
  border: 1px solid #aaa;
  border-radius: 6px;
  font-size: 16px;
  width: 260px;
}

.download-form button {
  padding: 9px 16px;
  border: none;
  border-radius: 999px / 50%;
  background: #2ecfe4;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.download-form button:hover {
  background: #27b5c6;
}

.download-note {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.6;
  color: #444;
  text-align: left;
  padding-left: 10px;
}

/* -------------------------
   ラッパー
------------------------- */
.dlpage-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
}

.dlpage-form-wrapper {
  width: 100%;
  max-width: 960px;
  position: relative; /* 背景の基準 */
}

/* 背景画像はフォームの後ろに表示 */
.dlpage-form-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: auto;
  z-index: 0; /* フォームより後ろ */
  display: none; /* スマホ非表示 */
}

/* -------------------------
   ボタン画像グループ
------------------------- */
.button-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 30px 0 20px;
  flex-wrap: wrap;
}

.button-group a {
  display: inline-block;
}

.btn-image {
  width: 307px;
  height: 66px;
  object-fit: contain;
}

/* ==============================
   スマホ用 (〜560px)
============================== */
@media (max-width: 560px) {
  .dlpage-form-bg {
    display: none;
  }

  .download-container {
    width: 100%;
    border: none;
    padding: 20px;
    margin: 20px auto;
  }

  .download-content {
    flex-direction: column;
    align-items: center;
  }

  .download-image img {
    width: 180px;
    height: auto;
  }

  .form-row {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
  }

  .download-form label {
    width: 66%;
    max-width: 320px;
    margin: 0 auto 5px auto;
    text-align: left;
  }

  .download-form input[type="password"],
  .download-form button {
    width: 66%;
    max-width: 320px;
    border-radius: 6px;
  }

  .download-note {
    padding-left: 0;
    margin-top: 15px;
  }

  .button-group {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 0; /* ←スマホ時だけ上マージン0 */
    margin-bottom: 20px;
  }

  .btn-image {
    width: 80%;
    max-width: 307px;
    height: auto;
  }
}

/* ==============================
   PC用 (561px〜)
============================== */
@media (min-width: 561px) {
  .dlpage-form-bg {
    display: block; /* 背景表示 */
  }

  .download-content {
    flex-direction: row;
    gap: 20px;
    align-items: stretch;
  }

  .download-image img {
    width: auto;
    height: 100%;
  }

  .form-row {
    flex-direction: row;
    align-items: flex-end;
    gap: 10px;
  }

  .download-form input[type="password"] {
    width: 260px;
  }

  .download-form button {
    width: auto;
  }

  .button-group {
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    margin-top: 30px; /* PCは通常マージン */
    margin-bottom: 20px;
  }

  .btn-image {
    width: 307px;
    height: 66px;
  }
}