.tw27{max-width:760px;margin:auto;color:#153456;line-height:1.8}
.tw27 .eligible{background:#fff8db;border:3px solid #ffc444;border-radius:15px;padding:clamp(16px,4vw,28px);margin-bottom:24px}
.tw27 .eligible b{display:inline-block;background:#153c76;color:white;padding:3px 16px;border-radius:22px}
.tw27 .eligible strong{display:block;color:#993311;font-size:clamp(21px,3vw,28px);line-height:1.55;margin:12px 0}
.tw27 .when strong{font-size:1.2em;color:#074b95}
.tw27 details{margin-bottom:28px}.tw27 summary{cursor:pointer;color:#075298;text-decoration:underline}
.tw27 form label{display:block;font-weight:bold;margin:0;min-width:0}
.tw27 form :is(input:not([type=submit]):not([type=radio]),select){width:100%;min-height:46px;background:white;color:#152942;border:1px solid #73859a;border-radius:6px;padding:8px;font-size:16px}
.tw27 .person{background:#eff7ff;padding:16px;border-radius:10px;margin:12px 0}
.tw27 .fields{display:grid;grid-template-columns:minmax(0,2fr) minmax(100px,1fr);gap:14px}
.tw27 em{font-style:normal;color:#a52717;font-size:.9em}
.tw27 input[type=submit]{display:block;margin:24px auto 0;background:#074d99;color:white;padding:14px;width:100%;border:0;border-radius:9px;font-weight:bold;font-size:18px}
.tw27 .wpcf7-not-valid-tip{font-weight:normal}
@media(max-width:540px){.tw27 .fields{grid-template-columns:1fr}.tw27 input[type=number]{max-width:10em}}
.tw27 .when{margin-bottom:16px}.tw27 .person em{margin-left:.5em}@media(max-width:540px){.tw27 .when strong{display:block}}
.tw27 .fields>div{min-width:0}
.tw27 .fields p{margin:0}
.tw27 form label{margin-top:14px}
.tw27 .fields label{margin-top:0}
.tw27 .pending{margin:24px 0;padding:16px 20px;background:#fff8db;border-left:5px solid #e5a01a}
.tw27 .pending strong{color:#92330e}
.tw27 form.sent .wpcf7-response-output{padding:16px;background:#eef8ff;color:#153456}
.tw27 .contact-choice{margin:20px 0;padding:0;border:0;min-width:0}
.tw27 .contact-choice legend{float:none;width:auto;font-size:inherit;font-weight:bold;margin:0 0 6px;padding:0}
.tw27 .contact-choice .wpcf7-radio{display:flex;gap:12px;flex-wrap:wrap}
.tw27 .contact-choice .wpcf7-list-item{margin:0}
.tw27 .contact-choice label{display:flex;align-items:center;gap:9px;margin:0;min-height:46px;padding:6px 18px;border:1px solid #73859a;border-radius:7px;cursor:pointer}
.tw27 .contact-choice input[type=radio]{width:19px;height:19px;margin:0;accent-color:#074d99;cursor:pointer}
.tw27 .contact-choice label:has(:checked){background:#eff7ff;border-color:#074d99;color:#074d99}
/* Keep the radio buttons in place when CF7 clears the email error on blur. */
.tw27 [data-name="contact-email"]{display:grid;grid-template-columns:minmax(0,1fr)}
.tw27 [data-name="contact-email"]::after,
.tw27 [data-name="contact-email"] .wpcf7-not-valid-tip{grid-area:2/1;font-size:14px;line-height:1.5;font-weight:normal;margin:0}
.tw27 [data-name="contact-email"]::after{content:"メールアドレスの形式をご確認ください。";visibility:hidden}
.tw27 .person .contact-choice{margin-top:0}
.tw-home{display:grid;grid-template-columns:minmax(250px,38%) 1fr;gap:clamp(20px,4vw,56px);align-items:center;margin:0 auto 40px;padding:clamp(16px,3vw,36px);background:#f0f7ff;border:1px solid #c9dff4;border-radius:16px;color:#163458;line-height:1.75}
.tw-home .tw-poster{display:block;text-align:center;text-decoration:underline;color:#094988;font-size:14px}
.tw-home .tw-poster img{display:block;width:100%;height:auto;margin-bottom:7px;box-shadow:0 2px 10px #14345b25}
.tw-home #tw-home-title{background:none;border:0;padding:0;margin:10px 0 18px;color:#103f7c;font-size:clamp(22px,2.6vw,34px);line-height:1.45;font-weight:bold}
.tw-home #tw-home-title::before,.tw-home #tw-home-title::after{display:none}
.tw-home .tw-target{background:#fff7d9;border-left:5px solid #ffbd32;padding:12px 16px;font-weight:bold}
.tw-home .tw-target strong{color:#93360d}
.tw-home .tw-apply{display:block;text-align:center;padding:14px 10px;background:#074d99;color:white;font-weight:bold;text-decoration:none;border-radius:8px}
.tw-home .tw-apply:hover,.tw-home .tw-apply:focus{background:#00346d;text-decoration:underline}
@media(max-width:767px){.tw-home{grid-template-columns:1fr}.tw-home .tw-info{grid-row:1}}
