@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Montserrat:wght@500;600;700&display=swap");

/* XOOMS サイトのデザイン(xooms.co.jp)
 * mdweb の標準テーマ(assets/standard.css)は使わず、このファイルだけで見た目を決める
 * (_site.yml の site.standard_css: false)。HTML の構造・クラス名は標準テーマのテンプレートのもの。
 * 基調色は _site.yml の site.color(テーマが :root の --brand に入れる)。ほかの色はそこから作る。
 */

:root {
  --brand: #22ac38;
  --brand-dark: color-mix(in srgb, var(--brand) 75%, #000);
  --ink: #1b1f1c;
  /* mdweb.css(本文・記法ブロック)が使う変数 */
  --bg: #ffffff;
  --fg: #1b1f1c;
  --muted: #5d665f;
  --border: #dfe4e0;
  --surface: #f4f6f4;
  --accent: var(--brand-dark);
  --accent-bg: color-mix(in srgb, var(--brand) 10%, #fff);
  --header-h: 72px;
  --container: 1120px;
  --en: "Montserrat", "Noto Sans JP", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
.st-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.st-skip { position: absolute; left: -9999px; }
.st-skip:focus { left: 16px; top: 16px; z-index: 100; padding: 8px 16px; background: #fff; }
.st-container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---- logo ---- */
.st-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.st-logo-mark {
  display: inline-block;
  padding: 6px 10px 5px;
  background: var(--brand);
  color: #fff;
  font-family: var(--en);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  line-height: 1;
}
.st-logo-name { font-size: 0.8rem; font-weight: 500; color: var(--muted); }
.st-logo-img { display: block; height: 36px; width: auto; }

/* ---- header ---- */
.st-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.st-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 24px;
}
.st-nav { display: flex; align-items: center; gap: 24px; }
.st-nav-list { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.st-nav-item { position: relative; }
.st-nav-item > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 14px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.3;
}
.st-nav-en { font-family: var(--en); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.04em; }
.st-nav-ja { font-size: 0.68rem; color: var(--muted); }
.st-nav-item > a:hover .st-nav-en,
.st-nav-item.is-current > a .st-nav-en { color: var(--brand-dark); }
.st-nav-item.is-current > a { box-shadow: inset 0 -3px 0 var(--brand); }
.st-subnav {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 240px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translate(-50%, 4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.st-nav-item:hover > .st-subnav,
.st-nav-item:focus-within > .st-subnav { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.st-subnav a { display: block; padding: 8px 20px; color: var(--ink); font-size: 0.875rem; text-decoration: none; }
.st-subnav a:hover, .st-subnav a[aria-current="page"] { color: var(--brand-dark); background: var(--accent-bg); }
.st-lang {
  padding: 4px 12px;
  font-family: var(--en);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.st-lang:hover { border-color: var(--brand); color: var(--brand-dark); }
/* 言語の切り替え(日本語 / English) */
.st-langs {
  display: flex;
  margin: 0 0 0 8px;
  padding: 2px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.st-langs a {
  display: block;
  padding: 3px 10px;
  font-family: var(--en);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted, var(--ink));
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
}
.st-langs a:hover { color: var(--brand-dark); }
.st-langs a[aria-current="true"] { color: #fff; background: var(--brand); }
.st-menu-toggle { display: none; }

/* ---- buttons ---- */
.st-button {
  display: inline-block;
  padding: 10px 28px;
  color: #fff;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.st-button:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.st-button-ghost { color: var(--brand-dark); background: transparent; }
.st-button-ghost:hover { color: #fff; }
.markdown-body a.st-button { color: #fff; }
.markdown-body a.st-button-ghost { color: var(--brand-dark); }

/* ---- hero (top) ---- */
.st-hero {
  padding: 88px 0 72px;
  background:
    radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 45%),
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 5%, #fff) 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
}
.st-hero-tagline { margin: 0 0 12px; font-family: var(--en); font-weight: 600; letter-spacing: 0.12em; color: var(--brand-dark); font-size: 0.85rem; }
.st-hero-title { margin: 0 0 20px; font-family: var(--en); font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.15; letter-spacing: 0.01em; color: var(--ink); }
.st-hero-lead { max-width: 640px; margin: 0 0 32px; color: var(--muted); }
.st-hero-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* ---- sections ---- */
.st-section-title { margin: 0 0 24px; font-size: 1rem; font-weight: 500; color: var(--muted); }
.st-section-title span { display: block; font-family: var(--en); font-size: 1.8rem; font-weight: 700; color: var(--ink); letter-spacing: 0.02em; line-height: 1.3; }
.st-home-works { padding-top: 64px; padding-bottom: 32px; }
.st-related { padding-top: 48px; border-top: 1px solid var(--border); }
.st-back { margin-top: 32px; margin-bottom: 0; text-align: center; }

/* ---- page head ---- */
.st-main { padding-bottom: 80px; }
.st-page-head { padding: 28px 0 32px; margin-bottom: 40px; background: var(--surface); border-bottom: 1px solid var(--border); }
.st-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 16px; padding: 0; list-style: none; font-size: 0.8rem; color: var(--muted); }
.st-breadcrumb li + li::before { content: "/"; margin: 0 8px; color: var(--border); }
.st-breadcrumb a { color: var(--muted); text-decoration: none; }
.st-breadcrumb a:hover { color: var(--brand-dark); }
.st-kicker { margin: 0 0 6px; font-family: var(--en); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.1em; color: var(--brand-dark); }
.st-kicker time { margin-left: 12px; color: var(--muted); letter-spacing: 0.04em; }
.st-page-title { margin: 0; font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.4; color: var(--ink); }
.st-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.st-tags a {
  display: inline-block;
  padding: 2px 12px;
  font-family: var(--en);
  font-size: 0.78rem;
  color: var(--brand-dark);
  background: #fff;
  border: 1px solid var(--brand);
  border-radius: 999px;
  text-decoration: none;
}
.st-tags a:hover { color: #fff; background: var(--brand); }

/* ---- body ---- */
.st-body { max-width: 760px; }
.st-body-wide { max-width: none; }
.st-with-side { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; align-items: start; }
.st-with-side .st-body { max-width: none; }
.markdown-body h2 { border-bottom: 2px solid var(--border); }
.markdown-body h2::before { content: ""; display: inline-block; width: 6px; height: 1em; margin-right: 10px; vertical-align: -0.1em; background: var(--brand); }
.markdown-body img { border-radius: 4px; }
.markdown-body p > img:only-child, .markdown-body p > a:only-child > img { display: block; margin: 0 auto; }

/* ---- side ---- */
.st-side { position: sticky; top: calc(var(--header-h) + 24px); font-size: 0.9rem; }
.st-section-nav ul, .st-recent ul { margin: 0; padding: 0; list-style: none; }
.st-section-nav a { display: block; padding: 10px 14px; color: var(--ink); text-decoration: none; border-left: 3px solid var(--border); }
.st-section-nav a:hover { color: var(--brand-dark); background: var(--surface); }
.st-section-nav a[aria-current="page"] { color: var(--brand-dark); font-weight: 700; border-left-color: var(--brand); background: var(--accent-bg); }
.st-side-title { margin: 0 0 12px; font-size: 0.95rem; }
.st-recent li { border-bottom: 1px solid var(--border); }
.st-recent a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; line-height: 1.5; }
.st-recent a:hover { color: var(--brand-dark); }
.st-recent time { display: block; font-size: 0.75rem; color: var(--muted); }
.st-more-link { font-size: 0.85rem; }

/* ---- lists (::: list) ---- */
.md-filter button { font-family: var(--en); }
.md-list-tiles { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 20px; }
.md-list-tiles a { gap: 10px; }
.md-list-tiles .md-list-thumb { overflow: hidden; border-radius: 6px; }
.md-list-tiles img, .md-list-thumb-empty { border-radius: 6px; transition: transform 0.3s; }
.md-list-tiles a:hover img { transform: scale(1.05); }
.md-list-tiles .md-list-title { font-size: 0.95rem; font-weight: 500; }
.md-list-tiles li[data-badge] .md-list-thumb::before {
  content: attr(data-badge);
  position: absolute;
  z-index: 1;
  margin: 8px;
  padding: 0 8px;
  font-family: var(--en);
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border-radius: 3px;
}
.md-list-tiles .md-list-thumb { position: relative; }
.md-list-list a { padding: 16px 0; }

/* ---- footer ---- */
.st-footer { padding: 56px 0 24px; color: #c9d1cb; background: #16201a; font-size: 0.875rem; }
.st-footer a { color: #e7ede9; text-decoration: none; }
.st-footer a:hover { color: #fff; text-decoration: underline; }
.st-footer-inner { display: grid; grid-template-columns: 320px 1fr; gap: 48px; }
.st-logo-footer .st-logo-name { color: #c9d1cb; }
.st-footer-tagline { margin: 16px 0 8px; font-family: var(--en); color: #fff; }
.st-footer address { font-style: normal; line-height: 1.9; }
.st-footer-nav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 24px; } /* メニューは 1 行に並べる */
.st-footer-head { display: block; margin-bottom: 8px; font-family: var(--en); font-weight: 600; color: #fff; }
.st-footer-head span { display: block; font-family: "Noto Sans JP", sans-serif; font-size: 0.7rem; font-weight: 400; color: #93a097; }
.st-footer-col ul { margin: 0; padding: 0; list-style: none; }
.st-footer-col li { margin: 4px 0; line-height: 1.5; }
.st-footer-col li a { color: #c9d1cb; font-size: 0.8rem; }
.st-footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #2c3a30; color: #93a097; }

/* ---- responsive ---- */
@media (max-width: 960px) {
  /* backdrop-filter があると、中の position: fixed のメニューがヘッダーの高さに閉じ込められる */
  .st-header { backdrop-filter: none; background: #fff; }
  .st-header-inner { padding: 0 16px; }
  .st-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .st-menu-icon, .st-menu-icon::before, .st-menu-icon::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.2s, background 0.2s;
  }
  .st-menu-icon { position: relative; }
  .st-menu-icon::before, .st-menu-icon::after { content: ""; position: absolute; left: 0; }
  .st-menu-icon::before { top: -7px; }
  .st-menu-icon::after { top: 7px; }
  .st-nav-open .st-menu-icon { background: transparent; }
  .st-nav-open .st-menu-icon::before { transform: translateY(7px) rotate(45deg); }
  .st-nav-open .st-menu-icon::after { transform: translateY(-7px) rotate(-45deg); }

  .st-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 16px 40px;
    overflow-y: auto;
    background: #fff;
  }
  .st-nav-open .st-nav { display: flex; }
  .st-nav-list { flex-direction: column; gap: 0; }
  .st-nav-item { border-bottom: 1px solid var(--border); }
  .st-nav-item > a { flex-direction: row; align-items: baseline; gap: 12px; padding: 14px 4px; }
  .st-nav-item.is-current > a { box-shadow: none; }
  .st-subnav {
    position: static;
    min-width: 0;
    padding: 0 0 12px 12px;
    border: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .st-subnav a { padding: 6px 8px; }
  .st-lang { align-self: flex-start; }
  .st-langs { align-self: flex-start; margin: 12px 0 0; }

  .st-with-side { grid-template-columns: 1fr; gap: 40px; }
  .st-side { position: static; }
  .st-footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .st-footer-nav { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

@media (max-width: 600px) {
  :root { --header-h: 60px; }
  .st-container { padding: 0 16px; }
  .st-logo-name { display: none; }
  .st-hero { padding: 56px 0 48px; }
  .st-page-head { padding: 20px 0 24px; margin-bottom: 28px; }
  .md-list-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .md-list-tiles .md-list-title { font-size: 0.85rem; }
  .st-home-works { padding-top: 40px; }
  .st-section-title span { font-size: 1.5rem; }
}
