@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Outfit:wght@300;400;500;700&display=swap');

:root {
  --primary-color: #1e56a0;
  --primary-light: #5899e2;
  --primary-dark: #0f3057;
  --accent-color: #00a8cc;
  --accent-light: #48dbfb;
  --bg-color: #f4f8fb;
  --bg-card: rgba(255, 255, 255, 0.9);
  --text-main: #1f2d3d;
  --text-muted: #5e6d82;
  --border-color: #dcdfe6;
  --shadow-sm: 0 4px 12px rgba(30, 86, 160, 0.04);
  --shadow-md: 0 12px 24px rgba(30, 86, 160, 0.08);
  --shadow-lg: 0 20px 40px rgba(30, 86, 160, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: 'Outfit', 'Noto Sans JP', sans-serif;
  --max-width: 1100px;
}

/* ダークモードは無効化し、常にライトモードで表示を固定 */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  transition: var(--transition);
  background-image: radial-gradient(circle at 10% 20%, rgba(98, 180, 207, 0.05) 0%, transparent 40%),
                    radial-gradient(circle at 90% 80%, rgba(30, 86, 160, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 248, 251, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: #ffffff !important;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(30, 86, 160, 0.2);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 86, 160, 0.3);
  filter: brightness(1.05);
}

.btn-primary:disabled {
  background: #cbd5e1;
  color: #94a3b8 !important;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-main) !important;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-secondary:hover {
  background-color: var(--border-color);
  transform: translateY(-1px);
}

/* Alert / Notification Warnings */
.alert-warning {
  background-color: #fffbeb;
  border: 1px solid #fef3c7;
  color: #b45309;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.alert-warning h4 {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

/* Hero Section */
.hero {
  padding: 6rem 2rem 4rem;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  position: relative;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 3.5rem;
  background: var(--bg-card);
  padding: 1.5rem 3rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

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

.stat-val {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: 'Outfit', sans-serif;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* Slide Carousel Section */
.slide-carousel-section {
  max-width: var(--max-width);
  margin: 0 auto 4rem;
  padding: 0 2rem;
}

.carousel-container {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 3rem 0;
}

.slides-wrapper {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: 900%;
}

.slide-item {
  width: 11.111%;
  flex-shrink: 0;
  padding: 0 5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* PDF Canvas Rendering */
.slide-item canvas {
  max-width: 800px;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  display: block;
}

/* Carousel Controls */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  z-index: 10;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.carousel-btn:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }

.carousel-indicators {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.indicator.active {
  background-color: var(--primary-color);
  width: 24px;
  border-radius: 10px;
}

/* Sections */
section {
  max-width: var(--max-width);
  margin: 0 auto 3rem;
  padding: 3rem 2rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  color: var(--primary-dark);
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 40px;
  height: 4px;
  background-color: var(--primary-light);
  border-radius: 2px;
}

/* Cards */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
}

/* Tables with scroll wrapper for mobile */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.table-style {
  width: 100%;
  border-collapse: collapse;
}

.table-style th, .table-style td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.table-style th {
  background-color: rgba(30, 86, 160, 0.05);
  font-weight: 500;
  color: var(--primary-color);
  white-space: nowrap;
}

/* Table Responsive Block (スマホ用縦並びテーブル) */
.table-responsive-block {
  width: 100%;
  margin-top: 1rem;
}

/* Books & Reports */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2rem;
}

.book-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.book-cover {
  width: 100%;
  height: 240px;
  background-color: #e5eff5;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-info {
  padding: 1.25rem 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.book-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.4;
  color: var(--primary-dark);
}

.book-author {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Reports */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.report-card {
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  transition: var(--transition);
}

.report-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.report-text {
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.25rem;
  border-left: 3px solid var(--primary-light);
  line-height: 1.7;
}

.report-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Form/Input Grid Row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Form Styles */
.form-container {
  max-width: 620px;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.5);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 86, 160, 0.15);
}

.form-control:disabled {
  background-color: #f1f3f5 !important;
  color: #6c757d !important;
  cursor: not-allowed;
  border-color: #dee2e6 !important;
  opacity: 0.8;
}

/* Radio buttons group styling */
.radio-group {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  cursor: pointer;
}

.radio-option input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* History Card */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.history-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 1rem;
  align-items: center;
  transition: var(--transition);
}

.history-card:hover {
  transform: translateY(-2px);
}

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.status-reviewing { background-color: rgba(212, 175, 55, 0.15); color: #b48c08; }
.status-approved { background-color: rgba(30, 86, 160, 0.15); color: #1e56a0; }
.status-rejected { background-color: rgba(220, 53, 69, 0.15); color: #dc3545; }
.status-ordered { background-color: rgba(0, 123, 255, 0.15); color: #007bff; }
.status-sent { background-color: rgba(23, 162, 184, 0.15); color: #17a2b8; }
.status-reported { background-color: rgba(108, 117, 125, 0.15); color: #6c757d; }

/* Tabs (General & Auth) */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.tab {
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* -------------------------------------------------------------
   MYPAGE NAVIGATION TABS (マイページ用タブ)
   ------------------------------------------------------------- */
.mypage-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 2.5rem;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}

.mypage-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.mypage-tab:hover {
  color: var(--primary-color);
}

.mypage-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  font-weight: 700;
}

.mypage-tab-content {
  transition: var(--transition);
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(9, 14, 17, 0.3);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  width: 90%;
  max-width: 650px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-muted);
}



.budget-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  color: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  box-shadow: 0 8px 25px rgba(30, 86, 160, 0.25);
}

.budget-val {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  margin: 0.5rem 0;
}

.budget-progress {
  height: 10px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  overflow: hidden;
  margin-top: 1.5rem;
}

.budget-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-light), var(--accent-color));
  border-radius: 5px;
  transition: width 0.5s ease;
}

/* Toast */
.toast-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  color: var(--text-main);
  border-left: 5px solid var(--primary-color);
  padding: 1.25rem 2rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(-100px);
  opacity: 0;
  animation: toast-in 0.3s forwards cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-color);
}

@keyframes toast-in {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


.d-none { display: none !important; }
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.book-search-preview {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  background-color: rgba(30, 86, 160, 0.03);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-color);
}

.book-search-preview img {
  width: 60px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.book-search-preview-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.book-search-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.book-search-author {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------
   RESPONSIVE DESIGN (スマホ最適化)
   ------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero-stats {
    gap: 2rem;
    padding: 1rem 2rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 1rem;
    flex-direction: column;
    gap: 0.75rem;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .hero {
    padding: 4rem 1rem 2rem;
  }
  .hero h1 {
    font-size: 2.1rem;
    line-height: 1.3;
  }
  .hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    width: 100%;
    max-width: 320px;
  }
  .stat-val {
    font-size: 1.8rem;
  }
  .slide-carousel-section {
    padding: 0 1rem;
  }
  .carousel-container {
    padding: 1.5rem 0;
  }
  .slide-item {
    padding: 0 1rem;
  }
  .slide-item canvas {
    max-width: 100%;
    border-radius: var(--radius-sm);
  }
  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  .carousel-prev { left: 0.25rem; }
  .carousel-next { right: 0.25rem; }
  
  .grid-2col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .card {
    padding: 1.5rem;
  }
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  section {
    padding: 2.5rem 1rem;
    margin-bottom: 1.5rem;
  }
  .form-container {
    padding: 2rem 1.25rem;
    margin: 0 0.5rem;
  }
  
  /* テーブルのスマホ最適化 */
  .table-responsive-block table, 
  .table-responsive-block thead, 
  .table-responsive-block tbody, 
  .table-responsive-block th, 
  .table-responsive-block td, 
  .table-responsive-block tr {
    display: block;
    width: 100%;
  }
  .table-responsive-block thead {
    display: none;
  }
  .table-responsive-block tr {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: #ffffff;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  .table-responsive-block th {
    background-color: rgba(30, 86, 160, 0.08) !important;
    border-bottom: none;
    padding: 0.75rem 1rem 0.25rem !important;
    font-weight: 700;
    font-size: 0.9rem;
  }
  .table-responsive-block td {
    border-bottom: none;
    padding: 0.25rem 1rem 0.75rem !important;
    white-space: normal !important;
    font-size: 0.9rem;
    color: var(--text-main);
  }
  .table-wrapper {
    border: none;
  }

  .history-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .history-card > div:last-child {
    align-items: flex-start !important;
  }
  .history-card > div:last-child button {
    width: 100%;
  }
  
  /* スマホでのタブスクロール・等幅表示 */
  .mypage-tabs {
    gap: 0.25rem;
  }
  .mypage-tab {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    flex: 1;
    text-align: center;
  }

  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
  .toast {
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .nav-links a {
    font-size: 0.85rem;
  }
  .btn-primary, .btn-secondary {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
  .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

#admin-google-login-btn {
  transition: var(--transition);
}

#admin-google-login-btn:hover {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md) !important;
}

/* バリデーションスタイル */
.form-control.is-valid {
  border-color: #06b6d4 !important; /* 美しいシアン・水色に統一 */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2306b6d4' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right calc(0.375em + 0.1875rem) center !important;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
  padding-right: calc(1.5em + 0.75rem) !important;
}

.form-control.is-invalid {
  border-color: #e63946 !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23e63946'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='M5.8 3.6h.4v3.6h-.4zM6 8.4a.5.5 0 1 1 0-1 .5.5 0 0 1 0 1z'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right calc(0.375em + 0.1875rem) center !important;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
  padding-right: calc(1.5em + 0.75rem) !important;
}

/* 共通プレミアムフッタースタイル */
.site-footer {
  background-color: #0f2b5c; /* 高級感のある深い紺色 */
  border-top: 2px solid #1e56a0;
  padding: 4rem 2rem 3rem;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  margin-top: 6rem;
}

.site-footer .footer-logo {
  font-weight: 700;
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: 0.1rem;
}

.site-footer p {
  margin: 0.6rem 0;
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.site-footer a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.8rem;
  transition: var(--transition);
  border-bottom: 1px dashed #64748b;
  padding-bottom: 1px;
}

.site-footer a:hover {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
}

.deploy-timestamp {
  font-size: 0.7rem !important;
  color: #94a3b8 !important;
  margin-top: 1.5rem !important;
  background-color: rgba(255, 255, 255, 0.05);
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 申請完了画面（完了カード） */
.success-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  max-width: 600px;
  margin: 3rem auto;
}

.success-icon {
  font-size: 4rem;
  color: #10b981;
  margin-bottom: 1.5rem;
  animation: scale-up 0.5s ease-out;
}

.success-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.success-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* ISBN自動取得ステータスバッジ */
.isbn-status-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  min-height: 24px;
}

.isbn-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
}

.isbn-status-loading {
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.isbn-status-success {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.isbn-status-failed {
  background-color: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

@keyframes scale-up {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Toast close button style */
.toast-close-btn {
  opacity: 0.7;
  transition: var(--transition);
}
.toast-close-btn:hover {
  opacity: 1;
}

/* Admin Login Page Style */
.admin-login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  box-sizing: border-box;
}

.admin-login-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 450px;
  width: 100%;
  text-align: center;
}


