/* =========================
   PC/SP
========================= */

@media (min-width: 769px) {
    .pc_only {
        display: block;
    }
    .sp_only {
        display: none;
    }

    main {
        margin: 60px auto 0;
        width: 800px;
        border-right: 1px solid #969696;
        border-left: 1px solid #969696;
    }
}

@media (max-width: 768px) {
    .pc_only {
        display: none;
    }
    .sp_only {
        display: block;
    }
}

/* =========================
   ヘッダー
========================= */
#header {
    height: 60px;
    line-height: 1;
    margin: 100px auto 0;
    padding: 0;
    position: absolute;
    top: -100px;
    width: 100%;
    z-index: 999;
    border-bottom: 1px solid #cccccc;
}

#header a, #header {
    text-decoration: none;
}

.headerinner {
    margin: 0 auto;
    width: 960px;
}

.headerinner::after {
  clear: both;
  content: "";
  display: block;
}

#header .headerinner {
    position: relative;
}

#header h1 {
    margin: 0;
    padding: 0;
}

#header .logo {
    float: left;
}

#global-nav ul {
    bottom: 10px;
    font-size: 14px;
    font-weight: bold;
    list-style: none;
    position: absolute;
    right: 0;
}

#global-nav ul li {
    float: left;
}

#global-nav ul li a {
    color: #333333;
    margin: 0 3px;
    padding: 3px 10px;
}

#global-nav ul li .touhyou_btn {
    border: none !important;
    color: #ffffff;
    font-size: 17px;
    padding: 8px 20px;
    background: #ff8000;
    background: linear-gradient(to bottom, #ffd24d, #ff8000);
    border-radius: 3px;
    margin-left: 10px;
}

#header.fixed {
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    top: 0;
}

/* =========================
   フッター
========================= */

.footer-wrap-pc {
    width: 100%;
    height: 80px;
    margin: 0 auto;
    background-color: #eeeeee;
}

#footer {
    position: relative;
    width: 100%;
    font-size: 12px;
    text-align: left;
}

#footer a {
    color: #666666;
    text-decoration: none;
}
#footer a:hover {
    color: #888888;
    text-decoration: underline;
}

#footer-inner {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding-top: 12px;
}

#footer-inner ul#footerNav {
    width: 800px;
    margin: 0 auto;
    border-bottom: 1px solid #666666;
    padding-bottom: 8px;
}

#footer-inner ul#footerNav li {
    display: inline;
    padding-right: 8px;
    padding-left: 2px;
}

.copyright {
    padding-top: 8px;
    font-size: small;
    color: #666666;
}

/* =========================
   共通レイアウト
========================= */

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
               "メイリオ", Meiryo, sans-serif;
  background: #f5f5f5;
  color: #333;
}

.lp-container {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  padding: 16px;
}

/* =========================
   セクション見出し
========================= */

.lp-section-title {
  background: #e6e6e6;
  padding: 4px 8px;
  margin: 8px 0;
  font-weight: bold;
  font-size: 16px;
  line-height: 1.4;
}

.lp-section-title p {
  margin: 3px 0;
  line-height: inherit;
}

/* =========================
   小見出し出し＋本文
========================= */

.lp-subsection {
  padding: 8px 12px 0px 12px;
}


.lp-subsection p:first-child {
  font-weight: 700;
  margin: 0 0 6px;
}

.lp-subsection p + p {
  font-size: 80%;
  margin: 0 8px;
  line-height: 1.7;
}

/* =========================
   条件・情報ボックス
========================= */

.lp-info-box {
  padding: 8px 12px;
  margin-bottom: 12px;
  background: #fff;
  line-height: 1.6;
}

@media (max-width: 768px){
  .lp-prize-card{
    width: calc(100% - 48px);
    margin: 16px auto;
    max-width: 520px;
  }
}

.lp-info-box p {
  margin: 0;
}

.lp-info-box > p:last-of-type:not(:first-of-type) {
  font-size: 80%;
}

/* =========================
   賞品カード 共通
========================= */

.lp-prize-card{
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  max-width: 420px;  
  margin: 16px auto;
}

/* 各行共通 */
.lp-prize-card > p{
  margin: 0;
  padding: 12px 16px;
}

/* 商品名（1行目） */
.lp-prize-card > p:first-of-type{
  color: #fff;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  font-size: 18px;
}

/* 画像行（2行目） */
.lp-prize-card > p:nth-of-type(2) img{
  display: block;
  max-width: 100%;
  height: auto;
}

/* 画像がある場合 p（2行目）の上下paddingを無くす */
.lp-prize-card > p:has(img){
  padding-top: 0;
  padding-bottom: 0;
}

/* 画像が空のときはその行ごと消す */
.lp-prize-card > p:nth-of-type(2):has(img[src=""]),
.lp-prize-card > p:nth-of-type(2):has(img:not([src])){
  display: none;
}

/* =========================
   抽選人数 / 注釈（白い余白＋一体化）
========================= */

/* 抽選人数帯：画像あり／なし共通（2 or 3行目が抽選人数） */
.lp-prize-card > p:nth-of-type(3):not(:has(img)),
.lp-prize-card > p:nth-of-type(2):not(:has(img)){
  background: #e9e9e9;
  text-align: center;
  line-height: 1.35;

  /* グレー帯自体の内側 */
  padding: 12px 14px;

  /* 外側の白余白（左右＋上） */
  margin: 12px 14px 12px;

  font-weight: 700;
  font-size: 18px;
}

/* 注釈（最後の行） */
.lp-prize-card > p:last-of-type{
  background: #e9e9e9;
  text-align: center;
  line-height: 1.5;

  padding: 2px 14px 10px;
/* 抽選人数帯の下余白を相殺するための負のマージン（変更時は合わせて調整が必要） */
  margin: -24px 14px 12px;

  font-size: 12px;
  font-weight: 400;
  color: #333;
}


/* 注釈が無い場合でも、抽選人数帯の下に余白を残す（最後の要素のときだけ強制） */
.lp-prize-card > p:nth-of-type(3):not(:has(img)):last-child,
.lp-prize-card > p:nth-of-type(2):not(:has(img)):last-child{
  margin-bottom: 12px;
}

/* =========================
   賞品カード 競技別
========================= */

/* 競馬 */
.category-keiba .lp-prize-card{
  border: 2px solid #136223;
}

.category-keiba .lp-prize-card > p:first-of-type{
  background: linear-gradient(
    130deg,
    rgb(0, 31, 6),
    rgb(0, 147, 27)
  );
}

/* 競輪 */
.category-keirin .lp-prize-card{
  border: 2px solid #171362;
}

.category-keirin .lp-prize-card > p:first-of-type{
  background: linear-gradient(
    130deg,
    rgba(7, 19, 32, 1),
    rgba(33, 86, 149, 1)
  );
}

/* オート */
.category-auto .lp-prize-card{
  border: 2px solid #611362;
}

.category-auto .lp-prize-card > p:first-of-type{
  background: linear-gradient(
    130deg,
    rgba(40, 11, 40, 1),
    rgba(191, 53, 189, 1)
  );
}

/* =========================
   賞品カード（枠なし）
========================= */

.lp-prize-card-frameless > p:last-of-type{
  padding: 0px 12px;
  margin-bottom: 12px;
  font-size: 80%;
  background: #fff;
  line-height: 1.6;
}

/* =========================
   終了メッセージ
========================= */

.lp-closed-message {
  color: #c62828;
  font-weight: bold;
  text-align: center;
  margin: 12px 0;
}

/* =========================
   CTAボタン
========================= */

.lp-cta {
  text-align: center;
  margin: 24px 0;
}

.lp-cta a {
  display: inline-block;
  background: #d7b46a;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 6px;
}

.lp-cta a:hover {
  opacity: 0.85;
}

.lp-cta-link {
  display: inline-block;
  background: #d7b46a;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 6px;
}

.lp-cta-link:hover {
  opacity: 0.85;
}

/* 応募ボタン */
.lp-cta a.apply{
  display: block;

  width: auto;
  max-width: 280px;
  margin: 0 auto 20px;

  background-image: linear-gradient(0deg, #eb6100 0%, #ffb37e 100%);
  border: 4px solid #fff;
  border-radius: 38px;
  color: #fff;
  font-size: 1.9em;
  line-height: 1.2;
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.2em;
  padding: 14px 0;
  box-shadow: 0 3px 5px rgba(0,0,0,.3);
  text-decoration: none;
}

/* hover */
.lp-cta a.apply:hover{
  filter: brightness(.95);
  opacity: 1;
}

/* =========================
   モバイル微調整
========================= */

@media (max-width: 480px) {
  .lp-container {
    padding: 12px;
  }
}
