/* ============================================
   Personal Training Gym LP - Stylesheet
   別ドメインへ移植可能なスタンドアロンCSS
   ============================================ */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, sans-serif;
  color: #333;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }

p { margin: 0 0 12px; }

a { color: inherit; text-decoration: none; }

hr { border: none; border-top: 1px solid #ddd; margin: 32px 0; }

/* ===== レイアウト ===== */
.lp { width: 100%; }

.container {
  width: 100%;
  padding: 32px 16px;
}

.content {
  max-width: 720px;
  margin: 0 auto;
}

/* ===== 背景色バリエーション ===== */
.bg-cream { background: #fcfaf4; }
.bg-sky   { background: #f4fcff; }
.bg-dark  { background: #545454; color: #fff; }
.bg-dark p { color: #fff; }
.plain    { padding: 0; }

/* ===== HERO ===== */
.hero { width: 100%; }
.hero-img { width: 100%; height: auto; display: block; }

/* ===== テキスト ===== */
.text-center { text-align: center; }
.bold { font-weight: bold; }

.small  { font-size: 14px; }
.md     { font-size: 18px; }
.lg     { font-size: 24px; }
.xl     { font-size: 26px; }
.xxl    { font-size: 32px; }
.xxxl   { font-size: 40px; }

.gray   { color: #999; }
.white  { color: #fff !important; }
.accent { color: #6fa2c4; }
.orange { color: #ff8c00; }

.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 32px; }

/* ===== 画像 ===== */
.full-img {
  width: 100%;
  height: auto;
  margin: 16px auto;
}
.full-img.round { border-radius: 12px; overflow: hidden; }

/* ===== ギャラリー ===== */
.gallery {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}
.gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }

.gallery figure { margin: 0; text-align: center; }
.gallery figure img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}
.gallery figcaption {
  margin-top: 8px;
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

@media (max-width: 600px) {
  .gallery.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ===== CTA ボタン ===== */
.cta { text-align: center; margin: 32px 0; }
.btn-cv {
  display: inline-block;
  padding: 16px 32px;
  background: #00b900;
  color: #fff !important;
  border-radius: 50px;
  font-weight: bold;
  font-size: 18px;
  transition: background 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.btn-cv:hover { background: #ff8c00; }

/* ===== 円形リスト（店舗・Before/After） ===== */
.circle-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: #333;
}
.circle-item span {
  display: block;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}
.circle-item:hover span { transform: scale(1.05); }
.circle-item p {
  margin-top: 10px;
  font-size: 14px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .circle-list { grid-template-columns: repeat(3, 1fr); }
  .circle-item span { width: 100px; height: 100px; }
}
@media (max-width: 480px) {
  .circle-list { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Before / After 実績Showcase ===== */
.ba-case {
  margin: 32px 0 48px;
  padding: 16px 0;
  border-top: 1px solid #eee;
}
.ba-case:first-of-type { border-top: none; }

.ba-case-title {
  display: inline-block;
  margin: 0 auto 16px;
  padding: 8px 24px;
  background: linear-gradient(135deg, #6fa2c4 0%, #4d8aae 100%);
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  border-radius: 50px;
  text-align: center;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(111, 162, 196, 0.25);
}
.ba-case > .ba-case-title {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 600px) {
  .ba-case-title { font-size: 18px; padding: 6px 20px; }
}

/* ===== カードリスト（クチコミ） ===== */
.card-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 24px 0;
}
.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  color: #333;
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.card h3 {
  margin: 0;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

@media (max-width: 768px) {
  .card-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .card-list { grid-template-columns: 1fr; }
}

/* ===== フォーム ===== */
.form-title {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #6fa2c4;
}

.contact-form { max-width: 720px; margin: 0 auto; }

.field-group {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px dashed #eee;
}

.field-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 16px;
}

.req {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 8px;
  background: #e64a4a;
  color: #fff;
  font-size: 12px;
  border-radius: 4px;
  font-weight: bold;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="date"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
}

.contact-form textarea { resize: vertical; }

.note {
  font-size: 13px;
  color: #888;
  margin: 4px 0;
}

.date-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.date-row .tag {
  padding: 4px 12px;
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
}
.date-row .tag-y { background: #e6b800; }
.date-row .tag-g { background: #6fa247; }
.date-row .tag-b { background: #6fa2c4; }
.date-row input[type="date"] { flex: 1; min-width: 140px; }
.date-row select { flex: 1; min-width: 120px; }

.consent label {
  font-weight: normal;
  font-size: 14px;
}

.submit {
  text-align: center;
  margin: 32px 0 0;
}
.submit button {
  padding: 16px 64px;
  background: #6fa2c4;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.submit button:hover { background: #4d8aae; }

/* ===== レスポンシブ調整 ===== */
@media (max-width: 600px) {
  .container { padding: 24px 12px; }
  .lg  { font-size: 20px; }
  .xl  { font-size: 22px; }
  .xxl { font-size: 26px; }
  .xxxl { font-size: 32px; }
  .btn-cv { font-size: 16px; padding: 14px 24px; }
}

/* ============================================
   スマホ用 固定CTAボタン
   PCでは非表示／768px以下で画面下部に固定表示
   ============================================ */
.sticky-cta {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 9999;
  padding: 16px 20px;
  background: #00b900;
  color: #fff !important;
  text-align: center;
  font-size: 17px;
  font-weight: bold;
  letter-spacing: 0.05em;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  /* iPhone のホームバー領域回避 */
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

.sticky-cta:hover,
.sticky-cta:active {
  background: #ff8c00;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .sticky-cta {
    display: block;
  }

  /* 固定ボタンに本文が隠れないように余白を確保 */
  body {
    padding-bottom: 90px;
  }
}
