/* ============================================
   2人だけのアルバム
   Modern Japanese Gothic Aesthetic
   ============================================ */

:root {
    /* パレット */
    --bg: #f5f1ea;
    --bg-warm: #efe9df;
    --surface: #ffffff;
    --ink: #1a1916;
    --ink-soft: #4a4640;
    --ink-mute: #8a8579;
    --accent: #b85420;
    --accent-deep: #8e3f15;
    --danger: #b8242b;
    --line: #e3ddd0;
    --line-soft: #ede6d8;

    /* タイポグラフィ (ゴシック体のみ) */
    --font-display: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
    --font-body: 'Noto Sans JP', 'Zen Kaku Gothic New', system-ui, -apple-system, sans-serif;

    /* スペーシング */
    --gutter: clamp(1rem, 4vw, 3rem);

    /* モーション */
    --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html, body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-style: normal !important;
}

/* 微細なグレインテクスチャ */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================
   ログイン画面
   ============================================ */
.login-screen {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (max-width: 900px) {
    .login-screen { grid-template-columns: 1fr; }
}

.login-content {
    padding: var(--gutter);
    padding-left: clamp(2rem, 8vw, 6rem);
    max-width: 600px;
}

.login-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--ink-mute);
    margin-bottom: 2.5rem;
    display: inline-block;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line);
}

.login-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 8vw, 5.2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.title-accent {
    color: var(--accent);
}

.login-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: var(--ink-soft);
    margin-bottom: 2.5rem;
    max-width: 32ch;
    line-height: 1.9;
}

.login-meta {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--ink-mute);
    letter-spacing: 0.1em;
}

.login-decoration {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

@media (max-width: 900px) {
    .login-decoration { display: none; }
}

.decoration-frame {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 30px 60px -20px rgba(26, 25, 22, 0.18);
    transition: transform 0.8s var(--ease);
}

.frame-1 {
    width: 50%;
    aspect-ratio: 3 / 4;
    top: 12%;
    right: 18%;
    transform: rotate(-3deg);
    background:
        linear-gradient(135deg, rgba(0,0,0,0.05), transparent),
        linear-gradient(160deg, #c9a785 0%, #8b6f47 100%);
}

.frame-2 {
    width: 38%;
    aspect-ratio: 1 / 1;
    top: 38%;
    right: 6%;
    transform: rotate(5deg);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.1), transparent),
        linear-gradient(160deg, #6b8e7f 0%, #3d5a4e 100%);
}

.frame-3 {
    width: 32%;
    aspect-ratio: 4 / 3;
    bottom: 12%;
    right: 24%;
    transform: rotate(-2deg);
    background:
        linear-gradient(135deg, rgba(0,0,0,0.05), transparent),
        linear-gradient(160deg, #d4a574 0%, #a0734a 100%);
}

.login-screen:hover .frame-1 { transform: rotate(-5deg) translateY(-8px); }
.login-screen:hover .frame-2 { transform: rotate(7deg) translateY(-10px); }
.login-screen:hover .frame-3 { transform: rotate(-4deg) translateY(-6px); }

/* ============================================
   アプリレイアウト
   ============================================ */
.app {
    min-height: 100vh;
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--gutter);
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.app-main {
    flex: 1;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0 1.8rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 4rem;
}

.brand-name {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 1;
}

.nav-status {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--ink-soft);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.18);
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

/* ============================================
   ページイントロ
   ============================================ */
.page-intro,
.album-header {
    margin-bottom: 3rem;
    animation: rise 0.8s var(--ease) backwards;
}

.page-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.page-desc {
    color: var(--ink-soft);
    font-size: 0.95rem;
    font-weight: 400;
    max-width: 50ch;
}

.album-header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   作成カード
   ============================================ */
.create-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2rem 2.2rem;
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
    transition: border-color 0.3s var(--ease);
    animation: rise 0.9s var(--ease) backwards;
    animation-delay: 0.1s;
}

.create-card:hover {
    border-color: var(--ink-soft);
}

.create-card-text h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    line-height: 1.4;
    letter-spacing: -0.005em;
}

.create-card-text p {
    color: var(--ink-mute);
    font-size: 0.85rem;
    font-weight: 400;
}

.create-card-form {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

@media (max-width: 700px) {
    .create-card { grid-template-columns: 1fr; }
    .create-card-form { flex-direction: column; }
    .create-card-form .input { min-width: 0; }
}

/* ============================================
   フォーム
   ============================================ */
.input {
    background: var(--bg-warm);
    border: 1px solid var(--line);
    padding: 0.85rem 1.2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--ink);
    border-radius: 2px;
    min-width: 260px;
    transition: all 0.2s var(--ease);
}

.input:focus {
    outline: none;
    border-color: var(--ink);
    background: var(--surface);
}

.input::placeholder {
    color: var(--ink-mute);
}

/* ============================================
   ボタン
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    border: none;
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    padding: 1rem 1.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px -4px rgba(26, 25, 22, 0.08);
}

.btn-primary:hover {
    background: var(--ink);
    color: var(--surface);
    border-color: var(--ink);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -6px rgba(26, 25, 22, 0.25);
}

.btn-dark {
    background: var(--ink);
    color: var(--surface);
}

.btn-dark:hover {
    background: var(--accent);
}

.btn-dark svg {
    transition: transform 0.3s var(--ease);
}

.btn-ghost {
    background: transparent;
    color: var(--ink-soft);
    border: 1px solid var(--line);
}

.btn-ghost:hover {
    background: var(--bg-warm);
    color: var(--ink);
}

.btn-danger {
    background: var(--danger);
    color: var(--surface);
}

.btn-danger:hover {
    background: #951c22;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: var(--ink-soft);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-bottom: 2rem;
    transition: color 0.2s var(--ease);
    letter-spacing: 0.02em;
}

.btn-back:hover {
    color: var(--accent);
}

.btn-back svg {
    transition: transform 0.2s var(--ease);
}

.btn-back:hover svg {
    transform: translateX(-3px);
}

/* ============================================
   アルバムグリッド
   ============================================ */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.album-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    overflow: visible;
    position: relative;
    animation: rise 0.6s var(--ease) backwards;
}

.album-item:nth-child(1) { animation-delay: 0.05s; }
.album-item:nth-child(2) { animation-delay: 0.10s; }
.album-item:nth-child(3) { animation-delay: 0.15s; }
.album-item:nth-child(4) { animation-delay: 0.20s; }
.album-item:nth-child(5) { animation-delay: 0.25s; }
.album-item:nth-child(n+6) { animation-delay: 0.30s; }

.album-item:hover {
    border-color: var(--ink);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -20px rgba(26, 25, 22, 0.18);
}

.album-cover {
    aspect-ratio: 4 / 3;
    background:
        radial-gradient(circle at 30% 30%, rgba(184, 84, 32, 0.06), transparent 50%),
        linear-gradient(135deg, var(--bg-warm), var(--line-soft));
    position: relative;
    overflow: hidden;
}

.album-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease);
}

.album-item:hover .album-cover-img {
    transform: scale(1.04);
}

.album-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.20));
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
}

.album-item:hover .album-cover::after { opacity: 1; }

.album-cover-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--ink-mute);
    opacity: 0.35;
    transition: all 0.4s var(--ease);
}

.album-item:hover .album-cover-icon {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(1.05);
}

.album-info {
    padding: 1.1rem 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.album-info-text {
    overflow: hidden;
    flex: 1;
}

.album-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.005em;
    display: block;
}

.album-photo-count {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--ink-mute);
    margin-top: 0.2rem;
    letter-spacing: 0.05em;
}

.album-arrow {
    color: var(--ink-mute);
    transition: all 0.3s var(--ease);
    flex-shrink: 0;
}

.album-item:hover .album-arrow {
    color: var(--accent);
    transform: translate(2px, -2px);
}

/* ============================================
   アルバムメニュー (リネーム/削除)
   ============================================ */
.album-menu-btn {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    opacity: 0;
    transition: all 0.25s var(--ease);
    z-index: 5;
}

.album-item:hover .album-menu-btn,
.album-menu-btn.active {
    opacity: 1;
}

.album-menu-btn:hover {
    background: var(--ink);
    color: var(--surface);
    border-color: var(--ink);
}

.album-menu {
    position: absolute;
    top: calc(0.6rem + 32px + 6px);
    right: 0.6rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 3px;
    box-shadow: 0 10px 30px -10px rgba(26, 25, 22, 0.25);
    min-width: 160px;
    z-index: 10;
    overflow: hidden;
    animation: dropDown 0.2s var(--ease);
}

@keyframes dropDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.album-menu button {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.7rem 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink);
    text-align: left;
    transition: background 0.15s var(--ease);
}

.album-menu button:hover {
    background: var(--bg-warm);
}

.album-menu button.danger {
    color: var(--danger);
}

.album-menu button.danger:hover {
    background: rgba(184, 36, 43, 0.08);
}

/* ============================================
   写真グリッド
   ============================================ */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.photo-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 2px;
    background: var(--bg-warm);
    cursor: zoom-in;
    position: relative;
    animation: rise 0.5s var(--ease) backwards;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
    display: block;
}

.photo-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.35));
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    pointer-events: none;
}

.photo-item:hover img { transform: scale(1.06); }
.photo-item:hover::after { opacity: 1; }

.photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-mute);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    width: 100%;
    height: 100%;
}

/* ============================================
   空の状態
   ============================================ */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: 4px;
}

.empty-icon {
    color: var(--ink-mute);
    margin-bottom: 1.5rem;
    opacity: 0.5;
    display: inline-flex;
}

.empty-state h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.005em;
}

.empty-state p {
    color: var(--ink-mute);
    font-size: 0.88rem;
    font-weight: 400;
}

/* ============================================
   ライトボックス
   ============================================ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 14, 12, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    cursor: zoom-out;
    animation: fade 0.3s var(--ease);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.lightbox.active { display: flex; }

@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

#lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: auto;
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

#lightbox-img.dragging {
    transition: none;
}

#lightbox-img.fade-out {
    opacity: 0;
}

.lightbox-actions {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 0.6rem;
    z-index: 5;
}

.lightbox-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease);
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-delete:hover {
    background: var(--danger);
    border-color: var(--danger);
}

/* PCのみ表示する前後ナビゲーションボタン */
.lightbox-nav {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease);
    z-index: 5;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-nav:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.lightbox-nav:disabled:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-50%);
}

.lightbox-nav.prev { left: 2rem; }
.lightbox-nav.next { right: 2rem; }

/* マウス&精密ポインタ環境 (PC) のみ表示 */
@media (hover: hover) and (pointer: fine) {
    .lightbox-nav { display: flex; }
}

.lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.4rem 1rem;
    border-radius: 99px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ============================================
   カスタムダイアログ
   ============================================ */
.dialog {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 14, 12, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fade 0.25s var(--ease);
}

.dialog.active { display: flex; }

.dialog-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2rem 2.2rem;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.3);
    animation: rise 0.3s var(--ease);
}

.dialog-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    letter-spacing: -0.005em;
}

.dialog-message {
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    white-space: pre-line;
}

.dialog-input {
    width: 100%;
    margin-bottom: 1.5rem;
    min-width: 0;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}

/* ============================================
   ローダー
   ============================================ */
.loader {
    position: fixed;
    inset: 0;
    background: rgba(245, 241, 234, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loader-spinner {
    width: 36px;
    height: 36px;
    border: 2px solid var(--line);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.loader-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-soft);
    letter-spacing: 0.05em;
}

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

/* ============================================
   トースト通知
   ============================================ */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--ink);
    color: var(--surface);
    padding: 0.85rem 1.6rem;
    border-radius: 2px;
    font-size: 0.88rem;
    font-weight: 500;
    z-index: 300;
    opacity: 0;
    transition: all 0.4s var(--ease);
    pointer-events: none;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    max-width: 90%;
}

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

.toast.error {
    background: var(--danger);
}

/* ============================================
   フッター
   ============================================ */
.app-footer {
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--ink-mute);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* ============================================
   レスポンシブ調整
   ============================================ */
@media (max-width: 700px) {
    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .album-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
    }
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .lightbox { padding: 1rem; }
    .lightbox-actions { top: 1rem; right: 1rem; }
    .lightbox-counter { bottom: 1rem; }
    .album-menu-btn { opacity: 1; }
}
