@charset "UTF-8";

@font-face {
    font-family: 'CustomFont'; /* フォントの名前 */
    src: url('../fonts/ZenMaruGothic-Bold.ttf') format('truetype'); /* フォントファイルへのパス */
    font-weight: 900; /* より細いフォントの太さ */
    font-style: normal; /* フォントのスタイル */
  }
@font-face {
    font-family: 'CustomFont2'; /* フォントの名前 */
    src: url('../fonts/baloo-regular.ttf') format('truetype'); /* フォントファイルへのパス */
    font-weight: 900; /* より細いフォントの太さ */
    font-style: normal; /* フォントのスタイル */
  }

body {
    font-family: 'CustomFont', sans-serif;
}




/* ここから */

main{
    padding: 20px;
}

.section_cover {
    width: 100%;
    max-width: 800px;
    margin: 250px auto 150px;
    padding: 15px;
    border-radius: 40px;
    background-image: url(../img/23349316.jpg);
    background-size: cover;
    position: relative;
    z-index: 10; /* フォームが上に来る */
    overflow: visible;
}

.form_section {
    width: 100%;
    border-radius: 40px;
    background-color: white;
    padding: 50px;
    color: rgb(46, 46, 46);
    position: relative;
    z-index: 20; /* キャラより手前 */
}
.form_section p{
    font-size: 18px;
    color: #3b3b3b;
}

.form_section h2 {
    text-align: center;
    font-size: 1.5em;
    margin-top: 50px;
    margin-bottom: 30px;
}

form label {
    display: block;
    margin-bottom: 15px;
    color: #555;
    font-weight: bold;
}

form input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

button[type="submit"] {
    display: block;
    margin: 0 auto;   
    padding: 0.9em 2.5em;
    background-color: #f0f0f0;
    border-radius: 30px;
    color: #333;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.4s ease-in-out, color 0.4s ease-in-out, padding 0.4s ease-in-out;
    overflow: hidden;
}

button[type="submit"]:hover {
    background-color: #27acd9;
    color: #fff;
    padding-left: 3.5em;
    padding-right: 3.5em;
}
.submit {
    display: block;
    text-align: center;
    margin: 40px auto 0;
    padding: 0.9em 2.5em;
    width: 200px;
    background-color: #f0f0f0;
    border-radius: 30px;
    color: #333;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.4s ease-in-out, color 0.4s ease-in-out, padding 0.4s ease-in-out;
    overflow: hidden;
}

.submit:hover {
    background-color: #27acd9;
    color: #fff;
    padding-left: 3.5em;
    padding-right: 3.5em;
}

.waving-character {
    position: absolute;
    top: -90px;
    right: 60px;
    width: 180px;
    height: auto;
    z-index: 5;
    transform: translateY(100%); /* 最初は完全に下に隠す */
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
    pointer-events: none;
}
.waving-character2 {
    position: absolute;
    top: -120px;
    right: 60px;
    width: 180px;
    height: auto;
    z-index: 5;
    transform: translateY(100%); /* 最初は完全に下に隠す */
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
    pointer-events: none;
}

.waving-character img {
    width: 100%;
    display: block;
}
.waving-character2 img {
    width: 100%;
    display: block;
}

/* ひょっこり出てくる状態 */
.waving-character.show {
    transform: translateY(0);
    opacity: 1;
}
/* ひょっこり出てくる状態 */
.waving-character2.show {
    transform: translateY(0);
    opacity: 1;
}



.more_button {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    transition: transform 0.3s ease-in-out;
    margin-top: 40px;
}

/* ホバー時、全体を下げる */
.more_button:hover {
    transform: translate(5px, 5px);
}

/* ボタン単体のアニメーションは削除 or 無効化 */
a.btn_18 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    position: relative;
    width: 270px;
    padding: 1rem 2rem;
    font-weight: bold;
    border-radius: 10px;
    color: #3b3b3b;
    font-size: 16px;
    border: 3px solid #3b3b3b;
    box-shadow: 5px 5px #3b3b3b;
    transition: 0.3s ease-in-out;
    background-color: white;
}

/* ボタンのホバー時は box-shadow のみ変更（位置は変えない） */
a.btn_18:hover {
    box-shadow: none;
    color: #3b3b3b;
}
.arrow{
    width: 25px;
    height: 25px;
    margin-top: 3px;
}
.form_section p {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
}

.form_section ul {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding-left: 20px;
    margin-top: 20px;
}

.form_section li {
    margin-bottom: 15px;
    font-size: 16px;
    list-style-type: disc;
    color: #333;
}

.form_section a {
    text-decoration: none;
    color: #1a73e8;
    transition: color 0.3s ease;
}

.form_section a:hover {
    color: #0c47a1;
    text-decoration: underline;
}



/* 警告エリア */
.warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px 20px;
    margin: 50px 0 20px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.5;
}

@media (max-width: 1000px) {


.waving-character2 {
    position: absolute;
    top: -90px;
    right: 30px;
    width: 150px;
    height: auto;
    z-index: 5;
    transform: translateY(100%); /* 最初は完全に下に隠す */
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
    pointer-events: none;
}
}


@media (max-width: 600px) {
    .section_cover {
    width: 100%;
    max-width: 800px;
    margin: 180px auto 100px;
    padding: 15px;
    border-radius: 40px;
    background-image: url(../img/23349316.jpg);
    background-size: cover;
    position: relative;
    z-index: 10; /* フォームが上に来る */
    overflow: visible;
}


.form_section h2 {
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 50px;
}

.form_section {
    width: 100%;
    border-radius: 40px;
    background-color: white;
    padding: 40px 20px;
    color: rgb(46, 46, 46);
    position: relative;
    z-index: 20; /* キャラより手前 */
}

.waving-character {
    position: absolute;
    top: -55px;
    right: 30px;
    width: 110px;
    height: auto;
    z-index: 5;
    transform: translateY(100%); /* 最初は完全に下に隠す */
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
    pointer-events: none;
}

}

.admin_table_wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

.admin_table {
  border-collapse: collapse;
  width: 100%;
  min-width: 600px; /* スクロール発生を促すための最小幅 */
  background-color: #fdfdfd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
  font-family: 'Helvetica Neue', sans-serif;
}

.admin_table th, .admin_table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
}

.admin_table thead th {
  background-color: #f5f5f5;
  color: #444;
  font-weight: 600;
}

.admin_table tbody tr:hover {
  background-color: #f9f9f9;
}

.admin_table td a {
  color: #4a90e2;
  text-decoration: none;
  font-weight: 500;
}

.admin_table td a:hover {
  text-decoration: underline;
}

.admin_table tbody td {
  color: #555;
}

.admin_table tbody tr:last-child td {
  border-bottom: none;
}

.back{
    margin-top: 50px;
}

.space_above{
    margin-top: 40px!important;
}

.form_section h1{
    text-align: center;
    font-size: 2em;
    color: #333;
}
.profile_pic{
    width: 100%;
    text-align: center;
}
.profile_pic img{
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.ranking-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.toggle-button {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #bbb;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-button:hover {
    background-color: #27acd9;
    color: #fff;
    border-color: #27acd9;
}
.profile-message-box {
  border: 4px solid #b7dde7;
  border-radius: 12px;
  padding: 20px;
  margin: 0 auto;
  background-color: #fafafa;
  text-align: center;
  max-width: 400px;
}

.profile-message-box h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #333;
}

.badge-icon-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.badge-frame {
    position: relative;
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    text-align: center;
}

.frame-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.badge-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;

    width: 80%;
}

.badge-icon {
    width: 60px;
    height: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
    position: relative;
    overflow: hidden;
}

@media (max-width: 600px) {
.profile_pic img{
    width: 70px;
    height: 70px;
    border-radius: 50%;
}

.form_section h1{
    text-align: center;
    font-size: 1.3em;
    color: #333;
    margin-top: 20px;
}
.ranking-toggle-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.profile-message-box {
  border: 4px solid #b7dde7;
  border-radius: 12px;
  padding: 20px;
  background-color: #fafafa;
  font-size: 16px;
}
}

/* モーダル背景 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999; /* 高くする */
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    color: white;
}

.modal-content {
    background-image: url(../img/fade.jpg);
    background-size: cover;
    background-position: center top;
    padding: 50px 20px;
    max-width: 300px;
    position: relative;
    border-radius: 8px;
    text-align: center;
    /* 画面中央配置用 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: fixed; /* 必須：画面に固定する */
    width: 100%;
}
.modal-img {
    width: 100px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
}
.modal-content h3{
    font-size: 1.5em;
    margin-bottom: 15px;
}
#modal-desc{
    color: white!important;
}
#modal-condition{
    color: white!important;
}
.close {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
}
.shine {
    pointer-events: none; /* クリックを通す */
}

.medal-display-form {
  margin-top: 15px;
  max-width: 400px;
  width: 100%;
  margin: 40px auto 0;
}

.medal-display-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

.medal-display-form select {
  width: 100%;
  max-width: 300px;
  padding: 10px 12px;
  border: 2px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  background: #fff url("data:image/svg+xml;utf8,<svg fill='%23333' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 10px center;
  background-size: 16px;
  appearance: none; /* デフォルト矢印を消す */
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.medal-display-form select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.4);
}

.user-points {
    background-color: #da95db; /* ピンク */
    padding: 12px 20px;
    border-radius: 40px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
    margin: 15px auto;
    max-width: 300px;
    color: white;
}


@media (max-width: 600px) {
.medal-display-form select {
  width: 100%;
  max-width: 250px;
  padding: 10px 12px;
  border: 2px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  background: #fff url("data:image/svg+xml;utf8,<svg fill='%23333' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 10px center;
  background-size: 16px;
  appearance: none; /* デフォルト矢印を消す */
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}
}

/* === Talk Points Card === */
.points-card{
  background: linear-gradient(180deg, #fff 0%, #f9f9ff 100%);
  border: 2px solid #e9e9f5;
  border-radius: 16px;
  padding: 16px 18px;
  margin: 18px auto 10px;
  max-width: 420px;
  box-shadow: 0 6px 20px rgba(17, 17, 17, 0.05);
}

.points-left{
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 220px;
  margin-bottom: 10px;
}

.points-label{
  display: inline-block;
  font-weight: 700;
  color: #444;
  background: #eef5ff;
  border: 1px solid #d7e7ff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
}

.points-value{
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.points-amount{
  font-family: 'CustomFont2', system-ui, sans-serif;
  font-size: 1.6rem;
  line-height: 1;
  color: #222;
  letter-spacing: .5px;
}

.points-unit{
  color: #666;
  font-weight: 600;
}

.points-note{
  font-size: 12px;
  margin-bottom: 0!important;
  color: #6b7280;
}

.point_btn{
  width: 100%;
  text-align: right;
}

/* 購入ボタン（アウトライン） */
.btn-outline{
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  border: 2px solid #111;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 4px 4px 0 #111;
  transition: transform .06s ease, box-shadow .06s ease, background .2s ease;
  white-space: nowrap;
  margin-top: 20px;
}
.btn-outline:hover{
  background: #f5f5f5;
}
.btn-outline:active{
  transform: translate(2px,2px);
  box-shadow: 2px 2px 0 #111;
}

/* スマホ時の少し大きめ余白調整 */
@media (max-width: 480px){
  .points-card{ padding: 14px; }
  .points-amount{ font-size: 1.5rem; }
}

.badge-new2 {
    display: inline-block;
    background-color: #ff71c9;
    color: #fff;
    font-size: 0.8em;
    padding: 0.1em 0.4em;
    border-radius: 0.4em;
    vertical-align: baseline;
    margin-left: 10px;
}
