@charset "UTF-8";
/* =========================================================
   style.css ― 全ページ共通
   ・色・文字・余白の「基本の値」はいちばん上の :root にまとめています。
     サイト全体の色や余白を変えたいときは、まずここを変えてください。
   ・目次
     1. 基本の値（色・文字・余白）
     2. リセットと土台
     3. 共通パーツ（見出し・リンク・ボタン）
     4. ヘッダー
     5. メニュー（スクロールすると出る ( ≡ ) と、開いたときの画面）
     6. フッター
     7. フェードイン・動きを減らす設定
   ========================================================= */


/* ---------------------------------------------------------
   1. 基本の値
   --------------------------------------------------------- */
:root {
  /* 色 */
  --ink: #1A1A1A;          /* 墨：文字・線 */
  --ink-soft: #5B6566;     /* うすい文字：日付・補足 */
  --teal: #1FA3A0;         /* 首輪ティール：足跡・首輪など大きめの飾り（小さい文字には使わない） */
  --teal-deep: #1C7A7C;    /* 深ティール：ラベル・タグ・リンク */
  --wall: #CFE7E6;         /* 壁紙アクア：セクションの背景 */
  --line: #DCE3E3;         /* 区切り線 */
  --white: #FFFFFF;

  /* 文字 */
  --font-jp: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-en: "IBM Plex Mono", ui-monospace, Menlo, monospace;  /* 英字の見出し・ラベル（日本語には使わない） */

  /* 余白 */
  --gutter: 64px;          /* 画面の左右の余白 */
  --section-space: 120px;  /* セクションの上下の余白 */
  --content-max: 1312px;   /* 中身の最大幅（1440 - 64×2） */
}

@media (max-width: 1024px) {
  :root {
    --gutter: 40px;
    --section-space: 96px;
  }
}

@media (max-width: 767px) {
  :root {
    --gutter: 20px;
    --section-space: 72px;
  }
}


/* ---------------------------------------------------------
   2. リセットと土台
   --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  word-break: auto-phrase;   /* 日本語を言葉の切れ目で改行する（対応ブラウザのみ） */
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure {
  margin: 0;
}

/* 見出しは「palt」で、かな・記号まわりのすき間を詰める（文字ごとに自然な幅になる）
   さらに詰めたいときは、各見出しの letter-spacing を小さくする（0.02em → 0 など） */
h1, h2, h3, h4 {
  font-feature-settings: "palt";
}

ul, ol {
  padding: 0;
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--teal-deep);
  outline-offset: 3px;
}

/* 画面には出さず、読み上げソフトにだけ伝える文字 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* セクションの外側の箱：左右の余白と最大幅をそろえる */
.container {
  width: 100%;
  max-width: calc(var(--content-max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ページ内リンクで飛んだとき、上に少し余白を残す */
section[id] {
  scroll-margin-top: 24px;
}


/* ---------------------------------------------------------
   3. 共通パーツ
   --------------------------------------------------------- */

/* セクションの見出し：「（ こんな仕事をしています ）」＋「Work」 */
.section-head {
  margin-bottom: 72px;
}

.section-head__ja {
  font-size: 13px;
  letter-spacing: 0.12em;
}

.section-head__en {
  margin-top: 8px;
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

@media (max-width: 1024px) {
  .section-head__en {
    font-size: 52px;
  }
}

@media (max-width: 767px) {
  .section-head {
    margin-bottom: 48px;
  }

  .section-head__ja {
    font-size: 12px;
  }

  .section-head__en {
    font-size: 36px;
  }
}

/* 英字の小さなラベル：DESIGN / WRITING など */
.label-en {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--teal-deep);
}

/* 下線つきのテキストリンク：「デザインの作品をもっと見る →」 */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: color 0.3s, border-color 0.3s;
}

.text-link::after {
  content: "";
  width: 16px;
  height: 10px;
  background: currentColor;
  /* 矢印の形（→）。フォントに頼らず形で描いています */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h15M10 0.8 15 5l-5 4.2' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h15M10 0.8 15 5l-5 4.2' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform 0.3s;
}

.text-link:hover {
  color: var(--teal-deep);
  border-color: var(--teal-deep);
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* 左向きの矢印にしたいとき（← Design） */
.text-link--back {
  flex-direction: row-reverse;
}

.text-link--back::after {
  transform: scaleX(-1);
}

.text-link--back:hover::after {
  transform: scaleX(-1) translateX(4px);
}

/* 黒い四角のボタン：「送信する」「お問い合わせフォームへ」 */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  height: 56px;
  padding: 0 32px;
  border: 0;
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background-color 0.3s;
}

.button:hover {
  background: var(--teal-deep);
}

/* 足跡を描くための入れ物（中身は paw.js が描きます） */
.paw-trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.paw {
  fill: var(--teal);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.paw.is-on {
  opacity: 1;
}

.paw.is-gone {
  opacity: 0;
  transition-duration: 1.2s;
}


/* ---------------------------------------------------------
   4. ヘッダー（ページのいちばん上。スクロールすると一緒に流れます）
   --------------------------------------------------------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 48px var(--gutter) 0;
}

.site-logo {
  display: grid;
  gap: 2px;
  line-height: 1.2;
}

.site-logo__ja {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.site-logo__en {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.2em;
}

/* 右上のメニュー：縦に並べる */
.header-nav ul {
  display: grid;
  justify-items: end;
  gap: 2px;
  font-size: 13px;
  line-height: 1.6;
}

.header-nav a {
  transition: color 0.3s;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  color: var(--teal-deep);
}

@media (max-width: 767px) {
  .site-header {
    padding-top: 24px;
  }

  .site-logo__ja {
    font-size: 16px;
  }

  .header-nav ul {
    gap: 0;
    font-size: 12px;
    line-height: 1.5;
  }
}


/* ---------------------------------------------------------
   5. メニュー
   ・ページを少し下まで読むと、右上に ( ≡ ) が出てきます
   ・押すと全画面のメニューが開き、( ✕ ) で閉じます
   --------------------------------------------------------- */
.menu-button {
  position: fixed;
  top: 20px;
  right: var(--gutter);
  z-index: 40;
  padding: 8px 12px;
  border: 0;
  border-radius: 4px;
  /* 白を少し透かして、後ろがふんわり見えるように（数字を上げるほど白くなる） */
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.1em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.menu-button.is-visible,
.menu-button[aria-expanded="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.menu-button__close {
  display: none;
}

.menu-button[aria-expanded="true"] .menu-button__open {
  display: none;
}

.menu-button[aria-expanded="true"] .menu-button__close {
  display: inline;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  align-content: center;
  padding: 0 var(--gutter);
  background: var(--wall);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.menu.is-open {
  opacity: 1;
  visibility: visible;
}

.menu ul {
  display: grid;
  gap: 8px;
}

.menu a {
  font-family: var(--font-en);
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: 0.02em;
  transition: color 0.3s;
}

.menu a:hover {
  color: var(--teal-deep);
}

/* メニューが開いている間は、後ろの画面がスクロールしないようにする */
body.is-menu-open {
  overflow: hidden;
}


/* ---------------------------------------------------------
   6. フッター
   --------------------------------------------------------- */
.site-footer {
  padding: 72px 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-brand .site-logo__ja {
  font-size: 18px;
}

.footer-cat {
  width: 60px;
  margin-top: 16px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 44px;
  font-size: 13px;
}

.footer-nav a:hover {
  color: var(--teal-deep);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
}

.footer-bottom a:hover {
  color: var(--teal-deep);
}

@media (max-width: 767px) {
  .site-footer {
    padding-top: 56px;
  }

  .footer-nav ul {
    display: grid;
    justify-items: end;
    gap: 6px;
  }
}


/* ---------------------------------------------------------
   7. フェードイン・動きを減らす設定
   --------------------------------------------------------- */

/* class="fade-in" を付けたものは、画面に入ったときにふわっと出てきます */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: none;
}

/* パソコンやスマホで「視差効果を減らす」設定をしている人には、動きを止めて表示します */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .paw,
  .menu,
  .menu-button {
    transition: none;
  }
}
