body {
  background: #FAF3E0;
  color: #333;
  font-size: 16px;
  line-height: 1.4em;
  font-family: "Hiragino Kaku Gothic ProN","メイリオ", sans-serif, Arial;
  padding-bottom: 70px;
}

img {
  max-width: 100%;
}

header {
  /* position: fixed; */
  width: 100%;
  height: 50px;
  border-bottom: 1px solid #c1c1c1;
  box-sizing: border-box;
  background: #fff;
  z-index: 2;
}

header a {
  display: flex;
  text-decoration: none;
}

header p {
  display: inline-block;
  margin: 18px 10px 0 auto;
  color: #999;
  font-size: 14px;
}

.section-latest, .section-new, .section-log, .section-tool, .section-game, .section-details, .section-ranking, .section-index {
  margin: 0 8px;
  padding: 20px 10px 10px;
  background: #fff;
}

.image-header {
  height: 30px;
  padding: 10px 6px;
}

.section-hero {
  padding: 0 0 0;
  background: #fff;
}

.section-hero img {
  vertical-align: bottom;
}

/* ログイン済みユーザー向けバナー */
.login-banner-container {
  margin: 8px;
  padding: 0;
  background: transparent;
  text-align: center;
}

.login-banner-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  cursor: pointer;
  transition: opacity 0.2s ease;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.login-banner-image:hover {
  opacity: 0.9;
}

.login-banner-image:active {
  transform: scale(0.98);
}

.section-details-header {
  padding: 0 0 0;
  background: #fff;
}

.section-history, .privacy-section {
  margin: 0 8px;
  padding: 16px 10px 10px;
  background: #fff;
}

.image-hero {
  width: 100%;
}

.title-hero {
  padding: 16px 10px;
  font-weight: normal;
  font-size: 16px;
}

.section-description-text {
  padding: 16px;
  background: #fff;
}

.text-description {
  font-size: 14px;
  line-height: 1.3em;
}

.section-index ul {
  margin: 16px 36px;
}

.section-index ul li {
  list-style: circle;
  line-height: 24px;
}
.section-index ul li a {
  color: #0095d9;
  text-decoration: underline;
}

.section-title, .section-title-details, .section-title-ranking, .privacy-title {
  margin: 0;
  padding: 0 0 6px;
  color: #333333;
  font-weight: bold;
  font-size: 20px;
  line-height: 1.4em;
}

.section-title:before {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin: 0 6px 0 0;
  background-image: url(../img/apple-touch-icon-180x180.png);
  background-size: contain;
  vertical-align: middle;
  content: "";
}

.section-title {
  padding-top: 80px;
  margin-top: -80px;
}

.image-details-icon {
  width: 60px;
  height: 60px;
  margin-right: 10px;
  border-radius: 8px;
  flex-shrink: 0;
}

.date-latest, .date-details {
  color: #999;
  font-size: 12px;
  text-align: right;
}

.image-latest {
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 392; /* banner.pngと同じ比率 */
  object-fit: contain; /* 画像を枠内に収める */
  background-color: #f8f9fa; /* 薄いグレーの背景 */
  border: 1px solid #e9ecef; /* 薄いボーダー */
  border-radius: 8px; /* 角を丸く */
  padding: 20px; /* 上下左右に余白 */
  box-sizing: border-box;
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
  .image-latest {
    background-color: #2c3e50;
    border-color: #34495e;
  }
}

.name-latest {
  margin: 8px 0 10px;
  font-weight: bold;
  font-size: 20px;
}

.developer-latest {
  margin: 0 0 8px;
  font-size: 14px;
  color: #666;
  font-weight: normal;
}

.description-latest, .description-details {
  font-size: 16px;
}

.buttons-service {
  display: flex;
  justify-content: end;
}

.buttons-to-details {
  display: inline-block;
  margin: 10px 0 8px;
  padding: 6px 16px;
  background: #FF9100;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
}


.buttons-service-google, .buttons-service-apple {
  height: 32px;
  margin: 16px 10px;
}

.section-description {
  margin: 10px 0 0;
}

.list-contents {
  margin: 20px 0 20px;
}

.list-service-item {
  padding: 20px 0 0;
  border-bottom: 1px solid #dbdbdb;
}

.list-service-item:last-child {
  border-bottom: none;
}

.contents-service-flex {
  display: -webkit-flex;
  display: flex;
  justify-content: flex-start;
  -webkit-justify-content: flex-start;
}

.icon-service {
  width: 60px;
  height: 60px;
  margin: 0 10px 0;
  border-radius: 8px;
}

.contents-service {
  flex-grow: 1;
  width: calc(100% - 100px);
  -webkit-flex-grow: 1;
}

.title-service {
  display: inline-block;
  font-weight: bold;
  font-size: 18px;
}

.title-service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.title-service-row .title-service {
  margin: 0;
  flex-grow: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.title-service-row .contents-service-os {
  display: flex;
  align-items: center;
  margin-left: 10px;
  flex-shrink: 0;
}

.developer-service {
  margin: 2px 0 6px;
  font-size: 13px;
  color: #666;
  font-weight: normal;
}

.contents-service-os {
  display: inline-block;
  vertical-align: middle;
}

.contents-service-os img {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}

/* OSアイコン共通スタイル */
.icon-os {
  width: 16px;
  height: 16px;
}

.description-service {
  font-size: 14px;
  line-height: 1.3em;
}

.image-details {
  width: 100%;
  margin: 0 0 10px;
}

.section-title-details {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  line-height: 1.3;
}

.description-service-details {
  margin: 10px 10px 10px;
  font-size: 14px;
  line-height: 1.3em;
}

.details-mission-contents {
  padding: 0 0 10px;
}

.details-screenshot {
  display: flex;
  justify-content: space-between;
}

.details-time-performance {
  margin: 10px 10px 4px 10px;
  padding: 0 0 0 2px;
  font-size: 14px;
}

.list-time-performance {
  margin: 0 0 4px;
  font-size: 14px;
}

.details-time-performance-text span {
  color: #e7c03c;
  font-size: 20px;
}

.list-time-performance span {
  color: #e7c03c;
  font-size: 16px;
}

.image-screenshot {
  width: 30%;
  margin: 10px 4px 30px;
}

.details-mission-os {
  margin: 0 18px;
  font-weight: bold;
}

.details-table {
  width: 94%;
  margin: 6px auto 40px;
  border-collapse:  collapse;
  text-align: left;
  font-size: 14px;
}

.history-table {
  width: 94%;
  margin: 6px auto 16px;
  border-collapse:  collapse;
  text-align: left;
  font-size: 14px;
}

.details-table th, .history-table th {
  background-color: #FF9100;
  color: #fff;
  font-weight: bold;
}

.details-table th, .details-table td, .history-table th, .history-table td {
  padding: 10px;
  border: solid 1px #666666;
}

.details-table-50, .history-table-50 {
  width: 50%;
}

.details-table-25, .history-table-25 {
  width: 25%;
}

.history-table-10 {
  width: 10%;
}

.history-table-20 {
  width: 20%;
}

.history-table-30 {
  width: 30%;
}

.history-table-40 {
  width: 40%;
}

.buttons-service-history {
  margin: 0 0 16px;
}

.history-large-text {
  font-size: 22px;
  font-weight: bold;
  padding: 0 2px;
}

.history-row-new {
  background: #fff8dd;
}



.buttons-to-ranking, .buttons-to-log {
  display: block;
  margin: 10px 16px 30px;
  padding: 6px 16px;
  background: #FF9100;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
}

.contents-service-point {
  padding: 8px 6px;
  color: #FF9100;
}

.contents-point-num {
  font-size: 24px;
}

.contents-point-num span {
  font-size: 40px;
  font-weight: bold;
}

.contents-image-details {
  text-align: center;
}

.contents-image-details img {
  margin: 16px 0 8px;
  padding: 0 10px;
  box-sizing: border-box;
}

.contents-service-history {
  line-height: 40px;
}

.history-change-date {
  padding: 10px 0 0 10px;
  font-size: 14px;
  color: #999;
  text-align: left;
}

footer {
  width: 100%;
  margin: 20px 0 0;
  padding: 10px 0 10px;
  background: #333333;
  color: #fff;
  text-align: center;
}

.list-footer {
  margin: 10px 0 6px;
}

.list-footer-link {
  color: #fff;
  font-size: 14px;
}

.text-copyright {
  font-size: 12px;
}


.history-table-caption {
    width: 94%;
    margin: 6px auto 6px;
    font-weight: bold;
}

/* ログインフォーム */
.login-container {
  max-width: 400px;
  margin: 20px auto;
  padding: 20px;
}

.login-form {
  margin: 20px 0;
}

.form-group {
  margin: 20px 0;
}

.form-group label {
  display: block;
  margin: 0 0 8px;
  font-weight: bold;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.form-group input:focus {
  border-color: #FF9100;
  outline: none;
}

.btn-primary {
  width: 100%;
  padding: 12px 20px;
  background: #FF9100;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  margin: 10px 0;
}

.btn-primary:hover {
  background: #e55050;
}

.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-secondary {
  width: 100%;
  padding: 10px 20px;
  background: #fff;
  color: #FF9100;
  border: 2px solid #FF9100;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  margin: 10px 0;
}

.btn-secondary:hover {
  background: #FF9100;
  color: #fff;
}

.auth-message {
  margin: 16px 0;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
}

.auth-message.loading {
  background: #e7f3ff;
  color: #007bff;
  border: 1px solid #b3d9ff;
}

.auth-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.auth-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

#recaptcha-container {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

/* ゲーム関連 */
.game-container {
  max-width: 400px;
  margin: 40px auto;
  padding: 10px 20px;
  text-align: center;
}

.game-container-catch {
  max-width: 400px;
  margin: 4px auto 40px;
  padding: 10px 20px;
  text-align: center;
}

.game-score {
  margin: 20px 0 40px;
}

.game-label {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 0 0 10px;
}

.game-count {
  font-size: 32px;
  font-weight: bold;
  color: #FF9100;
  margin: 0;
}

.game-count span {
  font-size: 48px;
  color: #FF9100;
}

.tap-button {
  width: 200px;
  height: 200px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF9100, #FFC300);
  color: white;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 145, 0, 0.3);
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.tap-button:hover {
  background: linear-gradient(135deg, #FFC300, #FF9100);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(255, 145, 0, 0.4);
}

.tap-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(255, 145, 0, 0.3);
}

.tap-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


/****************************** slick ******************************/
.slider-2 .slick-slide {
  width: 320px;
  height: auto;
  margin: 0 16px;
  position: relative;
  overflow: hidden;
}

.slider-2 .slick-slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.slider-2 .slick-arrow {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #fff;
  cursor: pointer;
  border: none;
  outline: none;
  font-size: 0;
  position: absolute;
  top: 180px;
  z-index: 1;
  filter: drop-shadow(0px 3px 6px rgba(0, 0, 0, 0.16));
}

.slider-2 .slick-arrow::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border: 1px solid #09000d;
  border-width: 3px 3px 0 0;
  position: absolute;
  top: 24px;
  transform: rotate(45deg);
}

.slider-2 .slick-next {
  right: 0;
}

.slider-2 .slick-prev {
  left: 0;
}

.slider-2 .slick-next::before {
  left: 20px;
}

.slider-2 .slick-prev::before {
  border-width: 0 0 3px 3px;
  right: 22px;
}

.dots-2 .slick-dots {
  text-align: center;
}

.dots-2 .slick-dots li {
  display: inline-block;
}

.dots-2 .slick-dots button {
  display: block;
  width: 10px;
  height: 10px;
  margin: 6px;
  font-size: 0;
  padding: 0;
  border: 0;
  outline: none;
  cursor: pointer;
  background: #bcbcbc;
  border-radius: 50%;
}

.dots-2 .slick-dots .slick-active button {
  background: #FF9100;
}

/* 固定フッターナビ */
.fixed-footer-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #000000;
  padding: 8px 4px;
  border-radius: 8px;
  transition: opacity 0.15s ease;
  min-width: 0;
  flex: 1;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.footer-nav-item:hover {
  opacity: 0.7;
}

.footer-nav-item:active {
  opacity: 0.5;
}

.footer-nav-icon {
  font-size: 20px;
  margin-bottom: 6px;
  width: 20px;
  height: 20px;
  /* SVGアイコンを直接16進数で黒色に設定 */
  fill: #000000;
  opacity: 0.7;
}

.footer-nav-text {
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}

/* メインコンテンツに下部余白を追加 */
body {
  padding-bottom: 70px;
}

/* マイページ関連 */
.mypage-container {
  max-width: 400px;
  margin: 30px auto;
  padding: 25px 20px;
  background: linear-gradient(135deg, #FF9100, #FFC300);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(255, 96, 96, 0.3);
}

.mypage-balance {
  color: white;
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 20px;
}

.mypage-balance span {
  font-size: 32px;
  font-weight: bold;
  display: block;
  margin: 8px 0;
}

.mypage-container .btn-primary {
  background: white;
  color: #FF9100;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 25px;
  text-decoration: none;
  display: inline-block;
  margin: 10px 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: auto;
}

.mypage-container .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.mypage-log {
  max-width: 400px;
  margin: 20px auto;
  padding: 0 20px;
  display: flex;
  gap: 10px;
}

.btn-log-point, .btn-log-coin {
  flex: 1;
  background: #f8f9fa;
  color: #666;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.btn-log-point:hover, .btn-log-coin:hover {
  background: #e9ecef;
  color: #495057;
  border-color: #dee2e6;
}

.mypage-menu {
  max-width: 400px;
  margin: 40px auto 20px;
  padding: 0 20px;
  list-style: none;
}

.mypage-menu li {
  border-bottom: 1px solid #e9ecef;
}

.mypage-menu li:last-child {
  border-bottom: none;
}

.mypage-menu li a {
  display: block;
  padding: 15px 0;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.mypage-menu li a:hover {
  color: #FF9100;
}

.mypage-menu li a:before {
  content: '›';
  color: #ccc;
  float: right;
  font-size: 16px;
}

/* ゲームアラート関連 */
.game-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.game-alert-box {
  background: white;
  border-radius: 16px;
  padding: 30px 25px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 320px;
  width: 90%;
  transform: scale(0.9);
  animation: alertSlideIn 0.3s ease forwards;
}

@keyframes alertSlideIn {
  to {
    transform: scale(1);
  }
}

.game-alert-title {
  font-size: 24px;
  font-weight: bold;
  color: #FF9100;
  margin: 0 0 15px;
  text-shadow: 0 2px 4px rgba(255, 96, 96, 0.2);
}

.game-alert-text {
  font-size: 16px;
  color: #333;
  line-height: 1.5;
  margin: 0 0 25px;
}

.game-alert-link {
  display: inline-block;
  background: linear-gradient(135deg, #FF9100, #FFC300);
  color: white;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 15px;
  box-shadow: 0 4px 15px rgba(255, 145, 0, 0.3);
  transition: all 0.3s ease;
}

.game-alert-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 96, 96, 0.4);
  background: linear-gradient(135deg, #e55050, #d44040);
}

.game-alert-close {
  display: block;
  width: 100%;
  background: #f8f9fa;
  color: #666;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.game-alert-close:hover {
  background: #e9ecef;
  color: #495057;
}

/* トースト通知 */
.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  font-size: 14px;
  z-index: 10000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  max-width: 350px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.toast-success {
  background: linear-gradient(135deg, #4CAF50, #45a049);
}

.toast-error {
  background: linear-gradient(135deg, #f44336, #d32f2f);
}

.toast-info {
  background: linear-gradient(135deg, #2196F3, #1976D2);
}

.toast-show {
  opacity: 1;
  transform: translateX(0);
}

@media all and (min-width: 768px) {
  body {
    width: 768px;
    margin: 0 auto;
    padding-bottom: 70px;
  }

  header {
    width: 768px;
  }

  .fixed-footer-nav {
    width: 768px;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ログイン済みユーザー向けのスタイル */
.form-disabled {
  pointer-events: none;
  opacity: 0.6;
  background: #f5f5f5;
}

.btn-logged-in {
  background: #28a745;
  border-color: #28a745;
  cursor: not-allowed;
}

.btn-logged-in:disabled {
  background: #28a745;
  border-color: #28a745;
  opacity: 0.8;
}

/* コイン履歴表示用スタイル */
.status-message {
  text-align: center;
  padding: 20px;
  color: #666;
}

.btn-login {
  display: inline-block;
  background: #007bff;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 10px;
  transition: background 0.3s;
}

.btn-login:hover {
  background: #0056b3;
  color: white;
}

.coin-log-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  background: #fff;
  transition: background 0.2s;
}

.coin-log-item:hover {
  background: #f8f9fa;
}

.log-date {
  font-size: 14px;
  color: #666;
  min-width: 130px;
  flex-shrink: 0;
}

.log-action {
  font-size: 14px;
  color: #333;
  flex-grow: 1;
  padding: 0 12px;
}

.log-coin {
  font-weight: bold;
  font-size: 14px;
  min-width: 80px;
  text-align: right;
  flex-shrink: 0;
}

.coin-plus {
  color: #28a745;
}

.coin-minus {
  color: #dc3545;
}

.no-logs {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-style: italic;
}

.error-message {
  text-align: center;
  padding: 20px;
  color: #dc3545;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  margin: 10px 0;
}

/* コイン履歴のレスポンシブ対応 */
@media (max-width: 600px) {
  .coin-log-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
  }

  .log-date {
    min-width: auto;
    margin-bottom: 4px;
    font-size: 13px;
  }

  .log-action {
    padding: 0;
    margin-bottom: 4px;
  }

  .log-coin {
    min-width: auto;
    text-align: left;
  }
}

/* ギフト履歴表示用スタイル */
.gift-plus {
  color: #6f42c1; /* 紫色でギフトをイメージ */
}

.gift-minus {
  color: #dc3545; /* 赤色でマイナスを表現 */
}

/* ギフトログアイテム */
.gift-log-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  gap: 10px;
  flex-wrap: wrap;
}

.gift-log-item:last-child {
  border-bottom: none;
}

.gift-log-item .log-date {
  flex: 0 0 130px;
  font-size: 14px;
  color: #666;
}

.gift-log-item .log-action {
  flex: 1;
  font-weight: 500;
}

.gift-log-item .log-coin {
  flex: 0 0 80px;
  text-align: right;
  font-weight: bold;
}

.gift-log-item .log-status {
  flex: 0 0 90px;
  text-align: center;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

/* ポイント受け取りボタン */
.gift-log-item .btn-receive-point {
  flex: 0 0 auto;
  margin-left: 10px;
  padding: 8px 16px;
  font-size: 12px;
  border-radius: 6px;
}

/* ステータス色分け */
.status-pending {
  background-color: #ffeaa7;
  color: #d63031;
}

.status-received {
  background-color: #d1f2eb;
  color: #00b894;
}

.status-expired {
  background-color: #f8d7da;
  color: #721c24;
}

.status-cancelled {
  background-color: #f8d7da;
  color: #721c24;
}

.status-confirmed {
  background-color: #cce5ff;
  color: #0984e3;
}

.status-delivered {
  background-color: #d4edda;
  color: #155724;
}

.status-default {
  background-color: #e9ecef;
  color: #6c757d;
}

/* レスポンシブ対応（ギフト履歴） */
@media (max-width: 768px) {
  .gift-log-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .gift-log-item .log-date {
    font-size: 12px;
    flex: none;
  }

  .gift-log-item .log-action {
    font-size: 14px;
  }

  .gift-log-item .log-coin {
    flex: none;
    text-align: left;
  }

  .gift-log-item .log-status {
    flex: none;
    align-self: flex-start;
  }

  .gift-log-item .btn-receive-point {
    align-self: flex-end;
    margin-left: 0;
    margin-top: 8px;
  }
}

/* ポイント交換ページ用スタイル */
.current-coin-display {
  background: #f8f9fa;
  border: 2px solid #007bff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: center;
}

.coin-balance {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.exchange-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
  padding: 0 8px;
}

.exchange-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
  margin-bottom: 8px;
}

.exchange-item:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.exchange-info {
  flex: 1;
}

.exchange-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin: 0 0 8px 0;
}

.exchange-description {
  font-size: 14px;
  color: #666;
  margin: 0 0 12px 0;
}

.exchange-rate {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
}

.required-coins {
  color: #dc3545;
  background: #f8d7da;
  padding: 4px 8px;
  border-radius: 4px;
}

.arrow {
  color: #28a745;
  font-weight: bold;
  font-size: 18px;
}

.get-points {
  color: #007bff;
  background: #d1ecf1;
  padding: 4px 8px;
  border-radius: 4px;
}

.exchange-action {
  margin-left: 20px;
}

.btn-exchange {
  background: #007bff;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.btn-exchange:hover:not(:disabled) {
  background: #0056b3;
}

.btn-exchange:disabled,
.btn-exchange.disabled {
  background: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

/* 楽天ポイント受け取り注意文 */
.rakuten-point-notice {
  font-size: 11px;
  color: #666;
  margin-top: 6px;
  line-height: 1.3;
  padding: 0 4px;
  text-align: left;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .exchange-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 16px;
    margin-bottom: 12px;
  }

  .exchange-action {
    margin-left: 0;
    width: 100%;
  }

  .btn-exchange {
    width: 100%;
    padding: 14px;
  }

  .exchange-rate {
    flex-wrap: wrap;
    gap: 8px;
  }

  .coin-balance {
    font-size: 16px;
  }

  .exchange-container {
    gap: 16px;
    padding: 0 4px;
  }
}

/* 自作アラート（モーダル）スタイル */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.custom-modal {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 90%;
  margin: 20px;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.custom-modal-overlay.show .custom-modal {
  transform: translateY(0);
}

.custom-modal-header {
  padding: 20px 20px 0;
  text-align: center;
}

.custom-modal-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.custom-modal-body {
  padding: 16px 20px 20px;
  text-align: center;
}

.custom-modal-message {
  font-size: 16px;
  line-height: 1.5;
  color: #555;
  margin: 0;
}

.custom-modal-footer {
  display: flex;
  gap: 12px;
  padding: 0 20px 20px;
}

.custom-modal-btn {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-modal-btn-cancel {
  background-color: #f5f5f5;
  color: #666;
}

.custom-modal-btn-cancel:hover {
  background-color: #e8e8e8;
}

.custom-modal-btn-ok {
  background-color: #007bff;
  color: white;
}

.custom-modal-btn-ok:hover {
  background-color: #0056b3;
}

.custom-modal-btn-ok.btn-danger {
  background-color: #dc3545;
}

.custom-modal-btn-ok.btn-danger:hover {
  background-color: #c82333;
}

/* アラート専用スタイル */
.custom-modal-alert .custom-modal-footer {
  justify-content: center;
}

.custom-modal-alert .custom-modal-btn {
  min-width: 100px;
  flex: none;
}

/* 楽天リワードポータルボタン */
#rakuten-portal-section {
  margin: 20px 0;
  text-align: center;
}

.btn-rakuten-portal {
  background: linear-gradient(45deg, #bf0000, #e60012);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(191, 0, 0, 0.3);
  text-decoration: none;
  display: inline-block;
  min-width: 200px;
}

.btn-rakuten-portal:hover {
  background: linear-gradient(45deg, #a00000, #cc0010);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(191, 0, 0, 0.4);
}

.btn-rakuten-portal:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(191, 0, 0, 0.3);
}

.btn-rakuten-portal:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .btn-rakuten-portal {
    font-size: 14px;
    padding: 10px 20px;
    min-width: 180px;
  }
}

.game-list { list-style: none; padding: 0; text-align: center; }
.game-list li { margin: 16px 0; }
.game-link {
  width: 100%; max-width: 320px; padding: 20px;
  font-size: 1.2em; border-radius: 8px; border: 1px solid #ccc;
  background: #f8f8f8; cursor: pointer; transition: background 0.2s;
}
.game-link:hover { background: #e0f7fa; }

.roulette-wheel {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 8px solid #fbc02d;
  margin: 0 auto 24px auto;
  position: relative;
  background: conic-gradient(
    #ffd600 0% 25%,
    #ff7043 25% 50%,
    #81c784 50% 75%,
    #29b6f6 75% 100%
  );
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: transform 3s cubic-bezier(.17,.67,.83,.67);
}

/* ルーレットゲーム */
.roulette-area {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 32px auto;
}

.roulette-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid #333;
  position: relative;
  overflow: hidden;
  transition: transform 0.1s linear;
  background: #fff;
}

.roulette-segment {
  position: absolute;
  width: 50%;
  height: 50%;
  transform-origin: 100% 100%;
}

/* 8分割のセグメント配置 */
.roulette-segment:nth-child(1) { transform: rotate(0deg); }
.roulette-segment:nth-child(2) { transform: rotate(45deg); }
.roulette-segment:nth-child(3) { transform: rotate(90deg); }
.roulette-segment:nth-child(4) { transform: rotate(135deg); }
.roulette-segment:nth-child(5) { transform: rotate(180deg); }
.roulette-segment:nth-child(6) { transform: rotate(225deg); }
.roulette-segment:nth-child(7) { transform: rotate(270deg); }
.roulette-segment:nth-child(8) { transform: rotate(315deg); }

/* セグメントの色分け（8色全て違う色） */
.roulette-segment:nth-child(1) {
  background: #ff6b35; /* オレンジ*/
}

.roulette-segment:nth-child(2) {
  background: #4ecdc4; /* ターコイズ */
}

.roulette-segment:nth-child(3) {
  background: #ffd700; /* ゴールド */
}

.roulette-segment:nth-child(4) {
  background: #9b59b6; /* 紫 */
}

.roulette-segment:nth-child(5) {
  background: #e74c3c; /* 赤 */
}

.roulette-segment:nth-child(6) {
  background: #2ecc71; /* 緑 */
}

.roulette-segment:nth-child(7) {
  background: #3498db; /* 青 */
}

.roulette-segment:nth-child(8) {
  background: #fd79a8; /* ピンク */
}

.roulette-pointer {
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 0;
  border-bottom: 32px solid #e53935;
  position: absolute;
  left: 50%;
  top: 6px; /* 盤の縁ギリギリに調整 */
  transform: translateX(-50%) rotate(180deg); /* 180度回転で内側を向く */
  z-index: 2;
}

.roulette-btn {
  display: block;
  margin: 24px auto 0 auto;
  padding: 14px 40px;
  font-size: 1.2em;
  border-radius: 8px;
  border: none;
  background: #fbc02d;
  color: #333;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.roulette-btn:hover {
  background: #f9a825;
}

.roulette-btn:active {
  background: #ffd600;
}

.roulette-btn:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
}

.play-limit-message {
  text-align: center;
  margin-top: 24px;
  padding: 16px;
  background: #f5f5f5;
  border-radius: 8px;
  color: #666;
}

.roulette-game-section {
  text-align: center;
}

.loading-status {
  text-align: center;
  padding: 40px 20px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.not-logged-in {
  text-align: center;
  padding: 40px 20px;
}

.btn-login {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 24px;
  background: #4caf50;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

/* タップゲーム関連の追加スタイル（1700行目以降に追加） */
.login-message {
  text-align: center;
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

.btn-login {
  display: block;
  margin: 0 auto;
  padding: 12px 30px;
  background: #4285f4;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-login:hover {
  background: #357ae8;
}

#tap-result {
  text-align: center;
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

#tap-result-message {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
}

#tap-limit-message {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-top: 20px;
}

#tap-limit-text {
  font-size: 16px;
  color: #666;
  margin: 0;
}

/* みんポイスタイル */
.minpoi-board-list {
  background: #fff;
  border: 1px solid #ddd;
  margin: 20px 0;
}

.minpoi-board-item {
  border-bottom: 1px solid #eee;
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.minpoi-board-item:hover {
  background-color: #f5f5f5;
}

.minpoi-board-item:last-child {
  border-bottom: none;
}

.minpoi-board-name {
  color: #0066cc;
  text-decoration: none;
  font-size: 14px;
  font-weight: normal;
}

.minpoi-board-name:hover {
  text-decoration: underline;
}

.minpoi-board-info {
  color: #666;
  font-size: 12px;
  margin-left: 10px;
}

.minpoi-board-stats {
  color: #999;
  font-size: 11px;
  margin-top: 2px;
}

/* みんポイ投稿リストページスタイル */
.minpoi-category-header {
  margin-bottom: 20px;
}

.minpoi-posts-list {
  background: #fff;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  margin: 20px 0;
}

.minpoi-post-item {
  border-bottom: 1px solid #eee;
  padding: 8px 0; /* 左右のパディングを削除 */
  font-size: 14px;
  line-height: 1.4;
  background: transparent; /* 背景を透明に */
  border-left: none; /* 縦の枠線を削除 */
  border-right: none; /* 縦の枠線を削除 */
  border-top: none; /* 上の枠線を削除 */
}

.minpoi-post-item:last-child {
  border-bottom: none;
}

.minpoi-post-first-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 2px;
  padding: 0 0; /* 内容部分のみにパディング */
  gap: 0; /* gapを削除して個別にマージンで調整 */
}

.minpoi-post-id {
  color: #777; /* 薄い色に変更 */
  font-weight: normal; /* 太字を解除 */
  font-size: 10px; /* 名前と同じサイズに */
  margin-right: 8px; /* 固定マージン */
  flex-shrink: 0; /* 縮小しない */
}

.minpoi-post-name {
  color: #777; /* 薄い色に変更 */
  font-weight: normal; /* 太字を解除 */
  font-size: 10px; /* 小さい文字に */
  margin-right: 12px; /* 固定マージン */
  min-width: 0; /* flexアイテムのデフォルトの最小幅を無効 */
  flex-shrink: 1; /* 必要に応じて縮小 */
  max-width: 120px; /* 最大幅を設定 */
  overflow: hidden; /* オーバーフローを隠す */
  text-overflow: ellipsis; /* 省略記号を表示 */
  white-space: nowrap; /* 改行しない */
}

.minpoi-post-time {
  color: #777; /* 時間の色 */
  font-size: 10px;
  margin-left: 0; /* 左寄せに変更 */
  flex-shrink: 0; /* 縮小しない */
  white-space: nowrap; /* 改行しない */
}

.minpoi-report-link {
  color: #999;
  font-size: 12px;
  margin-left: auto;
  cursor: default;
}

.minpoi-post-second-line {
  color: #777; /* 時間の色を名前と同じに */
  font-size: 10px; /* 名前と同じサイズに */
  margin-bottom: 1px;
  padding: 0 12px; /* 内容部分のみにパディング */
}

.minpoi-post-third-line {
  display: none; /* UIDは別の場所に移動するため非表示 */
}

.minpoi-post-uid {
  color: #aaa;
  font-size: 10px;
  text-align: right; /* 右寄せ */
  padding: 0 12px; /* 内容部分のみにパディング */
  margin-top: 4px; /* 投稿内容との間隔 */
}

.minpoi-post-content {
  margin: 6px 0;
  line-height: 1.5;
  word-wrap: break-word;
  white-space: pre-wrap;
  font-size: 16px; /* 1-2px大きく */
  padding: 0 0; /* 内容部分のみにパディング */
}

.minpoi-pagination-top,
.minpoi-pagination-bottom {
  text-align: center;
  margin: 15px 0;
}

.minpoi-pagination {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.minpoi-page-btn {
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-decoration: none;
  color: #777; /* 色を薄く */
  border-radius: 3px;
  font-size: 12px; /* 文字サイズを小さく */
}

.minpoi-page-btn:hover {
  background: #f5f5f5;
  color: #555; /* ホバー時も薄めの色 */
}

.minpoi-page-btn.disabled {
  background: #f8f8f8;
  border-color: #e8e8e8;
  color: #ccc;
  cursor: not-allowed;
  pointer-events: none;
  font-size: 12px; /* 無効状態も文字サイズを小さく */
}

.minpoi-page-btn.current {
  background: transparent;
  color: #666;
  border: none;
  font-weight: bold;
  pointer-events: none;
  font-size: 12px; /* 現在ページも文字サイズを小さく */
}

.minpoi-post-form-container {
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  margin: 20px 0;
}

.minpoi-post-form-container h3 {
  margin: 0 0 15px 0;
  font-size: 16px;
}

.minpoi-post-form .form-group {
  margin-bottom: 15px;
}

.minpoi-post-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 14px;
}

.minpoi-post-form input[type="text"],
.minpoi-post-form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 14px;
  box-sizing: border-box;
}

.minpoi-post-form textarea {
  resize: vertical;
  min-height: 100px;
}

.minpoi-post-form .submit-btn {
  background: #0066cc;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 3px;
  cursor: pointer;
}

.minpoi-post-form .submit-btn:hover {
  background: #0056b3;
}

.minpoi-post-form .submit-btn-full {
  width: 100%;
  background: #0066cc;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 10px;
  box-sizing: border-box;
}

.minpoi-post-form .submit-btn-full:hover {
  background: #0056b3;
}

/* 上矢印スクロールボタン */
.scroll-up-btn {
  position: fixed;
  bottom: 150px; /* 下矢印ボタンの上に配置 */
  right: 20px;
  width: 50px;
  height: 50px;
  background: #28a745;
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-up-btn:hover {
  background: #218838;
  box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
  transform: translateY(-2px);
}

.scroll-up-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

/* 下矢印スクロールボタン */
.scroll-down-btn {
  position: fixed;
  bottom: 90px; /* 固定フッター(70px)より上に配置 */
  right: 20px;
  width: 50px;
  height: 50px;
  background: #0066cc;
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-down-btn:hover {
  background: #0056b3;
  box-shadow: 0 6px 16px rgba(0, 102, 204, 0.4);
  transform: translateY(-2px);
}

.scroll-down-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

/* スマートフォン対応 */
@media (max-width: 768px) {
  .scroll-up-btn {
    bottom: 135px; /* スマホでも下矢印ボタンの上に配置 */
    right: 15px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .scroll-down-btn {
    bottom: 85px; /* スマホでも固定フッターより上に配置 */
    right: 15px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* トップページ */
.section-top {
  margin: 0 8px;
  padding: 20px 10px 10px;
  background: #fff;
  text-align: center;
}

.top-list {
  list-style: none;
  padding: 0;
  text-align: center;
}
.top-list li {
  margin: 16px 0;
}
.top-list a {
  display: inline-block;
  width: 100%;
  max-width: 320px;
  padding: 20px;
  font-size: 1.2em;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #f8f8f8;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: #333;
}
.top-list a:hover {
  background: #e0f7fa;
}

/* コイン履歴ページネーション */
.coin-pagination-top,
.coin-pagination-bottom {
  text-align: center;
  margin: 15px 0;
}

.coin-pagination-top .pagination,
.coin-pagination-bottom .pagination {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.coin-pagination-top .page-btn,
.coin-pagination-bottom .page-btn {
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
}

.coin-pagination-top .page-btn:hover,
.coin-pagination-bottom .page-btn:hover {
  background: #f5f5f5;
}

.coin-pagination-top .page-btn.disabled,
.coin-pagination-bottom .page-btn.disabled {
  background: #f8f8f8;
  border-color: #e8e8e8;
  color: #ccc;
  cursor: not-allowed;
  pointer-events: none;
}

.coin-pagination-top .page-btn.active,
.coin-pagination-bottom .page-btn.active {
  background: #007cba;
  color: #fff;
  border-color: #007cba;
  font-weight: bold;
  pointer-events: none;
}

.coin-pagination-top .page-btn.current,
.coin-pagination-bottom .page-btn.current {
  background: transparent;
  color: #666;
  border: none;
  font-weight: bold;
  pointer-events: none;
}

.coin-pagination-top .page-ellipsis,
.coin-pagination-bottom .page-ellipsis {
  color: #666;
  padding: 8px 4px;
}

/* プライバシーポリシーページ */
.privacy-section {
  margin: 0 8px 50px;
  background: #fff;
}

.privacy-container {
  padding: 30px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.privacy-title {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid #007bff;
}

.privacy-contact {
  text-align: center;
  margin-bottom: 40px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.contact-email {
  font-size: 16px;
  margin: 0;
  color: #555;
}

.contact-email a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.contact-email a:hover {
  text-decoration: underline;
}

.privacy-content {
  line-height: 1.8;
}

.privacy-intro {
  margin-bottom: 40px;
  padding: 25px;
  background: #f0f8ff;
  border-left: 5px solid #007bff;
  border-radius: 5px;
}

.privacy-intro h2 {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

.privacy-intro p {
  margin: 0;
  color: #555;
  font-size: 16px;
}

.privacy-item {
  margin-bottom: 30px;
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
}

.privacy-item h3 {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #007bff;
}

.privacy-item p {
  margin: 0;
  color: #555;
  font-size: 15px;
}

.privacy-item ul {
  margin: 15px 0;
  padding-left: 20px;
}

.privacy-item li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: #555;
}

.policy-date {
  margin-top: 15px;
  font-size: 14px;
  color: #666;
  font-style: italic;
}

.privacy-company {
  margin-top: 40px;
  padding: 25px;
  background: #e8f4fd;
  border: 2px solid #007bff;
  border-radius: 10px;
  text-align: center;
}

.privacy-company h3 {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

.company-email {
  font-size: 16px;
  margin: 0;
  color: #555;
}

.company-email a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.company-email a:hover {
  text-decoration: underline;
}

/* 会社概要ページの表をシンプルに */
.company-info-table .details-table th {
  background-color: #f8f9fa;
  color: #333;
  font-weight: bold;
}

.company-info-table .details-table th,
.company-info-table .details-table td {
  border: 1px solid #dee2e6;
}

.company-info-table .details-table {
  border-collapse: collapse;
}

/* お問い合わせフォーム */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 0;
}

.section-description {
  text-align: center;
  margin-bottom: 30px;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.contact-form {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
  font-size: 14px;
}

.required {
  color: #FF9100;
  font-weight: normal;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #FF9100;
  box-shadow: 0 0 0 2px rgba(255, 96, 96, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  text-align: center;
  margin-top: 30px;
}

.contact-result {
  margin-top: 20px;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #c3e6cb;
  text-align: center;
  font-size: 14px;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #f5c6cb;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 768px) {
  .contact-container {
    padding: 10px;
  }

  .contact-form {
    padding: 15px;
  }
}

/* フッターコンテンツのスタイル */
.footer-content {
  background: #333333;
  padding: 25px 20px 15px;
  text-align: center;
  margin-bottom: 0;
}

.footer-copyright {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 15px 0;
  letter-spacing: 0.5px;
}

.footer-disclaimer {
  border-top: 1px solid #999999;
  padding-top: 15px;
  margin-top: 10px;
}

.footer-notice {
  color: #ffffff;
  font-size: 11px;
  margin: 0 0 5px 0;
  line-height: 1.4;
  opacity: 0.8;
}

.footer-notice:last-child {
  margin-bottom: 0;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .footer-content {
    padding: 20px 15px 12px;
  }

  .footer-copyright {
    font-size: 13px;
  }

  .footer-notice {
    font-size: 10px;
  }
}

/* デベロッパー情報のスタイル */
.developer-info {
  margin: 10px 0 15px 0;
}

.developer-name {
  color: #7f8c8d;
  font-size: 14px;
  font-style: italic;
  margin: 0;
  text-align: center;
  letter-spacing: 0.3px;
}

.developer-reference {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #ecf0f1;
  text-align: center;
}

.developer-link-text {
  color: #95a5a6;
  font-size: 12px;
  margin: 0;
  line-height: 1.4;
}

.developer-link {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.developer-link:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .developer-name {
    font-size: 13px;
  }

  .developer-link-text {
    font-size: 11px;
  }

  .details-title-row {
    align-items: flex-start;
    gap: 10px;
  }

  .details-title-row .section-title-details {
    font-size: 20px;
    line-height: 1.4;
  }

  .details-os-icons {
    margin-left: 10px;
    margin-top: 3px;
  }

  .image-details-icon {
    width: 60px;
    height: 60px;
    margin-right: 10px;
  }
}

/* 交換可能ポイント表示 */
.reward-points-section {
  margin: 15px 10px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
}

.reward-points-title {
  font-size: 14px;
  font-weight: bold;
  color: #495057;
  margin: 0 0 8px 0;
}

.reward-points-details, .reward-points-small, .reward-points {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.point-badge {
  background: #6c757d;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.reward-points-small .point-badge {
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 10px;
}

.reward-points-list {
  margin: 8px 0;
}

/* 詳細ページのタイトル行とOSアイコン */
.details-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 10px 15px 10px;
  padding: 16px 0 0;
  gap: 15px;
}

.details-os-icons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.details-os-icons .icon-os {
  width: 20px;
  height: 20px;
}

.details-os-icons {
  display: flex;
  align-items: flex-start;
  margin-left: 15px;
  margin-right: 10px;
  margin-top: 5px;
  flex-shrink: 0;
}

.details-os-icons .icon-os {
  margin-left: 5px;
  width: 16px;
  height: 16px;
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
  .reward-points-section {
    margin: 10px 10px;
    padding: 8px;
  }

  .reward-points-title {
    font-size: 13px;
  }

  .point-badge {
    font-size: 11px;
    padding: 3px 6px;
  }

  .reward-points-small .point-badge {
    font-size: 9px;
    padding: 2px 4px;
  }
}

/* キャッチゲーム */
.time-bar-container {
  width: 100%;
  height: 12px;
  background-color: #ddd;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
}

.time-bar {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
  width: 100%;
  transition: width 0.1s linear;
}

.catch-game-field {
  position: relative;
  width: 100%;
  height: 360px;
  background-color: #87CEEB;
  background-image: url('/assets/img-game/game-catch-background.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 20px;
  /* 基本的なタッチ制御（スクロールは許可） */
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
  user-select: none !important;
  touch-action: pan-y pinch-zoom; /* 縦スクロールとピンチズーム許可 */
}

.catch-item {
  position: absolute;
  width: 60px !important;
  height: 60px !important;
  cursor: pointer;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 10;
  transition: transform 0.1s ease;
  /* タップ改善のスタイル */
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
  user-select: none !important;
  touch-action: none !important;
  pointer-events: auto !important;
}

/* タップ時のハイライト完全無効化 */
.catch-item:active,
.catch-item:focus,
.catch-item:hover {
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.catch-item-red {
  background-image: url('/assets/img-game/game-fan-red.png');
}

.catch-item-gold {
  background-image: url('/assets/img-game/game-fan-gold.png');
}

.catch-item-black {
  background-image: url('/assets/img-game/game-fan-black.png');
}

/* キャッチエフェクト */
.catch-effect {
  position: absolute;
  font-size: 24px;
  font-weight: bold;
  pointer-events: none;
  z-index: 1000;
  animation: catchEffectFade 1s ease-out forwards;
}

.catch-effect-gold {
  color: #FFD700;
}

.catch-effect-red {
  color: #FF6B6B;
}

.catch-effect-black {
  color: #000000;
}

@keyframes catchEffectFade {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-30px);
  }
}

/* 雲 */
.cloud {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50px;
  z-index: 1;
  pointer-events: none;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.score-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 6px 10px;
  margin: 8px 0;
  color: #333;
  font-size: 12px;
  max-width: 100%;
  box-sizing: border-box;
}

.score-display span {
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

.score-display .red-icon {
  color: #dc3545;
}

.score-display .gold-icon {
  color: #ffc107;
}

.score-display .black-icon {
  color: #6c757d;
}

.score-display .score-number {
  font-weight: 700;
  margin-left: 2px;
  font-size: 13px;
}

.score-item {
  text-align: center;
  font-size: 14px;
  color: #333;
}

.score-label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  color: #666;
}

.score-count {
  display: block;
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.btn-start-game {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
  background: linear-gradient(135deg, #FF9100, #FFC300);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 96, 96, 0.3);
}

.btn-start-game:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 96, 96, 0.4);
}

.btn-start-game:active {
  transform: translateY(0);
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
  .catch-game-field {
    height: 360px;
  }

  .catch-item {
    width: 40px;
    height: 40px;
  }

  .score-display {
    padding: 2px;
  }

  .score-item {
    font-size: 12px;
  }

  .score-count {
    font-size: 16px;
  }
}

/* ===== クレーンゲーム スタイル ===== */
.game-container-crane {
  max-width: 400px;
  margin: 4px auto 40px;
  padding: 10px 20px;
  text-align: center;
}

.crane-info-display {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 15px;
  padding: 0 10px;
  width: 100%;
  box-sizing: border-box;
  flex-wrap: nowrap !important;
}

.crane-score {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.crane-score-label {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.crane-score-number {
  font-size: 20px;
  font-weight: bold;
  color: #FF9100;
}

.crane-life {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.crane-life-bars {
  display: flex;
  gap: 2px;
}

.crane-life-bar {
  width: 8px;
  height: 20px;
  background-color: #4CAF50;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.crane-life-bar.empty {
  background-color: #ddd;
}

.crane-game-field {
  position: relative;
  width: 100%;
  height: 360px;
  background-color: #87CEEB;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 20px;
  cursor: pointer;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
  user-select: none !important;
  touch-action: none !important;
}

.crane-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 24px;
  background: linear-gradient(to bottom, #8BC34A, #4CAF50);
  border-top: 2px solid #2E7D32;
}

.crane-cloud {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50px;
  /* アニメーションを削除 - JavaScriptで制御 */
}

/* 追加の雲は個別にサイズ設定されるため、デフォルトサイズは不要 */

#cloud1 {
  width: 60px;
  height: 30px;
  top: 20px;
  left: -60px;
  animation: float 20s infinite linear;
  animation-delay: 0s;
}

#cloud2 {
  width: 80px;
  height: 40px;
  top: 60px;
  left: -80px;
  animation: float 20s infinite linear;
  animation-delay: -7s;
}

#cloud3 {
  width: 50px;
  height: 25px;
  top: 100px;
  left: -50px;
  animation: float 20s infinite linear;
  animation-delay: -14s;
}

@keyframes float {
  0% {
    left: -100px;
  }
  100% {
    left: 100%;
  }
}

@keyframes floatCloud {
  0% {
    left: -100px;
  }
  100% {
    left: calc(100% + 100px);
  }
}

.crane-line {
  position: absolute;
  width: 4px;
  background-color: #666;
  top: 0;
  z-index: 5;
  /* transitionを削除してクレーンラインを瞬間的に移動 */
}

.crane-block {
  position: absolute;
  height: 24px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  z-index: 10;
  /* transitionを削除してブロック縮小を瞬間的に */
}

.crane-block.red {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  box-shadow: 0 2px 4px rgba(244, 67, 54, 0.3);
}

.crane-block.yellow {
  background: linear-gradient(135deg, #ffeb3b, #fbc02d);
  box-shadow: 0 2px 4px rgba(255, 235, 59, 0.3);
}

.crane-block.moving {
  animation: blockMove 2.2s infinite linear;
}

.crane-block.falling {
  animation: blockFall 0.5s ease-in;
}

@keyframes blockMove {
  0% { left: 0px; }
  50% { left: calc(100% - 120px); }
  100% { left: 0px; }
}

@keyframes blockFall {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(400px);
  }
}

/* 着地フィードバックテキスト */
.crane-feedback-text {
  position: absolute;
  font-weight: bold;
  text-align: center;
  pointer-events: none;
  z-index: 20;
  animation: feedbackFadeOut 2s ease-out forwards;
}

.crane-feedback-text.perfect {
  font-size: 24px;
  color: #ffeb3b;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.crane-feedback-text.missed {
  font-size: 18px;
  color: #f44336;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes feedbackFadeOut {
  0% {
    opacity: 1;
    transform: translateY(0px);
  }
  100% {
    opacity: 0;
    transform: translateY(-30px);
  }
}

.crane-game-over {
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  width: 80%;
  max-width: 300px;
}

.crane-game-over h3 {
  margin: 0 0 20px;
  color: #FF9100;
  font-size: 24px;
}

.crane-game-over p {
  margin: 10px 0;
  font-size: 16px;
}

.crane-game-over span {
  color: #FF9100;
  font-weight: bold;
}

/* クレーンゲームランキングボタン */
.crane-ranking-btn {
  display: block;
  margin: 16px auto 0;
  padding: 8px 20px;
  background: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
}

.crane-ranking-btn:hover {
  background: #e8e8e8;
  color: #333;
  border-color: #bbb;
}

.crane-ranking-btn:active {
  background: #ddd;
  transform: translateY(1px);
}

/* ランキングページのスタイル */
.ranking-container {
  text-align: center;
  padding: 40px 20px;
}

.ranking-date-selector {
  text-align: center;
  margin: 20px 0;
  padding: 16px;
  background: #f8f8f8;
  border-radius: 8px;
}

.ranking-date-selector label {
  display: inline-block;
  margin-right: 8px;
  font-weight: bold;
  color: #333;
}

.ranking-date-selector input[type="date"] {
  padding: 6px;
  margin: 0 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.ranking-stats {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
  padding: 16px;
  background: #fff8dd;
  border-radius: 8px;
  border: 1px solid #f0d000;
}

.stats-item {
  text-align: center;
}

.stats-label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.stats-item span:last-child {
  font-size: 16px;
  font-weight: bold;
  color: #FF9100;
}

.ranking-table-container {
  margin: 20px 0;
  overflow-x: auto;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ranking-table th {
  background: #FF9100;
  color: white;
  padding: 12px 8px;
  font-weight: bold;
  text-align: center;
}

.ranking-table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.ranking-table tr:hover {
  background: #f8f8f8;
}

.rank-col {
  width: 15%;
}

.user-col {
  width: 35%;
}

.score-col {
  width: 25%;
}

.time-col {
  width: 25%;
}

.ranking-rank-1 {
  background: #fff8dd !important;
  font-weight: bold;
}

.ranking-rank-2 {
  background: #f5f5f5 !important;
  font-weight: bold;
}

.ranking-rank-3 {
  background: #f9f9f9 !important;
  font-weight: bold;
}

.loading-message {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 20px;
}

.ranking-pagination {
  text-align: center;
  margin: 20px 0;
}

.ranking-pagination button {
  margin: 0 8px;
}

.ranking-pagination span {
  display: inline-block;
  margin: 0 16px;
  font-weight: bold;
  color: #333;
}

.ranking-notes {
  margin: 30px 0;
  padding: 16px;
  background: #f0f8ff;
  border-radius: 8px;
  border-left: 4px solid #0080ff;
}

.ranking-notes h3 {
  margin: 0 0 12px;
  color: #0080ff;
  font-size: 16px;
}

.ranking-notes ul {
  margin: 0;
  padding-left: 20px;
}

.ranking-notes li {
  margin: 4px 0;
  font-size: 14px;
  color: #555;
}

/* モバイル対応 */
@media (max-width: 480px) {
  .crane-info-display {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0;
  }

  .crane-game-field {
    height: 300px;
  }

  .crane-life-bars {
    justify-content: center;
  }

  .ranking-table th,
  .ranking-table td {
    padding: 8px 4px;
    font-size: 14px;
  }

  .user-col {
    width: 40%;
  }

  .score-col {
    width: 20%;
  }

  .time-col {
    width: 25%;
  }
}

/* 招待機能のスタイル */
.invitation-section {
  margin: 20px 8px;
  padding: 20px 15px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-subtitle {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  text-align: center;
}

.invitation-description {
  text-align: center;
  color: #666;
  margin-bottom: 20px;
  font-size: 14px;
}

.invitation-code-container,
.invitation-url-container {
  margin-bottom: 20px;
}

.invitation-code-container label,
.invitation-url-container label {
  display: block;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
  font-size: 14px;
}

.code-display {
  display: flex;
  gap: 10px;
  align-items: center;
}

.code-display input {
  flex: 1;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  background: #f9f9f9;
  font-family: monospace;
  letter-spacing: 1px;
}

.btn-copy {
  padding: 12px 16px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
  transition: background-color 0.3s;
}

.btn-copy:hover {
  background: #0056b3;
}

.btn-copy:active {
  background: #004085;
}

.invitation-stats {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.invitation-stats p {
  margin: 5px 0;
  font-size: 14px;
  color: #333;
}

.invitation-stats span {
  font-weight: bold;
  color: #007bff;
}

.invitation-rewards {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.invitation-rewards h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  text-align: center;
}

.invitation-rewards ul {
  margin: 0;
  padding-left: 20px;
}

.invitation-rewards li {
  margin: 5px 0;
  font-size: 14px;
}

.invitation-rewards strong {
  color: #ffd700;
}

/* ログインページの招待コードフィールド */
.form-hint {
  display: block;
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.btn-secondary {
  background: #6c757d;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  flex: 1;
  transition: background-color 0.3s;
}

.btn-secondary:hover {
  background: #5a6268;
}

.btn-primary {
  flex: 1;
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
  .invitation-section {
    margin: 15px 5px;
    padding: 15px 10px;
  }

  .code-display {
    flex-direction: column;
    gap: 10px;
  }

  .code-display input {
    width: 100%;
    font-size: 14px;
  }

  .btn-copy {
    width: 100%;
    padding: 10px;
  }

  .section-subtitle {
    font-size: 16px;
  }

  .invitation-description {
    font-size: 13px;
  }
}

/* 友達招待エリア */
.invite-section {
  margin: 48px 0;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.invite-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  text-align: center;
}

.invite-code-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px solid #e9ecef;
}

.invite-code {
  font-size: 24px;
  font-weight: bold;
  color: #007bff;
  letter-spacing: 2px;
  text-align: center;
}

.copy-btn {
  background: transparent;
  color: #333;
  border: none;
  border-radius: 4px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 15px;
}

.copy-btn img {
  width: 24px;
  height: 24px;
}

.copy-btn:hover {
  background: #f8f9fa;
  border-radius: 4px;
  transform: scale(1.05);
}

.copy-btn:active {
  transform: scale(0.95);
}

.invite-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.invite-stat-item {
  text-align: center;
  flex: 1;
}

.invite-stat-label {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.invite-stat-value {
  display: block;
  font-size: 20px;
  font-weight: bold;
  color: #007bff;
}

.invite-benefit {
  border: 2px solid #28a745;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
  background: #f8fff8;
}

.invite-hero-img {
  max-width: 200px;
  height: auto;
  margin-bottom: 15px;
}

.invite-benefit-text {
  font-size: 16px;
  font-weight: bold;
  color: #28a745;
  margin: 0;
  line-height: 1.5;
}

.invite-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-invite-share,
.btn-invite-help {
  display: block;
  text-align: center;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-size: 16px;
}

.btn-invite-share {
  background: #28a745;
  color: white;
  border: 2px solid #28a745;
}

.btn-invite-share:hover {
  background: #218838;
  border-color: #218838;
}

.btn-invite-help {
  background: white;
  color: #007bff;
  border: 2px solid #007bff;
}

.btn-invite-help:hover {
  background: #007bff;
  color: white;
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
  .invite-code {
    font-size: 20px;
  }

  .invite-hero-img {
    max-width: 150px;
  }

  .invite-benefit-text {
    font-size: 14px;
  }
}

/* ===== 友達招待ヘルプページ ===== */
.invite-help-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
}

.help-section {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.help-section-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 16px;
  border-bottom: 2px solid #FF6B6B;
  padding-bottom: 6px;
}

/* 招待の流れ */
.help-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.help-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 3px solid #FF6B6B;
}

.step-number {
  background: #FF6B6B;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 6px;
}

.step-content p {
  color: #666;
  line-height: 1.5;
  margin: 0;
  font-size: 14px;
}

/* 特典カード */
.benefit-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.benefit-card {
  background: #FF6B6B;
  color: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.benefit-icon {
  display: none;
}

.benefit-card h3 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
}

.benefit-amount {
  font-size: 20px;
  font-weight: bold;
  margin: 8px 0;
  color: #FFE066;
}

.benefit-card p:last-child {
  font-size: 13px;
  opacity: 0.9;
  margin: 0;
}

/* 注意事項 */
.help-notes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.help-note {
  padding: 16px;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 6px;
}

.help-note h3 {
  font-size: 15px;
  font-weight: bold;
  color: #856404;
  margin-bottom: 6px;
}

.help-note p {
  color: #856404;
  margin: 0;
  line-height: 1.5;
  font-size: 14px;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid #e9ecef;
  border-radius: 6px;
  overflow: hidden;
}

.faq-question {
  background: #f8f9fa;
  padding: 12px 16px;
  margin: 0;
  font-size: 15px;
  font-weight: bold;
  color: #333;
}

.faq-answer {
  padding: 12px 16px;
  margin: 0;
  color: #666;
  line-height: 1.5;
  background: white;
  font-size: 14px;
}

/* お問い合わせセクション */
.help-contact {
  text-align: center;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.help-contact p {
  margin-bottom: 20px;
  color: #666;
  line-height: 1.5;
  font-size: 14px;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.btn-contact, .btn-back {
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s;
  display: inline-block;
  width: 100%;
  max-width: 200px;
  text-align: center;
  font-size: 14px;
}

.btn-contact {
  background: #FF6B6B;
  color: white;
}

.btn-contact:hover {
  background: #FF5252;
}

.btn-back {
  background: #6c757d;
  color: white;
}

.btn-back:hover {
  background: #5a6268;
}

/* レスポンシブ対応 */
@media (min-width: 480px) {
  .benefit-cards {
    grid-template-columns: 1fr 1fr;
  }

  .contact-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .btn-contact, .btn-back {
    width: auto;
    min-width: 140px;
  }
}

/* 同じデベロッパーのアプリセクション & ログイン促進セクション */
.section-same-developer, .section-no-install-points {
  margin: 16px 8px;
  padding: 20px 10px 10px;
  background: #fff;
}

.section-title-same-developer {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 0 0 10px 0;
  padding: 0 0 2px 0;
}

.same-developer-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px;
}

.same-developer-app-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.same-developer-app-item:hover {
  opacity: 0.8;
}

.same-developer-app-link {
  display: flex;
  padding: 12px;
  text-decoration: none;
  color: inherit;
}

.same-developer-app-icon {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  margin-right: 12px;
  flex-shrink: 0;
}

.same-developer-app-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.same-developer-app-title {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.same-developer-app-description {
  font-size: 12px;
  color: #666;
  margin: 0 0 4px 0;
  line-height: 1.4;
}

.same-developer-app-rating {
  font-size: 12px;
  color: #666;
}

.rating-star {
  color: #ffa500;
  margin-right: 2px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .same-developer-apps-grid {
    grid-template-columns: 1fr;
  }

  .same-developer-app-item {
    margin-bottom: 8px;
  }
}

