@charset "UTF-8";

/* =========================================
   Ticket Lab - assets/style.css (final)
   Encoding: UTF-8
   ========================================= */

:root{
  --bg: #f6f8ff;
  --panel: rgba(255,255,255,.75);
  --text: #0b1220;
  --muted: rgba(11,18,32,.72);
  --line: rgba(11,18,32,.10);
  --blue: #2f7dff;
  --radius: 18px;
  --shadow: 0 12px 30px rgba(11,18,32,.08);

  /* Background image (adjustable) */
  --bg-image-url: url("/public/image/blue.jpg");
  --bg-image-opacity: .40;
  --bg-image-filter: saturate(1) contrast(1) brightness(.85);
  --bg-overlay: rgba(246,248,255,.38);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
               "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  min-height: 100vh;
}

/* Background image layer (fixed on mobile too) */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: var(--bg-image-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: var(--bg-image-opacity);
  filter: var(--bg-image-filter);
  transform: translateZ(0);
}

/* Soft overlay for readability */
body::after{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 50% 0%, rgba(47,125,255,.12), transparent 60%),
    linear-gradient(180deg, var(--bg-overlay), var(--bg-overlay));
}

img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; }

.container{
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

.muted{ color: var(--muted); }
.small{ font-size: 13px; }

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(246,248,255,.72);
  border-bottom: 1px solid var(--line);
}
.header__inner{
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.nav{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a{
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  opacity: .92;
}
.nav a:hover{ opacity: 1; }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.65);
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(11,18,32,.06);
  transition: transform .12s ease, filter .12s ease, background .12s ease;
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.02); }
.btn:active{ transform: translateY(0) scale(.99); }
.btn--primary{
  background: linear-gradient(180deg, rgba(47,125,255,.95), rgba(47,125,255,.85));
  border-color: rgba(47,125,255,.25);
  color: #fff;
}
.btn--ghost{ background: rgba(255,255,255,.35); }

/* Hero */
.heroBanner{
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.35);
  background: var(--panel);
}

/* Intro */
.intro{
  padding: 28px 0 10px;
  text-align: center;
}
.intro__title{
  margin: 18px 0 10px;
  font-size: clamp(22px, 4.6vw, 34px);
  font-weight: 900;
  letter-spacing: .02em;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  display: block;
}
.intro__underline{
  width: min(320px, 70%);
  height: 5px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: var(--blue);
  display: block;
}

/* 本文だけ白カード化 */
.intro__text{
  max-width: 900px;
  margin: 0 auto;
  color: var(--text);
  line-height: 1.9;
  font-size: 15px;

  padding: 16px 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(11,18,32,.10);
  box-shadow: var(--shadow);
}
.intro__text p{ margin: 0 0 14px; }
.intro__note{
  color: rgba(11,18,32,.60);
  font-size: 13px;
}

/* LINE */
.lineCta{
  margin: 18px auto 0;
  display: flex;
  justify-content: center;
}
.lineCta a{
  display: inline-block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
  transition: transform .12s ease, filter .12s ease;
}
.lineCta a:hover{ transform: translateY(-1px); filter: brightness(1.02); }
.lineCta a:active{ transform: translateY(0px) scale(.99); }
.lineCta img{
  width: min(420px, 92vw);
  height: auto;
}

/* Section blocks */
.sectionBlock{
  padding: 28px 0 10px;
  text-align: center;
  margin-top: 8px;
}
.sectionBlock__title{
  margin: 16px 0 10px;
  font-size: clamp(20px, 4.2vw, 30px);
  font-weight: 900;
  letter-spacing: .02em;
}
.sectionBlock__underline{
  width: min(260px, 60%);
  height: 5px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: var(--blue);
  display: block;
}
.sectionBlock__image{
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.35);
  background: var(--panel);
  max-width: 980px;
}

/* FAQ */
.faq{
  padding: 30px 0 22px;
  text-align: center;
  margin-top: 8px;
}

/* FAQ/規約 見出しを「お申し込みフォーム」と同じ見た目に統一 */
.faq__title,
.terms__title{
  margin: 16px 0 10px;
  font-size: clamp(20px, 4.2vw, 30px);
  font-weight: 900;
  letter-spacing: .02em;

  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  display: block;
}

.faq__underline{
  width: min(260px, 60%);
  height: 5px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: var(--blue);
  display: block;
}

/* FAQ本文だけ白カード化 */
.faq__wrap{
  max-width: 980px;
  margin: 0 auto;
  text-align: left;

  padding: 16px 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(11,18,32,.10);
  box-shadow: var(--shadow);
}
.faqItem{ padding: 14px 0 16px; }
.faqItem__q{
  font-weight: 900;
  font-size: 16px;
  margin: 0 0 10px;
}
.faqItem__qLine{
  width: min(820px, 100%);
  height: 4px;
  border-radius: 999px;
  background: var(--blue);
  margin: 0 0 12px;
  opacity: .95;
}
.faqItem__a{
  margin: 0;
  line-height: 1.9;
  font-size: 15px;
  opacity: .95;
}

/* Voice */
.voice{
  padding: 22px 0 10px;
  text-align: center;
  margin-top: 8px;
}

/* ✅ Voice 見出し（validator対応用） */
.voice__title{
  margin: 16px 0 10px;
  font-size: clamp(20px, 4.2vw, 30px);
  font-weight: 900;
  letter-spacing: .02em;

  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  display: block;
}
.voice__underline{
  width: min(260px, 60%);
  height: 5px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: var(--blue);
  display: block;
}

/* Terms */
.terms{
  padding: 30px 0 44px;
  text-align: center;
  margin-top: 8px;
}
.terms__underline{
  width: min(260px, 60%);
  height: 5px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: var(--blue);
  display: block;
}

/* 規約本文だけ白カード化 */
.terms__wrap{
  max-width: 980px;
  margin: 0 auto;
  text-align: left;

  padding: 16px 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(11,18,32,.10);
  box-shadow: var(--shadow);
}
.termsItem{ padding: 14px 0 16px; }

/* ✅ pre-wrapだとHTMLインデント空白が出て左ズレするので pre-line に変更 */
.termsItem__h{
  font-weight: 900;
  font-size: 16px;
  margin: 0 0 10px;
  white-space: pre-line;
  padding-left: 0;
  text-indent: 0;
}

.termsItem__line{
  width: min(820px, 100%);
  height: 4px;
  border-radius: 999px;
  background: var(--blue);
  margin: 0 0 12px;
  opacity: .95;
}

.termsItem__p{
  margin: 0;
  line-height: 1.9;
  font-size: 15px;
  opacity: .95;
  white-space: pre-line;
  padding-left: 0;
  text-indent: 0;
}

/* Footer */
.footer{
  border-top: 1px solid var(--line);
  background: rgba(246,248,255,.72);
  padding: 18px 0;
}
.footer__inner{
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.footer__links{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer__links a{
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}
.footer__links a:hover{ color: var(--text); }

/* Mobile */
@media (max-width: 640px){
  body{ font-size: 15px; }
  .header__inner{ padding: 10px 0; }
  .btn{ padding: 10px 12px; font-size: 13px; }
  .faqItem__q, .termsItem__h{ font-size: 15px; }

  .intro__text,
  .faq__wrap,
  .terms__wrap{
    padding: 14px 14px;
  }
}

/* Apply form */
.apply{
  padding: 30px 0 44px;
  text-align: center;
  margin-top: 8px;
}
.apply__title{
  margin: 16px 0 10px;
  font-size: clamp(20px, 4.2vw, 30px);
  font-weight: 900;
  letter-spacing: .02em;
}
.apply__underline{
  width: min(260px, 60%);
  height: 5px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: var(--blue);
  display:block;
}

.applyForm{
  max-width: 980px;
  margin: 0 auto;
  text-align: left;
}

.form-container{
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.35);
  background: var(--panel);
  padding: 18px;
}

.form-container label{
  display: block;
  font-weight: 800;
  font-size: 14px;
  margin: 14px 0 8px;
}

.required{
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(47,125,255,.12);
  color: rgba(47,125,255,1);
  border: 1px solid rgba(47,125,255,.20);
  font-weight: 900;
  font-size: 12px;
}

/* iPhone select幅/高さ統一 */
.form-container input,
.form-container select{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(11,18,32,.14);
  background: rgba(255,255,255,.85);
  font-size: 16px;
  outline: none;
  min-height: 48px;
  line-height: 1.2;
}

.form-container select{
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;

  background-image:
    linear-gradient(45deg, transparent 50%, rgba(11,18,32,.55) 50%),
    linear-gradient(135deg, rgba(11,18,32,.55) 50%, transparent 50%),
    linear-gradient(to right, rgba(11,18,32,.10), rgba(11,18,32,.10));
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    calc(100% - 40px) 50%;
  background-size:
    6px 6px,
    6px 6px,
    1px 22px;
  background-repeat: no-repeat;
}
.form-container select::-ms-expand{ display: none; }

.form-container input:focus,
.form-container select:focus{
  border-color: rgba(47,125,255,.55);
  box-shadow: 0 0 0 4px rgba(47,125,255,.12);
}

.applyForm__submit{
  width: 100%;
  margin-top: 18px;
  padding: 14px 14px;
  font-size: 15px;
}

.applyForm__submit.is-disabled{
  filter: grayscale(.25);
  opacity: .65;
  transform: none !important;
  cursor: not-allowed;
}
.applyForm__submit[disabled]{ cursor: not-allowed; }

/* Field errors */
.fieldError{
  margin: 6px 0 0;
  font-size: 12.5px;
  font-weight: 800;
  color: #c61f1f;
  min-height: 1.2em;
}
.form-container input.is-error,
.form-container select.is-error{
  border-color: rgba(198,31,31,.55);
  box-shadow: 0 0 0 4px rgba(198,31,31,.10);
}

/* ======================================================
   Privacy policy (scroll box + consent)
   ====================================================== */
.privacyBlock{ margin-top: 14px; }
.privacyBlock__title{
  font-weight: 900;
  font-size: 15px;
  margin: 10px 0 10px;
  text-align: center;
}

/* 重要：スクロール復帰のため max-height/height/overflow を強制 */
.privacyBlock__box{
  max-height: 220px !important;
  height: 220px;
  overflow-y: auto !important;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(11,18,32,.14);
  background: rgba(255,255,255,.78);
  line-height: 1.8;
  font-size: 14px;
  color: rgba(11,18,32,.92);
  overscroll-behavior: contain;
}

/* 親の overflow:hidden が効いてスクロール潰すケースがあるので回避 */
.privacyBlock,
.privacyBlock__box{
  position: relative;
}

/* ✅ここが本命：label(block) と input(width:100%) の影響を privacyAgree だけ除外して横並び固定 */
.form-container label.privacyAgree{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-weight: 800;
  font-size: 14px;
  user-select: none;

  line-height: 1;
  vertical-align: middle;
  cursor: pointer;
}

.form-container label.privacyAgree input[type="checkbox"]{
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;

  position: relative;
  top: -2px !important;
}

.form-container label.privacyAgree span{
  display: inline-block;
  line-height: 1.2;
}

/* privacy text */
.privacyBlock__box h3{
  margin: 14px 0 8px;
  font-size: 14px;
  font-weight: 900;
}
.privacyBlock__box p{ margin: 0 0 10px; }
.privacyBlock__box ul{
  margin: 0 0 10px 1.2em;
  padding: 0;
}

/* Thanks */
.thanks{ margin-top: 16px; }
.thanks__card{
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.35);
  background: var(--panel);
  padding: 16px;
}
.thanks__title{
  font-weight: 900;
  font-size: 18px;
  margin: 0 0 8px;
}
.thanks__text{
  margin: 0 0 12px;
  color: rgba(11,18,32,.78);
  line-height: 1.9;
  font-size: 14.5px;
}
.thanks__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Login */
.login{
  padding: 26px 0 18px;
  text-align: center !important;
}
.login__title{
  margin: 16px 0 10px;
  font-size: clamp(20px, 4.2vw, 30px);
  font-weight: 900;
  letter-spacing: .02em;
  text-align: center !important;
}
.login__underline{
  width: min(260px, 60%);
  height: 5px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: #2f7dff;
  display: block;
}
.loginBox{
  margin: 0 auto;
  max-width: 760px;
  text-align: left;
}
.loginResult{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 14px;
  border: 1px solid rgba(11,18,32,.12);
  background: rgba(255,255,255,.72);
}
.loginResult.is-ok{
  border-color: rgba(31,168,94,.28);
  box-shadow: 0 0 0 4px rgba(31,168,94,.10);
}
.loginResult.is-ng{
  border-color: rgba(198,31,31,.28);
  box-shadow: 0 0 0 4px rgba(198,31,31,.08);
}
.loginHint{ margin-top: 10px; }

/* Footer centered */
.footer__inner--center{
  padding: 22px 0 26px;
  text-align: center;
  display: block;
}
.footer__links--center{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer__links--center a{
  text-decoration: none;
  font-weight: 900;
  color: rgba(11,18,32,.88);
}
.footer__links--center a:hover{ opacity: 1; text-decoration: underline; }
.footer__sep{ opacity: .55; font-weight: 900; }
.footer__copy{
  margin-top: 10px;
  font-size: 13px;
  color: rgba(11,18,32,.62);
}

/* Company card (simple) */
.companyCard{
  padding: 16px 18px;
  text-align: left;
  background: rgba(255,255,255,.70);
  border-radius: 16px;
  border: 1px solid rgba(11,18,32,.10);
}
.companyCard p{ margin: 0 0 10px; }
.companyCard p:last-child{ margin-bottom: 0; }