*{box-sizing:border-box}
body{
 margin:0;
 background:#10223e;
 color:#fff;
 font-family:Arial,"Noto Sans JP",sans-serif;
}
header{
 text-align:center;
 padding:32px 16px;
 background:#122746;
 border-bottom:3px solid #ff9900;
}
.brand{
 font-size:42px;
 font-weight:900;
 color:#ffad25;
}
header p{margin:8px 0 18px}
.badge{
 display:inline-block;
 padding:8px 18px;
 background:#ff9900;
 color:#122746;
 border-radius:30px;
 font-weight:bold;
}
main{
 width:calc(100% - 28px);
 max-width:620px;
 margin:20px auto;
}
.intro{text-align:center;padding:10px}
h1{font-size:25px}
h2{font-size:19px}
p{line-height:1.8}
form,.notice{
 background:#1a2431;
 padding:22px;
 border:1px solid #40536b;
 border-radius:18px;
 margin:18px 0;
}
form>label{
 display:block;
 font-weight:bold;
 margin:20px 0 8px;
}
input:not([type=checkbox]),textarea{
 width:100%;
 padding:14px;
 border:1px solid #687689;
 border-radius:8px;
 background:#111923;
 color:#fff;
 font-size:16px;
}
textarea{resize:vertical}
small,.length{
 display:block;
 color:#b9c6d5;
 font-size:12px;
 margin:8px 0;
 line-height:1.6;
}
.length{text-align:right}
.preview{
 background:#fff;
 color:#122746;
 text-align:center;
 padding:20px;
 border-radius:12px;
 margin:22px 0;
 overflow-wrap:anywhere;
}
.preview-label{
 font-size:12px;
 color:#687689;
}
.preview h2{color:#d98700}
.preview p{white-space:pre-wrap}
.preview-id{
 background:#122746;
 color:#fff;
 padding:12px;
 border-radius:8px;
 font-size:13px;
}
.preview-id strong{color:#ffad25}
.terms{
 border-top:1px solid #40536b;
 padding-top:12px;
}
.terms label{
 display:flex;
 gap:10px;
 align-items:flex-start;
 margin:15px 0;
 font-size:14px;
 line-height:1.6;
}
.terms input{
 flex-shrink:0;
 width:19px;
 height:19px;
 accent-color:#ff9900;
}
button{
 width:100%;
 padding:17px;
 background:#ff9900;
 color:#122746;
 font-size:17px;
 font-weight:bold;
 border:0;
 border-radius:10px;
 cursor:pointer;
 margin-top:15px;
}
button:disabled{opacity:.5}
:focus-visible{
 outline:2px solid #ffad25;
 outline-offset:3px;
}
#status{
 text-align:center;
 font-size:14px;
 color:#ffce70;
}
footer{
 text-align:center;
 padding:20px;
 color:#b9c6d5;
 font-size:12px;
}
@media(max-width:500px){
 form,.notice{padding:16px}
 h1{font-size:22px}
}

/* MYLINK ISSUED RESULT */

[hidden]{
 display:none!important;
}

.issued{
 background:#1a2431;
 border:2px solid #55c88a;
 border-radius:18px;
 padding:22px;
 margin:20px 0;
 overflow-wrap:anywhere;
}

.issued h2{
 color:#7be5ad;
 text-align:center;
}

.issued label{
 display:block;
 margin:18px 0 8px;
 font-weight:bold;
}

.issued input{
 color:#7be5ad;
}

.visit-site{
 display:block;
 background:#16804b;
 color:white;
 text-align:center;
 padding:16px;
 margin-top:12px;
 border-radius:10px;
 text-decoration:none;
 font-weight:bold;
}

.issued hr{
 border:0;
 border-top:1px solid #40536b;
 margin:24px 0;
}

.key-warning{
 color:#ffce70;
 background:#332b1c;
 padding:14px;
 border-radius:8px;
 font-size:14px;
}

#issued-status{
 color:#7be5ad;
 text-align:center;
}


/* MYLINK QR CARD */

.qr-card{
 background:#fff;
 color:#152440;
 border-radius:18px;
 padding:20px;
 margin:20px 0;
 text-align:center;
}

.qr-card h2{
 color:#152440;
 font-size:21px;
 margin:0 0 12px;
}

.qr-card p{
 color:#475569;
 font-size:14px;
 line-height:1.7;
}

.qr-card img{
 display:block;
 width:100%;
 max-width:280px;
 height:auto;
 aspect-ratio:1;
 margin:15px auto;
 image-rendering:pixelated;
}

.qr-save{
 display:block;
 background:#152440;
 color:#fff;
 padding:16px;
 border-radius:12px;
 text-decoration:none;
 font-weight:700;
 text-align:center;
}

.promotion{
 background:#152440;
 border-radius:18px;
 padding:20px;
 margin:20px 0;
}


/* MYLINK SOCIAL PROMOTION */

.share-panel{
 background:#152440;
 color:#fff;
 border-radius:18px;
 padding:20px;
 margin:20px 0;
}

.share-panel h2{
 color:#fff;
 font-size:21px;
 margin:0 0 16px;
}

.share-grid{
 display:grid;
 grid-template-columns:1fr 1fr;
 gap:10px;
 margin-bottom:20px;
}

.share-grid button{
 color:#fff;
 margin:0;
 padding:16px 6px;
 min-height:56px;
 border:0;
 border-radius:10px;
 font-size:16px;
 font-weight:700;
}

.share-grid .share-x{
 background:#000;
}

.share-grid .share-line{
 background:#16853d;
}

.share-grid .share-fb{
 background:#3474df;
}

.share-grid .share-native{
 background:#40536b;
}

.share-panel textarea{
 width:100%;
 background:#243650;
 color:#fff;
 border:1px solid #40536b;
 border-radius:10px;
 padding:12px;
 line-height:1.7;
 font-size:15px;
}

.share-note{
 color:#cbd5e1;
 font-size:13px;
 line-height:1.6;
}

.share-panel [role="status"]{
 color:#7be5ad;
 text-align:center;
}


/* MYLINK POSTER PROMOTION */

.poster-panel{
 margin:20px 0;
}

.poster-button,
.poster-save{
 display:block;
 width:100%;
 background:#ffad25;
 color:#152440;
 border:0;
 border-radius:12px;
 padding:16px;
 text-align:center;
 font-size:17px;
 font-weight:700;
 text-decoration:none;
}

.poster-note{
 color:#cbd5e1;
 font-size:13px;
 line-height:1.7;
}

.poster-preview{
 display:block;
 width:100%;
 max-width:420px;
 height:auto;
 margin:15px auto;
 border-radius:12px;
}

.poster-panel [hidden]{
 display:none!important;
}

