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

body {
  background: #111;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  padding: 20px;
  color: #e0e0e0;
}

/* ---- ハンバーガーボタン ---- */
.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  margin-right: 10px;
  flex-shrink: 0;
  color: #888;
  transition: color 0.12s;
}

.hamburger-btn:hover {
  color: #fff;
}

.hamburger-btn svg {
  width: 20px;
  height: 16px;
  display: block;
}

/* ---- サイドバー ---- */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 300;
}

.sidebar-overlay.is-open {
  display: block;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  background: #1a1a1a;
  border-right: 1px solid #2e2e2e;
  z-index: 301;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}

.sidebar.is-open {
  transform: translateX(0);
}

.sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #2e2e2e;
  flex-shrink: 0;
}

.sidebar__title {
  font-size: 14px;
  font-weight: 600;
  color: #e0e0e0;
}

.sidebar__close {
  background: none;
  border: none;
  color: #666;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.1s;
}

.sidebar__close:hover {
  color: #ccc;
}

.sidebar__body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.sidebar__empty {
  font-size: 13px;
  color: #555;
  text-align: center;
  padding: 40px 20px;
}

/* ---- プリセット一覧 ---- */
.preset-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.preset-item {
  display: flex;
  align-items: center;
  padding: 0 8px 0 16px;
  border-bottom: 1px solid #242424;
  font-size: 13px;
  color: #ccc;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  min-height: 40px;
}

.preset-item:hover {
  background: #2a2a2a;
  color: #fff;
}

.preset-grip {
  display: none;
  flex-shrink: 0;
  color: #555;
  font-size: 14px;
  padding: 8px 10px 8px 0;
  cursor: grab;
}

.preset-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 10px 0;
}

.preset-delete {
  display: none;
  flex-shrink: 0;
  background: none;
  border: none;
  color: #666;
  font-size: 12px;
  padding: 8px 6px;
  cursor: pointer;
  transition: color 0.1s;
}

.preset-delete:hover {
  color: #e06d6d;
}

/* ---- 編集モード ---- */
.sidebar__edit-btn {
  background: none;
  border: 1px solid #444;
  border-radius: 3px;
  color: #888;
  font-size: 12px;
  padding: 3px 10px;
  cursor: pointer;
  margin-left: auto;
  margin-right: 8px;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}

.sidebar__edit-btn:hover {
  border-color: #888;
  color: #ccc;
}

.sidebar__edit-btn.is-active {
  border-color: #aaa;
  color: #fff;
  background: #2a2a2a;
}

.preset-list.is-editing .preset-item {
  cursor: default;
}

.preset-list.is-editing .preset-grip {
  display: flex;
}

.preset-list.is-editing .preset-delete {
  display: flex;
}

.preset-item.is-dragging {
  opacity: 0.4;
}

.preset-item.drag-over {
  border-top: 2px solid #888;
}

/* ---- 保存ボタン ---- */
.save-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid #555;
  border-radius: 3px;
  color: #ccc;
  font-size: 13px;
  padding: 5px 14px;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}

.save-btn:hover {
  border-color: #aaa;
  color: #fff;
  background: #1c1c1c;
}

/* ---- モーダル ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  background: #1c1c1c;
  border: 1px solid #333;
  width: 100%;
  max-width: 480px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #2e2e2e;
}

.modal__title {
  font-size: 15px;
  font-weight: 600;
  color: #e0e0e0;
}

.modal__close {
  background: none;
  border: none;
  color: #666;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.1s;
}

.modal__close:hover {
  color: #ccc;
}

.modal__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal__field label {
  font-size: 13px;
  color: #aaa;
}

.modal__field input[type="text"] {
  width: 100%;
  padding: 9px 12px;
  background: #111;
  border: 1px solid #333;
  color: #e0e0e0;
  font-size: 14px;
  outline: none;
  transition: border-color 0.12s;
}

.modal__field input[type="text"]:focus {
  border-color: #666;
}

.modal__field-error {
  font-size: 12px;
  color: #e06d6d;
  min-height: 16px;
}

.modal__preview {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: 12px;
  background: #141414;
  border: 1px solid #2a2a2a;
  padding: 12px 14px;
}

.modal__preview dt {
  color: #666;
  white-space: nowrap;
}

.modal__preview dd {
  color: #999;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px 20px;
  border-top: 1px solid #2e2e2e;
}

.modal__cancel {
  background: none;
  border: 1px solid #333;
  color: #888;
  font-size: 13px;
  padding: 7px 18px;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
}

.modal__cancel:hover {
  border-color: #666;
  color: #ccc;
}

.modal__save {
  background: #fff;
  border: none;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 22px;
  cursor: pointer;
  transition: background 0.12s;
}

.modal__save:hover {
  background: #e0e0e0;
}

.modal__save:disabled {
  background: #555;
  color: #888;
  cursor: not-allowed;
}

.modal__success {
  display: none;
  position: absolute;
  inset: 0;
  background: #1c1c1c;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  color: #6dbd6d;
}

.modal__success.is-shown {
  display: flex;
}

.modal__success i {
  font-size: 20px;
}

/* ---- ヘッダー ---- */
.site-header {
  padding: 10px 20px;
  border-bottom: 1px solid #222;
  margin: -20px -20px 0;
  display: flex;
  align-items: center;
}

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

.logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.logo {
  font-size: 20px;
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.04em;
}

.logo strong {
  font-weight: 700;
  color: #fff;
}

.app {
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---- コントロールパネル ---- */
.control-panel {
  display: flex;
  align-items: stretch;
  gap: 28px;
}

.control-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}

/* ---- ボタングループ ---- */
.button-group {
  display: flex;
  gap: 6px;
  align-items: center;
}

.ctrl-btn {
  width: 76px;
  height: 76px;
  background: #1c1c1c;
  border: 1px solid #333;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.12s, border-color 0.12s;
}

.ctrl-btn:hover {
  background: #2a2a2a;
  border-color: #555;
}

.ctrl-btn:active {
  background: #111;
  border-color: #777;
}

.ctrl-btn i {
  font-size: 20px;
  color: #fff;
}

.key-hint {
  color: #555;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.03em;
}

.mute-btn.is-muted {
  background: #2e2e2e;
  border-color: #555;
}

.mute-btn.is-muted i {
  color: #666;
}

/* ---- レイアウト切替ボタン ---- */
.layout-group {
  display: flex;
  gap: 6px;
}

.layout-btn {
  width: 48px;
  height: 36px;
  background: #1c1c1c;
  border: 1px solid #333;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  color: #555;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.layout-btn:hover {
  background: #2a2a2a;
  border-color: #555;
  color: #aaa;
}

.layout-btn.active {
  border-color: #888;
  color: #e0e0e0;
}

.layout-btn svg {
  width: 100%;
  height: 100%;
}

/* ---- サイズ変更レイアウト ---- */
.video-panel.layout-v1-s1 .video-container:nth-child(1) { flex: 1.5; }
.video-panel.layout-v1-s1 .video-container:nth-child(2) { flex: 1; }

.video-panel.layout-v1-s2 .video-container:nth-child(1) { flex: 2; }
.video-panel.layout-v1-s2 .video-container:nth-child(2) { flex: 1; }

.video-panel.layout-v1-s3 .video-container:nth-child(1) { flex: 3; }
.video-panel.layout-v1-s3 .video-container:nth-child(2) { flex: 1; }

.video-panel.layout-v1-s4 .video-container:nth-child(1) { flex: 4; }
.video-panel.layout-v1-s4 .video-container:nth-child(2) { flex: 1; }

.video-panel.layout-v1-s5 .video-container:nth-child(1) { flex: 5; }
.video-panel.layout-v1-s5 .video-container:nth-child(2) { flex: 1; }

.video-panel.layout-v2-s1 .video-container:nth-child(1) { flex: 1; }
.video-panel.layout-v2-s1 .video-container:nth-child(2) { flex: 1.5; }

.video-panel.layout-v2-s2 .video-container:nth-child(1) { flex: 1; }
.video-panel.layout-v2-s2 .video-container:nth-child(2) { flex: 2; }

.video-panel.layout-v2-s3 .video-container:nth-child(1) { flex: 1; }
.video-panel.layout-v2-s3 .video-container:nth-child(2) { flex: 3; }

.video-panel.layout-v2-s4 .video-container:nth-child(1) { flex: 1; }
.video-panel.layout-v2-s4 .video-container:nth-child(2) { flex: 4; }

.video-panel.layout-v2-s5 .video-container:nth-child(1) { flex: 1; }
.video-panel.layout-v2-s5 .video-container:nth-child(2) { flex: 5; }

/* ---- PiP レイアウト ---- */
.video-panel.layout-pip-tl,
.video-panel.layout-pip-tr,
.video-panel.layout-pip-bl,
.video-panel.layout-pip-br {
  position: relative;
}

.video-panel.layout-pip-tl .video-container:nth-child(2),
.video-panel.layout-pip-tr .video-container:nth-child(2),
.video-panel.layout-pip-bl .video-container:nth-child(2),
.video-panel.layout-pip-br .video-container:nth-child(2) {
  position: absolute;
  width: 33%;
  z-index: 10;
  flex: none;
}

.video-panel.layout-pip-tl .video-container:nth-child(2) { top: 0; left: 0; }
.video-panel.layout-pip-tr .video-container:nth-child(2) { top: 0; right: 0; }
.video-panel.layout-pip-bl .video-container:nth-child(2) { bottom: 0; left: 0; }
.video-panel.layout-pip-br .video-container:nth-child(2) { bottom: 0; right: 0; }

/* ---- 設定パネル ---- */
.settings-panel {
  border: 1px solid #2e2e2e;
  padding: 14px 18px;
  background: #1c1c1c;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 360px;
}

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

.setting-row label {
  font-size: 13px;
  color: #aaa;
  min-width: 110px;
  letter-spacing: 0.02em;
}

.time-input {
  width: 80px;
  padding: 5px 8px;
  border: 1px solid #333;
  background: #111;
  color: #e0e0e0;
  font-size: 14px;
  text-align: center;
  outline: none;
}

.time-input:focus {
  border-color: #666;
}

.skip-input {
  width: 60px;
  padding: 5px 8px;
  border: 1px solid #333;
  background: #111;
  color: #e0e0e0;
  font-size: 14px;
  text-align: center;
  outline: none;
}

.skip-input:focus {
  border-color: #666;
}

.buffering-input {
  width: 80px;
}

.unit {
  font-size: 13px;
  color: #aaa;
}

.set-btn {
  padding: 5px 10px;
  border: 1px solid #333;
  background: #111;
  color: #aaa;
  cursor: pointer;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  white-space: pre-line;
  transition: background 0.12s, color 0.12s;
}

.set-btn:hover {
  background: #2a2a2a;
  color: #e0e0e0;
}

/* ---- 同期スピナー ---- */
.sync-spinner {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.sync-spinner.hidden {
  display: none;
}

.sync-spinner-ring {
  width: 48px;
  height: 48px;
  border: 4px solid #333;
  border-top-color: #e0e0e0;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- 動画パネル ---- */
.video-panel {
  display: flex;
  gap: 12px;
}

.video-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ---- URLバー ---- */
.url-bar {
  display: flex;
  align-items: center;
  background: #1c1c1c;
  border: 1px solid #2e2e2e;
  border-bottom: none;
}

.url-input {
  flex: 1;
  padding: 8px 12px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #ccc;
}

.url-input::placeholder {
  color: #444;
}

.search-btn {
  padding: 8px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #555;
  display: flex;
  align-items: center;
  transition: color 0.12s;
  border-left: 1px solid #2e2e2e;
}

.search-btn:hover {
  color: #e0e0e0;
}

/* ---- プレイヤー領域 ---- */
.player-wrapper {
  background: #0a0a0a;
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border: 1px solid #2e2e2e;
}

.player-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ---- 使い方 ---- */
.how-to {
  border-top: 1px solid #222;
  padding-top: 32px;
  margin-top: 8px;
}

.how-to-title {
  font-size: 20px;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 8px;
}

.how-to-note {
  font-size: 12px;
  color: #666;
  margin-bottom: 20px;
}

.how-to-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.how-to-card {
  background: #1c1c1c;
  border: 1px solid #2e2e2e;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.how-to-step {
  width: 28px;
  height: 28px;
  border: 1px solid #444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #888;
  flex-shrink: 0;
}

.how-to-card h3 {
  font-size: 13px;
  font-weight: 600;
  color: #e0e0e0;
  letter-spacing: 0.02em;
}

.how-to-card p {
  font-size: 12px;
  color: #888;
  line-height: 1.8;
}

.how-to-card i {
  color: #aaa;
}

kbd {
  display: inline-block;
  padding: 1px 6px;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 3px;
  font-size: 11px;
  color: #ccc;
  font-family: inherit;
  line-height: 1.6;
}

.how-to-shortcuts {
  background: #1c1c1c;
  border: 1px solid #2e2e2e;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.how-to-shortcuts h3 {
  font-size: 13px;
  font-weight: 600;
  color: #e0e0e0;
  letter-spacing: 0.02em;
}

.shortcut-table {
  border-collapse: collapse;
  font-size: 12px;
}

.shortcut-table td {
  padding: 5px 20px 5px 0;
  color: #888;
  vertical-align: middle;
}

.shortcut-table td:first-child {
  color: #ccc;
  white-space: nowrap;
}

.shortcut-note {
  font-size: 11px;
  color: #555;
}

/* ---- フッター ---- */
.site-footer {
  margin: 0 -20px -20px;
  padding: 20px 20px;
  border-top: 1px solid #222;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-disclaimer {
  font-size: 11px;
  color: #555;
  line-height: 1.7;
}

.footer-disclaimer a {
  color: #777;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-disclaimer a:hover {
  color: #aaa;
}

.footer-credit {
  font-size: 11px;
  color: #444;
}

.footer-credit a {
  color: #555;
  text-decoration: none;
}

.footer-credit a:hover {
  color: #aaa;
}

.footer-sep {
  margin: 0 8px;
  color: #333;
}

/* ---- レスポンシブ ---- */
@media (max-width: 900px) {
  .control-panel {
    flex-direction: column;
    gap: 16px;
  }

  .control-left {
    order: 2;
    width: 100%;
  }

  .settings-panel {
    order: 1;
    min-width: 0;
    width: 100%;
  }

  .video-panel {
    flex-direction: column;
  }

  .how-to-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  body {
    padding: 12px;
  }

  .ctrl-btn i {
    font-size: 16px;
  }

  .button-group {
    gap: 4px;
    width: 100%;
  }

  .button-group .ctrl-btn {
    flex: 1;
    width: auto;
    min-width: 0;
    height: 56px;
  }

  .how-to-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- ヘッダー右端のauth nav ---- */
.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-nav a {
  font-size: 13px;
  color: #aaa;
  text-decoration: none;
  padding: 5px 14px;
  border: 1px solid #333;
  border-radius: 3px;
  transition: color 0.12s, border-color 0.12s;
}

.header-nav a:hover {
  color: #fff;
  border-color: #666;
}

.header-nav a.btn-primary {
  background: #fff;
  color: #111;
  border-color: #fff;
  font-weight: 600;
}

.header-nav a.btn-primary:hover {
  background: #e0e0e0;
  border-color: #e0e0e0;
  color: #111;
}

.header-nav span {
  font-size: 13px;
  color: #888;
}

.header-nav form button {
  background: none;
  border: 1px solid #333;
  color: #aaa;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 3px;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
}

.header-nav form button:hover {
  color: #fff;
  border-color: #666;
}

/* ---- ユーザーメニュー（ドロップダウン） ---- */
.user-menu {
  position: relative;
}

.user-menu__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid #333;
  border-radius: 3px;
  color: #ccc;
  font-size: 13px;
  padding: 5px 10px;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
}

.user-menu__trigger:hover {
  border-color: #666;
  color: #fff;
}

.user-menu__caret {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transition: transform 0.15s;
}

.user-menu[data-open] .user-menu__caret {
  transform: rotate(180deg);
}

.user-menu__dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 140px;
  background: #1c1c1c;
  border: 1px solid #333;
  z-index: 100;
}

.user-menu[data-open] .user-menu__dropdown {
  display: block;
}

.user-menu__item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  color: #ccc;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}

.user-menu__item:hover {
  background: #2a2a2a;
  color: #fff;
}

/* ---- Googleログインボタン（ヘッダー） ---- */
.btn-google-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #e0e0e0;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid #444;
  border-radius: 3px;
  background: #1c1c1c;
  transition: background 0.12s, border-color 0.12s;
}

.btn-google-header:hover {
  background: #2a2a2a;
  border-color: #666;
  color: #fff;
}

.btn-google-header svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.header-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

/* ---- auth ページ共通 ---- */
.auth-page {
  min-height: 100vh;
  background: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-bottom: 24px;
}

.auth-logo-link img {
  height: 28px;
}

.auth-logo-link span {
  font-size: 18px;
  font-weight: 300;
  color: #fff;
}

.auth-logo-link strong {
  font-weight: 700;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #1c1c1c;
  border: 1px solid #2e2e2e;
  padding: 32px;
}

.auth-card h1 {
  font-size: 18px;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 24px;
}

.auth-alert {
  font-size: 13px;
  color: #6dbd6d;
  background: #1a2e1a;
  border: 1px solid #2d4a2d;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.auth-alert.error {
  color: #e06d6d;
  background: #2e1a1a;
  border-color: #4a2d2d;
}

.auth-field {
  margin-bottom: 18px;
}

.auth-field label {
  display: block;
  font-size: 13px;
  color: #aaa;
  margin-bottom: 6px;
}

.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="text"] {
  width: 100%;
  padding: 9px 12px;
  background: #111;
  border: 1px solid #333;
  color: #e0e0e0;
  font-size: 14px;
  outline: none;
  transition: border-color 0.12s;
}

.auth-field input:focus {
  border-color: #666;
}

.auth-field-error {
  font-size: 12px;
  color: #e06d6d;
  margin-top: 4px;
}

.auth-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.auth-checkbox-row input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #fff;
}

.auth-checkbox-row label {
  font-size: 13px;
  color: #888;
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.auth-link {
  font-size: 13px;
  color: #777;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-link:hover {
  color: #aaa;
}

.auth-submit {
  padding: 9px 24px;
  background: #fff;
  color: #111;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s;
}

.auth-submit:hover {
  background: #e0e0e0;
}

.auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #666;
}

.auth-footer a {
  color: #888;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-footer a:hover {
  color: #aaa;
}

/* ---- Googleログインボタン（authページ） ---- */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 20px;
  background: #fff;
  color: #3c3c3c;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  transition: background 0.12s, box-shadow 0.12s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.google-btn:hover {
  background: #f5f5f5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.google-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
