/* =========================================================
   Starlit Lab HP / 共通CSS
   ---------------------------------------------------------
   配色や余白は、この :root の変数を書き換えるだけで変更できます。
   GitHub Pages では index.html / about.html / link.html / tool.html を
   そのままアップロードして使用できます。
========================================================= */
:root {
  /* ===== サイト全体の色 ===== */
  --color-bg: #fffdf8;              /* 全体背景：白寄りのクリーム */
  --color-paper: #ffffff;           /* カード背景 */
  --color-mint: #bdd8ca;            /* くすみミント：見出し・装飾 */
  --color-mint-light: #e9f3ee;      /* 薄いミント：背景装飾 */
  --color-chocolate: #6b5549;       /* チョコレート：本文・濃い文字 */
  --color-cocoa: #9b8274;           /* ココア：サブ文字 */
  --color-milk: #f8eee6;            /* ミルクティー：淡い面 */
  --color-lavender: #c7bfd8;        /* くすみラベンダー：アクセント */
  --color-yellow: #efe49b;          /* 淡い黄色：小さなアクセント */
  --color-line: #ded0c8;            /* 枠線 */
  --color-shadow: rgba(75, 54, 42, 0.14); /* 影 */

  /* ===== フォント設定 ===== */
  --font-main: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Montserrat", "Noto Sans JP", sans-serif;

  /* ===== レイアウト設定 ===== */
  --header-height: 78px;            /* 固定ヘッダーの高さ */
  --content-width: 1100px;          /* 通常ページの最大幅 */
  --radius-large: 32px;             /* 大きい角丸 */
  --radius-medium: 22px;            /* カード角丸 */
  --radius-small: 14px;             /* ボタン角丸 */

  /* ===== TOPページ背景の見え方 ===== */
  --hero-overlay: linear-gradient(
    90deg,
    rgba(255, 253, 248, 0.72) 0%,
    rgba(255, 253, 248, 0.36) 42%,
    rgba(255, 253, 248, 0.10) 100%
  );                                /* TOP画像の上に重ねる白い薄膜 */
}

/* =========================================================
   リセット・基本
========================================================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(circle at 12% 18%, rgba(189, 216, 202, 0.26), transparent 26%),
    radial-gradient(circle at 88% 8%, rgba(199, 191, 216, 0.24), transparent 24%),
    var(--color-bg);
  color: var(--color-chocolate);
  font-family: var(--font-main);
  line-height: 1.9;
  letter-spacing: 0.04em;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* =========================================================
   共通ヘッダー
   site.js で全ページに一括表示します。
   メニュー項目を変える場合は site.js の NAV_ITEMS を編集してください。
========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: var(--header-height);
  padding: 12px clamp(16px, 4vw, 44px);
  background: rgba(255, 253, 248, 0.86);
  border-bottom: 1px solid rgba(222, 208, 200, 0.72);
  box-shadow: 0 10px 28px rgba(75, 54, 42, 0.08);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  width: min(100%, 1280px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.site-logo img {
  width: 160px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgba(75, 54, 42, 0.12));
}

.site-logo__text {
  display: none;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--color-cocoa);
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.global-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 9px 16px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--color-chocolate);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.global-nav a:hover,
.global-nav a.is-active {
  background: var(--color-mint-light);
  border-color: var(--color-mint);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-paper);
  color: var(--color-chocolate);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 999px;
}

/* =========================================================
   TOPページ
   top.png を全画面背景として使用しています。
========================================================= */
.top-page {
  overflow-x: hidden;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-height) + 36px) clamp(18px, 5vw, 72px) 42px;
  display: grid;
  align-items: end;
  background-image: var(--hero-overlay), url("./top.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(57, 75, 105, 0.12), transparent 36%, rgba(69, 45, 36, 0.10)),
    radial-gradient(circle at 74% 28%, rgba(255, 255, 255, 0.25), transparent 20%);
  pointer-events: none;
}

.hero__content {
  width: min(680px, 100%);
  margin-left: clamp(0px, 2vw, 42px);
  margin-bottom: clamp(18px, 6vh, 68px);
  display: grid;
  gap: 22px;
}



.hero__logo-card img {
  width: 100%;
  height: auto;
  margin-left: clamp(0px, 0px);
}

.hero__copy {
  width: min(620px, 100%);
  padding: 20px 22px;
  border-left: 6px solid var(--color-mint);
  border-radius: 0 var(--radius-medium) var(--radius-medium) 0;
  background: rgba(255, 253, 248, 0.76);
  box-shadow: 0 16px 32px rgba(75, 54, 42, 0.10);
  backdrop-filter: blur(14px);
}

.hero__copy p {
  margin: 0;
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 700;
  color: var(--color-chocolate);
}

.news-box {
  width: min(520px, calc(100vw - 36px));
  padding: 20px 22px 22px;
  border: 1px solid rgba(222, 208, 200, 0.90);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 40px rgba(75, 54, 42, 0.16);
  backdrop-filter: blur(16px);
}

.news-box__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--color-line);
}

.news-box__heading h2 {
  margin: 0;
  font-family: var(--font-en);
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.18em;
}

.news-box__heading span {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--color-mint-light);
  color: var(--color-cocoa);
  font-size: 12px;
  font-weight: 700;
}

.news-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: 14px;
}

.news-list time {
  font-family: var(--font-en);
  font-weight: 800;
  color: var(--color-cocoa);
  letter-spacing: 0.08em;
}

/* =========================================================
   通常ページ共通
========================================================= */
.page-shell {
  width: min(var(--content-width), calc(100% - 36px));
  margin: 0 auto;
  padding: calc(var(--header-height) + 72px) 0 90px;
}

.page-hero {
  position: relative;
  margin-bottom: 38px;
  padding: 34px clamp(22px, 5vw, 48px);
  border: 1px solid rgba(222, 208, 200, 0.78);
  border-radius: var(--radius-large);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(233, 243, 238, 0.92), rgba(248, 238, 230, 0.82)),
    var(--color-paper);
  box-shadow: 0 22px 44px rgba(75, 54, 42, 0.10);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -88px;
  width: 220px;
  height: 220px;
  border: 28px solid rgba(199, 191, 216, 0.30);
  border-radius: 50%;
}

.page-hero__label {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--color-paper);
  color: var(--color-cocoa);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.2;
  letter-spacing: 0.10em;
}

.page-hero p {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  margin: 16px 0 0;
  color: var(--color-cocoa);
}

.section-card {
  margin-top: 26px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(222, 208, 200, 0.86);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 36px rgba(75, 54, 42, 0.08);
}

.section-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.4;
}

.section-card h2::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-mint), var(--color-yellow));
  box-shadow: 8px 0 0 var(--color-lavender);
}

.text-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.2em;
}

.text-list li::marker {
  color: var(--color-cocoa);
}

.skill-grid,
.link-grid,
.tool-grid {
  display: grid;
  gap: 16px;
}

.skill-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-card,
.link-card,
.tool-card {
  position: relative;
  display: block;
  min-height: 100%;
  padding: 20px;
  border: 1px solid rgba(222, 208, 200, 0.86);
  border-radius: var(--radius-medium);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,253,248,0.92));
  box-shadow: 0 12px 22px rgba(75, 54, 42, 0.06);
}

.link-card,
.tool-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.link-card:hover,
.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-mint);
  box-shadow: 0 20px 32px rgba(75, 54, 42, 0.12);
}

.card-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--color-mint-light);
  color: var(--color-cocoa);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.mini-card h3,
.link-card h3,
.tool-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.45;
}

.mini-card p,
.link-card p,
.tool-card p {
  margin: 0;
  color: var(--color-cocoa);
  font-size: 14px;
}

.url-text {
  display: block;
  margin-top: 12px;
  overflow-wrap: anywhere;
  color: var(--color-chocolate);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.category-heading {
  margin: 34px 0 14px;
  padding: 7px 14px;
  border-left: 6px solid var(--color-mint);
  border-radius: 0 999px 999px 0;
  background: var(--color-milk);
  font-size: 18px;
}

.work-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius-medium);
}

.work-table th,
.work-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
}

.work-table th {
  width: 26%;
  background: var(--color-mint-light);
  color: var(--color-chocolate);
}

.work-table tr:last-child th,
.work-table tr:last-child td {
  border-bottom: 0;
}

.note-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-medium);
  background: var(--color-milk);
  color: var(--color-cocoa);
  font-size: 14px;
}


/* =========================================================
   CONTENTSページ・作品詳細ページ
   ---------------------------------------------------------
   サムネイルは16:9固定です。
   画像サイズが違っても object-fit: cover で自動トリミング表示します。
========================================================= */
.contents-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.contents-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(222, 208, 200, 0.86);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 18px 32px rgba(75, 54, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.contents-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-mint);
  box-shadow: 0 26px 44px rgba(75, 54, 42, 0.14);
}

.contents-card__thumb {
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: var(--color-mint-light);
}

.contents-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

.contents-card__body {
  padding: 20px 20px 22px;
}

.contents-card__body h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.45;
}

.contents-card__body p {
  margin: 0;
  color: var(--color-cocoa);
  font-size: 14px;
}

.contents-card__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--color-chocolate);
  color: #fff;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.character-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.character-visual-card {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  overflow: hidden;
  border: 1px solid rgba(222, 208, 200, 0.86);
  border-radius: var(--radius-large);
  background:
    linear-gradient(135deg, rgba(233, 243, 238, 0.92), rgba(248, 238, 230, 0.82));
  box-shadow: 0 22px 44px rgba(75, 54, 42, 0.12);
}

.character-visual-card img {
  width: 100%;
  height: auto;
}

.character-detail .section-card {
  margin-top: 0;
  margin-bottom: 26px;
}

.character-summary h2 {
  margin-top: 8px;
}

.profile-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.profile-list div {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(222, 208, 200, 0.72);
  border-radius: var(--radius-small);
  background: rgba(255, 253, 248, 0.72);
}

.profile-list dt {
  color: var(--color-cocoa);
  font-weight: 900;
}

.profile-list dd {
  margin: 0;
}

.voice-sample-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.voice-sample-grid blockquote {
  margin: 0;
  padding: 16px 18px;
  border-left: 6px solid var(--color-mint);
  border-radius: 0 var(--radius-medium) var(--radius-medium) 0;
  background: var(--color-milk);
  color: var(--color-chocolate);
  font-weight: 700;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.tag-list span {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--color-mint-light);
  color: var(--color-chocolate);
  font-size: 13px;
  font-weight: 900;
}

.back-link-area {
  margin-top: 8px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--color-mint);
  border-radius: 999px;
  background: var(--color-paper);
  color: var(--color-chocolate);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.back-link::before {
  content: "←";
  margin-right: 8px;
}

/* =========================================================
   共通フッター
========================================================= */
.site-footer {
  padding: 34px 18px 42px;
  border-top: 1px solid var(--color-line);
  background: rgba(255, 253, 248, 0.86);
  text-align: center;
  color: var(--color-cocoa);
}

.footer-logo {
  width: 180px;
  margin: 0 auto 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin: 18px 0;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.copyright {
  margin: 0;
  font-size: 12px;
}

/* =========================================================
   スマホ調整
========================================================= */
@media (max-width: 860px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    padding: 10px 16px;
  }

  .site-logo {
    min-width: 0;
  }

  .site-logo img {
    width: 132px;
  }

  .menu-button {
    display: block;
  }

  .global-nav {
    position: fixed;
    inset: var(--header-height) 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--color-line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 40px rgba(75, 54, 42, 0.18);
  }

  .global-nav.is-open {
    display: flex;
  }

  .global-nav a {
    width: 100%;
    min-width: 0;
  }

  .hero {
    min-height: 100svh;
    align-items: end;
    background-position: 58% center;
  }

  .hero__content {
    margin-left: 0;
  }

  .news-list li {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .skill-grid,
  .link-grid,
  .tool-grid,
  .contents-grid {
    grid-template-columns: 1fr;
  }

  .character-layout {
    grid-template-columns: 1fr;
  }

  .character-visual-card {
    position: static;
    width: min(420px, 100%);
    margin: 0 auto;
  }

  .profile-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .work-table,
  .work-table tbody,
  .work-table tr,
  .work-table th,
  .work-table td {
    display: block;
    width: 100%;
  }

  .work-table th {
    border-bottom: 0;
  }
}


/* =========================================================
   GALLERY：画像ポップアップ・保存抑制
   ---------------------------------------------------------
   画像保存抑制：右クリック・ドラッグ・印刷などを抑制します。
   ※ブラウザ仕様上、スクリーンショット自体の完全禁止はできません。
========================================================= */

.contents-card {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.image-protect img,
.gallery-modal img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.gallery-modal.is-open {
  display: flex;
}

.gallery-modal__bg {
  position: absolute;
  inset: 0;
  background: rgba(52, 43, 38, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gallery-modal__panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 94vw);
  max-height: 92vh;
  padding: clamp(16px, 2vw, 26px);
  border: 1px solid rgba(222, 208, 200, 0.86);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 80px rgba(70, 55, 48, 0.26);
}

.gallery-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--color-chocolate);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.gallery-modal__title {
  margin: 0 52px 14px 0;
  color: var(--color-chocolate);
  font-weight: 900;
}

.gallery-modal__image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
}

.gallery-modal__image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.gallery-modal__image-wrap img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  pointer-events: none;
}

body.is-modal-open {
  overflow: hidden;
}

@media print {
  body.image-protect {
    display: none !important;
  }
}

@media (max-width: 860px) {
  .gallery-modal {
    padding: 14px;
  }

  .gallery-modal__panel {
    width: min(100%, 94vw);
    padding: 14px;
    border-radius: 20px;
  }

  .gallery-modal__image-wrap {
    border-radius: 14px;
  }

  .gallery-modal__image-wrap img {
    max-height: 72vh;
  }
}
