:root {
  --navy: #12203c;
  --navy-deep: #0d1833;
  --ink: #243352;
  --muted: #5c6b86;
  --cat: #8b97ab;
  --line: #2f78e4;
  --blue: #1573e6;
  --blue-bright: #0072ff;
  --sky: #e7f3ff;
  --green: #2faf3a;
  --orange: #f39b00;
  --card-line: #e4eef7;
  --sheet: #ffffff;
  --page: #d7e4f2;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  background: var(--page);
  color: var(--navy);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

button { font-family: inherit; }

.sheet {
  position: relative;
  width: min(100%, 430px);
  margin: 0 auto;
  background: var(--sheet);
  min-height: 100vh;
  overflow: hidden;
}

/* Header */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px 2px;
  background: #fff;
}

.brand-mark { width: auto; height: 72px; flex: none; }

.brand-en {
  margin: 0;
  font-family: Montserrat, "Segoe UI", "Yu Gothic", sans-serif;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--navy-deep);
}

.brand-ja {
  margin: 3px 0 0;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--navy-deep);
}

/* Hero */
.hero {
  position: relative;
  min-height: 0;
  padding: 0;
  aspect-ratio: 711 / 497;
  background: url("../img/hero-sp.png") center top / 100% auto no-repeat;
}

.hero h1 {
  margin: 0 0 8px;
  max-width: 100%;
  font-size: clamp(18px, 5.55vw, 25px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.3;
  color: #10182f;
  white-space: nowrap;
}

.hero h1 .ai {
  color: var(--blue-bright);
  font-style: normal;
}

.hero p {
  margin: 0;
  max-width: 21em;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.7;
  color: #16243f;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* Section titles */
.sec-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 4px 14px 12px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #15264a;
}

.sec-title::before,
.sec-title::after {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: var(--line);
  flex: none;
}

.sec-title .em {
  color: #1a73e8;
  font-size: 1.18em;
}

/* Three activities */
.acts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 7px;
  padding: 0 10px 8px;
}

.act {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 16px;
  border: 1.5px solid transparent;
  overflow: hidden;
}

.act-solve { background: #e7f4ff; border-color: #d3e9fb; }
.act-learn { background: #eefae7; border-color: #d5eec8; }
.act-create { background: #fff6e8; border-color: #f6e3c4; }

.act-main {
  display: block;
  padding: 8px 6px 2px;
}

.glyph {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
}

.act-solve .glyph,
.act-solve .num { background: #1b7de8; }
.act-learn .glyph,
.act-learn .num { background: #35a83a; }
.act-create .glyph,
.act-create .num { background: #f39c00; }

.glyph { margin-bottom: 4px; }

.glyph svg { width: 13px; height: 13px; display: block; }

.act h3 {
  margin: 0 0 3px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.05em;
  color: #1a2744;
}

.num {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  margin-right: 2px;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  vertical-align: -2px;
}

.act p {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
  color: #31415f;
}

.act img {
  width: calc(100% - 12px);
  height: 62px;
  margin: auto 6px 6px;
  border-radius: 10px;
  object-fit: cover;
}

.act-solve img { object-position: center 62%; }
.act-learn img { object-position: center 28%; }
.act-create img { object-position: center 48%; }

/* Projects */
.proj-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 10px 22px;
}

.proj {
  display: grid;
  grid-template-columns: 54px minmax(86px, 0.92fr) minmax(0, 1.15fr) auto;
  gap: 6px 7px;
  align-items: center;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 16px;
  box-shadow: 0 3px 10px rgba(28, 64, 112, 0.05);
}

#event-title + .proj-list {
  gap: 10px;
  padding: 0 14px 20px;
}

.event-row {
  padding: 12px 16px 13px;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 16px;
  box-shadow: 0 3px 10px rgba(28, 64, 112, 0.05);
  text-align: center;
}

a.event-row {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.event-row:focus-visible {
  outline: 2px solid #8ec0ff;
  outline-offset: 2px;
}

.event-row .proj-cat {
  margin: 0 0 4px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.event-row .proj-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.app-icon {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  overflow: hidden;
  position: relative;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proj-cat {
  margin: 0 0 1px;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--cat);
}

.proj-name {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: #15284d;
}

.proj-desc {
  margin: 0;
  padding-left: 7px;
  border-left: 1px solid #d5deea;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.45;
  color: #3d4e6c;
  min-width: 0;
}

.see {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  margin: 0;
  padding: 6px 9px 6px 11px;
  border: 1.5px solid #6aaff6;
  border-radius: 999px;
  background: #fff;
  color: #2b7de0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  cursor: default;
}

.see span { margin-left: 1px; font-weight: 500; }

.see:focus-visible {
  outline: 2px solid #8ec0ff;
  outline-offset: 2px;
}

.manga-link {
  grid-column: 1 / -1;
  justify-self: end;
  margin: 1px 2px 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: #2b7de0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.manga-link:focus-visible {
  outline: 2px solid #8ec0ff;
  outline-offset: 2px;
}

/* App icon: 画像工房 */
.app-gazou {
  background: radial-gradient(circle at 28% 18%, #79b4ff, #2c4de6 48%, #6a38e8);
}

.gz-cam {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #ff5d78 0 2.5px, #1d2d58 3px 4.5px, transparent 5px);
  box-shadow: 0 0 0 1.5px #fff;
}

.gz-monitor {
  position: absolute;
  left: 16px;
  top: 9px;
  width: 30px;
  height: 24px;
  padding: 2px 2px 5px;
  border-radius: 3px;
  background: #10182e;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.gz-monitor::after {
  content: "";
  position: absolute;
  left: 10px;
  bottom: 1px;
  width: 10px;
  height: 3px;
  border-radius: 1px;
  background: #2a3558;
}

.gz-sky {
  display: block;
  height: 100%;
  border-radius: 1px;
  background:
    radial-gradient(circle at 72% 38%, #ffe7a0 0 3px, transparent 4px),
    linear-gradient(#8fd0f5, #f6b25e 58%, #1e5f9e);
}

.gz-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  text-align: center;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

/* App icon: デイスタ */
.app-daysta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(#ffffff, #f4f7fb);
  border: 1px solid #e5ebf3;
}

.daysta-art { width: 40px; height: 22px; }

.ds1 {
  margin-top: 1px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #243056;
}

.ds2 {
  margin-top: 1px;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  color: #9aa4b6;
}

/* App icon: イメチェン工房 */
.app-ime img { object-position: 72% center; }

.app-ime span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2px 1px 1px;
  background: rgba(255, 255, 255, 0.94);
  color: #2a2a2a;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-align: center;
  line-height: 1.2;
}

/* App icon: 送れるんです */
.app-okuru {
  background: linear-gradient(180deg, #b6ea45, #67b814);
}

.ok-bubble {
  position: absolute;
  top: 4px;
  left: 3px;
  right: 3px;
  padding: 2px 1px 3px;
  border-radius: 7px;
  background: #fff;
  color: #3c9e14;
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-align: center;
  line-height: 1.15;
}

.ok-bubble::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: -4px;
  border-width: 4px 4px 0;
  border-style: solid;
  border-color: #fff transparent transparent;
}

.ok-card {
  position: absolute;
  left: 7px;
  bottom: 6px;
  width: 24px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 3px;
  background: linear-gradient(#9fd8ff, #d8ef9a 50%, #5aaa32);
  transform: rotate(-10deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.ok-card::before {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffe27a;
}

.ok-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: #4e9e2c;
  clip-path: polygon(0 100%, 0 55%, 28% 20%, 52% 70%, 74% 28%, 100% 58%, 100% 100%);
}

.ok-hand {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 30px;
  height: 30px;
}

/* App icon: インスタントシェア */
.app-ist {
  background: linear-gradient(165deg, #1a8f78 0%, #0c4a3e 72%, #08382f);
}

.ist-phone {
  position: absolute;
  left: 18px;
  top: 4px;
  width: 18px;
  height: 26px;
  border-radius: 4px;
  background: #071f1a;
  box-shadow: 0 0 0 1.6px #f3fff9, 0 2px 3px rgba(0, 0, 0, 0.28);
  z-index: 2;
}

.ist-phone::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 3px;
  bottom: 5px;
  border-radius: 1px;
  background:
    radial-gradient(circle at 72% 26%, #fff6c8 0 2px, transparent 2.6px),
    linear-gradient(#7ecff5 0 46%, #8fce6a 46% 62%, #3e8f58 62% 100%);
}

.ist-phone::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: 1.5px;
  width: 8px;
  height: 1.5px;
  border-radius: 1px;
  background: #d7efe6;
}

.ist-shot {
  position: absolute;
  width: 14px;
  height: 11px;
  border-radius: 1.5px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.ist-shot::before {
  content: "";
  position: absolute;
  inset: 1.5px;
  border-radius: 0.5px;
  background: linear-gradient(#8fd4f5 0 48%, #67b85a 48% 100%);
}

.ist-shot-l {
  left: 2px;
  top: 13px;
  transform: rotate(-18deg);
  z-index: 1;
}

.ist-shot-r {
  right: 2px;
  top: 8px;
  transform: rotate(16deg);
  z-index: 3;
}

.ist-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  z-index: 4;
  text-align: center;
  color: #fff;
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.site-foot,
.copyright {
  width: 100%;
  margin: 0;
  padding: 0 16px;
  box-sizing: border-box;
  text-align: center;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--muted);
}

.site-foot {
  padding-top: 4px;
}

.copyright {
  margin-top: 8px;
  padding-bottom: 22px;
}

/* Manga viewer */
.manga-page .sheet {
  width: min(100%, 960px);
  overflow: visible;
}

.manga-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--card-line);
}

.manga-back,
.manga-zoom {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #2b7de0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.manga-zoom { font-size: 13px; font-weight: 500; }

.manga-back:focus-visible,
.manga-zoom:focus-visible {
  outline: 2px solid #8ec0ff;
  outline-offset: 2px;
}

.manga-title {
  margin: 14px 14px 8px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #15264a;
}

.manga-frame {
  overflow-x: auto;
  padding: 0 8px 20px;
  -webkit-overflow-scrolling: touch;
}

.manga-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.manga-img.is-native {
  width: auto;
  max-width: none;
}

.manga-miss {
  margin: 24px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  color: #243656;
}

@media (max-width: 360px) {
  .hero h1 { font-size: 17px; }
  .hero p { font-size: 11.5px; }
  .act h3 { font-size: 10px; }
  .act p { font-size: 9px; }
  .proj {
    grid-template-columns: 48px minmax(76px, 0.9fr) minmax(0, 1fr) auto;
    gap: 5px;
  }
  .app-icon { width: 48px; height: 48px; }
  .proj-name { font-size: 13px; }
  .see { padding: 5px 7px 5px 8px; font-size: 11px; }
}

@media (min-width: 520px) {
  body { padding: 18px 0 28px; }
  .sheet { box-shadow: 0 10px 32px rgba(20, 48, 90, 0.14); }

  .hero h1,
  .hero p {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
}

/* Header menu */
.menu {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 40;
}

.reload-btn {
  display: none;
}

.menu-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-deep);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 40;
  min-width: 148px;
  margin: 0;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(18, 32, 60, 0.12);
}

.site-menu.is-open {
  display: block;
}

.site-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--navy-deep);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.site-menu a:hover,
.site-menu a:focus-visible {
  background: var(--sky);
}

@media (max-width: 519px) {
  .menu {
    position: fixed;
    top: max(8px, env(safe-area-inset-top, 0px));
    right: max(8px, env(safe-area-inset-right, 0px));
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .reload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin-top: 2px;
    padding: 0 10px;
    border: 1px solid var(--card-line);
    border-radius: 8px;
    background: #fff;
    color: #2b7de0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
  }

  .menu-btn span {
    width: 24px;
    height: 3px;
  }

  .menu-btn[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-btn[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .site-menu {
    max-width: calc(100vw - 24px);
  }
}

@media (min-width: 520px) {
  .menu {
    position: absolute;
    top: 26px;
    right: calc((100% - 430px) / 2 + 8px);
    z-index: 40;
  }
}

@media (max-width: 519px) {
  .hero {
    min-height: 0;
    padding: 0;
    aspect-ratio: 711 / 497;
    background: url("../img/hero-sp.png") center top / 100% auto no-repeat;
  }

  .hero h1,
  .hero p {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
}

