@charset "utf-8";

/* ----------------------------------------------------------------
   mika furuya  サイト共通スタイル v3（Bootstrap不使用）
   配色は従来どおり（白・黒・グレー）。余白を広く、文字を大きく、枠をなくして作品を主役に。
   01. ベース
   02. レイアウト
   03. サイドバー
   04. ギャラリー
   05. News
   06. About / Design Works
   07. ボタン
   08. フッター
   09. 動き（スクロール・ホバー）
   10. タブレット表示（768〜991px）
   11. スマホ表示（767px以下）
---------------------------------------------------------------- */

:root {
  --black: #000;
  --text: #626262;
  --muted: #888;
  --light: #bbb;
  --current: #ccc;
  --line: #ececec;
  --bg: #fff;
  --side-w: 200px;
  --gap: 64px;
}

/* 01. ベース
---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Open Sans", meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, p, ul, li {
  margin: 0;
  padding: 0;
}

h1, h3, h4, h5 {
  color: var(--black);
  line-height: 1.4;
}

h1, h3, h5 {
  text-transform: uppercase;
}

p {
  margin-bottom: 1.2em;
}

ul, li {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  display: block;
  color: var(--black);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: #575757;
}

a:focus-visible {
  outline: 2px solid #999;
  outline-offset: 3px;
}

::selection {
  color: var(--black);
  background: #dcdcdc;
}

.sp-only {
  display: none;
}

/* 02. レイアウト
---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 72px auto 0;
  padding: 0 48px;
}

.layout {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.main {
  min-width: 0;
}

/* 03. サイドバー
---------------------------------------------------------------- */
.side {
  position: sticky;
  top: 72px;
  z-index: 100;
}

.side__inner {
  background: var(--bg);
}

.site-title {
  font-family: "Helvetica Neue";
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.14em;
}

.nav {
  margin-top: 72px;
  font-size: 13px;
  letter-spacing: 0.1em;
}

.nav li {
  padding: 7px 0;
}

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

.nav [aria-current="page"]:hover {
  color: #575757;
}

.nav--sns {
  display: flex;
  gap: 18px;
  margin-top: 40px;
}

.sns {
  padding: 0;
}

.sns img {
  width: 22px;
}

/* 04. ギャラリー
---------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
}

.thumb {
  overflow: hidden;
  background: #fafafa;
}

.thumb img {
  width: 100%;
  cursor: pointer;
}

/* 背景が白い作品の輪郭がページに溶けないよう、ごく薄い線を引く */
.gallery .thumb {
  box-shadow: 0 0 0 1px #f2f2f2;
}

/* 05. News
---------------------------------------------------------------- */
.news {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 40px;
  align-items: start;
  padding: 0 0 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
}

.news:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.news > div.thumb {
  cursor: default;
}

.news__body h5 {
  margin-bottom: 10px;
  color: var(--light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.news__body h3 {
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.news__body p {
  color: var(--black);
  line-height: 1.9;
}

.news__body .inline-link {
  display: inline;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 06. About / Design Works（丸い写真を上に、その下に文章）
---------------------------------------------------------------- */
.main--profile {
  max-width: 720px;
}

.profile__img {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.profile__img--portrait {
  object-position: 0 -25px;
}

.profile__img--works {
  object-position: -20px 0;
}

.profile__body {
  margin-top: 40px;
}

.subject {
  margin-bottom: 40px;
  font-family: 'Lato', 'Noto Sans JP', 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
  text-align: center;
}

.subject h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.35em;
}

/* タイトル下の短い線（表示されると中央から左右へ伸びる） */
.subject::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  margin: 24px auto 0;
  background: var(--black);
}

.js .subject.reveal::after {
  transform: scaleX(0);
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1) 0.45s;
}

.js .subject.reveal.is-visible::after {
  transform: scaleX(1);
}

.profile__body h4 {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.profile__body .section-gap {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

/* 07. ボタン
---------------------------------------------------------------- */
.actions {
  margin-top: 8px;
}

.actions--center {
  margin-top: 40px;
  text-align: center;
}

.button {
  position: relative;
  z-index: 0;
  display: inline-block;
  overflow: hidden;
  padding: 13px 40px 13px 43px;
  border: 1px solid var(--black);
  color: var(--black);
  background: transparent;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.2em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  transition: color 0.35s ease;
}

.button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.button:hover {
  color: #fff;
}

.button:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* 黒地のボタン（Design Works の Mail） */
.button--dark {
  color: #fff;
}

.button--dark::before {
  transform: scaleX(1);
  transform-origin: left;
}

.button--dark:hover {
  color: var(--black);
}

.button--dark:hover::before {
  transform: scaleX(0);
  transform-origin: right;
}

/* 08. フッター
---------------------------------------------------------------- */
.footer {
  width: 100%;
  max-width: 1280px;
  margin: 120px auto 0;
  padding: 0 48px;
}

.copyright {
  margin: 0;
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
}

/* 09. 動き（スクロール・ホバー）
   .js は JavaScript が動くときだけ付くので、
   JavaScript が無効でも内容は普通に表示されます。
---------------------------------------------------------------- */

/* スクロールで下からふわっと表示 */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ページを開いたときにサイドバーを順番に表示 */
.js .side__inner > * {
  animation: fade-in 0.8s ease both;
}

.js .nav li {
  animation: slide-in 0.6s ease both;
  animation-delay: calc(0.15s + var(--i, 0) * 0.07s);
}

@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
}

/* メニュー：下線が左から伸びる */
.nav li:not(.sns) a {
  display: inline-block;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition:
    color 0.2s ease-in-out,
    background-size 0.35s ease;
}

.nav li:not(.sns) a:hover {
  background-size: 100% 1px;
}

/* SNSアイコン */
.sns img {
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.sns a:hover img {
  transform: translateY(-3px);
  opacity: 0.7;
}

/* 作品・写真：ゆっくりズーム */
.thumb img {
  transition:
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.3s ease;
}

/* マウスのある端末だけ（スマホでタップ後にズームしたまま残らないように） */
@media (hover: hover) {
  .thumb:hover img {
    transform: scale(1.05);
  }

  a.thumb:hover img {
    opacity: 0.9;
  }
}

/* スマホ：タップした瞬間に少し薄くして反応を返す */
@media (hover: none) {
  a.thumb:active img,
  .button:active {
    opacity: 0.7;
  }
}

/* プロフィール写真：ゆっくり拡大しながら表示 */
.js .profile__img.reveal {
  transform: scale(0.85);
}

.js .profile__img.reveal.is-visible {
  transform: none;
}

/* 10. タブレット表示（768〜991px）
---------------------------------------------------------------- */
@media (max-width: 991px) {
  :root {
    --side-w: 140px;
    --gap: 40px;
  }

  .container,
  .footer {
    padding: 0 32px;
  }

  .container {
    margin-top: 56px;
  }

  .side {
    top: 56px;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }

  .news {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

/* 11. スマホ表示（767px以下）
   左のメニューを画面上部に固定するヘッダーにし、本文を横幅いっぱいに使う
---------------------------------------------------------------- */
@media (max-width: 767px) {
  body {
    font-size: 14px;
  }

  .container,
  .footer {
    padding: 0 20px;
  }

  .container {
    margin-top: 0;
  }

  .layout {
    display: block;
  }

  .side {
    top: 0;
    margin: 0 -20px;
  }

  /* ヘッダー：1段目にサイト名とアイコン、2段目にメニュー */
  .side__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 16px 20px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-title {
    font-size: 15px;
  }

  .side__inner nav {
    display: contents;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    justify-content: space-between;
    margin: 12px 0 0;
    font-size: 12.5px;
    letter-spacing: 0.06em;
  }

  .nav li {
    padding: 8px 0 11px;
  }

  .nav a {
    white-space: nowrap;
  }

  /* 今いるページは下線で示す */
  .nav li a[aria-current="page"] {
    background-size: 100% 1px;
  }

  .nav--sns {
    grid-column: 2;
    grid-row: 1;
    gap: 16px;
    margin: 0;
  }

  .main {
    margin-top: 32px;
  }

  .gallery {
    gap: 14px;
  }

  .news {
    padding-bottom: 40px;
    margin-bottom: 40px;
    gap: 20px;
  }

  .news__body h3 {
    font-size: 18px;
    letter-spacing: 0.12em;
  }

  .news .actions {
    text-align: center;
  }

  .profile__body {
    margin-top: 32px;
  }

  .subject {
    margin-bottom: 32px;
  }

  .subject::after {
    margin-top: 18px;
  }

  .subject h3 {
    font-size: 20px;
    letter-spacing: 0.3em;
  }

  .profile__body h4 {
    font-size: 16px;
  }

  .profile__body .section-gap {
    margin-top: 32px;
    padding-top: 32px;
  }

  .footer {
    margin-top: 80px;
  }
}

@media (max-width: 480px) {
  .sp-only {
    display: inline;
  }
}

/* 動きを減らす設定の人には動きを出さない */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal,
  .js .profile__img.reveal,
  .js .subject.reveal::after {
    opacity: 1;
    transform: none;
  }
}
