@charset "Shift_JIS";

/* ==========================================================================
   Base Styles / Variables
   ========================================================================== */

   /* 元CSSのリセット */
div.container_ {
       width: auto;
}

:root {
    --text-color: #333;
    --bg-gold-color: #f3eace;
    --detail-header-bg: #8a0709;
    --detail-text-color: #fff;
    --btn-green: #007b55;
    --btn-orange: #f05a22;
    --card-shadow: rgba(139, 69, 19, 0.1);
}

body {
    font-family: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
    font-size: 14px;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.8;
}

/* 改行コントロール */
.pc-only-br { display: none; }
.sp-only-br { display: none; }

@media screen and (min-width: 769px) {
    .pc-only-br { display: block; } 
}

@media screen and (max-width: 768px) {
    .sp-only-br { display: block; }
}


/* ==========================================================================
   Main Visual
   ========================================================================== */
.mv-section {
    width: 100%;
    position: relative;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

/* SP用 mv750.jpg (750x1061) */
@media screen and (max-width: 768px) {
    .mv-section {
        background-image: url('/img/usr/freepage/rankup/mv750.jpg');
        padding-top: 141.4%; 
    }
}

/* タブレット・PC小 mv1300.jpg (1300x623) */
@media screen and (min-width: 769px) and (max-width: 1300px) {
    .mv-section {
        background-image: url('/img/usr/freepage/rankup/mv1300.jpg');
        padding-top: 47.9%; 
    }
}

/* PC大 mv1920.jpg (1920x624) */
@media screen and (min-width: 1301px) {
    .mv-section {
        background-image: url('/img/usr/freepage/rankup/mv1920.jpg');
        height: 624px;
        padding-top: 0;
    }
}

.mv-inner h1 {
    display: none;
}


/* ==========================================================================
   Content Wrapper
   ========================================================================== */
.content-wrapper {
    background-image: url('/img/usr/freepage/rankup/bg.jpg');
    background-repeat: repeat-y;
    background-position: center top;
    background-size: 100% auto;
    background-color: var(--bg-gold-color);
    padding: 60px 20px 80px;
}

@media screen and (max-width: 768px) {
    .content-wrapper {
        padding: 40px 20px 60px; 
    }
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.img-h2-toku {
    max-width: 433px; 
    width: 80%;
}
.img-h2-about {
    max-width: 659px;
    width: 100%;
}


/* ==========================================================================
   Benefits Section (Points)
   ========================================================================== */
.points-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 50px 40px;
}

@media screen and (max-width: 768px) {
    .points-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.point-card {
    background: #fff;
    border-radius: 12px;
    min-height: 230px;
    padding: 60px 20px 0%; 
    text-align: center;
    box-shadow: 0 5px 10px var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: visible;
    margin-top: 30px;
}

/* 赤い丸バッジ img_point*.png (PC: 113x110) */
.point-badge-wrap {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 113px; 
    height: 110px; 
    z-index: 10;
}
.point-badge {
    width: 100%;
    height: 100%;
}

@media screen and (max-width: 768px) {
    .point-badge-wrap {
        width: 23%; 
        height:auto;
    }

    .point-card {
        min-height: auto;
        padding: 60px 20px 30px; 
    }

}

.point-title {
    margin-bottom: 15px;
    height: 40px; 
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
}

.point-text {
    font-size: 18px;
    color: var(--text-color);
    line-height: 1.5;
}

.point-text-sub {
    font-size: 14px;
}

@media screen and (max-width: 768px) {
    .point-title {
    margin-top: 20px;
    height: 20px;
    }

    .img-h3{ height: 26px; }

    .point-text {
        font-size: 18px;
        margin: 15px 0; 
    }
}

.text-link {
    text-decoration: underline !important;
    font-size: 0.9em;
}

/* ==========================================================================
   Character Area
   ========================================================================== */
.character-area {
    text-align: center;
    margin: 60px 0 20px;
}
.img-jta {
    width: 427px;
    height: auto; 
}
@media screen and (max-width: 768px) {
    .img-jta {
        width: 90%; 
        height: auto;
        margin-bottom: 30px;
    }
}


/* ==========================================================================
   Rank Section
   ========================================================================== */
.section-ranks {
    max-width: 1073px;
    margin: 0 auto;
    text-align: center;
}

.intro-text {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 2;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .intro-text  {
            text-align: left;

    }
}


/* ランク表 rank_table.png (1073x590) */
.rank-table-area {
    margin-bottom: 50px;
}
.img-rank-table {
    width: 1073px; 
    max-width: 100%;
    height: auto;
}

.annotation {
    margin-top: 20px;
}

.annotation-item {
    font-size: 14px;
    text-align: left;
    line-height: 1.4;
    padding-left: 1.2em;
    text-indent: -1.2em;
    padding-bottom: 5px;
}

/* ==========================================================================
   Image Buttons Area
   ========================================================================== */

/* エリア全体のレイアウト */
.buttons-area {
    display: flex;
    justify-content: center;
    /* PC: 2カラム, gap 40px */
    gap: 40px;
    margin: 60px auto 0;
    width: 100%;
    max-width: 900px; /* 全体のコンテンツ幅に合わせる */
}

.btn-img-link {
    display: block;
    width: 100%;
    max-width: 678px; 
    transition: none; 
}

.btn-img-inner {
    position: relative;
    width: 100%;
    padding-top: 37.7588%; 
}

.img-btn-def,
.img-btn-ovr {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease; 
}

.img-btn-def {
    opacity: 1;
    z-index: 1;
}

.img-btn-ovr {
    opacity: 0;
    z-index: 2;
}

.btn-img-link:hover .img-btn-def {
    opacity: 0;
}
.btn-img-link:hover .img-btn-ovr {
    opacity: 1;
}


/* ▼ スマホ対応（768px以下） ▼ */
@media screen and (max-width: 768px) {
    .buttons-area {
        /* SP: 1カラム */
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn-img-link {
        max-width: 100%;
        /* 必要に応じて横幅を制限する場合はここにwidthを指定（例: width: 90%;） */
    }
}


/* ==========================================================================
   Details Section (Fine Print)
   ========================================================================== */
.details-section {
    width: 100%;
}

.details-header-wrap {
    width: 100%;
}

.rainbow-border {
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #ffa800, #dfc5e7, #60df3e);
}

.details-header {
    background-color: var(--detail-header-bg);
    color: var(--detail-text-color);
    padding: 20px 0;
    text-align: center;
}

.details-header h2 {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 3px;
}

/* 細則ボディ */
.details-body {
    background: linear-gradient(to bottom, #e8e8e8 0%, #ffffff 100%);
    padding: 40px 20px 10px;
}

.details-inner {
    max-width: 1100px;
    margin: 0 auto;
    font-size: 14px;
}

.details-inner h3 {
    font-size: 16px;
    color: var(--detail-header-bg);
    margin-top: 30px;
    margin-bottom: 10px;
    font-weight: bold;
}
.details-inner h3:first-child {
    margin-top: 0;
}

.details-inner ul {
    list-style: none;
    padding-left: 0;
}

.details-inner li {
    position: relative;
    padding-left: 1em;
    margin-bottom: 0.5em;
    line-height: 1.6;
}

.details-inner li::before {
    content: "・";
    position: absolute;
    left: 0;
}

/* ==========================================================================
   Section last
   ========================================================================== */

/* ▼ SNSボタンエリア ▼ */

.social__item a,
.home-btn__link {
  display: block;
  transition: opacity 0.3s; 
}

.social__item a:hover,
.home-btn__link:hover {
  opacity: 0.7; 
}

.social {
  display: flex;
  justify-content: center; 
  gap: 20px; 
  flex-wrap: wrap;
  list-style: none; 
  padding: 0;
  margin: 80px auto 0;
  max-width: 890px;
}

.social__item {
  /* PC: 4つ横並び (100% / 4 - gap調整) */
  width: calc(25% - 15px); 
  max-width: 200px; 
}

/* ▼ TOPページへボタン ▼ */
.home-btn {
  margin: 100px auto 30px;
  max-width: 340px;
  width: 100%;
}

.home-btn .home-btn__link {
  background-color: #007b62;
  border-radius: 5px;
  color: #fff;
  font-size: 20px;
  padding: 20px 0;
  text-align: center;
  text-decoration: none; 
}

/* ▼ スマホ対応（768px以下の場合） ▼ */
@media screen and (max-width: 768px) {
  .section-last{
    padding: 0 20px;
  }
  .social {
    gap: 10px; 
    margin-top: 60px; 
  }

  .social__item {
    /* SP: 2つ横並び (100% / 2 - gap調整) */
    width: calc(50% - 5px);
  }

.home-btn {
  margin: 40px auto 30px;
}
  .home-btn .home-btn__link {
    max-width: 372px;
    font-size: 16px;
    padding: 12px 0;
  }
}
