@charset "UTF-8";

:root {
  --BaseColor: #2b2b2b;
  --BorderColor: #8e8e8e;
  --FodRed: #c8002b;
  --FodRedStart: #ea001e;
  --FodRedEnd: #ca0023;
  --GoldStart: #dcd3ae;
  --GoldEnd: #bfaf78;
  --GoldText: #3c260b;
  --headerH: 80px;
  --padX: 30px;
  --radius: 6px;
  --card-radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--BaseColor);
  background: #fff url("../assets/BGPCGB.jpg") repeat-x center top / auto 767px;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Segoe UI", Meiryo, sans-serif;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.5px;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

ul {
  list-style: none;
}

/* Header — official 80px white bar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: var(--headerH);
  padding: 0 var(--padX);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo {
  display: block;
  max-width: 218px;
  width: 100%;
}

.header-logo img {
  width: 100%;
}

.main {
  flex: 1;
  width: 100%;
  padding: calc(var(--headerH) + 24px) var(--padX) 64px;
}

.hero {
  max-width: 966px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 272px 1fr;
  gap: 56px;
  align-items: center;
}

/* Phone mock — same 272×550 frame as official */
.phone-col {
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: 272px;
  height: 550px;
}

.phone-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.phone-screen {
  position: absolute;
  top: 2.3%;
  left: 5.2%;
  right: 5.2%;
  height: 84.6%;
  border-radius: 40px 40px 0 0;
  overflow: hidden;
  background: #1b1b19;
  z-index: 1;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slides img.is-active {
  opacity: 1;
}

.phone-badge {
  position: absolute;
  top: 8.8%;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  z-index: 2;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

/* Form column */
.form-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.form-head {
  margin-bottom: 28px;
}

.form-head h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.lead {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 400;
  color: #5d5d5d;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--FodRed);
  border-radius: var(--card-radius);
  padding: 28px 32px 24px;
  max-width: 480px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 24px;
  border-bottom: 1px solid #ddd;
}

.tab {
  position: relative;
  padding: 10px 8px 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--BorderColor);
  text-align: center;
}

.tab.is-active {
  color: var(--BaseColor);
}

.tab.is-active::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(to right, var(--FodRedStart), var(--FodRedEnd));
  border-radius: 2px 2px 0 0;
}

.auth-form {
  display: none;
}

.auth-form.is-active {
  display: block;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.field input[type="email"],
.field input[type="password"],
.field input[type="text"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--BorderColor);
  border-radius: 4px;
  background: #fff;
  font-size: 15px;
  font-weight: 400;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder {
  color: #b0b0b0;
  font-weight: 300;
}

.field input:focus {
  border-color: var(--FodRed);
  box-shadow: 0 0 0 3px rgba(200, 0, 43, 0.12);
}

.field input.is-invalid {
  border-color: var(--FodRedStart);
}

.field input[readonly] {
  background: #f4f4f4;
  color: var(--BaseColor);
  cursor: default;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.field input[readonly]:focus {
  border-color: var(--BorderColor);
  box-shadow: none;
}

.hint {
  margin-top: 4px;
  font-size: 12px;
  color: #8e8e8e;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 64px;
}

.toggle-pass {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--FodRed);
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 20px;
  font-size: 13px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
}

.check input {
  margin-top: 3px;
  accent-color: var(--FodRed);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.check.terms {
  margin: 4px 0 8px;
  line-height: 1.6;
}

.check .doc {
  color: var(--FodRed);
  font-weight: 600;
}

.text-link {
  color: var(--FodRed);
  font-weight: 600;
  white-space: nowrap;
}

.error {
  min-height: 0;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--FodRedStart);
}

.error:empty {
  display: none;
}

/* Official ComBtn-Gold */
.btn-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 14px 15px;
  border-radius: var(--radius);
  background: linear-gradient(to right, var(--GoldStart), var(--GoldEnd));
  color: var(--GoldText);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: opacity 0.4s;
}

.btn-gold:hover {
  opacity: 0.7;
}

.btn-gold:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000c;
}

.loading-overlay[hidden] {
  display: none;
}

.loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 40px;
  background: #fff;
  border-radius: 8px;
  min-width: 160px;
}

.loading-box p {
  font-size: 14px;
  font-weight: 600;
  color: var(--BaseColor);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #eee;
  border-top-color: var(--FodRed);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
  font-size: 12px;
  color: #5d5d5d;
  line-height: 1.6;
}

.tag-new {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  background: linear-gradient(to bottom, #c81e00, #ff1500);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: 0 0 0 4px;
  line-height: 1.4;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #fff;
  border-top: 1px solid var(--BorderColor);
  text-align: center;
}

.sns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 20px var(--padX);
}

.sns li:not(:last-child) {
  width: 32px;
}

.sns li:last-child {
  width: 38px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 2em;
  padding: 0 var(--padX);
  font-size: 12px;
}

.footer-nav span {
  display: inline-flex;
  align-items: center;
  line-height: 2;
}

.partner-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin: 20px auto 0;
  padding: 0 var(--padX);
}

.logo-fod {
  height: 28px;
  width: auto;
}

.logo-fujitv {
  height: 22px;
  width: auto;
}

.copyright {
  margin-top: 18px;
  padding: 20px var(--padX);
  border-top: 1px solid var(--BorderColor);
  font-size: 14px;
}

/* Success modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000c;
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 40px 32px 32px;
  background: #fff;
  border-radius: var(--card-radius);
  text-align: center;
}

.modal-logo {
  width: 110px;
  margin: 0 auto 20px;
}

.modal-card h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.modal-card p {
  font-size: 14px;
  color: #5d5d5d;
  margin-bottom: 28px;
}

.modal[hidden] {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .tab:hover {
    color: var(--BaseColor);
  }
}

@media screen and (max-width: 950px) {
  .form-head h1 {
    font-size: 26px;
  }
}

@media screen and (max-width: 767px) {
  :root {
    --headerH: 50px;
    --padX: 15px;
  }

  body {
    background-image: url("../assets/BGPCGB.jpg");
    background-size: auto 540px;
    background-repeat: no-repeat;
  }

  .header-logo {
    max-width: 151px;
    width: 40.266vw;
  }

  .main {
    padding: calc(var(--headerH) + 16px) var(--padX) 48px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .phone-col {
    display: none;
  }

  .form-head {
    text-align: center;
    margin-bottom: 20px;
  }

  .form-head h1 {
    font-size: 20px;
  }

  .form-head h1 br {
    display: none;
  }

  .lead {
    font-size: 14px;
  }

  .auth-card {
    padding: 22px 16px 18px;
    max-width: none;
  }

  .tab {
    font-size: 14px;
  }

  .sns {
    gap: 15px;
    padding: 20px var(--padX) 16px;
  }

  .footer-nav {
    font-size: 10px;
  }

  .copyright {
    font-size: 0.8rem;
    margin-top: 16px;
  }

  .partner-logos {
    gap: 24px;
  }
}
