/*
 * sho-terra.com スタイルシート
 * ページ共通のスタイルはすべてこのファイルにまとめています。
 */

/* ---------- フォント ---------- */
@font-face {
  font-family: 'IBM Plex Sans JP';
  src: url('/fonts/IBMPlexSansJP-Regular.woff2') format('woff2');
  font-weight: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans JP';
  src: url('/fonts/IBMPlexSansJP-Bold.woff2') format('woff2');
  font-weight: bold;
  font-display: swap;
}
@font-face {
  font-family: 'Source Code Pro';
  src: url('/fonts/SourceCodePro-Regular.woff2') format('woff2');
  font-weight: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Code Pro';
  src: url('/fonts/SourceCodePro-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Source Code Pro';
  src: url('/fonts/SourceCodePro-Bold.woff2') format('woff2');
  font-weight: bold;
  font-display: swap;
}

/* ---------- リセット ---------- */
*, ::before, ::after {
  box-sizing: border-box;
  border: 0 solid #e5e7eb;
}
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}
body { margin: 0; }
h1, h2, h3, p, ul, figure { margin: 0; font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
img {
  display: block;
  max-width: 100%;
  height: auto;
  user-select: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  padding: 0;
  cursor: pointer;
}
[hidden] { display: none !important; }

/* ---------- 文字スタイル ---------- */
.title {
  font-family: 'Source Code Pro';
  font-weight: normal;
  font-size: 24px;
  text-align: center;
}
.heading-jp {
  font-family: 'IBM Plex Sans JP';
  font-weight: bold;
  font-size: 16px;
  text-align: center;
}
.heading-eng {
  font-family: 'Source Code Pro';
  font-weight: bold;
  font-size: 16px;
  text-align: center;
}
.name-space { letter-spacing: 0.5rem; }
.body-jp {
  font-family: 'IBM Plex Sans JP';
  font-weight: normal;
  font-size: 13px;
}
.body-eng {
  font-family: 'Source Code Pro';
  font-weight: normal;
  font-size: 13px;
}
.muted { color: #9ca3af; }
.pre-wrap { white-space: pre-wrap; }
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-8 { margin-top: 2rem; }
.mr-8 { margin-right: 2rem; }

/* ---------- レイアウト ---------- */
.container {
  margin: 2rem auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 480px) { .container { max-width: 480px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }

/* 各ページの本文 */
.page {
  margin: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.page > .title { margin-top: 2rem; }

/* 区切り線（短い） */
.divider {
  margin: 2rem auto 0;
  width: 8rem;
  height: 0;
  border: 0;
  border-top: 1px solid #9ca3af;
}
/* 区切り線（全幅） */
.rule {
  margin: 2rem 0 0;
  height: 0;
  border: 0;
  border-top: 1px solid #e5e7eb;
}

/* ---------- メニュー ---------- */
.site-menu {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.menu-item {
  display: block;
  width: 100%;
  padding: 1rem 0;
  font-family: 'Source Code Pro';
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
}
.menu-item:hover { color: #9ca3af; }
.menu-items .menu-item:not([aria-current]) { color: #9ca3af; }
.menu-items .divider {
  margin-top: 0;
  border-top-color: #000;
}

/* ---------- フッター ---------- */
.site-footer {
  margin-top: 2rem;
  width: 100%;
  text-align: center;
}
.site-footer .copyright { margin-top: 2rem; }

/* ---------- プロフィール ---------- */
.profile-list {
  margin-top: 2rem;
  padding-left: 16px;
  list-style: disc;
}

/* ---------- 作品（画像あり） ---------- */
.work {
  position: relative;
  margin-top: 2rem;
  cursor: pointer;
}
/* 画像に重ねる説明（ホバー / タップで表示）
   iPhone の Safari は touchstart が無い要素に :active を付けないため、
   HTML 側の figcaption に ontouchstart="" を付けている */
.work-overlay {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  text-align: center;
  font-family: 'IBM Plex Sans JP';
  font-size: 13px;
  opacity: 0;
  transition: 0.5s;
}
.work-overlay .year { font-family: 'Source Code Pro'; }
.work-overlay > * + * { margin-top: 0.5rem; }
@media (hover: hover) {
  .work-overlay:hover { opacity: 0.6; }
}
@media (hover: none) {
  /* 長押しで文字が選択されたり、画像のメニューが出たりしないようにする */
  .work,
  .work * {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
  }
  .work-overlay:active { opacity: 0.6; }
}

/* ---------- 作品（文字のみ） ---------- */
.work-year { margin-top: 2rem; }
.work-text { text-align: center; }
.work-text .place { margin-top: 2rem; }
.work-text .contents { margin-top: 0.5rem; }

/* ---------- プロジェクト ---------- */
.project { margin-top: 2rem; }
.project-info { text-align: center; }
.project-info > * + * { margin-top: 0.5rem; }
.project-info .contents { white-space: pre-wrap; }
.project-info a { text-decoration: underline; }
.project img { margin-top: 0.5rem; }

/* ---------- 料金 ---------- */
.price-item { margin-top: 2rem; }
.price-item .contents {
  margin-top: 2rem;
  white-space: pre-wrap;
}
