:root {
  --cream: #f7f0df;
  --paper: #fffdf6;
  --ink: #213a34;
  --ink-soft: #5d6e68;
  --green: #176b58;
  --green-deep: #0e5748;
  --green-pale: #e4f1e9;
  --coral: #e5674d;
  --line: #d9d1bb;
  --shadow: 0 18px 48px rgba(49, 58, 45, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--cream);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 6%, rgba(241, 190, 82, 0.24), transparent 24%),
    radial-gradient(circle at 88% 80%, rgba(53, 145, 112, 0.15), transparent 26%),
    var(--cream);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 4px solid rgba(229, 103, 77, 0.35);
  outline-offset: 4px;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  min-height: 100dvh;
  margin: 0 auto;
  background: rgba(255, 253, 246, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.site-header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: max(10px, env(safe-area-inset-top)) 20px 10px;
  border-bottom: 1px solid rgba(217, 209, 187, 0.72);
  background: rgba(255, 253, 246, 0.96);
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.brand-copy p,
.brand-copy strong {
  margin: 0;
}

.brand-copy p {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-copy strong {
  display: block;
  margin-top: 1px;
  font-size: 15px;
}

/* すぐ使える資料への入口 */
.header-links {
  display: flex;
  align-items: stretch;
  gap: 7px;
  margin-left: auto;
}

.header-link {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 46px;
  padding: 6px 11px;
  border: 1px solid #bcd6c9;
  border-radius: 14px;
  color: var(--green-deep);
  background: var(--green-pale);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(23, 107, 88, 0.09);
}

.header-link > span:first-child {
  font-size: 15px;
}

.header-link-chatgpt {
  border-color: #d8c79e;
  color: #6b5630;
  background: #fff7e7;
  box-shadow: 0 4px 12px rgba(120, 96, 42, 0.1);
}

.handout-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  align-items: start;
  gap: 12px;
  margin-top: 18px;
  padding: 17px 16px;
  border: 1px solid #cdbf9a;
  border-radius: 22px;
  background: linear-gradient(180deg, #fffaf0, #fff6e4);
  box-shadow: 0 12px 30px rgba(120, 96, 42, 0.12);
  text-decoration: none;
}

.handout-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  background: var(--green);
  font-size: 21px;
}

.handout-body strong,
.handout-body small {
  display: block;
}

.handout-body strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.handout-body small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

.handout-arrow {
  color: var(--coral);
  font-size: 19px;
  font-weight: 900;
  text-align: right;
}

main {
  padding: 0 20px 36px;
}

.hero {
  padding: 38px 2px 26px;
}

.eyebrow {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid #bcd6c9;
  border-radius: 999px;
  color: var(--green-deep);
  background: var(--green-pale);
  font-size: 11px;
  font-weight: 900;
}

h1,
h2 {
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.035em;
}

h1 {
  margin: 15px 0 11px;
  font-size: clamp(31px, 9vw, 48px);
  line-height: 1.3;
}

.hero > p {
  max-width: 560px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

.episode-list {
  display: grid;
  gap: 18px;
}

.episode-card {
  overflow: hidden;
  border: 1px solid rgba(205, 196, 172, 0.9);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(46, 63, 50, 0.12);
}

.episode-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--green-pale);
}

.episode-image-link {
  display: grid;
  place-items: center;
  color: inherit;
  text-decoration: none;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.episode-image-link:hover {
  filter: saturate(1.06) brightness(1.02);
}

.episode-image-link:active {
  transform: scale(0.99);
}

.episode-image-link:focus-visible {
  outline: 4px solid rgba(229, 103, 77, 0.42);
  outline-offset: -6px;
}

.episode-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-image > span {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(23, 107, 88, 0.94);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(23, 71, 57, 0.2);
}

.episode-card-part2 {
  border-color: #bad2dc;
}

.tool-visual {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 79% 20%, rgba(117, 207, 230, 0.42), transparent 23%),
    radial-gradient(circle at 18% 84%, rgba(246, 186, 79, 0.38), transparent 28%),
    linear-gradient(145deg, #eff9f6, #d9edf3);
}

.tool-stack {
  position: relative;
  width: min(74%, 340px);
  height: 155px;
}

.tool-window {
  position: absolute;
  display: grid;
  grid-template-columns: 1fr repeat(3, 12px);
  align-items: center;
  gap: 7px;
  width: 71%;
  min-height: 94px;
  padding: 19px 16px;
  border: 4px solid rgba(255, 255, 255, 0.94);
  border-radius: 20px;
  box-shadow: 0 16px 30px rgba(36, 78, 84, 0.18);
  transform: rotate(-5deg);
}

.tool-window b {
  font-size: 18px;
  line-height: 1.15;
}

.tool-window i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.tool-window-gemini {
  top: 4px;
  left: 0;
  color: #154c75;
  background: #f7fdff;
}

.tool-window-gemini i:nth-of-type(1) { background: #5ca7e8; }
.tool-window-gemini i:nth-of-type(2) { background: #79caa9; }
.tool-window-gemini i:nth-of-type(3) { background: #f2be59; }

.tool-window-canva {
  right: 0;
  bottom: 1px;
  color: #0f6374;
  background: #edffff;
  transform: rotate(5deg);
}

.tool-window-canva i:nth-of-type(1) { background: #13b5cd; }
.tool-window-canva i:nth-of-type(2) { background: #9d75de; }
.tool-window-canva i:nth-of-type(3) { background: #ec7c65; }

.tool-arrow {
  position: absolute;
  top: auto;
  left: auto;
  right: 21px;
  bottom: 17px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #365761;
  background: rgba(255, 255, 255, 0.84);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.episode-card-part2 .episode-image > span {
  background: rgba(45, 124, 163, 0.96);
}

.episode-body {
  padding: 21px 19px 20px;
}

.episode-topic {
  margin: 0;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
}

.episode-body h2 {
  margin: 5px 0 9px;
  font-size: clamp(24px, 7vw, 34px);
  line-height: 1.35;
}

.episode-description {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.episode-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.button {
  display: flex;
  min-height: 55px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.button-youtube {
  color: #fff;
  background: #c83a37;
  box-shadow: inset 0 -4px 0 rgba(105, 24, 22, 0.18);
}

.button-prompt {
  color: #fff;
  background: var(--green);
  box-shadow: inset 0 -4px 0 rgba(8, 65, 52, 0.24);
}

.next-note {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: start;
  gap: 11px;
  margin-top: 18px;
  padding: 16px;
  border: 1px dashed #b9cfc4;
  border-radius: 20px;
  background: rgba(228, 241, 233, 0.74);
}

.next-note > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--green);
  background: #fff;
  font-size: 22px;
  font-weight: 900;
}

.next-note strong {
  font-size: 13px;
}

footer {
  padding: 20px 22px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(217, 209, 187, 0.72);
  color: var(--ink-soft);
  background: rgba(255, 253, 246, 0.94);
  font-size: 10px;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
}

footer p {
  margin: 0;
}

/* 事業名は所属の表示。押せると分かる程度に控えめな下線を引く */
.footer-org {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(93, 110, 104, 0.45);
  text-underline-offset: 3px;
}

.footer-youtube {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 900;
}

@media (min-width: 761px) {
  body {
    padding: 24px 0;
  }

  .site-shell {
    min-height: calc(100dvh - 48px);
    overflow: hidden;
    border-radius: 30px;
  }

  main {
    padding-right: 34px;
    padding-left: 34px;
  }

  .episode-card {
    display: grid;
    grid-template-columns: minmax(250px, 0.9fr) minmax(320px, 1.1fr);
  }

  .episode-image {
    aspect-ratio: auto;
    min-height: 310px;
  }

  .episode-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
  }
}

@media (max-width: 390px) {
  .site-header {
    gap: 8px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
  }

  .brand-copy p {
    font-size: 9px;
    white-space: nowrap;
  }

  .brand-copy strong {
    font-size: 13px;
    white-space: nowrap;
  }

  .header-links {
    gap: 5px;
  }

  .header-link {
    gap: 3px;
    min-height: 44px;
    padding: 5px 6px;
    border-radius: 12px;
    font-size: 9px;
  }

  .header-link > span:first-child {
    font-size: 13px;
  }

  main {
    padding-right: 15px;
    padding-left: 15px;
  }

  .hero {
    padding-top: 30px;
  }

  .episode-actions {
    grid-template-columns: 1fr;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
