/* NABE`S WORKS — site styles
   Plain CSS, no framework. Light default, dark via prefers-color-scheme. */

:root {
  --navy: #101426;
  --navy-2: #171c33;

  --bg: #f7f7f9;
  --bg-tint: #eeeff4;
  --surface: #ffffff;
  --text: #1a1d2b;
  --text-2: #4d5163;
  --text-3: #7a7e91;
  --line: #dcdee6;

  --violet: #9a78ff;
  --violet-ink: #5a3fd6;
  --mint: #6f8cff;
  --mint-ink: #3352c4;
  --amber: #f0b429;
  --amber-ink: #8a5a00;

  --font-sans: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-latin: "Inter", "Noto Sans JP", system-ui, sans-serif;

  --gutter: 16px;
  --max: 1040px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 20, 38, .04), 0 8px 24px -12px rgba(16, 20, 38, .12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1020;
    --bg-tint: #12162a;
    --surface: #181d34;
    --text: #eceef6;
    --text-2: #b8bccd;
    --text-3: #8a8fa6;
    --line: #2a3050;
    --violet-ink: #b9a3ff;
    --mint-ink: #a9b9ff;
    --amber-ink: #f5c65a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt" 1;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}
ul[role="list"] { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.35; letter-spacing: .01em; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px;
  background: var(--surface); color: var(--text);
  padding: .5rem .9rem; border-radius: 8px; z-index: 100;
}
.skip-link:focus { top: 12px; }

.br-pc { display: none; }
@media (min-width: 720px) { .br-pc { display: inline; } }

.muted { color: var(--text-3); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: #eef0f8;
  overflow: hidden;
  isolation: isolate;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
}
.hero::before {
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  right: -20vw; top: -30vw;
  background: rgba(154, 120, 255, .28);
}
.hero::after {
  width: 50vw; height: 50vw; max-width: 560px; max-height: 560px;
  left: -20vw; bottom: -30vw;
  background: rgba(111, 140, 255, .16);
}

.hero__inner {
  padding-top: clamp(3.5rem, 10vw, 7rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.hero__logo {
  margin: 0 0 clamp(2rem, 6vw, 3.5rem);
  width: min(100%, 420px);
}
.hero__title {
  font-size: clamp(1.75rem, 5.2vw, 3rem);
  letter-spacing: .02em;
  line-height: 1.3;
  color: #fff;
}
.hero__lead {
  margin-top: 1.25rem;
  max-width: 40em;
  color: #c9cddc;
  font-size: clamp(.98rem, 1.6vw, 1.08rem);
}
.hero__meta {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .86rem;
  color: #a9aec4;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(111, 140, 255, .18);
  flex: none;
}

.hero__nav {
  display: flex;
  gap: .25rem 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 1.1rem;
  font-family: var(--font-latin);
  font-size: .84rem;
}
.hero__nav a {
  color: #b9bed3;
  text-decoration: none;
  padding-block: .3rem;
  transition: color .15s;
}
.hero__nav a:hover { color: #fff; }

/* ---------- sections ---------- */
.section { padding-block: clamp(3.25rem, 8vw, 5.5rem); }
.section--tint { background: var(--bg-tint); }

.section__head { margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.eyebrow {
  font-family: var(--font-latin);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--violet-ink);
  font-weight: 600;
  margin-bottom: .6rem;
}
.section__title {
  font-size: clamp(1.45rem, 3.4vw, 2rem);
}
.section__lead {
  margin-top: .9rem;
  max-width: 38em;
  color: var(--text-2);
}

.text-link {
  font-size: .92rem;
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: .1rem;
  white-space: nowrap;
}
.text-link:hover { color: var(--text); border-color: var(--text-3); }
.text-link span { margin-left: .3em; }


.tag {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: .2rem .65rem;
  border-radius: 999px;
  line-height: 1.6;
}
.tag::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.tag--live { color: var(--mint-ink); background: rgba(111, 140, 255, .14); }
.tag--dev  { color: var(--violet-ink); background: rgba(154, 120, 255, .14); }
.tag--prep { color: var(--amber-ink); background: rgba(240, 180, 41, .16); }

/* ---------- goal ---------- */
.goal {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 880px) {
  .goal {
    grid-template-columns: 1.1fr 1fr;
    grid-template-areas:
      "statement body"
      "now       now";
    column-gap: 3.5rem;
    align-items: start;
  }
  .goal__statement { grid-area: statement; }
  .goal__body { grid-area: body; }
  .goal__now { grid-area: now; }
}
.goal__statement {
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 700;
  line-height: 1.55;
  padding-left: 1rem;
  border-left: 3px solid var(--violet);
}
.goal__body { color: var(--text-2); display: grid; gap: 1rem; }

/* ---------- revenue ---------- */
.revenue {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.revenue__table {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
}
.revenue__table th,
.revenue__table td {
  text-align: left;
  vertical-align: top;
  padding: .95rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.revenue__table thead th {
  font-family: var(--font-latin);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
  background: var(--bg-tint);
}
.revenue__table tbody th {
  white-space: nowrap;
  font-weight: 600;
  width: 8.5em;
}
.revenue__table tbody tr:last-child th,
.revenue__table tbody tr:last-child td { border-bottom: 0; }
.revenue__amount {
  text-align: right !important;
  white-space: nowrap;
  font-family: var(--font-latin);
  font-variant-numeric: tabular-nums;
  width: 7em;
}
.revenue__note {
  padding: .8rem 1.1rem;
  font-size: .8rem;
  color: var(--text-3);
  border-top: 1px solid var(--line);
  background: var(--bg-tint);
}
@media (max-width: 559px) {
  /* phone: stack the row so long text doesn't squeeze */
  .revenue__table thead { display: none; }
  .revenue__table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    border-bottom: 1px solid var(--line);
  }
  .revenue__table tbody tr:last-child { border-bottom: 0; }
  .revenue__table tbody th,
  .revenue__table tbody td { border-bottom: 0; padding-block: .6rem; }
  .revenue__table tbody th { grid-column: 1; padding-bottom: 0; width: auto; }
  .revenue__table tbody td:not(.revenue__amount) { grid-column: 1 / -1; padding-top: .1rem; }
  .revenue__amount { grid-column: 2; grid-row: 1; width: auto; }
}

/* ---------- notes ---------- */
.notes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 560px) { .notes { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 900px) { .notes { grid-template-columns: repeat(3, 1fr); } }

.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.note:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(16, 20, 38, .05), 0 16px 32px -14px rgba(16, 20, 38, .2);
}
.note__link { display: block; text-decoration: none; color: inherit; height: 100%; }
.note__thumb {
  aspect-ratio: 1280 / 670;
  background: var(--navy-2);
  overflow: hidden;
}
.note__thumb img { width: 100%; height: 100%; object-fit: cover; }
.note__thumb--empty {
  display: grid;
  place-items: center;
}
.note__thumb--empty img { width: 34%; height: auto; opacity: .85; }
.note__body { padding: .95rem 1.1rem 1.1rem; }
.note__title {
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note__date {
  display: block;
  margin-top: .55rem;
  font-family: var(--font-latin);
  font-size: .78rem;
  color: var(--text-3);
  letter-spacing: .04em;
}
.notes__placeholder,
.notes__error {
  grid-column: 1 / -1;
  color: var(--text-3);
  font-size: .92rem;
  padding: 1.5rem 0;
}

/* ---------- footer ---------- */
.footer {
  background: var(--navy);
  color: #a9aec4;
  padding-block: 3rem 2.5rem;
  font-size: .86rem;
}
.footer__inner {
  display: grid;
  gap: .5rem;
  justify-items: start;
}
.footer__mark { width: 44px; margin-bottom: .6rem; opacity: .9; }
.footer__copy { color: #eef0f8; font-family: var(--font-latin); }
.footer__contact { color: #8a8fa6; }
.footer__links a { color: #a9aec4; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.2); }
.footer__links a:hover { color: #fff; }

/* ---------- privacy page ---------- */
.page-header {
  background: var(--navy);
  color: #eef0f8;
}
.page-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
}
.page-header__brand img { width: 150px; }
.page-header__back { font-size: .86rem; color: #b9bed3; text-decoration: none; }
.page-header__back:hover { color: #fff; }

.prose { max-width: 720px; }
.prose h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin-bottom: .5rem; }
.prose .date { color: var(--text-3); font-size: .86rem; margin-bottom: 2rem; }
.prose h2 { font-size: 1.1rem; margin-top: 2.25rem; margin-bottom: .6rem; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { margin: .5rem 0 0; padding-left: 1.3em; }
.prose .lead { color: var(--text); }

/* ---------- news ---------- */
.news {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  max-width: 800px;
}
.news__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: .15rem .5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 560px) {
  .news__item { grid-template-columns: 7.5em 1fr; gap: 1.25rem; align-items: baseline; }
}
.news__date {
  font-family: var(--font-latin);
  font-size: .82rem;
  color: var(--text-3);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.news__text { color: var(--text); font-size: .98rem; }
.news__text a { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: .05rem; }
.news__text a:hover { border-color: var(--violet); color: var(--violet-ink); }
.news__text a span { margin-left: .25em; color: var(--text-3); font-size: .85em; }
.news__empty { padding: 1.25rem 0; color: var(--text-3); font-size: .92rem; }

/* ---------- instagram ---------- */
.ig__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
@media (min-width: 720px) { .ig__grid { grid-template-columns: repeat(6, 1fr); gap: 10px; } }
.ig__post {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--navy-2);
  position: relative;
}
.ig__post img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.ig__post:hover img { transform: scale(1.03); }
.ig__empty {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: .35rem;
  padding: clamp(2rem, 6vw, 3.5rem) 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.ig__empty img { width: 56px; height: auto; opacity: .55; margin-bottom: .75rem; filter: invert(1) brightness(.4); }
@media (prefers-color-scheme: dark) { .ig__empty img { filter: none; opacity: .5; } }
.ig__empty-title {
  font-family: var(--font-latin);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--violet-ink);
  font-weight: 600;
}
.ig__empty-text { color: var(--text-2); font-size: .94rem; max-width: 28em; }
.text-link[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ---------- compact project list (目指す姿 内) ---------- */
.goal__now { grid-column: 1 / -1; margin-top: .5rem; }
.goal__now-title {
  font-size: .82rem;
  letter-spacing: .12em;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: .75rem;
  font-family: var(--font-latin);
}
.projects {
  display: grid;
  gap: .6rem;
}
@media (min-width: 720px) { .projects { grid-template-columns: repeat(2, 1fr); gap: .75rem; } }
.projects__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .85rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .85rem 1rem;
}
.projects__item .tag { margin-top: .2rem; white-space: nowrap; }
.projects__name { font-weight: 600; text-decoration: none; font-size: .98rem; }
a.projects__name { border-bottom: 1px solid var(--line); padding-bottom: .05rem; }
a.projects__name:hover { border-color: var(--violet); color: var(--violet-ink); }
.projects__name span { margin-left: .25em; color: var(--text-3); font-size: .85em; }
.projects__desc { color: var(--text-2); font-size: .88rem; line-height: 1.7; margin-top: .2rem; }

/* footer nav */
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.5rem;
  margin: 0 0 .75rem;
  font-family: var(--font-latin);
}
.footer__nav a { color: #c9cddc; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: .05rem; }
.footer__nav a:hover { color: #fff; }
.footer__nav a span { margin-left: .25em; font-size: .85em; color: #8a8fa6; }

/* ---------- 秘書の備忘録 ---------- */
.seclog { display: flex; flex-direction: column; gap: 1.25rem; }
.seclog__day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem 1.25rem; box-shadow: var(--shadow); }
.seclog__date { font-family: var(--font-latin); font-size: .95rem; font-weight: 600; color: var(--text-2); margin: 0 0 .75rem; letter-spacing: .04em; }
.seclog__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem 1.5rem; }
.seclog__col { min-width: 0; }
.seclog__label { font-size: .82rem; font-weight: 700; letter-spacing: .06em; margin: 0 0 .4rem; color: var(--violet-ink); }
.seclog__col--done .seclog__label { color: var(--amber-ink); }
.seclog__list { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .3rem; color: var(--text); font-size: .95rem; line-height: 1.65; }
.seclog__empty { color: var(--text-3); margin: 0; }
