@charset "UTF-8";

/* =========================================
   DESIGN TOKENS
   ========================================= */

:root {
  /* --layout-content-padding: 10px; */
  --color-surface-header: var(--color-theme);
  --color-text-header: var(--color-white);
  --color-surface-footer: var(--color-surface);
  --color-text-footer: var(--color-text-secondary);
  --color-text-muted: var(--color-muted);
  --color-overlay: rgba(0, 0, 0, 0.45);

  /* Layout */
  --layout-max-width: 1900px;
  --layout-header-height: 64px;
  --layout-sidebar-width: 320px;
  --layout-content-padding: 12px;

  /* Typography */
  /* --font-family: Arial, Helvetica, "Noto Sans JP", "Hiragino Sans", "Yu Gothic",
    sans-serif; */
  --font-family: "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック体",
    YuGothic, "メイリオ", Meiryo, Helvetica, Arial, sans-serif;
  --font-size-base: 15px;
  --font-size-sidebar: 15px;

  /* Text #000000 10% */
  --color-text: #111111;
  --color-text-strong: #808080;
  --color-text-muted: #999999;
  --color-text-subtle: #b3b3b3;
  --color-text-faint: #cccccc;

  /* Surfaces #ffffff 10% */
  --color-surface-strong: #b3b3b3;
  --color-surface-muted: #cccccc;
  --color-surface-subtle: #e6e6e6;
  --color-surface-faint: #f2f2f2; /* 5% */
  --color-surface: #ffffff;

  /* Accent */
  --color-primary: #111111;
  --color-accent: #ff3366;
  --color-error: #ff3366;

  /* States */
  --color-surface-selected: rgba(0, 0, 0, 0.04);

  /* Borders #000000 10% */
  --color-border: #111111;
  --color-border-strong: #999999;
  --color-border-muted: #b3b3b3;
  --color-border-subtle: #cccccc;
  --color-border-faint: #e6e6e6;

  /* Overlay */
  --color-overlay: rgba(0, 0, 0, 0.4);

  /* Header */
  --color-text-header: var(--color-white);
  --color-surface-header: var(--color-theme);

  /* Footer */
  --color-text-footer: var(--color-text-subtle);
  --color-surface-footer: #111111;

  /* Sidebar */
  --color-text-sidebar: var(--color-text);
  --color-surface-sidebar: var(--color-surface);
}

/* =========================================
   RESPONSIVE : LARGE PHONE
   ========================================= */

@media (min-width: 430px) {
}

/* =========================================
   RESPONSIVE : SMALL TABLET / LARGE PHONE
   ========================================= */

@media (min-width: 640px) {
}

/* =========================================
   RESPONSIVE : TABLET PORTRAIT
   ========================================= */

@media (min-width: 768px) {
}

/* =========================================
   RESPONSIVE : TABLET LANDSCAPE
   ========================================= */

@media (min-width: 1024px) {
}

/* =========================================
   RESPONSIVE : SMALL DESKTOP
   ========================================= */

@media (min-width: 1280px) {
}

/* =========================================
   RESPONSIVE : LARGE LAPTOP
   ========================================= */

@media (min-width: 1536px) {
}

/* =========================================
   RESPONSIVE : LARGE DESKTOP
   ========================================= */

@media (min-width: 1920px) {
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.site-footer-inner,
.site-header-inner,
.breadcrumb-inner,
.site-body-inner {
  width: 100%;
  max-width: var(--layout-max-width);
  margin-inline: auto;
  padding-inline: var(--layout-content-padding);
}

.main {
  min-width: 0;
  width: 100%;
}

.site-header {
  flex-shrink: 0;
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  height: var(--layout-header-height);
  background: var(--color-surface-header);
  color: var(--color-text-header);
  box-shadow: var(--shadow-header);
}

.site-header-inner {
  position: relative;
  height: 100%;
  padding-inline: var(--layout-content-padding);
  display: flex;
  align-items: center;
}

.site-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 120px);
  height: 32px;
  margin: 0;
  line-height: 1;
}

.site-title a,
.site-title img {
  display: block;
  height: 100%;
}

.site-title img {
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.site-header a {
  color: var(--color-text-header);
}

.site-header .header-widget {
  max-width: calc(50% - 100px);
}

.drawer-toggle {
  position: absolute;
  right: var(--layout-content-padding);
  top: 50%;
  transform: translateY(-50%);
  display: inline-block;
  width: 28px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.drawer-toggle-bar,
.drawer-toggle-bar::before,
.drawer-toggle-bar::after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: currentColor;
}

.drawer-toggle-bar {
  top: 10.5px;
  transition: background-color 0.5s;
}

.drawer-toggle-bar::before,
.drawer-toggle-bar::after {
  content: "";
  transition: transform 0.5s;
}

.drawer-toggle-bar::before {
  top: -10.5px;
}
.drawer-toggle-bar::after {
  top: 10.5px;
}
.drawer-toggle.active .drawer-toggle-bar {
  background: transparent;
}
.drawer-toggle.active .drawer-toggle-bar::before {
  transform: translateY(10.5px) rotate(-315deg);
}
.drawer-toggle.active .drawer-toggle-bar::after {
  transform: translateY(-10.5px) rotate(315deg);
}

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--color-overlay);
}

.drawer-overlay.open {
  display: block;
}

.site-drawer {
  position: fixed;
  top: var(--layout-header-height);
  right: 0;
  bottom: 0;
  z-index: calc(var(--z-overlay) + 1);
  width: min(360px, 90vw);
  background: var(--color-surface);
  color: var(--color-text);
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.25s ease, visibility 0.25s;
}

.site-drawer.open {
  visibility: visible;
  transform: translateX(0);
}

.site-drawer > .sidebar-inner {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--layout-content-padding);
}

html.drawer-open {
  position: fixed;
  width: 100%;
}

.sidebar {
  min-width: 0;
}
.sidebar-inner {
  min-width: 0;
}

.site-search {
  width: 100%;
  margin: 0;
}

.site-search .search-field {
  width: 100%;
  /* min-height: 44px; */
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  background: #ffffff;
  border: 1px solid var(--color-border);
}

.site-search .search-field:focus-within svg {
  color: var(--color-text);
}

.site-search-submit svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: var(--color-text-muted);
}

.site-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
}

.site-search input[type="search"] {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--color-text);
  font-family: inherit;
  font-size: 16px;
  appearance: none;
}

.site-search input::placeholder {
  color: var(--color-text-muted);
}
.site-search input::-webkit-search-cancel-button {
  cursor: pointer;
}

.no-content-widget .site-search {
  width: 100%;
  margin: var(--layout-content-padding) auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: var(--space-16) var(--layout-content-padding);
  margin-bottom: var(--space-24);
  border-bottom: 1px solid var(--color-border);
}

.result-label {
  min-width: 0;
  margin: 0;
  font-size: var(--font-size-18);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.result-detail {
  flex-shrink: 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-13);
}

.site-footer {
  background: var(--color-surface-footer);
  color: var(--color-text-footer);
  border-top: 1px solid var(--color-border);
}

.site-footer a {
  color: var(--color-text-footer);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  :root {
    --layout-content-padding: 20px;
  }
}

@media (min-width: 900px) {
  :root {
    --layout-header-height: var(--layout-header-height-desktop);
    --layout-content-padding: 30px;
  }

  .site-header {
    position: relative;
  }
  .site-title {
    height: 44px;
  }
  .drawer-toggle,
  .drawer-overlay,
  .drawer-overlay.open,
  .site-drawer {
    display: none;
  }
  /* .site-body-inner {
    padding-inline: var(--layout-content-padding);
  } */
  .main-header {
    padding-inline: 0;
  }

  /* Stretch both ancestors so the last widget can follow the full article. */
  .site-body-inner > .sidebar.sticky-side {
    align-self: stretch;
    display: flex;
    flex-direction: column;
  }

  .site-body-inner > .sidebar.sticky-side > .sidebar-inner {
    flex: 1 1 auto;
    min-height: 0;
  }

  /* The existing widget option enables sticky behavior without fixing the sidebar. */
  .site-body-inner > .sidebar.sticky-side .sticky-widget {
    position: sticky;
    top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-drawer,
  .drawer-toggle-bar,
  .drawer-toggle-bar::before,
  .drawer-toggle-bar::after {
    transition: none;
  }
}
