:root{--ink:#26352f;--muted:#77827b;--green:#4c795f;--green-dark:#345a43;--sage:#eaf0e8;--paper:#faf9f5;--line:#e6e9e3;--coral:#da8f7e;--white:#fff;--shadow:0 16px 45px rgba(48,68,52,.08)}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper);font-family:system-ui,-apple-system,BlinkMacSystemFont,'Hiragino Kaku Gothic ProN','Yu Gothic',Meiryo,sans-serif;font-size:16px;line-height:1.65}a{color:inherit;text-decoration:none}.topbar{height:76px;display:flex;align-items:center;padding:0 max(calc((100% - 1160px)/2),28px);gap:34px;border-bottom:1px solid rgba(62,85,65,.08);background:rgba(250,249,245,.92);position:sticky;top:0;z-index:5;backdrop-filter:blur(12px)}.brand{font-size:18px;font-weight:700;letter-spacing:.02em;white-space:nowrap}.brand-mark{color:var(--green);font-size:26px;margin-right:8px;vertical-align:-2px}.topbar nav{display:flex;gap:26px;color:#66736b;font-size:14px}.topbar nav a:hover,.back-link:hover{color:var(--green)}.member-list img,.view-list img{width:32px;height:32px;border-radius:50%;object-fit:cover}.quiet{border:0;background:none;color:var(--muted);font:inherit;font-size:12px;cursor:pointer;padding:4px}.shell{max-width:1160px;margin:0 auto;padding:40px 28px 80px}footer{text-align:center;color:#99a29b;font-size:12px;padding:28px}.hero{min-height:515px;display:grid;grid-template-columns:1.03fr .97fr;align-items:center;gap:28px;padding:20px 28px 50px}.hero-copy{max-width:520px}.eyebrow{font-size:11px;letter-spacing:.17em;font-weight:700;color:var(--green);margin-bottom:12px}.hero h1{font-size:clamp(38px,5vw,58px);line-height:1.33;letter-spacing:.02em;margin:0 0 18px}.hero h1 em{font-style:normal;color:var(--green)}.hero-copy>p{max-width:460px;color:#67736b;margin:0 0 30px;font-size:16px}.line-button{display:inline-flex;align-items:center;justify-content:center;gap:13px;background:#06c755;color:#fff;border:0;border-radius:10px;padding:13px 23px;font-size:15px;font-weight:700;min-width:220px;box-shadow:0 9px 18px rgba(6,199,85,.16)}.line-button:hover{background:#05b94f}.line-logo{background:#fff;color:#06c755;font-size:10px;font-weight:700;width:30px;height:30px;border-radius:50%;display:grid;place-items:center}.line-button.disabled{background:#bbc5be;box-shadow:none}.muted{color:var(--muted);font-size:13px}.block{display:block;margin-top:9px}.privacy-note{margin-top:20px;color:#718076;font-size:12px}.privacy-note span{margin-right:7px}.hero-art{height:420px;position:relative;display:flex;align-items:center;justify-content:center}.hero-art:before{content:'';position:absolute;width:340px;height:340px;background:#eef1e9;border-radius:50%;right:10%;top:6%}.photo-frame{position:absolute;background:white;border-radius:12px;padding:11px 11px 16px;box-shadow:0 20px 60px rgba(38,53,47,.15);width:205px;text-align:left;z-index:2}.photo-frame b{display:block;margin:8px 0 0 3px;font-size:12px}.photo-frame small{color:#9aa39c;margin-left:3px;font-size:10px}.frame-a{transform:rotate(-8deg);left:15%;top:11%}.frame-b{transform:rotate(7deg);right:12%;bottom:9%}.photo-scene{height:210px;border-radius:7px;display:grid;place-items:center;overflow:hidden}.scene-one{background:linear-gradient(180deg,#bed8cb 0 45%,#92ae8c 45% 72%,#e5cba2 72%);font-size:70px;color:#fff}.scene-two{background:linear-gradient(180deg,#e9ba91 0 32%,#f1d5a4 32% 42%,#87b8b5 42% 77%,#6c9896 77%);font-size:62px;color:#fff8d4}.scribble{position:absolute;right:7%;top:11%;font-family:'Noto Sans JP',sans-serif;font-size:15px;line-height:1.8;color:var(--coral);transform:rotate(8deg);z-index:3}.spark{position:absolute;color:#d5a565;font-size:28px}.spark-one{top:20%;left:8%}.spark-two{right:9%;bottom:22%;font-size:20px}.feature-row{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;border-top:1px solid var(--line);padding:32px 0 8px}.feature-row article{display:flex;gap:15px;align-items:flex-start}.feature-icon{width:42px;height:42px;background:var(--sage);color:var(--green);border-radius:13px;display:grid;place-items:center;font-size:21px;flex:none}.feature-row h2{font-size:14px;margin:0 0 5px}.feature-row p{font-size:12px;color:var(--muted);margin:0}.prototype-note{font-size:12px;color:#909991;margin:30px 0 0;text-align:center}.page-heading{display:flex;justify-content:space-between;align-items:center;margin:10px 0 30px}.page-heading h1{font-size:32px;line-height:1.3;margin:0 0 8px}.page-heading p{color:var(--muted);margin:0;font-size:14px}.button{border:0;border-radius:8px;padding:11px 18px;font:inherit;font-size:14px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.button.primary{color:white;background:var(--green)}.button.primary:hover{background:var(--green-dark)}.button.dark{background:#344b3b;color:#fff}.photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.empty-state{text-align:center;padding:70px 20px 95px}.empty-flower{font-size:36px;color:var(--green);margin-bottom:10px}.empty-state h1,.empty-state h2{font-size:23px;margin:0 0 8px}.empty-state p{font-size:14px;color:var(--muted);margin:0 auto 21px;max-width:540px}.notice{background:#edf4eb;border:1px solid #dce8d8;color:#3f684b;padding:9px 14px;border-radius:8px;margin-bottom:20px;font-size:13px}.notice p{margin:0}.back-link{font-size:13px;color:var(--muted)}.side-card{background:#fff;border:1px solid #e9ede7;border-radius:13px;overflow:hidden}.full-media{display:block;width:100%;height:auto;background:#1e2722}.detail-caption{padding-block:18px}.detail-caption h1{font-size:18px;margin:0 0 4px}.detail-caption p{font-size:13px;color:var(--muted);margin:0}.detail-caption small{color:#98a19b;font-size:11px}.side-card{padding:19px}.side-card h2{font-size:16px;margin:0 0 10px}.view-list,.member-list{list-style:none;margin:10px 0 0;padding:0}.view-list li,.member-list li{display:flex;align-items:center;gap:9px;padding:8px 0;border-top:1px solid #f0f1ee;font-size:13px}.view-list time,.comments time{margin-left:auto;color:#9aa29c;font-size:10px}.avatar,.child-avatar{width:32px;height:32px;border-radius:50%;background:#eaf0e8;color:var(--green);display:grid;place-items:center;font-weight:600;flex:none}.comments article{padding:12px 0;border-top:1px solid #f0f1ee}.comments article b{font-size:12px}.comments article time{float:right}.comments article p{white-space:pre-wrap;font-size:13px;margin:4px 0 0}.comment-form{display:grid;gap:9px;margin-top:14px}.comment-form textarea{min-height:75px;resize:vertical;padding:10px;border:1px solid #dfe4dc;border-radius:8px;font:inherit;font-size:13px}.comment-form .button{justify-self:end}.two-column{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}.child-row{display:flex;gap:11px;align-items:center;padding:11px 0;border-top:1px solid #eef0ec}.child-avatar{width:40px;height:40px;font-size:17px}.child-row b,.child-row small,.member-list small{display:block}.child-row small,.member-list small{font-size:11px;color:var(--muted)}.form-card label{display:grid;gap:6px;font-size:12px;color:#67736b;margin:14px 0}.form-card input{padding:10px;border:1px solid #dfe4dc;border-radius:8px;font:inherit}.form-card .button{margin-top:4px}.member-list li span:nth-child(2){flex:1}.invite-card p{font-size:13px;color:var(--muted)}.invite-result{font-size:12px;color:var(--muted);display:grid;gap:5px;margin-top:20px}.invite-result input{padding:10px;border:1px solid #dfe4dc;border-radius:8px;color:var(--ink);font:inherit;font-size:12px;min-width:0}.invite-card form{margin-top:15px}
@media(max-width:800px){.topbar{padding:0 18px;gap:14px;height:65px}.topbar nav{gap:12px;font-size:12px}.brand{font-size:16px}.shell{padding:27px 18px 55px}.hero{grid-template-columns:1fr;gap:8px;padding:28px 5px 32px}.hero-copy{max-width:620px}.hero-art{height:350px;max-width:520px;width:100%;margin:auto}.photo-frame{width:170px}.photo-scene{height:170px}.hero-art:before{width:290px;height:290px}.feature-row{gap:13px}.feature-row article{gap:9px}.feature-icon{width:34px;height:34px;font-size:17px}.feature-row h2{font-size:12px}.feature-row p{font-size:11px}.photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.page-heading h1{font-size:27px}}@media(max-width:560px){.topbar{padding:0 12px}.topbar nav{gap:9px}.topbar nav a{font-size:11px}.quiet{font-size:11px;padding:2px}.brand-mark{margin-right:4px}.hero h1{font-size:40px}.hero-art{height:320px}.feature-row{grid-template-columns:1fr;gap:17px}.feature-row article{align-items:center}.feature-row h2{font-size:13px}.feature-row p{font-size:12px}.page-heading{display:block}.page-heading>.button{margin-top:18px}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.two-column{grid-template-columns:1fr}.detail-caption{padding-block:14px}}

.upload-trigger {
  position: fixed;
  right: max(1rem, calc(env(safe-area-inset-right) + .75rem));
  bottom: max(1rem, calc(env(safe-area-inset-bottom) + .75rem));
  z-index: 4;
  min-height: 48px;
  padding-inline: 1.25rem;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(38, 53, 47, .24);
}

.upload-dialog,
.install-app-dialog {
  width: min(32rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: clamp(1.25rem, 5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.upload-dialog::backdrop,
.install-app-dialog::backdrop {
  background: rgba(38, 53, 47, .46);
}

.upload-dialog h2,
.install-app-dialog h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.upload-form,
.upload-form label,
.capture-date-edit label {
  display: grid;
  gap: .5rem;
}

.upload-form {
  gap: 1rem;
}

.upload-form input[type=file],
.upload-form select,
.capture-date-edit input[type=date] {
  width: 100%;
  min-width: 0;
  padding: .55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.upload-progress progress {
  display: block;
  width: 100%;
  height: .75rem;
  accent-color: var(--green);
}

.upload-progress progress[hidden] {
  display: none;
}

.upload-progress p {
  margin: .4rem 0 0;
  color: var(--green-dark);
  font-size: .875rem;
}

.upload-form :disabled {
  cursor: wait;
  opacity: .65;
}

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

.detail-download {
  margin-top: .75rem;
}

.capture-date-edit {
  margin-top: .75rem;
}

.capture-date-edit summary {
  width: fit-content;
  color: var(--green-dark);
  font-size: .875rem;
  cursor: pointer;
}

.capture-date-edit form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .5rem;
  margin-top: .5rem;
}

.shell:is(.album-shell, .detail-shell) {
  --page-gutter: 28px;
  --inner-width: min(1104px, calc(100% - var(--page-gutter) - var(--page-gutter)));
  max-width: none;
  padding-top: 0;
  padding-inline: 0;
}

.album-shell > :is(.notice, .empty-state),
.detail-shell > :is(.back-link, .notice, .detail-caption, .detail-aside, .detail-comments) {
  width: var(--inner-width);
  margin-inline: auto;
}

.detail-shell > .back-link {
  display: block;
  padding-block: .6rem;
}

.detail-comments {
  margin-block-start: .75rem;
}

@media (max-width: 800px) {
  .shell:is(.album-shell, .detail-shell) {
    --page-gutter: 18px;
  }
}

.month-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.month-tabs::-webkit-scrollbar {
  display: none;
}

.month-tab {
  position: relative;
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .5rem .85rem;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}

.month-tab::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-top: 2px solid #9eaca3;
  border-right: 2px solid #9eaca3;
  pointer-events: none;
  content: "";
}

.month-tab[aria-selected="true"]::before {
  border-color: var(--green);
}

.month-tab-count {
  font-size: .75rem;
  font-weight: 400;
}

.month-tab[aria-selected="true"] {
  background: #d9eadf;
  color: var(--green-dark);
}

.month-tab:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -3px;
}

.album-month {
  margin: 0 0 2.5rem;
}

.photo-card {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  overflow: hidden;
  background: var(--sage);
}

.photo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--sage);
}

.video-play-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  padding-left: .1rem;
  border-radius: 50%;
  background: rgba(20, 28, 23, .7);
  color: var(--white);
  font-size: .875rem;
  line-height: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.photo-card .new-badge {
  position: absolute;
  top: .35rem;
  left: .35rem;
}

.new-badge {
  padding: .15rem .35rem;
  border-radius: 999px;
  background: #b42318;
  color: var(--white);
  font-size: .625rem;
  font-weight: 700;
  line-height: 1.2;
  pointer-events: none;
}

.photo-card:focus-visible {
  z-index: 1;
  outline: 3px solid var(--green-dark);
  outline-offset: -3px;
}

.album-year-picker {
  position: relative;
  width: fit-content;
}

.album-year-picker::after {
  position: absolute;
  top: 50%;
  right: .65rem;
  width: .45rem;
  height: .45rem;
  border-right: 2px solid var(--green-dark);
  border-bottom: 2px solid var(--green-dark);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
  content: "";
}

.album-year-picker select {
  appearance: none;
  display: block;
  min-height: 38px;
  padding: .3rem 1.6rem .3rem .45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
}

.photo-delete {
  margin-top: .75rem;
}

.photo-delete summary {
  width: fit-content;
  color: #9e4036;
  font-size: .875rem;
  cursor: pointer;
}

.photo-delete form {
  margin-top: .5rem;
}

.photo-delete p {
  margin-bottom: .5rem;
}

.button.danger {
  background: #9e4036;
  color: var(--white);
}

.album-month,
.media-swipe[data-previous-url],
.media-swipe[data-next-url] {
  touch-action: pan-y pinch-zoom;
}

.swipe-frame {
  position: relative;
  overflow: clip;
}

.swipe-preview {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.swipe-month-preview {
  background: var(--paper);
}

.swipe-media-preview {
  width: 100%;
  height: 100%;
  background: #1e2722;
  object-fit: contain;
  object-position: top;
}

.profile-disclosure {
  position: relative;
  margin-left: auto;
  min-width: 0;
  flex-shrink: 0;
}

.profile-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-width: 44px;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
}

.profile-trigger::-webkit-details-marker {
  display: none;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--sage);
  color: var(--green-dark);
  font-weight: 600;
}

.profile-name {
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .8125rem;
}

.profile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: max-content;
  padding: .25rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.profile-menu :is(a, button:not([hidden])) {
  display: block;
  padding: .65rem .85rem;
  border-radius: 6px;
  font-size: .875rem;
}

.profile-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.profile-menu :is(a, button):is(:hover, :focus-visible) {
  background: var(--sage);
}

.display-name-form {
  max-width: 28rem;
}

@media (max-width: 800px) {
  .profile-name {
    display: none;
  }
}
