/* =========================================================
   Engineer Do TOP CSS v1.0
   対象：GeneratePress + 固定ページのカスタムHTMLブロック
   運用ルール：このCSSをカスタムHTMLブロックのCSS欄へ丸ごと貼り付け
   ========================================================= */

:root {
  --ed-navy-950: #06152f;
  --ed-navy-900: #081b3a;
  --ed-navy-850: #0b2146;
  --ed-navy-800: #0d2a58;
  --ed-blue-700: #1557d6;
  --ed-blue-600: #246be8;
  --ed-blue-500: #3b82f6;
  --ed-blue-300: #8ab6ff;
  --ed-cyan-500: #2fc8d8;
  --ed-cyan-300: #8ee6ef;
  --ed-green-600: #15955b;
  --ed-green-100: #eefaf4;
  --ed-purple-600: #7a48d6;
  --ed-purple-100: #f6f0ff;
  --ed-orange-600: #e87518;
  --ed-orange-100: #fff5ea;
  --ed-pink-600: #de4c76;
  --ed-pink-100: #fff0f5;
  --ed-cyan-700: #078ca4;
  --ed-cyan-100: #ecfbfe;
  --ed-gold-500: #f4b63b;
  --ed-gold-300: #ffd16c;
  --ed-red-500: #ef4444;
  --ed-bg: #f3f7fc;
  --ed-surface: #ffffff;
  --ed-surface-soft: #f8fbff;
  --ed-line: #dfe7f2;
  --ed-line-strong: #c9d6e7;
  --ed-text: #10223f;
  --ed-text-soft: #51627a;
  --ed-text-faint: #7e8ca0;
  --ed-shadow-xs: 0 2px 8px rgba(7, 28, 63, 0.05);
  --ed-shadow-sm: 0 8px 24px rgba(7, 28, 63, 0.08);
  --ed-shadow-md: 0 14px 36px rgba(7, 28, 63, 0.12);
  --ed-shadow-lg: 0 22px 54px rgba(7, 28, 63, 0.18);
  --ed-radius-sm: 10px;
  --ed-radius-md: 16px;
  --ed-radius-lg: 22px;
  --ed-radius-xl: 30px;
  --ed-container: 1540px;
  --ed-sidebar: 360px;
  --ed-gap: 22px;
  --ed-transition: 180ms ease;
}

/* GeneratePress / WordPress reset */
body {
  margin: 0;
  background: var(--ed-bg);
  color: var(--ed-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

body,
button,
input,
textarea,
select { font: inherit; }

body.page-id-57 .site-header,
body.page-id-57 .main-navigation,
body.page-id-57 .site-footer,
body.page-id-57 .page-header,
body.page-id-57 .entry-header,
body.page-id-57 .entry-title,
body.page-id-57 .comments-area,
body.page-id-57 .featured-image,
body.page-id-57 .post-image,
body.page-id-57 .inside-article > header {
  display: none !important;
}

body.page-id-57 .site-content,
body.page-id-57 .content-area,
body.page-id-57 .site-main,
body.page-id-57 .inside-article,
body.page-id-57 .entry-content,
body.page-id-57 .grid-container,
body.page-id-57 .container.grid-container,
body.page-id-57 #page,
body.page-id-57 #primary {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.page-id-57 .site-content { display: block !important; }
body.page-id-57 .inside-article {
  background: transparent !important;
  box-shadow: none !important;
}
body.page-id-57 .entry-content { margin: 0 !important; }
body.page-id-57 .widget-area { display: none !important; }
body.page-id-57.admin-bar .ed-header { top: 32px; }

@media (max-width: 782px) {
  body.page-id-57.admin-bar .ed-header { top: 46px; }
}

#engineer-do-app,
#engineer-do-app *,
#engineer-do-app *::before,
#engineer-do-app *::after { box-sizing: border-box; }

#engineer-do-app {
  min-height: 100vh;
  background: var(--ed-bg);
  color: var(--ed-text);
  overflow-x: hidden;
}

#engineer-do-app img {
  max-width: 100%;
  display: block;
}

#engineer-do-app a {
  color: inherit;
  text-decoration: none;
}

#engineer-do-app button {
  border: 0;
  cursor: pointer;
}

#engineer-do-app h1,
#engineer-do-app h2,
#engineer-do-app h3,
#engineer-do-app p { margin-top: 0; }

/* Shared components */
.ed-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform var(--ed-transition), box-shadow var(--ed-transition),
    background var(--ed-transition), color var(--ed-transition),
    border-color var(--ed-transition);
}

.ed-button:hover { transform: translateY(-2px); }

.ed-button--primary {
  background: linear-gradient(135deg, var(--ed-blue-700), var(--ed-blue-600));
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(21, 87, 214, 0.24);
}
.ed-button--primary:hover {
  box-shadow: 0 14px 32px rgba(21, 87, 214, 0.32);
}

.ed-button--secondary {
  background: #fff;
  color: var(--ed-text) !important;
  border: 1px solid var(--ed-line-strong);
  box-shadow: var(--ed-shadow-xs);
}
.ed-button--secondary:hover {
  border-color: var(--ed-blue-300);
  color: var(--ed-blue-700) !important;
}
.ed-button--small {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 9px;
  font-size: 0.9rem;
}
.ed-button--full { width: 100%; }

.ed-section__eyebrow,
.ed-hero__eyebrow {
  margin-bottom: 8px;
  color: var(--ed-blue-700);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.ed-section {
  background: var(--ed-surface);
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius-lg);
  box-shadow: var(--ed-shadow-xs);
}

.ed-section__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 24px;
}

.ed-section__heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.3;
}

.ed-section__heading > p {
  margin-bottom: 0;
  color: var(--ed-text-soft);
  font-size: 0.93rem;
}

.ed-section__heading--row { align-items: center; }
.ed-section__more {
  flex: 0 0 auto;
  color: var(--ed-blue-700) !important;
  font-weight: 800;
  font-size: 0.9rem;
}

/* Header */
.ed-header {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  background: linear-gradient(90deg, var(--ed-navy-950) 0%,
    var(--ed-navy-900) 58%, #0a2248 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(2, 12, 29, 0.18);
}

.ed-header__inner {
  width: min(100%, var(--ed-container));
  min-height: 70px;
  margin: 0 auto;
  padding: 0 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
}

.ed-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  color: #fff !important;
}

.ed-brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #43d3dd 0 42%, #fff 42% 52%,
    #5a87ff 52% 100%);
  color: var(--ed-navy-950);
  font-size: 0.92rem;
  font-weight: 1000;
  letter-spacing: -0.05em;
  box-shadow: 0 8px 18px rgba(46, 202, 216, 0.22);
}

.ed-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}
.ed-brand__text strong {
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}
.ed-brand__text small {
  margin-top: 5px;
  color: rgba(255,255,255,0.7);
  font-size: 0.68rem;
}

.ed-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ed-nav__link {
  position: relative;
  padding: 25px 12px 22px;
  color: rgba(255,255,255,0.86) !important;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color var(--ed-transition);
}

.ed-nav__link:hover,
.ed-nav__link.is-current { color: #fff !important; }

.ed-nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 9px;
  height: 2px;
  border-radius: 2px;
  background: transparent;
}

.ed-nav__link.is-current::after,
.ed-nav__link:hover::after {
  background: linear-gradient(90deg, var(--ed-cyan-500), var(--ed-blue-500));
}

.ed-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.ed-search-button {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
}
.ed-search-button:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
}
.ed-search-button kbd {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.68);
  font-size: 0.68rem;
  font-family: inherit;
}
.ed-login-link {
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.ed-mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.ed-mobile-menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}

/* Main layout */
.ed-main {
  width: 100%;
  padding: 18px 18px 44px;
}
.ed-page-grid {
  width: min(100%, var(--ed-container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--ed-sidebar);
  gap: var(--ed-gap);
  align-items: start;
}
.ed-primary,
.ed-sidebar {
  min-width: 0;
  display: grid;
  gap: var(--ed-gap);
}

/* Hero */
.ed-hero {
  position: relative;
  min-height: 440px;
  display: grid;
  grid-template-columns: minmax(420px, 0.88fr) minmax(500px, 1.12fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius-lg);
  box-shadow: var(--ed-shadow-md);
}

.ed-hero__copy {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px 32px 54px 44px;
  background: linear-gradient(90deg, rgba(255,255,255,1) 0%,
    rgba(255,255,255,0.97) 76%, rgba(255,255,255,0.72) 100%);
}

.ed-hero__title {
  margin-bottom: 22px;
  color: var(--ed-navy-950);
  font-size: clamp(2.35rem, 4vw, 4.15rem);
  line-height: 1.2;
  letter-spacing: -0.045em;
  font-weight: 950;
}
.ed-hero__title span { color: var(--ed-blue-700); }

.ed-hero__lead {
  margin-bottom: 28px;
  color: var(--ed-text-soft);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.85;
  font-weight: 500;
}

.ed-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ed-hero__visual {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  background: linear-gradient(#82d3ff 0 42%, #bde7f6 42% 50%,
    #7bcf79 50% 100%);
}

.ed-hero__sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,0.78) 0 5%, transparent 6%),
    radial-gradient(circle at 42% 12%, rgba(255,255,255,0.6) 0 7%, transparent 8%),
    radial-gradient(circle at 72% 19%, rgba(255,255,255,0.72) 0 8%, transparent 9%),
    linear-gradient(180deg, #83d3ff 0%, #bce7ff 64%, transparent 65%);
  opacity: 0.95;
}

.ed-hero__mountain {
  position: absolute;
  left: 4%;
  right: 4%;
  clip-path: polygon(0 100%, 20% 52%, 31% 72%, 48% 29%, 59% 58%, 74% 24%, 100% 100%);
}
.ed-hero__mountain--back {
  bottom: 36%;
  height: 48%;
  background: linear-gradient(180deg, #e8f5ff 0 24%, #87b6d8 25% 100%);
  opacity: 0.8;
}
.ed-hero__mountain--front {
  bottom: 27%;
  height: 43%;
  background: linear-gradient(180deg, #e4f4ff 0 18%, #6ea4c6 19% 46%,
    #4f8a8d 47% 100%);
  opacity: 0.92;
}

.ed-hero__field {
  position: absolute;
  inset: 50% 0 0;
  background:
    radial-gradient(circle at 10% 35%, rgba(255,255,255,0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 26% 52%, rgba(255,238,115,0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 53% 42%, rgba(255,255,255,0.85) 0 2px, transparent 3px),
    radial-gradient(circle at 76% 34%, rgba(255,222,222,0.9) 0 2px, transparent 3px),
    linear-gradient(180deg, #79cb76, #7fc45f 60%, #5aa555);
  background-size: 70px 70px, 90px 90px, 80px 80px, 110px 110px, auto;
}

.ed-hero__road {
  position: absolute;
  left: 50%;
  bottom: -9%;
  width: 52%;
  height: 68%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #e4d5a7, #b68b55);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 8px 14px rgba(89, 65, 33, 0.18));
}

.ed-route-signs {
  position: absolute;
  z-index: 4;
  left: 20%;
  bottom: 16%;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ed-route-signs::before {
  content: "";
  position: absolute;
  left: 48%;
  top: 8%;
  bottom: -18%;
  width: 11px;
  transform: translateX(-50%);
  border-radius: 5px;
  background: linear-gradient(90deg, #6d4626, #a7753f 48%, #5a361f);
  z-index: -1;
}
.ed-route-signs span {
  position: relative;
  min-width: 148px;
  padding: 8px 14px 8px 18px;
  color: #fff;
  background: linear-gradient(180deg, #aa793d, #7f5528);
  border: 2px solid rgba(77, 45, 21, 0.46);
  border-radius: 5px;
  box-shadow: inset 0 1px rgba(255,255,255,0.28),
    0 5px 10px rgba(66, 37, 16, 0.18);
  font-size: 0.78rem;
  font-weight: 900;
  text-shadow: 0 1px 1px rgba(0,0,0,0.28);
}
.ed-route-signs span:nth-child(even) { transform: translateX(18px); }
.ed-route-signs span:nth-child(odd) { transform: translateX(-8px); }

.ed-adventurer {
  position: absolute;
  z-index: 3;
  left: 54%;
  bottom: 7%;
  width: 74px;
  height: 148px;
  transform: translateX(-50%);
}
.ed-adventurer__head {
  position: absolute;
  top: 0;
  left: 21px;
  width: 34px;
  height: 36px;
  border-radius: 48% 48% 42% 42%;
  background: #36251d;
  box-shadow: inset 0 -8px #805232;
}
.ed-adventurer__body {
  position: absolute;
  top: 31px;
  left: 14px;
  width: 47px;
  height: 76px;
  border-radius: 18px 18px 13px 13px;
  background: linear-gradient(90deg, #2d617c 0 20%, #547f92 21% 79%,
    #2b566d 80% 100%);
}
.ed-adventurer__body::before,
.ed-adventurer__body::after {
  content: "";
  position: absolute;
  bottom: -35px;
  width: 13px;
  height: 47px;
  border-radius: 7px;
  background: #4d352b;
}
.ed-adventurer__body::before { left: 7px; transform: rotate(4deg); }
.ed-adventurer__body::after { right: 7px; transform: rotate(-4deg); }
.ed-adventurer__bag {
  position: absolute;
  top: 41px;
  left: -3px;
  width: 36px;
  height: 51px;
  border-radius: 10px;
  background: #765139;
  border: 4px solid #4c3022;
}

.ed-player-card {
  position: absolute;
  z-index: 5;
  top: 32px;
  right: 22px;
  width: min(320px, calc(100% - 44px));
  padding: 20px;
  color: #fff;
  background: linear-gradient(145deg, rgba(8, 27, 58, 0.88),
    rgba(10, 45, 78, 0.78));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  box-shadow: var(--ed-shadow-lg);
  backdrop-filter: blur(10px);
}
.ed-player-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.ed-player-card__heading > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ed-player-card__heading small,
.ed-player-card > small {
  color: rgba(255,255,255,0.64);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.ed-player-card__heading strong { font-size: 1.15rem; }
.ed-player-card__badge {
  padding: 4px 7px;
  border-radius: 7px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.72);
  font-size: 0.62rem;
  font-weight: 900;
}
.ed-player-card__caption {
  margin: 14px 0 8px;
  color: rgba(255,255,255,0.75);
  font-size: 0.76rem;
}
.ed-progress {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
}
.ed-progress__bar {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #25d0d5, #9c65ef);
}
.ed-progress--gold .ed-progress__bar {
  background: linear-gradient(90deg, var(--ed-gold-500), var(--ed-gold-300));
}
.ed-player-card__numbers {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: rgba(255,255,255,0.74);
  font-size: 0.68rem;
}
.ed-player-card__divider {
  height: 1px;
  margin: 17px 0;
  background: rgba(255,255,255,0.12);
}
.ed-player-card__goal {
  display: block;
  margin: 5px 0 12px;
  font-size: 0.95rem;
}
.ed-player-card__goal-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 0.8rem;
}
.ed-player-card__goal-row strong { font-size: 1.55rem; }
.ed-player-card__streak {
  margin: 16px 0 0;
  color: #fff;
  font-weight: 900;
  font-size: 0.9rem;
}
.ed-player-card__streak span {
  color: #ffb43c;
  margin-right: 7px;
}

/* Goal cards */
.ed-goals,
.ed-content { padding: 28px; }

.ed-goal-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.ed-goal-card {
  position: relative;
  min-height: 215px;
  padding: 22px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid transparent !important;
  border-radius: 16px;
  background: #fff;
  color: var(--ed-text);
  box-shadow: var(--ed-shadow-xs);
  transition: transform var(--ed-transition), box-shadow var(--ed-transition),
    border-color var(--ed-transition);
}
.ed-goal-card:hover,
.ed-goal-card.is-selected {
  transform: translateY(-6px);
  box-shadow: var(--ed-shadow-md);
}
.ed-goal-card__symbol {
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  font-weight: 1000;
}
.ed-goal-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.45;
}
.ed-goal-card small {
  flex: 1;
  color: var(--ed-text-soft);
  font-size: 0.8rem;
  line-height: 1.65;
}
.ed-goal-card__link {
  margin-top: 16px;
  font-size: 0.78rem;
  font-weight: 900;
}

.ed-goal-card--blue {
  background: linear-gradient(180deg, #f6f9ff, #eef4ff);
  border-color: #b8d0ff !important;
}
.ed-goal-card--blue .ed-goal-card__symbol,
.ed-goal-card--blue .ed-goal-card__link { color: var(--ed-blue-700); }
.ed-goal-card--blue .ed-goal-card__symbol { background: #dfebff; }

.ed-goal-card--green {
  background: linear-gradient(180deg, #f7fcf9, #eef9f3);
  border-color: #bfe6d0 !important;
}
.ed-goal-card--green .ed-goal-card__symbol,
.ed-goal-card--green .ed-goal-card__link { color: var(--ed-green-600); }
.ed-goal-card--green .ed-goal-card__symbol { background: #dff5e8; }

.ed-goal-card--purple {
  background: linear-gradient(180deg, #fbf8ff, #f4efff);
  border-color: #d9c6ff !important;
}
.ed-goal-card--purple .ed-goal-card__symbol,
.ed-goal-card--purple .ed-goal-card__link { color: var(--ed-purple-600); }
.ed-goal-card--purple .ed-goal-card__symbol { background: #ebdfff; }

.ed-goal-card--orange {
  background: linear-gradient(180deg, #fffaf5, #fff2e6);
  border-color: #ffd0a4 !important;
}
.ed-goal-card--orange .ed-goal-card__symbol,
.ed-goal-card--orange .ed-goal-card__link { color: var(--ed-orange-600); }
.ed-goal-card--orange .ed-goal-card__symbol { background: #ffe3c6; }

.ed-goal-card--pink {
  background: linear-gradient(180deg, #fff8fa, #fff0f4);
  border-color: #ffc4d3 !important;
}
.ed-goal-card--pink .ed-goal-card__symbol,
.ed-goal-card--pink .ed-goal-card__link { color: var(--ed-pink-600); }
.ed-goal-card--pink .ed-goal-card__symbol { background: #ffdae4; }

.ed-goal-card--cyan {
  background: linear-gradient(180deg, #f7feff, #edfbfd);
  border-color: #b5e9ef !important;
}
.ed-goal-card--cyan .ed-goal-card__symbol,
.ed-goal-card--cyan .ed-goal-card__link { color: var(--ed-cyan-700); }
.ed-goal-card--cyan .ed-goal-card__symbol { background: #d6f6f9; }

.ed-goal-result {
  margin-top: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(180px, auto) 1fr auto;
  align-items: center;
  gap: 20px;
  border-radius: 14px;
  background: var(--ed-surface-soft);
  border: 1px solid var(--ed-line);
}
.ed-goal-result small {
  display: block;
  color: var(--ed-text-faint);
  font-size: 0.7rem;
  font-weight: 800;
}
.ed-goal-result strong {
  display: block;
  margin-top: 3px;
}
.ed-goal-result p {
  margin-bottom: 0;
  color: var(--ed-text-soft);
}

/* Content */
.ed-content-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.ed-content-tabs button {
  padding: 8px 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--ed-text-soft);
  font-size: 0.82rem;
  font-weight: 800;
}
.ed-content-tabs button:hover,
.ed-content-tabs button.is-active {
  background: #eaf2ff;
  color: var(--ed-blue-700);
}
.ed-content-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.ed-content-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ed-line);
  border-radius: 14px;
  transition: transform var(--ed-transition), box-shadow var(--ed-transition);
}
.ed-content-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ed-shadow-md);
}
.ed-content-card[hidden] { display: none !important; }
.ed-content-card__image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dfe7f1;
}
.ed-content-card__image::before,
.ed-content-card__image::after {
  content: "";
  position: absolute;
}
.ed-content-card__image--drawing {
  background: linear-gradient(145deg, rgba(255,255,255,0.85),
    rgba(221,229,238,0.9)),
    repeating-linear-gradient(0deg, #a3afbd 0 1px, transparent 1px 14px),
    repeating-linear-gradient(90deg, #a3afbd 0 1px, transparent 1px 14px);
}
.ed-content-card__image--drawing::before {
  inset: 24% 13% 18%;
  border: 2px solid #59697c;
  transform: skew(-8deg);
}
.ed-content-card__image--presentation {
  background: linear-gradient(rgba(8,27,58,0.22), rgba(8,27,58,0.18)),
    linear-gradient(135deg, #a4b7ca, #dae4ed 50%, #7994ae);
}
.ed-content-card__image--presentation::before {
  left: 12%;
  bottom: 18%;
  width: 27%;
  height: 47%;
  border-radius: 50% 50% 16px 16px;
  background: #22354a;
}
.ed-content-card__image--presentation::after {
  right: 10%;
  top: 14%;
  width: 44%;
  height: 52%;
  border: 5px solid rgba(255,255,255,0.84);
}
.ed-content-card__image--technology {
  background: radial-gradient(circle at 50% 50%,
    rgba(48,206,222,0.76) 0 10%, transparent 11%),
    repeating-radial-gradient(circle at 50% 50%,
    rgba(68,188,255,0.22) 0 2px, transparent 3px 18px),
    linear-gradient(145deg, #0c2349, #1c4870 58%, #2db1c2);
}
.ed-content-card__image--meeting {
  background: linear-gradient(rgba(10,31,61,0.15), rgba(10,31,61,0.15)),
    linear-gradient(135deg, #6d7f91, #d4c3b0 45%, #6c8296);
}
.ed-content-card__image--meeting::before {
  left: 12%;
  right: 12%;
  bottom: 15%;
  height: 20%;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  box-shadow: 38px -26px 0 -9px #263a4d,
    93px -26px 0 -9px #5d4036,
    148px -26px 0 -9px #263a4d;
}
.ed-content-card__image--gift {
  background: radial-gradient(circle at 50% 54%,
    rgba(255,255,255,0.22), transparent 38%),
    linear-gradient(145deg, #201347, #6b2d8d 55%, #312156);
}
.ed-content-card__image--gift::before {
  left: 32%;
  top: 28%;
  width: 36%;
  height: 44%;
  border-radius: 8px;
  background: linear-gradient(135deg, #d79e2a, #f5d16e);
  box-shadow: 0 12px 20px rgba(0,0,0,0.24);
}
.ed-content-card__image--gift::after {
  left: 49%;
  top: 24%;
  width: 4%;
  height: 53%;
  background: #fff2a9;
  box-shadow: -27px 16px 0 -1px #fff2a9, 27px 16px 0 -1px #fff2a9;
}
.ed-content-card__label {
  position: absolute;
  z-index: 2;
  left: 9px;
  top: 9px;
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--ed-blue-600);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 900;
}
.ed-content-card__label--red { background: var(--ed-red-500); }
.ed-content-card__label--orange { background: var(--ed-orange-600); }
.ed-content-card__label--purple { background: var(--ed-purple-600); }
.ed-content-card__play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--ed-blue-700);
  box-shadow: var(--ed-shadow-sm);
}
.ed-content-card__body { padding: 14px 13px 15px; }
.ed-content-card__body h3 {
  margin-bottom: 12px;
  font-size: 0.9rem;
  line-height: 1.52;
}
.ed-content-card__body time {
  color: var(--ed-text-faint);
  font-size: 0.7rem;
}

/* Sidebar */
.ed-side-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius-lg);
  box-shadow: var(--ed-shadow-xs);
}
.ed-side-card__heading h2,
.ed-side-card h2 {
  margin-bottom: 8px;
  font-size: 1.18rem;
}
.ed-side-card__heading p,
.ed-side-card > p {
  margin-bottom: 16px;
  color: var(--ed-text-soft);
  font-size: 0.82rem;
  line-height: 1.65;
}
.ed-location-card {
  background: linear-gradient(180deg, #fffdfa, #fffaf2);
  border-color: #f0dfc3;
}
.ed-location-list {
  display: grid;
  gap: 8px;
}
.ed-location-list button {
  width: 100%;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: #fff;
  border: 1px solid #e5ded2 !important;
  border-radius: 11px;
  color: var(--ed-text);
}
.ed-location-list button:hover,
.ed-location-list button.is-selected {
  border-color: var(--ed-blue-300) !important;
  transform: translateX(3px);
  box-shadow: var(--ed-shadow-xs);
}
.ed-location-list__icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eaf5ef;
  color: var(--ed-green-600);
  font-weight: 1000;
}
.ed-location-list strong,
.ed-location-list small { display: block; }
.ed-location-list strong { font-size: 0.86rem; }
.ed-location-list small {
  margin-top: 3px;
  color: var(--ed-text-soft);
  font-size: 0.7rem;
  line-height: 1.5;
}
.ed-location-card__submit {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  border-radius: 9px;
  background: #fff;
  color: var(--ed-text);
  border: 1px solid var(--ed-line-strong) !important;
  font-weight: 900;
}
.ed-side-card__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.ed-side-card__title-row h2 { margin-bottom: 0; }
.ed-side-card__title-row a {
  color: var(--ed-blue-700) !important;
  font-size: 0.75rem;
  font-weight: 900;
}
.ed-ranking-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ed-ranking-list li {
  display: grid;
  grid-template-columns: 31px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--ed-line);
}
.ed-ranking-list li:last-child { border-bottom: 0; }
.ed-ranking-list__number {
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #dfe7f1;
  color: var(--ed-text);
  font-size: 0.74rem;
  font-weight: 1000;
}
.ed-ranking-list li:nth-child(1) .ed-ranking-list__number {
  background: #ff708c; color: #fff;
}
.ed-ranking-list li:nth-child(2) .ed-ranking-list__number {
  background: #ffad34; color: #fff;
}
.ed-ranking-list li:nth-child(3) .ed-ranking-list__number {
  background: #6a65de; color: #fff;
}
.ed-ranking-list strong,
.ed-ranking-list small { display: block; }
.ed-ranking-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}
.ed-ranking-list small {
  margin-top: 4px;
  color: var(--ed-text-faint);
  font-size: 0.68rem;
}
.ed-community-card {
  background: linear-gradient(180deg, #fbfdff, #f3f8ff);
}
.ed-community-stats {
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ed-community-stats div {
  padding: 10px 6px;
  text-align: center;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--ed-line);
}
.ed-community-stats strong,
.ed-community-stats small { display: block; }
.ed-community-stats strong {
  color: var(--ed-blue-700);
  font-size: 1.05rem;
}
.ed-community-stats small {
  margin-top: 2px;
  color: var(--ed-text-soft);
  font-size: 0.64rem;
}
.ed-ai-card {
  background: linear-gradient(145deg, #f6fbff, #f4f0ff);
}

/* Footer */
.ed-footer {
  padding: 30px 18px;
  color: rgba(255,255,255,0.84);
  background: linear-gradient(90deg, var(--ed-navy-950), var(--ed-navy-900));
}
.ed-footer__inner {
  width: min(100%, var(--ed-container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
}
.ed-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ed-footer__brand strong {
  display: block;
  color: #fff;
}
.ed-footer__brand p {
  margin: 3px 0 0;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
}
.ed-footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}
.ed-footer__nav a {
  color: rgba(255,255,255,0.74) !important;
  font-size: 0.78rem;
}
.ed-footer__nav a:hover { color: #fff !important; }
.ed-footer__copyright {
  margin-bottom: 0;
  color: rgba(255,255,255,0.55);
  font-size: 0.7rem;
}

/* Responsive */
@media (max-width: 1280px) {
  :root { --ed-sidebar: 320px; }
  .ed-header__inner { gap: 14px; }
  .ed-nav__link {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 0.8rem;
  }
  .ed-search-button kbd { display: none; }
  .ed-hero {
    grid-template-columns: minmax(380px, 0.9fr) minmax(440px, 1.1fr);
  }
  .ed-goal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ed-content-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .ed-header__inner { grid-template-columns: auto auto 1fr; }
  .ed-mobile-menu-button { display: inline-flex; order: 2; }
  .ed-brand { order: 1; }
  .ed-header__actions { order: 3; }
  .ed-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% + 8px);
    padding: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--ed-navy-900);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    box-shadow: var(--ed-shadow-lg);
  }
  .ed-nav.is-open { display: flex; }
  .ed-nav__link {
    padding: 12px 14px;
    border-radius: 8px;
  }
  .ed-nav__link::after { display: none; }
  .ed-page-grid { grid-template-columns: 1fr; }
  .ed-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-location-card { grid-row: span 2; }
  .ed-hero { grid-template-columns: 1fr; }
  .ed-hero__copy {
    min-height: 410px;
    padding-right: 42%;
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%,
      rgba(255,255,255,0.94) 55%, rgba(255,255,255,0.2) 100%);
  }
  .ed-hero__visual {
    position: absolute;
    inset: 0 0 0 38%;
    min-height: 100%;
  }
  .ed-player-card { width: 280px; }
  .ed-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ed-footer__brand { justify-content: center; }
}

@media (max-width: 820px) {
  .ed-header__actions .ed-search-button,
  .ed-header__actions .ed-login-link { display: none; }
  .ed-main { padding: 12px 12px 34px; }
  .ed-hero { min-height: auto; }
  .ed-hero__copy {
    min-height: 560px;
    padding: 38px 24px 330px;
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%,
      rgba(255,255,255,0.97) 53%, rgba(255,255,255,0.18) 75%,
      rgba(255,255,255,0) 100%);
  }
  .ed-hero__visual {
    inset: auto 0 0;
    height: 390px;
    min-height: 0;
  }
  .ed-player-card {
    top: auto;
    left: 18px;
    right: 18px;
    bottom: 18px;
    width: auto;
  }
  .ed-route-signs {
    left: 8%;
    bottom: 18%;
    transform: scale(0.82);
    transform-origin: left bottom;
  }
  .ed-adventurer {
    left: 64%;
    bottom: 13%;
    transform: translateX(-50%) scale(0.84);
  }
  .ed-section__heading,
  .ed-section__heading--row {
    align-items: flex-start;
    flex-direction: column;
  }
  .ed-goals,
  .ed-content { padding: 22px; }
  .ed-goal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-sidebar { grid-template-columns: 1fr; }
  .ed-location-card { grid-row: auto; }
  .ed-goal-result { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .ed-header__inner {
    min-height: 62px;
    padding: 0 12px;
  }
  .ed-brand__mark {
    width: 38px;
    height: 38px;
  }
  .ed-brand__text strong { font-size: 1rem; }
  .ed-brand__text small { display: none; }
  .ed-header__actions .ed-button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.78rem;
  }
  .ed-main {
    padding-left: 8px;
    padding-right: 8px;
  }
  .ed-hero,
  .ed-section,
  .ed-side-card { border-radius: 14px; }
  .ed-hero__copy {
    min-height: 590px;
    padding: 30px 18px 350px;
  }
  .ed-hero__title {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }
  .ed-hero__lead {
    font-size: 0.94rem;
    line-height: 1.75;
  }
  .ed-hero__buttons {
    display: grid;
    grid-template-columns: 1fr;
  }
  .ed-button { width: 100%; }
  .ed-player-card { padding: 16px; }
  .ed-goals,
  .ed-content,
  .ed-side-card { padding: 18px; }
  .ed-goal-grid,
  .ed-content-grid { grid-template-columns: 1fr; }
  .ed-goal-card {
    min-height: 0;
    align-items: flex-start;
    text-align: left;
    padding: 18px;
  }
  .ed-goal-card__symbol { margin-bottom: 12px; }
  .ed-goal-card__link { width: 100%; }
  .ed-content-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .ed-content-tabs button { flex: 0 0 auto; }
  .ed-community-stats { grid-template-columns: 1fr; }
  .ed-footer__nav {
    flex-direction: column;
    gap: 9px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  #engineer-do-app *,
  #engineer-do-app *::before,
  #engineer-do-app *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

#engineer-do-app :focus-visible {
  outline: 3px solid rgba(36, 107, 232, 0.42);
  outline-offset: 3px;
}
/* Engineer Do TOP JavaScript support CSS */
body.ed-search-is-open { overflow: hidden; }
.ed-search-overlay { position: fixed; z-index: 10050; inset: 0; padding: 24px; display: none; align-items: flex-start; justify-content: center; background: rgba(3,15,35,.72); backdrop-filter: blur(7px); }
.ed-search-overlay.is-open { display: flex; }
.ed-search-dialog { position: relative; width: min(680px,100%); margin-top: min(18vh,150px); padding: 32px; background: #fff; border-radius: 20px; box-shadow: 0 28px 80px rgba(2,12,29,.34); }
.ed-search-dialog h2 { margin: 0 0 22px; color: var(--ed-text); font-size: clamp(1.5rem,3vw,2.1rem); }
.ed-search-dialog__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; background: #edf3fb; color: var(--ed-text); font-size: 1.45rem; line-height: 1; }
.ed-search-dialog__form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.ed-search-dialog__form input { min-width: 0; min-height: 50px; padding: 0 16px; border: 1px solid var(--ed-line-strong); border-radius: 11px; background: #fff; color: var(--ed-text); }
.ed-search-dialog__form input:focus { border-color: var(--ed-blue-500); outline: 3px solid rgba(59,130,246,.16); }
.ed-search-dialog__hint { margin: 14px 0 0; color: var(--ed-text-faint); font-size: .78rem; }
.ed-toast-container { position: fixed; z-index: 10100; right: 18px; bottom: 18px; width: min(390px,calc(100vw - 36px)); display: grid; gap: 10px; pointer-events: none; }
.ed-toast { padding: 14px 16px; transform: translateY(16px); opacity: 0; color: #fff; background: var(--ed-navy-900); border-radius: 12px; box-shadow: var(--ed-shadow-lg); font-size: .84rem; font-weight: 700; line-height: 1.6; transition: transform 220ms ease, opacity 220ms ease; }
.ed-toast.is-visible { transform: translateY(0); opacity: 1; }
.ed-toast--success { background: #147a4b; }
.ed-toast--info { background: var(--ed-navy-900); }
.ed-reveal { transform: translateY(18px); opacity: 0; }
.ed-reveal.is-visible { transform: translateY(0); opacity: 1; transition: transform 560ms cubic-bezier(.2,.75,.25,1), opacity 560ms ease; }
.screen-reader-text { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
@media (max-width: 600px) { .ed-search-overlay { padding: 12px; } .ed-search-dialog { margin-top: 12vh; padding: 24px 18px 20px; } .ed-search-dialog__form { grid-template-columns: 1fr; } .ed-search-dialog__form .ed-button { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .ed-reveal, .ed-reveal.is-visible { transform: none; opacity: 1; transition: none; } }

/* =========================================================
   v2.0: 6つの目的カードを確実なページリンクとして使用
   ========================================================= */
.ed-app a.ed-goal-card {
  color: var(--ed-text, #071938);
  text-decoration: none !important;
  cursor: pointer;
}

.ed-app a.ed-goal-card:visited {
  color: var(--ed-text, #071938);
}

.ed-app a.ed-goal-card:focus-visible {
  outline: 3px solid #1f68e8;
  outline-offset: 4px;
}

/* =========================================================
   Engineer Do TOP v3.0
   新しいヒーロー画像を使う完全版
   ========================================================= */
.ed-app .ed-hero {
  background-color: #ffffff;
  background-image: url("https://engineer-do.com/wp-content/uploads/2026/07/engineer-do-hero-adventure-v1.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.ed-app .ed-hero__copy {
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.98) 70%,
      rgba(255, 255, 255, 0.78) 88%,
      rgba(255, 255, 255, 0) 100%
    );
}

.ed-app .ed-hero__visual {
  background: transparent;
}

/* 旧CSSで描画していた山・道・人物・看板を非表示にする */
.ed-app .ed-hero__sky,
.ed-app .ed-hero__mountain,
.ed-app .ed-hero__field,
.ed-app .ed-hero__road,
.ed-app .ed-route-signs,
.ed-app .ed-adventurer {
  display: none !important;
}

/* ステータスカードは画像の右上に重ねる */
.ed-app .ed-player-card {
  z-index: 6;
  top: 24px;
  right: 20px;
  width: min(310px, calc(100% - 40px));
}

@media (max-width: 1080px) {
  .ed-app .ed-hero {
    background-position: 57% center;
  }

  .ed-app .ed-hero__copy {
    background:
      linear-gradient(
        90deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.97) 54%,
        rgba(255, 255, 255, 0.62) 72%,
        rgba(255, 255, 255, 0) 100%
      );
  }

  .ed-app .ed-hero__visual {
    background: transparent;
  }
}

@media (max-width: 820px) {
  .ed-app .ed-hero {
    background-position: 66% bottom;
    background-size: auto 58%;
    background-color: #ffffff;
  }

  .ed-app .ed-hero__copy {
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 1) 48%,
        rgba(255, 255, 255, 0.94) 58%,
        rgba(255, 255, 255, 0) 72%
      );
  }

  .ed-app .ed-player-card {
    top: auto;
    right: 18px;
    bottom: 18px;
    left: 18px;
    width: auto;
  }
}

@media (max-width: 600px) {
  .ed-app .ed-hero {
    background-position: 64% bottom;
    background-size: auto 55%;
  }
}

/* =========================================================
   Engineer Do TOP v4.0
   ヘッダー・フッターのブランドアイコンを画像へ変更
   ========================================================= */
.ed-app .ed-brand__mark {
  flex: 0 0 auto;
  overflow: hidden;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: -9999px;
  background-color: transparent !important;
  background-image: url("https://engineer-do.com/wp-content/uploads/2026/07/engineer-do-logo-web-v2.png") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: cover !important;
  border: 0 !important;
  border-radius: 15px;
  box-shadow: 0 7px 18px rgba(13, 75, 170, 0.24);
}

.ed-app .ed-header .ed-brand__mark {
  width: 46px;
  height: 46px;
}

.ed-app .ed-footer .ed-brand__mark {
  width: 44px;
  height: 44px;
}

@media (max-width: 600px) {
  .ed-app .ed-header .ed-brand__mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
}