:root {
  --forest: #07503f;
  --forest-dark: #043c30;
  --gold: #d89b28;
  --cream: #fffaf0;
  --paper: #fffdf7;
  --ink: #173b32;
  --sky: #d9eef2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(160deg, #d6edf3 0, #fff0c9 48%, #edf2d4 100%);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.75;
}
a { color: inherit; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px max(24px, calc((100% - 1180px) / 2));
  background: rgba(255, 253, 247, .92);
  border-bottom: 1px solid rgba(7, 80, 63, .15);
  backdrop-filter: blur(10px);
}
.brand-mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .11em; color: var(--forest-dark); white-space: nowrap; }
.brand-mark img { width: 46px; height: 46px; object-fit: contain; border-radius: 50%; background: transparent; }
.brand-mark span { font-size: 0; letter-spacing: 0; }
.brand-mark span::after { content: "ワントラ探検隊本部"; font-size: .94rem; letter-spacing: .06em; }
.site-nav { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; font-size: .92rem; font-weight: 700; }
.site-nav a { text-decoration: none; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a:focus-visible { border-color: var(--gold); }
.site-header nav { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; font-size: .92rem; font-weight: 700; }
.site-header nav a { text-decoration: none; border-bottom: 2px solid transparent; }
.site-header nav a:hover, .site-header nav a:focus-visible { border-color: var(--gold); }
.page { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 80px; }
.hero, .panel, .contact-card { background: rgba(255,253,247,.94); border: 1px solid rgba(7,80,63,.16); border-radius: 28px; box-shadow: 0 16px 42px rgba(32,74,58,.12); }
.hero { padding: clamp(30px, 6vw, 72px); text-align: center; position: relative; overflow: hidden; }
.hero:before { content: ""; width: 280px; height: 280px; border-radius: 50%; border: 1px solid rgba(216,155,40,.35); position: absolute; top: -176px; right: -95px; }
.hero-logo { width: min(310px, 65vw); display: block; margin: 0 auto 18px; position: relative; }
.eyebrow { margin: 0 0 8px; color: #aa741d; font-weight: 800; letter-spacing: .16em; font-size: .83rem; }
h1, h2, h3 { color: var(--forest-dark); line-height: 1.35; }
h1 { font-size: clamp(2rem, 5vw, 3.8rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); margin: 0 0 14px; }
h3 { margin: 0 0 8px; font-size: 1.18rem; }
.lead { margin: 0 auto; max-width: 760px; font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 700; }
.tagline { margin: 18px 0 0; color: var(--forest); font-weight: 800; }
.section { margin-top: 34px; }
.section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.section-title:before { content: ""; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(216,155,40,.17); }
.panel { padding: clamp(22px, 4vw, 38px); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: 24px; background: var(--paper); border: 1px solid rgba(7,80,63,.16); border-radius: 18px; }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.team-grid { align-items: stretch; }
.team-card { display: flex; flex-direction: column; min-height: 500px; padding: 18px; overflow: hidden; }
.team-card__portrait { height: 222px; display: flex; align-items: flex-end; justify-content: center; margin: -2px -2px 14px; border-radius: 14px; overflow: hidden; }
.team-card__portrait img { display: block; width: auto; height: 220px; max-width: 96%; object-fit: contain; object-position: center bottom; image-rendering: auto; filter: drop-shadow(0 9px 8px rgba(27,45,37,.18)); }
.team-card--kakka .team-card__portrait { background: radial-gradient(circle at 50% 12%,#fff6d6 0 24%,#e8c184 76%); }
.team-card--puni .team-card__portrait { background: radial-gradient(circle at 50% 12%,#fff9dc 0 24%,#e8d07e 76%); }
.team-card--stachan .team-card__portrait { background: radial-gradient(circle at 50% 12%,#f2ece0 0 24%,#b6c9bd 76%); }
.team-card__role { margin: 0 0 5px; color: #a36d19; font-size: .68rem; font-weight: 900; letter-spacing: .16em; }
.team-card h3 { margin-bottom: 10px; }
.team-card__action { margin-top: auto; padding-top: 8px; }
.guide-mission-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-mission-card { min-height: 388px; padding: 18px; overflow: hidden; }
.guide-mission-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 130px; margin-bottom: 8px; }
.guide-mission-card__top .number { margin: 0; flex: 0 0 auto; }
.guide-mission-card__top img { display: block; width: 120px; height: 120px; flex: 0 0 120px; object-fit: contain; image-rendering: auto; filter: drop-shadow(0 7px 8px rgba(27,45,37,.18)); }
.guide-mission-card h3 { margin-bottom: 12px; }
.guide-mission-card--difference { border-color: rgba(29,103,76,.35); background: linear-gradient(145deg,#fffdf5,#eff5df); }
.guide-mission-card--image { border-color: rgba(43,91,162,.32); background: linear-gradient(145deg,#fffdf7,#eaf2fa); }
.guide-mission-card--sound { border-color: rgba(146,53,74,.32); background: linear-gradient(145deg,#fffdf7,#f8e8eb); }
.guide-mission-card--memory { border-color: rgba(37,83,112,.32); background: linear-gradient(145deg,#fffdf7,#e7f2ee); }
.guide-mission-card--imagination { border-color: rgba(96,47,146,.35); background: linear-gradient(145deg,#fffdf7,#f1eaf8); }
.number { display: inline-grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: var(--forest); color: #fff; font-weight: 800; margin-bottom: 10px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.button { display: inline-block; text-decoration: none; padding: 12px 20px; border: 2px solid var(--forest); border-radius: 999px; font-weight: 800; transition: transform .15s ease, background .15s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button.primary { background: var(--forest); color: #fff; }
.button.gold { background: var(--gold); border-color: var(--gold); color: #173b32; }
.notice { border-left: 5px solid var(--gold); padding: 14px 18px; background: #fff5d8; border-radius: 0 12px 12px 0; }
.rule-list { counter-reset: rules; list-style: none; margin: 0; padding: 0; }
.rule-list li { position: relative; padding: 14px 0 14px 54px; border-bottom: 1px solid rgba(7,80,63,.13); font-weight: 700; }
.rule-list li:before { counter-increment: rules; content: counter(rules); position: absolute; left: 0; top: 13px; width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: white; }
.small { font-size: .92rem; color: #4a675e; }
.site-footer { background: var(--forest-dark); color: #fef6df; text-align: center; padding: 34px 20px; }
.site-footer p { margin: 5px 0; }
.site-footer a { color: #ffe19c; }
.site-footer a + a { margin-left: 12px; }

.page-shell { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 80px; }
.legal-page > section, .partners-page > section { margin-top: 20px; padding: 28px; border: 1px solid rgba(7,80,63,.16); border-radius: 24px; background: rgba(255,253,247,.94); box-shadow: 0 12px 28px rgba(13,73,57,.08); }
.legal-page h2, .partners-page h2 { margin-top: 0; }
.contact-grid, .feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-card, .partner-cta { padding: 26px; }
.contact-card h2, .partner-cta h2 { margin-top: 0; }
.contact-card a, .partner-cta a { overflow-wrap: anywhere; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0 0; }
.principles article { padding: 22px; border-radius: 20px; background: var(--paper); border: 1px solid rgba(7,80,63,.16); }
.principles h3 { margin-top: 0; }

@media (max-width: 980px) {
  .guide-mission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .site-header { align-items: flex-start; flex-direction: column; padding: 12px 20px; }
  .site-nav, .site-header nav { gap: 10px 14px; justify-content: flex-start; font-size: .82rem; }
  .page { width: min(100% - 24px, 680px); padding: 28px 0 52px; }
  .page-shell { width: min(100% - 24px, 680px); padding: 28px 0 52px; }
  .hero { border-radius: 22px; }
  .grid, .grid.two, .guide-mission-grid, .contact-grid, .feature-grid, .principles { grid-template-columns: 1fr; }
  .guide-mission-card { min-height: 0; }
  .guide-mission-card__top { min-height: 108px; }
  .guide-mission-card__top img { width: 100px; height: 100px; flex-basis: 100px; }
  .legal-page > section, .partners-page > section, .contact-card, .partner-cta { padding: 22px; border-radius: 20px; }
}

/* S1-01 任務記録 */
.mission-page { padding-top: 48px; }

.mission-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.85fr);
  align-items: center;
  gap: 32px;
  margin-bottom: 36px;
}

.mission-hero h1 {
  margin: 0;
  color: #084f3f;
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
}

.mission-hero .lead { max-width: 640px; }
.mission-hero--text-only { grid-template-columns: minmax(0, 1fr); max-width: 820px; }

.mission-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.mission-meta span {
  padding: 6px 10px;
  border: 1px solid #c8d9c6;
  border-radius: 999px;
  background: #edf5ea;
  color: #07513f;
  font-size: 0.86rem;
  font-weight: 800;
}

.mission-card-image {
  display: block;
  width: min(100%, 360px);
  margin: 0 auto;
  border: 3px solid #d8a64a;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(5, 66, 50, 0.2);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mission-grid .card { min-height: 176px; }

.mission-challenge-intro {
  margin: -4px 0 16px;
  color: #315d51;
  font-size: 1rem;
  font-weight: 800;
}

.mission-briefing {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(250px, .92fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(7,80,63,.2);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 16px 38px rgba(32,74,58,.12);
}
.mission-briefing__watch { position: relative; display: block; min-height: 250px; color: #fff; text-decoration: none; background: #0d342d; overflow: hidden; }
.mission-briefing__watch img { display: block; width: 100%; height: 100%; min-height: 250px; object-fit: cover; opacity: .78; transition: transform .25s ease, opacity .25s ease; }
.mission-briefing__watch:hover img, .mission-briefing__watch:focus-visible img { transform: scale(1.035); opacity: .9; }
.mission-briefing__play { position: absolute; inset: auto 20px 20px; display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 10px 15px; border: 1px solid rgba(255,255,255,.76); border-radius: 999px; background: rgba(4,60,48,.85); font-weight: 800; }
.mission-briefing__play::before { content: "▶"; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #d8a64a; color: #173b32; font-size: .76rem; }
.mission-briefing__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 4vw, 40px); }
.mission-briefing__copy h2 { margin: 0 0 8px; }
.mission-briefing__copy p { margin: 0; }

.mission-card { position: relative; overflow: hidden; isolation: isolate; border-width: 2px; }
.mission-card::after { position: absolute; z-index: -1; right: -14px; bottom: -38px; color: rgba(7,80,63,.08); font-size: 7rem; font-weight: 900; line-height: 1; }
.mission-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-height: 118px; margin-bottom: 4px; }
.mission-grid .mission-card__top .number { margin: 0; flex: 0 0 auto; }
.mission-level-badge { display: block; width: 112px; height: 112px; flex: 0 0 112px; object-fit: contain; image-rendering: auto; filter: drop-shadow(0 6px 7px rgba(3, 45, 35, .2)); }
.difficulty-badge { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 1px; min-width: 95px; padding: 6px 9px 5px; border: 1px solid #c98b21; border-radius: 9px 9px 9px 2px; background: #fff8dc; box-shadow: 3px 3px 0 rgba(7,80,63,.14); color: #6c4512; line-height: 1.05; transform: rotate(1.5deg); }
.difficulty-badge span { font-size: .56rem; font-weight: 900; letter-spacing: .12em; }
.difficulty-badge strong { color: #a75c0d; font-size: 1.12rem; letter-spacing: .04em; }
.difficulty-badge--max { border-color: #a63e33; background: linear-gradient(135deg, #642929, #ae4532); box-shadow: 3px 3px 0 rgba(74,24,19,.3); color: #ffe8a6; transform: rotate(-2deg) scale(1.05); }
.difficulty-badge--max strong { color: #fff5c5; font-size: 1rem; letter-spacing: .06em; text-shadow: 0 1px 0 rgba(0,0,0,.3); }
.mission-card--image { border-color: rgba(216,155,40,.45); background: linear-gradient(135deg, #fffdf7, #fff2cf); }
.mission-card--image::after { content: "◎"; }
.mission-card--difference { border-color: rgba(7,80,63,.3); background: linear-gradient(135deg, #fffdf7, #e8f3e8); }
.mission-card--difference::after { content: "!?"; }
.mission-card--memory { border-color: rgba(72,113,156,.28); background: linear-gradient(135deg, #fffdf7, #e4eff6); }
.mission-card--memory::after { content: "↺"; }
.mission-card--sound { border-color: rgba(173,86,80,.3); background: linear-gradient(135deg, #fffdf7, #f9e7df); }
.mission-card--sound::after { content: "♪"; }

.mission-prompt { display: grid; grid-template-columns: minmax(132px, 220px) minmax(0, 1fr); align-items: center; gap: clamp(18px, 4vw, 42px); padding: clamp(22px, 4vw, 36px); border: 1px solid rgba(216,155,40,.38); border-radius: 24px; background: linear-gradient(110deg, #fff6d7, #f5fbec); }
.mission-prompt__visual { align-self: end; text-align: center; }
.mission-prompt__visual img { display: block; width: min(100%, 190px); max-height: 220px; margin: 0 auto; object-fit: contain; image-rendering: auto; }
.mission-prompt__copy h2 { margin: 0 0 8px; }
.mission-prompt__copy p { margin: 0 0 16px; }

.sound-record__details { margin: 0; }
.sound-record__details summary { cursor: pointer; color: #07513f; font-weight: 900; }
.sound-record__details summary::marker { color: #d8a64a; }
.sound-record__details ol { margin-bottom: 0; }

.mission-grid .number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #07513f;
  color: #fff9eb;
  font-weight: 900;
}

.unknown-signal {
  margin: 0 0 10px;
  color: #084f3f;
  font-size: 1.12rem;
  font-weight: 800;
}

.record-note,
.sound-record {
  margin-top: 16px;
  padding: 15px 18px;
  border-left: 5px solid #d8a64a;
  border-radius: 0 12px 12px 0;
  background: #f7f1df;
}

@media (max-width: 760px) {
  .mission-page { padding-top: 28px; }
  .mission-hero { grid-template-columns: 1fr; gap: 22px; }
  .mission-hero h1 { font-size: clamp(2.05rem, 12vw, 3.25rem); }
  .mission-card-image { max-width: 320px; }
  .mission-grid { grid-template-columns: 1fr; }
  .mission-grid .card { min-height: 0; }
  /* Keep the mission title prominent on narrow screens; the badge is an accent. */
  .mission-card__top { min-height: 68px; }
  .mission-level-badge { width: 64px; height: 64px; flex-basis: 64px; }
  .mission-briefing { grid-template-columns: 1fr; }
  .mission-briefing__watch, .mission-briefing__watch img { min-height: 210px; }
  .mission-prompt { grid-template-columns: 1fr; text-align: center; }
  .mission-prompt__visual { order: 2; }
  .mission-prompt__visual img { width: min(58vw, 180px); }
}
