.guestbook-page::before { background: linear-gradient(#eff8ff14, #eff8ff08), url('./images/cloud-guestbook.webp') center center / cover no-repeat; }
.guestbook-page .guestbook-main { max-width: 1180px; width: calc(100% - 64px); padding: 0; background: transparent; border: 0; box-shadow: none; }
.guestbook-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 27px 32px; background: transparent; border: 0; margin-bottom: 18px; text-shadow: 0 1px 4px #fff; }
.guestbook-eyebrow { display: block; font-size: 13px; color: #2992a8; letter-spacing: .06em; margin-bottom: 10px; }
.guestbook-intro h1 { font-size: 32px; font-weight: 750; line-height: 1.4; color: #223a57; margin: 0 0 8px; }
.guestbook-intro p { margin: 0; font-size: 15px; color: #58708d; }
.guestbook-write { flex-shrink: 0; font-size: 14px; border: 0; background: #20a5b7; }
.guestbook-wall-section { border: 0; border-radius: 14px; overflow: hidden; background: transparent; box-shadow: none; }
.guestbook-wall { position: relative; height: 460px; overflow: hidden; contain: layout paint; background: transparent; }
.guestbook-wall .guestbook-bubble { position: absolute; left: 0; display: block; width: max-content; max-width: none; min-height: 36px; padding: 5px 2px; border: 0; border-radius: 0; background: transparent; color: #25435f; text-align: left; font-size: 16px; line-height: 1.6; white-space: nowrap; box-shadow: none; text-shadow: 0 1px 3px #fff, 0 0 8px #ffffffd9; cursor: pointer; }
.guestbook-wall .bubble-tone-1 { color: #53476d; }
.guestbook-wall .bubble-tone-2 { color: #245b54; }
.guestbook-wall .bubble-tone-3 { color: #69485c; }
.guestbook-wall .bubble-tone-4 { color: #66513b; }
.bubble-copy, .bubble-copy strong, .bubble-text { display: inline; max-width: none; margin: 0; font-size: inherit; line-height: inherit; color: inherit; white-space: nowrap; }
.bubble-copy strong { font-weight: 650; }
.guestbook-bubble:hover .bubble-copy { text-decoration: underline; text-underline-offset: 4px; }
.guestbook-list { background: #ffffffd9; padding: 15px 24px; border-top: 1px solid #ffffffc9; }
.guestbook-list summary { color: #4e7893; font-size: 13px; cursor: pointer; }
.guestbook-message-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.guestbook-source { background: #fff; border: 1px solid #dfe8f5; border-radius: 12px; padding: 18px; min-width: 0; }
.source-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; color: #34516f; font-size: 14px; }
.source-heading time { color: #8191a6; font-size: 12px; }
.guestbook-source > p { font-size: 14px; line-height: 1.8; margin: 12px 0 0; color: #51647d; }
.message-reply { margin-top: 16px; border-radius: 9px; padding: 12px 15px; background: #eef6ff; color: #4b6b8b; font-size: 13px; }
.message-reply > p { margin: 7px 0 0; }
.wall-empty { text-align: center; padding: 70px 20px; }
.wall-empty > span { font-size: 44px; color: #7faabd; }
.wall-empty h2 { color: #456580; font-size: 21px; margin: 13px 0 9px; }
.wall-empty p { color: #6d879e; font-size: 14px; margin: 0; }
.guestbook-compose { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 42px; padding: 30px 34px; margin-top: 22px; background: #fffffff2; border: 1px solid #ffffffd9; border-radius: 16px; scroll-margin-top: 20px; }
.compose-intro h2 { font-size: 25px; color: #28425f; margin-bottom: 12px; }
.compose-intro p { color: #6a7f98; font-size: 14px; line-height: 1.9; }
.compose-decoration { display: inline-grid; place-items: center; width: 70px; height: 70px; margin-top: 16px; background: #eef4ff; border-radius: 24px; font-size: 38px; color: #7ea0c4; transform: rotate(-8deg); }
.guestbook-compose form { margin: 0; min-width: 0; }
.guestbook-compose label { color: #3c5673; font-size: 14px; margin-top: 0; }
.guestbook-compose label[for=guest-body] { margin-top: 18px; }
.guestbook-page .guestbook-compose input[name=nickname], .guestbook-compose textarea { background: #f8faff; border-color: #dce5f2; border-radius: 10px; font-size: 15px; }
.guestbook-compose textarea { min-height: 130px; }
.compose-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 15px; }
.compose-bottom p { margin: 0; font-size: 12px; color: #76899f; }
.compose-bottom button { padding: 10px 24px; font-size: 14px; background: #24a8b9; border: 0; }
.message-dialog { width: min(580px, calc(100vw - 36px)); max-height: 80vh; border: 1px solid #d3e2f2; border-radius: 18px; padding: 25px; color: #35506e; background: #fcfeff; box-shadow: 0 20px 90px #19304c40; }
.message-dialog::backdrop { background: #18314c6b; }
.message-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.message-dialog h2 { font-size: 20px; margin: 0; overflow-wrap: anywhere; }
.message-dialog-close { padding: 0 9px; font-size: 24px; line-height: 1.5; border: 0; }
#message-dialog-body { font-size: 15px; line-height: 1.9; margin-bottom: 0; }
@media(max-width: 850px) { .guestbook-compose { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 26px; } }
@media(max-width: 600px) {
  .guestbook-page .guestbook-main { width: calc(100% - 28px); }
  .guestbook-intro { flex-direction: column; align-items: flex-start; padding: 23px; gap: 18px; }
  .guestbook-intro h1 { font-size: 26px; }
  .guestbook-intro p { font-size: 14px; }
  .guestbook-wall { height: 358px; }
  .guestbook-wall .guestbook-bubble { max-width: none; padding: 5px 2px; font-size: 14px; }
  .guestbook-list { padding: 14px; }
  .guestbook-message-list { grid-template-columns: minmax(0, 1fr); }
  .guestbook-compose { grid-template-columns: minmax(0, 1fr); padding: 23px; gap: 15px; }
  .compose-intro h2 { font-size: 23px; }
  .compose-intro p, .compose-decoration { display: none; }
}
