/* base.css */
@charset "UTF-8";

:root {
  /* --header-color: linear-gradient(
    160deg,
    #9ef4ff 0%,
    #57c1e8 30%,
    #2f8ad4 60%,
    #2ea89b 100%
  ); */
  --header-color: #0b0f1a;
  --footer-color: #263d47;
  --link-color: #0b9ed8;
  --blue: #094cb1;
  --orange: #f1860b;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}
html {
  font-size: 10px;
  scroll-behavior: smooth;
}
body *,
body *::before,
body *::after {
  box-sizing: border-box;
  font-family: "Noto Sans JP", sans-serif;
}
a {
  text-decoration: none;
  color: var(--link-color);
}
ul, li {
  list-style: none;
  margin: 0;
  padding: 0;
}
h1 {
  font-size: 36px;
}
.__flex {
  display: flex;
}
.__grid {
  display: grid;
}
/* SVG アイコン共通スタイル */
.gIcon, .msi {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
  vertical-align: middle;
}

.text-white-outline {
  text-shadow:
    -1px -1px 0 #fff,
     1px -1px 0 #fff,
    -1px  1px 0 #fff,
     1px  1px 0 #fff;
}

/* header */
#_header {
  position: fixed;
  display: flex;
  align-items: center;
  column-gap: 30px;
  padding: 0 20px;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--header-color);
  color: #fff;
  font-size: 14px;
  user-select: none;
  z-index: 200;
}
#_header .__home {
  display: flex;
  align-items: center;
  margin-right: auto;
  font-family: "Imperial Script", cursive;
  font-size: 32px;
  font-weight: 600;
}
#_header .__home img {
  display: block;
  height: 32px;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

/* nav */
#_header .nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  column-gap: 18px;
}
#_header .nav .gIcon {
  fill: #fff;
}
#_header .nav a {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  column-gap: 4px;
  border-bottom: none;
  text-decoration: none;
}
#_header .nav a:hover {
  font-weight: 600;
}
#_header .nav a .gIcon {
  width: 24px;
  height: 24px;
}
#_header .nav a span {
  font-size: 12px;
  white-space: nowrap;
}

/* account */
#_header .__account {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  column-gap: 24px;
  font-size: 14px;
}
#_header a {
  text-decoration: none;
  color: #fff;
  line-height: 1;
}
#_header .__user {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding-left: 12px;
  padding-right: 4px;
  min-width: 120px;
  height: 32px;
  cursor: pointer;
}
#_header .__user .gIcon {
  fill: #fff;
}
#_header .__account:hover {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
#_header .__account .__menu {
  position: absolute;
  display: none;
  top: 32px;
  left: 0;
  width: 100%;
  background: #fff;
}
#_header .__account:hover .__menu {
  display: block;
}
#_header .__account .__menu {
  padding: 4px 0;
  box-shadow: 0 2px 3px 3px rgba(0,0,0,0.3);
  border-radius: 2px;
  font-size: 13px;
}
#_header .__menu li:hover {
  background: #f7f7f7;
}
#_header .__menu li a {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 4px;
  padding: 0 8px;
  height: 30px;
  color: #333;
}
/* small */
#_header .__small {
  position: relative;
  display: none;
}
#_header .__small > .menu::after {
  color: #fff;
  cursor: pointer;
  font-size: 30px;
}
#_header .__small .__menu {
  position: absolute;
  padding: 4px 0;
  top: 32px;
  right: -8px;
  background: #fff;
  box-shadow: 0 2px 3px 3px rgba(0,0,0,0.3);
  border-radius: 2px;
  font-size: 13px;
}
#_header .__small .__menu:focus {
  outline: none;
}
#_header .__small .__menu li a {
  padding: 0 16px;
  height: 48px;
}
#_header .__small .__menu li a span {
  white-space: nowrap;
}
#_header .__small .__menu .__profile,
#_header .__small .__menu .__login {
  border-top: solid 1px #ddd;
}

/* main */
#_main {
  padding-top: 60px;
  width: 100%;
  min-height: 100%;
}

/* pageTop */
#_pageTop {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 50px;
  background: var(--footer-color);
  cursor: pointer;
  user-select: none;
}
#_pageTop a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
#_pageTop a svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* footer */
#_footer {
  display: block;
  width: 100%;
  background: #142025;
  color: #FFF;
  line-height: 20px;
  font-size: 12px;
  user-select: none;
  z-index: 50;
}
#_footer ul,
#_footer li {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #FFF;
}
#_footer .__bottom {
  display: flex;
  justify-content: center;
  column-gap: 80px;
  padding: 24px 8px 12px 8px;
}
#_footer .__bottom ul {
  text-align: left;
}
#_footer .__bottom ul span {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}
#_footer .__bottom ul li {
  padding: 4px 0;
  padding-left: 4px;
  line-height: 18px;
}
#_footer a {
  color: #FFF;
}
#_footer a:hover {
  border-bottom: solid 1px #FFF;
}
#_footer .__links {
  display: flex;
  column-gap: 4px;
  justify-content: center;
  line-height: 24px;
}
#_footer .__footer {
  padding: 0 24px;
  height: 50px;
  width: 100%;
  text-align: center;
  background: var(--footer-color);
  font-size: 12px;
  line-height: 50px;
}

.__fade_in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.__fade_in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ===== Spinner ===== */
.__spinner_wrap {
  position: fixed;
  display: flex;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(2px);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.__spinner {
  position: relative;
  width: 56px;
  height: 56px;
}
.__ring {
  position: absolute;
  border-radius: 9999px;
  border-width: 2.5px;
  border-style: solid;
  box-sizing: border-box;
}
.__ring_back {
  inset: 0;
  border-color: rgba(43, 127, 224, 0.18);
}
.__ring_front {
  inset: 0;
  border-color: transparent;
  border-top-color: #60a5fa;
  animation: spin 0.9s linear infinite;
}
.__ring_inner {
  inset: 9px;
  border-color: transparent;
  border-top-color: #818cf8;
  animation: spin 1.4s linear infinite reverse;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ===== 確認ダイアログ ===== */
.dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: dialog-fade-in 0.18s ease;
}

@keyframes dialog-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.dialog-box {
  background: #fff;
  border-radius: 14px;
  padding: 32px 28px 24px;
  width: 400px;
  max-width: calc(100vw - 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
  animation: dialog-slide-in 0.2s ease;
}

@keyframes dialog-slide-in {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.dialog-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e53e3e;
  margin-bottom: 4px;
}

.dialog-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
}

.dialog-message {
  font-size: 1.35rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.7;
  white-space: pre-line;
}

.dialog-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  width: 100%;
}

.dialog-btn-cancel,
.dialog-btn-ok,
.dialog-btn-dismiss {
  flex: 1;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, color 0.15s;
}

.dialog-btn-cancel {
  background: #f1f5fb;
  color: var(--text-body);
}
.dialog-btn-cancel:hover {
  background: #e2e8f0;
}

.dialog-btn-ok {
  background: var(--blue);
  color: #fff;
}
.dialog-btn-ok:hover {
  background: #1e40af;
  color: #fff;
}
.dialog-btn-dismiss {
  background: #e53e3e;
  color: #fff;
}
.dialog-btn-dismiss:hover {
  background: #c53030;
}


@media screen and (max-width: 850px) {
  #_header .__large a .gIcon:after {
    font-size: 22px;
  }
  #_header .__large a span {
    font-size: 13px;
  }
}
@media screen and (max-width: 768px) {
  #_header .__large {
    display: none;
  }
  #_header .__small {
    display: flex;
    flex-wrap: nowrap;
    column-gap: 15px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
  }
}
@media screen and (max-width: 400px) {
  #_footer .__links a {
    font-size: 8px;
  }
}