*{margin:0;padding:0;box-sizing:border-box}body{font-family:Noto Sans JP,sans-serif;background:linear-gradient(135deg,#667eea,#764ba2);color:#333;min-height:100vh}#app{min-height:100vh;display:flex;flex-direction:column}.header{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:32px 16px;text-align:center;box-shadow:0 8px 24px #667eea66;position:relative;overflow:hidden}.header:before{content:"";position:absolute;top:-50%;right:-10%;width:200px;height:200px;background:#ffffff1a;border-radius:50%;animation:float 6s ease-in-out infinite}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(20px)}}.header h1{font-size:36px;font-weight:800;position:relative;z-index:1;letter-spacing:1px;text-shadow:2px 2px 4px rgba(0,0,0,.2)}.main{display:flex;flex-direction:column;gap:24px;padding:24px 16px;max-width:900px;margin:0 auto;flex:1;position:relative;z-index:1}.form-section{display:flex;flex-direction:column;gap:16px;padding:24px;background:linear-gradient(135deg,#fff,#f8f9ff);border-radius:20px;box-shadow:0 10px 30px #667eea40;border:2px solid rgba(255,255,255,.6);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.form-body{display:flex;flex-direction:column;gap:16px}.form-group{display:flex;flex-direction:column;gap:8px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-group-half{margin:0}.section-title{font-size:20px;font-weight:700;margin-bottom:8px;color:#333;display:flex;align-items:center;gap:8px}.form-group label{font-weight:600;font-size:15px;color:#333;display:flex;align-items:center;gap:4px}.hint{font-size:12px;color:#667eea;margin-top:4px;opacity:.8;font-weight:500}.form-group input,.form-group textarea{padding:12px 16px;border:2px solid #e0e7ff;border-radius:12px;font-family:inherit;font-size:14px;color:#333;transition:all .3s ease;background:#fff}.form-group input:focus,.form-group textarea:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 4px #667eea26;transform:translateY(-2px)}.form-group textarea{resize:vertical;min-height:100px}#shuffle-btn{padding:16px 24px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:14px;font-size:18px;font-weight:700;cursor:pointer;transition:all .3s ease;box-shadow:0 8px 20px #667eea4d;position:relative;overflow:hidden;letter-spacing:.5px}#shuffle-btn:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:#ffffff4d;transition:left .5s ease;z-index:0}#shuffle-btn:hover:not(:disabled):before{left:100%}#shuffle-btn:hover:not(:disabled){transform:translateY(-4px);box-shadow:0 12px 28px #667eea66}#shuffle-btn:active:not(:disabled){transform:translateY(-2px)}#shuffle-btn:disabled{background:linear-gradient(135deg,#ccc,#999);cursor:not-allowed;opacity:.6}.grid-section{flex:1;padding:24px;background:linear-gradient(135deg,#fff,#f8f9ff);border-radius:20px;box-shadow:0 10px 30px #667eea40;border:2px solid rgba(255,255,255,.6);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.grid-info{font-size:14px;color:#667eea;font-weight:600;margin-bottom:16px;padding:8px 12px;background:#667eea14;border-radius:8px;border-left:3px solid #667eea}#grid-info-text{font-weight:700}.seat-grid{display:grid;gap:12px;grid-template-columns:repeat(6,1fr);animation:fadeIn .5s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes pulse{0%{background-color:#667eea14}50%{background-color:#667eea29}to{background-color:#667eea14}}@keyframes slideIn{0%{opacity:0;transform:scale(.95) translateY(8px)}to{opacity:1;transform:scale(1) translateY(0)}}.seat-card{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:14px;box-shadow:0 6px 16px #667eea4d;padding:12px 8px;text-align:center;font-size:15px;min-height:64px;display:flex;align-items:center;justify-content:center;word-break:break-word;transition:all .3s cubic-bezier(.34,1.56,.64,1);font-weight:600;cursor:default;position:relative;perspective:1000px}.seat-card:hover{transform:translateY(-6px) scale(1.05);box-shadow:0 10px 24px #667eea66}.seat-card.flipping{transform:rotateY(90deg);opacity:.3}.seat-card.empty{background:#667eea0f;box-shadow:none;border:2px dashed rgba(102,126,234,.3);cursor:default}.seat-card.empty:hover{transform:none;box-shadow:none}@media (min-width: 768px){html:not(.embedded) .main{flex-direction:row;align-items:flex-start;gap:24px}html:not(.embedded) .form-section{width:300px;flex-shrink:0;height:fit-content}html:not(.embedded) .grid-section{flex:1}html:not(.embedded) .seat-grid{grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:12px}html:not(.embedded) .seat-card{font-size:16px;min-height:70px}}@media (max-width: 767px){html:not(.embedded) .header h1{font-size:32px}html:not(.embedded) .header{padding:24px 16px}html:not(.embedded) .main{padding:16px;gap:16px}html:not(.embedded) .form-section,html:not(.embedded) .grid-section{padding:16px;border-radius:16px}html:not(.embedded) .seat-grid{grid-template-columns:repeat(auto-fill,minmax(70px,1fr));gap:10px}html:not(.embedded) .seat-card{font-size:13px;min-height:56px;padding:10px 6px}html:not(.embedded) #shuffle-btn{font-size:16px;padding:14px 20px}}.arukun-wrapper{position:relative;z-index:1;margin-top:12px;display:flex;align-items:center;justify-content:center;gap:10px}.arukun{width:56px;height:56px;flex-shrink:0;filter:drop-shadow(0 4px 8px rgba(0,0,0,.25));animation:arukunBob 3s ease-in-out infinite}@keyframes arukunBob{0%,to{transform:translateY(0)}50%{transform:translateY(-6px)}}.arukun-speech{background:#fff;color:#4a4a6a;font-size:14px;font-weight:700;padding:8px 14px;border-radius:16px;position:relative;box-shadow:0 4px 12px #00000026}.arukun-speech:after{content:"";position:absolute;right:-8px;top:50%;transform:translateY(-50%);border:6px solid transparent;border-left-color:#fff}html.embedded,html.embedded body{height:100%;overflow:hidden;overscroll-behavior:auto}html.embedded body{margin:0;min-height:0}html.embedded #app{width:640px;max-width:none;height:480px;min-height:480px;margin:0;overflow:hidden;transform-origin:top left;transform:scale(var(--embed-scale, 1))}html.embedded .header{padding:10px 16px}html.embedded .header h1{font-size:22px}html.embedded .arukun-wrapper{margin-top:6px}html.embedded .arukun{width:40px;height:40px}html.embedded .arukun-speech{font-size:12px;padding:5px 10px}html.embedded .main{flex-direction:row;align-items:stretch;gap:14px;padding:12px 16px;max-width:none;flex:1;min-height:0;overflow:hidden}html.embedded .form-section{width:240px;flex-shrink:0;gap:10px;padding:14px;overflow:hidden}html.embedded .form-body{flex:1;min-height:0;overflow-y:auto;gap:10px;padding-right:4px}html.embedded #shuffle-btn{flex-shrink:0;padding:12px 20px;font-size:16px}html.embedded .form-group textarea{min-height:56px}html.embedded .hint{font-size:11px}html.embedded .grid-section{flex:1;min-height:0;padding:14px;display:flex;flex-direction:column}html.embedded .seat-grid{flex:1;min-height:0;overflow-y:auto;align-content:start}html.embedded .section-title{font-size:16px;margin-bottom:4px}
