/* 共通ヘッダー＋スマホ用メニュー（contact / register / faq / thanks / 規約系 / 運営会社 で共用） */
.fn-header { position: sticky; top: 0; z-index: 50; background: rgba(17, 26, 48, .96); color: #fff; border-bottom: 1px solid #2a3350;
  -webkit-backdrop-filter: saturate(140%) blur(8px); backdrop-filter: saturate(140%) blur(8px); font-family: "Noto Sans JP", sans-serif; }
.fn-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1100px, calc(100% - 36px)); min-height: 66px; margin: 0 auto; }
.fn-logo { display: block; flex: none; line-height: 0; }
.fn-logo img { display: block; width: 210px; max-width: 100%; height: auto; }
.fn-header .gnav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; }
.fn-header .gnav a { position: relative; color: #fff; text-decoration: none; opacity: .9; transition: opacity .2s; }
.fn-header .gnav a:not(.gnav-cta):not(.gnav-contact)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: #A5A3F5; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.fn-header .gnav a:hover { opacity: 1; }
.fn-header .gnav a:not(.gnav-cta):not(.gnav-contact):hover::after { transform: scaleX(1); }
.fn-header .gnav .gnav-cta { background: #A5A3F5; color: #111A30; opacity: 1; font-weight: 700; padding: 9px 18px; border-radius: 9px; box-shadow: 0 6px 18px #a5a3f540; transition: transform .2s, background .2s; }
.fn-header .gnav .gnav-cta:hover { background: #B8B6F8; transform: translateY(-1px); }
.fn-header .gnav .gnav-contact { border: 1.5px solid #a6a6ff; border-radius: 9px; padding: 8px 16px; }
.fn-header .gnav .gnav-contact:hover { background: #ffffff14; }
.fn-header .gnav a[aria-current="page"]:not(.gnav-cta) { opacity: 1; color: #C9C8FF; }

.fn-header .menu-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 6px; width: 46px; height: 46px; padding: 0; background: #ffffff12; border: 1px solid #ffffff26; border-radius: 12px; color: #fff; cursor: pointer; transition: background .2s; }
.fn-header .menu-toggle:hover { background: #ffffff22; }
.fn-header .menu-toggle span { display: block; width: 22px; height: 2.5px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s; }
.fn-header .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.fn-header .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.fn-header .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

@media (max-width: 980px) {
  .fn-bar { min-height: 60px; }
  .fn-logo img { width: 170px; }
  .fn-header .menu-toggle { display: inline-flex; }
  .fn-header .gnav { display: none; position: absolute; top: calc(100% + 1px); left: -18px; right: -18px; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 22px;
    background: #111A30; border-top: 1px solid #343b60; border-radius: 0 0 20px 20px; box-shadow: 0 22px 40px #0a1024aa; font-size: 16px; max-height: calc(100vh - 64px); overflow-y: auto; }
  .fn-header .gnav.is-open { display: flex; animation: fn-drop .22s ease-out; }
  .fn-header .gnav a { opacity: 1; padding: 15px 6px; border-bottom: 1px solid #263050; display: flex; justify-content: space-between; align-items: center; }
  .fn-header .gnav a:not(.gnav-cta):not(.gnav-contact)::after { position: static; height: auto; background: none; transform: none; content: "›"; color: #A5A3F5; font-size: 1.3rem; line-height: 1; }
  .fn-header .gnav .gnav-cta, .fn-header .gnav .gnav-contact { justify-content: center; margin-top: 14px; padding: 14px; border-bottom: 0; }
  .fn-header .gnav .gnav-cta { margin-top: 20px; }
}
@keyframes fn-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fn-header .gnav.is-open { animation: none; } }

/* ---------- 入力フォーム（contact / register）の見た目を整える ---------- */
body .hero { position: relative; overflow: hidden; }
body .hero::after { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, #8f8ff533, transparent 68%); pointer-events: none; }
body .card { border-radius: 20px; box-shadow: 0 18px 48px #161e5214; }
body label.field input, body label.field textarea, body label.field select { border-color: #c4c9e3; border-radius: 10px; padding: 12px 14px; background: #fbfbff; transition: border-color .2s, box-shadow .2s, background .2s; }
body label.field input:hover, body label.field textarea:hover, body label.field select:hover { border-color: #8f93bd; }
body label.field input:focus, body label.field textarea:focus, body label.field select:focus { outline: 0; border-color: #5144B5; background: #fff; box-shadow: 0 0 0 4px #5144b52e; }
body .choice { display: flex; gap: 8px; align-items: center; border-radius: 10px; padding: 12px 14px; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
body .choice:hover { border-color: #8f8ff5; }
body .choice:has(input:checked) { border-color: #5144B5; background: #EFEEFF; box-shadow: 0 0 0 3px #5144b522; }
body .check { align-items: center; }
body form button[type="submit"] { width: 100%; background: linear-gradient(135deg, #5144B5, #6c5fe0); border-radius: 12px; min-height: 54px; box-shadow: 0 10px 24px #5144b54d; transition: transform .2s, box-shadow .2s, filter .2s; }
body form button[type="submit"]:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 14px 30px #5144b560; }
body form button[type="submit"]:disabled { transform: none; box-shadow: none; }
body aside { border-radius: 20px; background: linear-gradient(160deg, #F2F2FF, #E7E8FB); border-color: #d6d8f3; }
body aside h2 { padding-left: 12px; border-left: 4px solid #5144B5; }
@media (max-width: 700px) {
  body .layout { margin-top: -18px; }
  body .card { border-radius: 16px; padding: 22px 18px; }
  body label.field input, body label.field textarea, body label.field select { font-size: 16px; }
}

/* ---------- 運営会社ページ ---------- */
body:has(.company) { margin: 0; background: #F7F8FC; font-family: "Noto Sans JP", sans-serif; }
.company { max-width: 900px; margin: 0 auto; padding: 0 18px 64px; }
.company .title { margin: 40px 0 24px; padding: 0; background: none; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); font-weight: 800; color: #111A30; }
.company .title::after { content: ""; display: block; width: 56px; height: 4px; margin: 14px auto 0; border-radius: 2px; background: linear-gradient(90deg, #5144B5, #A5A3F5); }
.company .contents_table { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 14px 40px #161e5214; border: 1px solid #dadef1; }
.company th { font-size: 1rem; font-weight: 700; color: #111A30; background: #F2F2FF; padding: 18px 20px; white-space: nowrap; vertical-align: top; border-bottom: 1px solid #e3e5f6; }
.company td { padding: 0; vertical-align: top; border-bottom: 1px solid #e3e5f6; }
.company .desc { margin: 0; padding: 18px 22px; border: 0; font-size: 1rem; line-height: 1.8; }
.company tr:last-child th, .company tr:last-child td { border-bottom: 0; }
.company > .fn-header { margin: 0 -18px; }
@media (max-width: 600px) { .company th { padding: 14px 12px; font-size: .92rem; } .company .desc { padding: 14px 14px; font-size: .95rem; } }
