/* =========================================================
   C/O DESIGN CONSULTING — site stylesheet
   フォントを変える時は --font だけ書き換えればOK
   ========================================================= */
:root {
  --font: "Noto Sans", "Sawarabi Gothic", sans-serif; /* 欧文=Noto Sans、和文=Sawarabi Gothic（フォントファイルは assets/fonts/） */
  --text: #000;
  --text-body: #333;
  --meta: #333;
  --link: rgba(0, 0, 0, 0.85);
  --link-line: rgba(255, 0, 0, 0.5);
  --rule: rgba(0, 0, 0, 0.3);
  --fade: 0.5s;
}

/* 文字サイズ：元サイトと同じくウィンドウが小さいと縮み、大きくしても 13px 以上にはならない
   （PC：13px・画面の高さの1.44%・画面の幅の1.6% のうち一番小さい値 / スマホ：画面の幅の2.24%） */
html { font-size: min(13px, 1.44vh, 1.6vw); -webkit-text-size-adjust: 100%; }   /* PC */
@media (max-width: 768px) { html { font-size: min(2.24vw, 1.44vh); } }          /* スマホ・狭い画面 */

* { box-sizing: border-box; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { border: 0; display: block; max-width: 100%; }
b, strong { font-weight: bolder; }
hr { background: var(--rule); border: 0; height: 1px; margin: 0.5em 0; }
a:active { opacity: 0.7; }

/* 赤いマーカー風リンク */
.mk {
  color: var(--link);
  font-weight: bold;
  text-decoration: underline;
  text-decoration-thickness: 0.5em;
  text-decoration-color: var(--link-line);
  text-underline-offset: -0.2em;
  text-decoration-skip-ink: none;
}

.center { text-align: center; }

/* ---------- Home header ---------- */
.site-head { padding: 1rem 0 0; }
.logo-wrap { width: 40%; margin: 0 auto; padding: 1rem; font-size: 1.5rem; }
.logo-wrap a { display: block; }
.logo-wrap img { width: 39%; margin: 0.4em auto 0; }
.menu { font-size: 1rem; text-align: center; padding: 2.95rem 0 1.4rem; }
.menu a + a { margin-left: 1.6em; }
.address { font-size: 1rem; line-height: 1.1; text-align: center; padding: 1.2rem 0 4.6rem; }
.address .co { margin: 1em 0 0; }
.address .city { font-weight: bold; margin: 1.2em 0 1.1em; }
.address .contact { color: var(--text-body); }

/* ---------- Project block (8 : 4) ---------- */
.projects { padding: 0.5rem; }
.project { display: flex; align-items: flex-start; }
.project + .project { margin-top: 1rem; }
.project .media { flex: 0 0 66.6667%; padding: 0.5rem; }
.project .text  { flex: 0 0 33.3333%; padding: 0.5rem; font-size: 1rem; line-height: 1.5; }
.project .title { font-weight: bold; color: var(--text); }
.project .meta  { color: var(--meta); white-space: pre-line; margin: 1.5em 0 3.4em; }
.project .body  { color: var(--text-body); white-space: pre-line; }
.project .text  { padding-bottom: calc(0.5rem + 0.55em); }
.project .tail  { height: 4.5em; }
.row-gallery .jrow { margin: 0; }
.project hr { margin: 0.35em 0; }
.project .body + hr { margin-top: 1.85em; }
.page-project .projects { min-height: 100vh; }

/* ---------- Slideshow ---------- */
.slideshow { position: relative; width: 100%; overflow: hidden; cursor: zoom-in; }
.slideshow .slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity var(--fade) ease;
  display: flex; align-items: center; justify-content: center;
}
.slideshow .slide.on { opacity: 1; z-index: 1; }
.slideshow .slide img { width: 100%; height: 100%; object-fit: contain; }

/* 左右の矢印（マウスを乗せた時に表示） */
button { font: inherit; }
.ss-arrow, .lb-prev, .lb-next, .lb-close {
  position: absolute; width: 36px; height: 36px; padding: 0; margin: 0;
  border: 0; background: none; cursor: pointer; z-index: 3;
}
.ss-arrow { top: 50%; margin-top: -18px; opacity: 0; transition: opacity .2s; }
.slideshow:hover .ss-arrow { opacity: 1; }
.ss-prev, .lb-prev { left: 10px; }
.ss-next, .lb-next { right: 10px; }
.ss-next svg, .lb-next svg { transform: scaleX(-1); }
.ss-arrow svg, .lightbox svg { width: 36px; height: 36px; display: block; fill: none; }
.ss-arrow .o { stroke: rgba(0, 0, 0, 0.6); stroke-width: 3px; }
.ss-arrow .i { stroke: #fff; stroke-width: 2px; }
@media (hover: none) { .ss-arrow { display: none; } }

/* ---------- Lightbox（写真クリックで拡大） ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.7);     /* 背景を暗く（0＝透明 〜 1＝真っ黒） */
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .333s, visibility .333s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-stage { position: relative; width: 90vw; height: 100vh; display: flex; align-items: center; justify-content: center; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-out; }
.lb-prev, .lb-next { top: 50%; margin-top: -18px; }
.lb-close { top: 10px; right: 10px; }
/* 暗い背景でも見えるよう、矢印と×は白（細い影付き） */
.lightbox .o, .lightbox .x-o { stroke: rgba(0, 0, 0, 0.5); stroke-width: 3px; }
.lightbox .i, .lightbox .x-i { stroke: #fff; stroke-width: 2px; }
.lightbox button { transition: opacity .333s; }
.lightbox.idle button { opacity: 0; }
html.lb-lock { overflow: hidden; }
img.zoomable { cursor: zoom-in; }

/* ---------- Footer ---------- */
.site-foot { text-align: center; font-size: 1rem; padding: 1.2rem 0 1.5rem; }
.site-foot .copy { margin-top: 1.2em; }

/* ---------- all projects (justified grid) ---------- */
.index-head { text-align: center; padding: 3.25rem 0 1.3rem; }
.jgrid { padding: 0 1rem; }
.jrow { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.jrow > * { display: block; flex: 0 0 auto; }
.jrow img { width: 100%; height: 100%; object-fit: cover; }
.index-foot { text-align: center; padding: 1.6rem 0 1.5rem; }
.index-foot .copy { margin-top: 2.6em; }

/* ---------- about us ---------- */
.about { width: 30%; margin: 0 auto; padding: 0.5rem; font-size: 1rem; line-height: 1.4; text-align: center; }
.about .logo { width: 31%; margin: 3.3rem auto 3.9rem; }
.about .lead { text-align: left; color: var(--text-body); margin-top: 1.4rem; }
.about .lead p { margin: 0; }
.about .people { margin: 1.4rem 0 2.8rem; padding: 0; }

.about .bio { margin: 0 0 2.2rem; }
.about .bio b { display: block; margin-bottom: 1.4em; }
.about .back { margin: 0 0 1.7rem; }
.about .copy { margin-bottom: 1rem; }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .logo-wrap { width: 100%; }
  .logo-wrap img { width: 39%; margin-top: 0.55rem; }
  .menu { padding-top: 3.1rem; }
  .address { padding-bottom: 5.4rem; }
  .project { display: block; }
  .project .media, .project .text { padding: 0.5rem; }
  .project + .project { margin-top: 1rem; }
  .project .text { padding-bottom: calc(0.5rem + 2.6em); }
  .project .body + hr { margin-top: 1.2em; }
  .jgrid { padding: 0 1rem; }
  .jrow { gap: 0.25rem; margin-bottom: 0.25rem; }
  .lb-stage { width: 100vw; }
  .about { width: 100%; padding: 0.5rem; }
  .about .logo { width: 31%; margin: 2.9rem auto 4rem; }
  .about .lead { margin-top: 1.3rem; }
}
