@charset "UTF-8";
/* 01 共通設定：配色・サイドバー幅・余白・フォント */
:root {
  --black: #262626;
  --sidebar-background: #111111;
  --menu-hover: #363636;
  --white: #eeeeee;
  --accent: #ff9600;
  --hover: #333333;
  --line: #555555;
  --sidebar-width: 310px;
  --header-padding: 32px;
  --menu-spacing: 12px;
  --font-ja: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;;
  --font-en: "Roboto", sans-serif;
}

/* 02 基本スタイル・全リンクのトランジション */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-ja);
  font-size: 13px;
  line-height: 1.9;
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}

a:hover {
  color: var(--accent);
}

button {
  font: inherit;
}

[lang="en"] {
  font-family: var(--font-en);
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

strong{
font-weight:bold;
}

.text-right{text-align:right;}
.text-small{font-size:small;}

/* 03 キーボード操作：本文へのスキップリンク */
.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 8px 16px;
  background: var(--black);
  color: var(--white);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* 04 固定サイドバー：外枠・ロゴ・スクロール領域 */
.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  width: var(--sidebar-width);
  height: 100vh;
  height: 100dvh;
  background: var(--sidebar-background);
  color: var(--white);
  display: flex;
  flex-direction: column;
}

.header-top {
  flex: none;
  padding: 42px var(--header-padding) 0;
}

.site-name {
  display: inline-block;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .05em;
}

.site-name:hover {
  color: var(--accent);
}

.header-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.header-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) var(--sidebar-background);
  padding: 26px var(--header-padding) 24px;
}

/* 05 スタジオ概要文：文字サイズ・行間 */
.studio-description {
  margin: 0 0 32px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.68;
  letter-spacing: .035em;
  overflow-wrap: anywhere;
}

/* 06 グローバルメニュー：項目間隔・通常背景・ホバー */
.global-nav ul {
  display: grid;
  gap: var(--menu-spacing);
  list-style: none;
  padding: 0;
  margin: 0;
  border: 0;
}

.global-nav li {
  margin: 0;
  padding: 0;
  border: 0;
}

.global-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 11px 16px;
  background: var(--black);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .1em;
}

.global-nav a[aria-current="page"] {
  color: var(--accent);
}

.global-nav a:hover {
  background: var(--menu-hover);
  color: var(--accent);
}

.global-nav a:focus-visible {
  outline-offset: -3px;
  background: var(--menu-hover);
  color: var(--accent);
}

/* 07 サイドバー下部：住所・コピーライトの囲み */
.header-footer {
  flex: none;
  margin: 0 var(--header-padding) 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.header-footer address {
  margin: 0;
  font-size: 10px;
  font-style: normal;
  line-height: 1.75;
  letter-spacing: .02em;
}

.copyright {
  display: block;
  font-size: 8px;
  margin-top:10px;
  line-height: 1.75;
  letter-spacing: .02em;
}

/* 08 メイン領域：サイドバー分の位置調整 */
.site-main {
  min-height: 100vh;
  min-height: 100dvh;
  margin-left: var(--sidebar-width);
  padding: 0;
}

.site-main:focus {
  outline: none;
}

.menu-toggle {
  display: none;
}

/* 09 スマホ表示：767px以下・ハンバーガー開閉 */
@media (max-width: 767px) {
  :root {
    --header-padding: 26px;
  }
  .site-header {
    inset: 0 0 auto;
    width: 100%;
    height: auto;
    max-height: 100vh;
    max-height: 100dvh;
  }
  .header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    padding: 0 var(--header-padding);
    border-bottom: 1px solid var(--line);
  }
  .site-name {
    font-size: 21px;
  }
  .header-panel {
    max-height: calc(100dvh - 76px);
  }
  .header-content {
    padding-top: 28px;
  }
  .studio-description {
    max-width: 380px;
    margin-bottom: 28px;
  }
  .global-nav a {
    min-height: 46px;
  }
  .header-footer {
    margin-bottom: max(24px, env(safe-area-inset-bottom));
  }
  .copyright {
    margin-top: 14px;
  }
  .site-main {
    margin-left: 0;
    padding-top: 76px;
  }
  html.js .site-header {
    height: 76px;
    overflow: hidden;
    transition: height .32s cubic-bezier(.4, 0, .2, 1);
  }
  html.js .header-panel {
    position: absolute;
    inset: 76px 0 auto;
    height: calc(100vh - 76px);
    height: calc(100dvh - 76px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .25s ease, transform .32s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .32s;
  }
  html.js .menu-toggle {
    display: flex;
    position: relative;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin-right: -9px;
    border: 0;
    background: none;
    color: var(--white);
    cursor: pointer;
  }
  .menu-toggle span {
    position: absolute;
    width: 23px;
    height: 1px;
    background: currentColor;
    transition: transform .2s ease;
  }
  .menu-toggle span:first-child {
    transform: translateY(-4px);
  }
  .menu-toggle span:last-child {
    transform: translateY(4px);
  }
  .menu-toggle:hover {
    color: var(--accent);
  }
  html.js .site-header.is-open {
    height: 100vh;
    height: 100dvh;
  }
  html.js .is-open .header-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
  }
  .is-open .menu-toggle span:first-child {
    transform: rotate(45deg);
  }
  .is-open .menu-toggle span:last-child {
    transform: rotate(-45deg);
  }
  body.menu-open {
    overflow: hidden;
  }
}

/* 10 アクセシビリティ：動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
  }
}
