.parent-main { padding-top: 32px; padding-bottom: 64px; }
.parent-breadcrumb { display: flex; gap: 10px; margin-bottom: 24px; color: var(--text-secondary); font-size: .9rem; }
.parent-breadcrumb a { color: var(--primary-dark); font-weight: 700; }
.parent-page-desc { margin: 0 auto 28px; color: var(--text-primary); font-size: 1rem; line-height: 1.85; }
.parent-section-loading { padding: 30px 0; color: var(--text-secondary); text-align: center; }
.parent-auth-section { max-width: 560px; margin: 30px auto; padding: 38px 30px; border: 1px solid var(--border-color); border-top: 5px solid var(--primary-color); border-radius: var(--border-radius-md); background: #fff; box-shadow: var(--shadow-md); text-align: center; }
.parent-auth-icon { margin-bottom: 12px; font-size: 3.7rem; }
.parent-auth-section h3 { margin-bottom: 10px; color: var(--primary-dark); font-size: 1.55rem; }
.parent-auth-section p { margin-bottom: 22px; color: var(--text-secondary); line-height: 1.7; }
#parent-auth-form { display: flex; flex-direction: column; align-items: center; gap: 14px; }
#parent-pass-input { width: min(100%, 340px); padding: 13px 15px; border: 1.5px solid var(--border-color); border-radius: 6px; font-size: 1.1rem; text-align: center; letter-spacing: .08em; }
#parent-pass-input:focus { outline: 3px solid rgba(13,110,253,.15); border-color: var(--primary-color); }
.parent-auth-btn { padding: 12px 28px; border: 0; border-radius: 6px; color: #fff; background: var(--primary-color); font-weight: 700; cursor: pointer; transition: background-color 0.2s; }
.parent-auth-btn:hover { background: var(--primary-dark); }
.parent-auth-btn:disabled { opacity: .55; cursor: wait; }
.parent-auth-error { display: none; color: #b42318; font-weight: 700; }
.parent-status-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; padding: 13px 18px; border: 1px solid #b6d4fe; border-radius: 6px; color: #084298; background: #cfe2ff; font-weight: 700; }
.parent-status-bar button { padding: 7px 12px; border: 1px solid #9ec5fe; border-radius: 5px; color: #084298; background: #fff; cursor: pointer; font-weight: 600; }
.parent-notice { margin-bottom: 25px; padding: 16px 18px; border-left: 5px solid var(--secondary-color); background: #fffaf0; color: var(--text-primary); line-height: 1.8; border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0; }
.parent-event-tabs { display: flex; gap: 8px; margin: 0 0 24px; padding: 8px 2px 10px; overflow-x: auto; position: sticky; top: var(--parent-sticky-top, 0px); z-index: 5; background: var(--bg-color); scrollbar-width: thin; }
.parent-event-tabs[hidden] { display: none; }
.parent-event-tab { flex: 0 0 auto; max-width: min(70vw, 300px); padding: 10px 18px; border: 1px solid var(--border-color); border-radius: 999px; color: var(--primary-dark); background: #fff; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: all 0.2s; }
.parent-event-tab:hover { border-color: var(--primary-color); color: var(--primary-color); }
.parent-event-tab[aria-selected="true"] { border-color: var(--primary-dark); color: #fff; background: var(--primary-dark); }
.parent-event-tab:focus-visible { outline: 3px solid var(--secondary-color); outline-offset: 2px; }
.parent-photo-grid { min-height: 100px; scroll-margin-top: calc(var(--parent-sticky-top, 0px) + 76px); }
.parent-photo-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin-bottom: 18px; padding: 12px 14px; border: 1px solid var(--border-color); border-radius: 8px; background: #fff; }
.parent-photo-pager:last-child { margin: 22px 0 0; }
.parent-photo-count { color: var(--primary-dark); font-weight: 700; white-space: nowrap; }
.parent-photo-page-controls, .parent-photo-jump, .parent-photo-jump label { display: flex; align-items: center; gap: 8px; }
.parent-photo-page-controls button, .parent-photo-jump button { padding: 8px 12px; border: 1px solid var(--primary-color); border-radius: 6px; color: var(--primary-dark); background: #fff; font-weight: 700; white-space: nowrap; cursor: pointer; }
.parent-photo-page-controls button:hover:not(:disabled), .parent-photo-jump button:hover { background: var(--primary-light); }
.parent-photo-page-controls button:disabled { opacity: .4; cursor: default; }
.parent-photo-page-controls select, .parent-photo-jump input { min-height: 38px; padding: 6px 9px; border: 1px solid var(--border-color); border-radius: 6px; background: #fff; }
.parent-photo-page-controls select { max-width: min(50vw, 220px); }
.parent-photo-jump input { width: 100px; }
.parent-photo-section-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.parent-folder-embed { display: block; width: 100%; height: 640px; border: 1px solid var(--border-color); border-radius: var(--border-radius-md); background: #f8fafc; }
@media (max-width: 700px) { .parent-folder-embed { height: 480px; } }
.parent-photo-card { overflow: hidden; border: 1px solid var(--border-color); border-radius: var(--border-radius-md); background: #fff; box-shadow: var(--shadow-sm); cursor: zoom-in; transition: transform 0.2s, box-shadow 0.2s; }
.parent-photo-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.parent-photo-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e2e8f0; }
.parent-photo-frame img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; transition: transform .25s ease; }
.parent-photo-number { position: absolute; right: 9px; bottom: 9px; padding: 4px 9px; border-radius: 999px; color: #fff; background: rgba(0,0,0,.75); font-size: .85rem; font-weight: 700; }
.parent-photo-card:hover img { transform: scale(1.025); }
.parent-photo-copy { padding: 17px 18px 20px; }
.parent-photo-copy h3 { margin: 0; color: var(--primary-dark); font-size: 1.1rem; }
.parent-photo-copy p { margin: 7px 0 0; color: var(--text-secondary); font-size: .9rem; line-height: 1.65; }
.parent-empty-message { padding: 38px 20px; border: 1px solid var(--border-color); background: #f8fafc; color: var(--text-secondary); text-align: center; border-radius: var(--border-radius-md); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.parent-photo-dialog { margin: auto; width: min(1400px, calc(100% - 30px)); max-height: 94vh; padding: 0; border: 0; border-radius: 10px; background: #0f172a; color: #fff; }
.parent-photo-dialog::backdrop { background: rgba(15, 23, 42, 0.85); }
.parent-dialog-image-stage { display: flex; align-items: center; justify-content: center; min-height: min(60vh, 420px); background: #0f172a; }
.parent-photo-dialog img { display: block; width: 100%; max-height: calc(94vh - 150px); object-fit: contain; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.parent-photo-dialog img[hidden] { display: none; }
.parent-dialog-loading { padding: 30px 20px; color: #cbd5e1; text-align: center; }
.parent-dialog-close { position: absolute; z-index: 2; top: 10px; right: 10px; width: 42px; height: 42px; border: 0; border-radius: 50%; color: #fff; background: rgba(0,0,0,.7); font-size: 1.7rem; cursor: pointer; }
.parent-dialog-navigation { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 8px 20px; font-weight: 700; }
.parent-dialog-navigation button { width: 40px; height: 36px; border: 1px solid #475569; border-radius: 6px; color: #fff; background: #1e293b; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.parent-dialog-navigation button:disabled { opacity: .35; cursor: default; }
.parent-dialog-caption { padding: 17px 21px 21px; }
.parent-dialog-caption h3 { margin: 0; }
.parent-dialog-caption p { margin: 6px 0 0; color: #cbd5e1; line-height: 1.7; }
@media (max-width: 700px) { .parent-main { padding-top: 20px; } .parent-auth-section { padding: 30px 20px; } .parent-status-bar { align-items: flex-start; flex-direction: column; } .parent-event-tab { padding: 9px 15px; } .parent-photo-pager { justify-content: center; } .parent-photo-count { width: 100%; text-align: center; } .parent-photo-jump { justify-content: center; width: 100%; } }
@media print { #parent-photo-content { display: none !important; } }

/* Google Driveフォルダの選択ボタン(選んだフォルダの写真だけを下に表示) */
.parent-folder-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.parent-folder-chip { max-width: 100%; padding: 9px 18px; border: 1px solid var(--border-color); border-radius: 10px; color: var(--primary-dark); background: var(--primary-light); font-weight: 700; text-align: left; overflow-wrap: anywhere; cursor: pointer; transition: all 0.2s; }
.parent-folder-chip:hover { border-color: var(--primary-color); color: var(--primary-color); background: #fff; }
.parent-folder-chip[aria-pressed="true"] { border-color: var(--primary-dark); color: #fff; background: var(--primary-dark); }
.parent-folder-chip:focus-visible { outline: 3px solid var(--primary-color); outline-offset: 2px; }
