/* =========================
   ベース
========================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 16px;
  padding-bottom: 140px; /* 下部アクションバー分 */
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  color: #1f2a35;
  background: #f2f4f8;
}


/* =========================
   ヘッダー
========================= */
.header {
  width: 100%;
  height: 180px;
  margin-bottom: 18px;

  background-image: url("https://raw.githubusercontent.com/PG-Lou/pg-live-log/main/images/header.png");
  background-size: cover;
  background-position: center;

  border-radius: 18px;
}


/* =========================
   ユーザー入力
========================= */
.user-info {
  max-width: 820px;
  margin: 0 auto 28px;
  display: grid;
  gap: 14px;
}

.user-info input {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  border-radius: 14px;
  border: none;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(6px);
  color: #1f2a35;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.08),
    0 2px 6px rgba(0,0,0,0.05);
}

.user-info input:focus {
  outline: none;
  background: rgba(255,255,255,0.95);
  box-shadow:
    inset 0 0 0 1.5px rgba(80,120,200,0.45),
    0 4px 10px rgba(80,120,200,0.15);
}

.user-info input::placeholder {
  color: rgba(30,40,55,0.45);
}


/* =========================
   ライブ一覧
========================= */
.live-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}


/* =========================
   TOURカード
========================= */
.tour {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.tour::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.22);
  pointer-events: none;
}

.strike{
  text-decoration: line-through;
  opacity: .7;
}


/* =========================
   TOURヘッダー
========================= */
.liveHeader {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: #1f2a35;
}

.chev {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.chevIcon {
  width: 16px;
  height: 16px;
  transition: transform .18s ease;
}

.liveHeader[aria-expanded="true"] .chevIcon {
  transform: rotate(90deg);
}


/* =========================
   チェックボックス
========================= */
.pgCheck,
.show-check {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid rgba(0,0,0,0.35);
  background: rgba(255,255,255,0.85);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.pgCheck:checked,
.show-check:checked {
  background: #1f2a35;
  border-color: #1f2a35;
}

.pgCheck:checked::after,
.show-check:checked::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2.4px solid #fff;
  border-bottom: 2.4px solid #fff;
  transform: rotate(-45deg);
}


/* =========================
   タイトル
========================= */
.liveTitle {
  font-size: clamp(14px, 3.5vw, 16px);
  font-weight: 650;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* =========================
   展開内容
========================= */
.tour-content {
  position: relative;
  z-index: 1;
  padding: 12px 16px 16px;
}

.year-title {
  display: inline-block;
  margin: 10px 0 8px;
  padding: 4px 10px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
}

.show-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.35;
  background: rgba(255,255,255,0.5);
  border-radius: 12px;
}


/* =========================
   下部アクションバー
========================= */
.action-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);

  display: flex;
  gap: 12px;
  align-items: center;

  width: calc(100% - 32px);
  max-width: 820px;

  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);

  border-top: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px 16px 0 0;

  z-index: 1000;
}

.action-bar #bg-select {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 12px;
  border: none;
  background: rgba(255,255,255,0.95);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.15),
    0 1px 4px rgba(0,0,0,0.05);
}

.action-bar #export-btn {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  background: #1f2a35;
  color: #fff;
  white-space: nowrap;
}

.action-bar #export-btn:disabled {
  opacity: 0.35;
}

/* =========================
   export-area（html2canvas用）
========================= */
#export-area {
  position: fixed;
  left: -10000px;
  top: 0;
  overflow: hidden;
}


/* =========================
   上部：はじめに（テキストリンク）
========================= */
.top-actions{
  max-width: 820px;
  margin: 0 auto 12px;
  display: flex;
  justify-content: flex-start;
}

/* もともとの “ボタン” をリンクっぽく */
.about-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  /* ボタンっぽさ消す */
  padding: 4px 2px;
  border: none;
  background: transparent;
  box-shadow: none;

  /* 文字リンクのトーン */
  font-size: 13px;
  font-weight: 600;
  color: rgba(31,42,53,0.75);
  cursor: pointer;

  /* 下線はホバー時だけ */
  text-decoration: none;
  text-underline-offset: 3px;
}

/* “i” も控えめに */
.about-i{
  width: 16px;
  height: 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;

  border: 1px solid rgba(31,42,53,0.25);
  background: transparent;
  color: rgba(31,42,53,0.7);

  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

/* マウスの時だけ、リンクだよ感 */
.about-btn:hover{
  color: rgba(31,42,53,1);
  text-decoration: underline;
}

/* キーボード操作のフォーカスも同じ見え方に */
.about-btn:focus-visible{
  outline: none;
  color: rgba(31,42,53,1);
  text-decoration: underline;
}

/* =========================
   モーダル
========================= */
.modal{
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(10,12,16,0.45);
  backdrop-filter: blur(2px);
}

.modal-panel{
  position: relative;
  width: min(92vw, 720px);
  max-height: min(84vh, 820px);
  margin: 7vh auto 0;
  border-radius: 18px;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 18px 60px rgba(0,0,0,0.25);
  overflow: hidden;
  outline: none;
  display: flex;
  flex-direction: column
}

.modal-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.85);
}

.modal-title{
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.modal-close{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.9);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.modal-body{
  padding: 16px;
  overflow: auto;
  color: #1f2a35;
  font-size: 14px;
  line-height: 1.6;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0
}

.modal-h3{
  margin: 14px 0 8px;
  font-size: 14px;
  font-weight: 800;
}

.modal-ol, .modal-ul{
  margin: 0 0 8px;
  padding-left: 20px;
}

.modal-box{
  margin: 12px 0;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(242,244,248,0.8);
}

.modal-box-title{
  font-weight: 800;
  margin-bottom: 6px;
}

.modal-footer{
  padding: 12px 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.85);
  display: flex;
  justify-content: flex-end;
}

.modal-ok{
  padding: 10px 16px;
  border-radius: 12px;
  border: none;
  background: #1f2a35;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.modal-header,
.modal-footer{
  flex: 0 0 auto;
}

/* iPhoneの下（ホームバー）に潜らないようにする */
.modal-panel {
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}



