/*
  LISPO LIFF UI stylesheet
  ------------------------
  スマホのLINE内ブラウザで見やすいように、文字サイズ・余白・ボタンサイズを調整しています。
  画面で使う class 名は liff-form.html / app.js と対応しています。
*/

:root {
  --green: #06c755;
  --green-dark: #0baa55;
  --text: #111827;
  --muted: #667085;
  --card: #ffffff;
  --line: #e5e7eb;
  --danger: #ef4444;
  --shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #e9f8ee 0%, #f7f8fa 40%, #f7f8fa 100%);
  -webkit-text-size-adjust: 100%;
}

/* アプリ全体。スマホでは横幅いっぱい、PCでは中央寄せにします。 */
.app {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 12px 32px;
}

/* 画面上部の緑色ヘッダー */
.hero {
  min-height: 100px;
  display: flex;
  align-items: flex-end;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: 0 0 26px 26px;
  padding: 7px 18px 15px;
  margin: -14px -12px 13px;
  box-shadow: 0 12px 28px rgba(6, 199, 85, 0.2);
}

.hero-kicker {
  margin: 0 0 3px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.88;
}

.hero-title {
  margin: 0 0 4px;
  font-size: 1.5rem;
  line-height: 1.15;
  font-weight: 900;
}

.hero-sub {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  opacity: 0.94;
}

.profile,
.message {
  margin: 10px 2px 14px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  white-space: pre-wrap;
}

.message {
  min-height: 22px;
  text-align: center;
}

/* 白いカード。フォーム・一覧・詳細画面の基本コンテナです。 */
.card {
  background: var(--card);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.section-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 900;
}

.section-note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
  white-space: pre-line;
}

/* 楽曲一覧カード */
.song-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.song-card {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.song-card:active {
  transform: scale(0.99);
  background: #f8faf8;
}

.jacket-small {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  background: #d7f5df;
  flex: 0 0 auto;
}

.song-info {
  min-width: 0;
  flex: 1;
}

.song-title {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 900;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.song-artist {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.3;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.song-meta,
.detail-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eafaf0;
  color: #15803d;
  font-size: 0.78rem;
  font-weight: 900;
}

.pill.gray {
  background: #f3f4f6;
  color: #4b5563;
}

/* 楽曲詳細画面 */
/*.back-button {
  width: auto;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 4px 0 14px;
  cursor: pointer;
}*/

.back-button {
  width: auto;
  margin-bottom: 6px;
  padding: 10px 11px;
  border: none;
  border-radius: 999px;
  background: #f1f3f5;
  color: #595959;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.back-button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
}

.back-text{
  color: #595959;
  font-weight: 700;
}


.detail-jacket {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  object-fit: cover;
  background: #d7f5df;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  margin-bottom: 18px;
}

.detail-title {
  margin: 0 0 6px;
  font-size: 1.65rem;
  line-height: 1.22;
  font-weight: 950;
}

.detail-artist {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

/* ボタン。スマホで押しやすいように高さを大きめにしています。 */
.primary-btn,
.secondary-btn,
.ghost-btn {
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: 16px;
  padding: 14px;
  margin: 10px 0 0;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 900;
  cursor: pointer;
}

.primary-btn {
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(6, 199, 85, 0.22);
}

.primary-btn:disabled,
button:disabled {
  opacity: 0.55;
}

.secondary-btn,
.sns-button {
  background: #111827;
  color: #ffffff;
}

.ghost-btn {
  background: #f3f4f6;
  color: #111827;
}

/* フォーム部品 */
label {
  display: block;
  margin: 12px 0 6px;
  color: #374151;
  font-size: 0.92rem;
  font-weight: 800;
}

input,
textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 13px;
  font-size: 1rem;
  line-height: 1.4;
  background: #fff;
  color: var(--text);
}

textarea {
  min-height: 104px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(6, 199, 85, 0.12);
}

.mini {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.hidden {
  display: none !important;
}

/* audio要素は画面に出しません。再生・一時停止は独自ボタンで操作します。 */
#audioPlayer {
  display: none;
  width: 100%;
}

/* 動画用楽曲の必要最低再生回数表示 */
.info-box {
  margin: 12px 0;
  padding: 12px;
  border-radius: 14px;
  background: #eefdf3;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 900;
}

.player-action-area,
.video-action-area,
.sns-link-area {
  margin-top: 12px;
}

/* SNSリンクボタン。1件なら横幅いっぱい、2件なら横並びにします。 */
.sns-title {
  margin-bottom: 8px;
  font-weight: 800;
}

.sns-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.sns-button {
  flex: 0 0 calc(50% - 5px);
  max-width: calc(50% - 5px);
  min-height: 48px;
  border: none;
  border-radius: 14px;
  padding: 12px 10px;
  font-size: 0.95rem;
  line-height: 1.25;
  font-weight: 900;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sns-button-row .sns-button:only-child {
  flex-basis: 100%;
  max-width: 100%;
}


/* アンケート */
.survey-section {
  margin: 18px 0 8px;
  padding: 14px;
  border-radius: 18px;
  background: #f9fafb;
  border: 1px solid var(--line);
}

.survey-head {
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.survey-head h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  font-weight: 900;
  color: #9a3412;
}

.survey-head p {
  margin: 0;
  color: #7c2d12;
  font-size: 0.9rem;
  line-height: 1.55;
  font-weight: 700;
}

.survey-question {
  margin: 14px 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.survey-question:first-of-type {
  border-top: none;
  padding-top: 0;
}

.survey-label {
  margin: 0 0 10px;
  color: #111827;
  font-size: 0.96rem;
  line-height: 1.55;
  font-weight: 900;
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.option-grid label {
  min-width: 0;
  max-width: none;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.option-grid label.wide {
  grid-column: 1 / -1;
}

.option-grid input[type="radio"],
.option-grid input[type="checkbox"] {
  width: auto;
  margin: 0 8px 0 0;
  flex: 0 0 auto;
  accent-color: var(--green);
}

/* スライダー設問 */
.survey-slider {
  padding: 14px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.slider-current {
  text-align: center;
  color: var(--green-dark);
  font-size: 1rem;
  font-weight: 950;
  margin-bottom: 8px;
}

.survey-slider input[type="range"] {
  width: 100%;
  height: 36px;
  padding: 0;
  border: none;
  box-shadow: none;
  accent-color: var(--green);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  color: #4b5563;
  font-size: 0.68rem;
  line-height: 1.25;
  text-align: center;
}

.slider-labels span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* 動画申請履歴 */
#videoRequestHistory {
  margin-top: 10px;
}

.history-card {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  line-height: 1.55;
}

.history-date {
  color: var(--muted);
  font-size: 0.86rem;
}

.history-status {
  margin-top: 4px;
  font-weight: 900;
}

.history-reason {
  margin-top: 4px;
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 800;
}

.history-link {
  margin-top: 6px;
}

.history-link a {
  color: #0f766e;
  font-weight: 900;
  text-decoration: none;
}

.history-url {
  color: var(--muted);
  font-size: 0.86rem;
}

/* 小さいスマホ向け微調整 */
@media (max-width: 360px) {
  .app {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero-title {
    font-size: 1.45rem;
  }

  .jacket-small {
    width: 58px;
    height: 58px;
  }

  .detail-title {
    font-size: 1.45rem;
  }

  .option-grid {
    grid-template-columns: 1fr;
  }

  .slider-labels {
    font-size: 0.62rem;
  }

  .sns-button {
    font-size: 0.86rem;
    padding-left: 8px;
    padding-right: 8px;
  }
}

/*画像長押し禁止*/
img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

/*お気に入りボタン*/
.favorite-area {
  margin: 12px 0;
}

.favorite-btn {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}
