/* =========================================================
   WORKS（作品集）― トップと同じ、白と緑のDDPARKのトンマナ
   ========================================================= */

:root {
  --white: #FFFFFF;
  --bg-soft: #F4F6F5;
  --line: #E4E8E6;
  --text: #484848;
  --muted: #7A7F7D;
  --teal: #41B79C;        /* ロゴの緑 */
  --teal-dark: #23866F;   /* 文字やボタンに使う、少し濃い緑 */
  --teal-tint: #E6F5F1;

  --font-en: "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Osaka", "Meiryo", "Noto Sans JP", sans-serif;
  --container: 1120px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--font-jp); font-size: 16px; line-height: 1.9; letter-spacing: 0.03em; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 3px; }
.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }

.todo {
  display: inline-block; padding: 0 8px;
  border: 1.5px dashed #C0392B; border-radius: 6px; background: #FFF4E5;
  color: #A93226; font-size: 0.85em; font-weight: 700; line-height: 1.7;
}

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 40px; height: 40px; }
.brand__text { height: 20px; width: auto; }
.site-nav ul { display: flex; align-items: center; gap: 4px; }
.site-nav a { display: block; padding: 8px 14px; font-family: var(--font-en); font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-decoration: none; color: var(--text); border-radius: 999px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--teal-dark); background: var(--teal-tint); }
.nav-toggle { display: none; }

/* ---------- 見出し ---------- */
.en-title { font-family: var(--font-en); font-weight: 700; letter-spacing: 0.06em; color: var(--teal); line-height: 1; }
.section-head { display: grid; gap: 10px; margin-bottom: 40px; }
.section-head .en-title { font-size: clamp(30px, 4vw, 44px); }
.section-head .jp { font-size: 15px; color: var(--muted); }

/* ---------- ヒーロー ---------- */
.page-hero { padding: 72px 0 40px; }
.page-hero .en-title { font-size: clamp(56px, 10vw, 120px); }
.page-hero__jp { margin-top: 12px; font-size: 18px; font-weight: 700; }
.page-hero__lead { margin-top: 16px; max-width: 40em; color: var(--muted); }
.link-3d {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  padding: 10px 20px; border: 1px solid var(--teal); border-radius: 999px;
  color: var(--teal-dark); font-size: 14px; font-weight: 700; text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.link-3d:hover { background: var(--teal); color: var(--white); }

/* ---------- 絞り込み ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); font-size: 14px; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.filters button span { font-family: var(--font-en); font-size: 12px; color: var(--muted); }
.filters button:hover { border-color: var(--teal); }
.filters button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--white); }
.filters button[aria-pressed="true"] span { color: rgba(255, 255, 255, 0.85); }

/* ---------- 作品の一覧 ---------- */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.work-card {
  display: flex; flex-direction: column;
  width: 100%; padding: 0; border: none; background: none; text-align: left; cursor: pointer;
}
.work-card__thumb {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 12px; background: var(--bg-soft);
}
.work-card__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform 0.4s; }
.work-card:hover .work-card__thumb img { transform: scale(1.04); }
.work-card__badge {
  position: absolute; top: 10px; left: 10px;
  padding: 2px 10px; border-radius: 999px;
  background: var(--white); color: var(--teal-dark);
  font-size: 11px; font-weight: 700; line-height: 1.8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.work-card__badge--win { background: var(--teal); color: var(--white); }
.work-card__kind { margin-top: 12px; font-size: 12px; color: var(--teal-dark); font-weight: 700; }
.work-card__title { font-size: 15px; font-weight: 700; line-height: 1.6; }
.works-empty { color: var(--muted); }

/* ---------- 作品の拡大表示 ---------- */
.work-modal {
  width: min(960px, calc(100% - 32px)); max-height: calc(100% - 32px);
  padding: 0; border: none; border-radius: 16px;
  background: var(--white); color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.work-modal::backdrop { background: rgba(30, 40, 36, 0.6); backdrop-filter: blur(2px); }
.work-modal__inner { display: grid; grid-template-columns: 1.4fr 1fr; max-height: calc(100vh - 32px); }
.work-modal__media { background: var(--bg-soft); display: grid; place-items: center; padding: 24px; overflow: auto; }
.work-modal__media img { max-height: calc(100vh - 100px); width: auto; object-fit: contain; }
.work-modal__body { display: flex; flex-direction: column; gap: 12px; padding: 40px 32px 28px; overflow: auto; }
.work-modal__kind { font-size: 13px; font-weight: 700; color: var(--teal-dark); }
.work-modal__title { font-size: 22px; line-height: 1.5; }
.work-modal__badge { align-self: flex-start; padding: 2px 12px; border-radius: 999px; background: var(--teal-tint); color: var(--teal-dark); font-size: 12px; font-weight: 700; }
.work-modal__desc { white-space: pre-line; font-size: 15px; }
.work-modal__link {
  align-self: flex-start; display: inline-flex; gap: 6px; margin-top: 4px;
  padding: 10px 20px; border-radius: 999px; background: var(--teal); color: var(--white);
  font-size: 14px; font-weight: 700; text-decoration: none;
}
.work-modal__link[hidden], .work-modal__badge[hidden] { display: none; }
.work-modal__nav { display: flex; gap: 8px; margin-top: auto; padding-top: 16px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 50%; background: var(--white); cursor: pointer;
  font-size: 18px; line-height: 1;
}
.icon-btn:hover { border-color: var(--teal); color: var(--teal-dark); }
.work-modal__close { position: absolute; top: 12px; right: 12px; }

/* ---------- デザインについて ---------- */
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.about { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: start; }
.about p + p { margin-top: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 6px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 14px; }

/* ---------- プロフィール ---------- */
.profile { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.profile__photo { width: 260px; height: 260px; border-radius: 50%; object-fit: cover; justify-self: center; border: 6px solid var(--teal-tint); }
.profile__role { font-family: var(--font-en); font-size: 14px; font-weight: 700; letter-spacing: 0.12em; color: var(--teal-dark); }
.profile__name { margin-top: 4px; font-size: 26px; font-weight: 700; }
.profile__name small { margin-left: 10px; font-size: 15px; font-weight: 400; color: var(--muted); }
.profile__list { margin-top: 24px; display: grid; grid-template-columns: 120px 1fr; border-top: 1px solid var(--line); }
.profile__list dt, .profile__list dd { padding: 14px 4px; border-bottom: 1px solid var(--line); }
.profile__list dt { font-weight: 700; color: var(--teal-dark); }

/* ---------- お問い合わせ ---------- */
.contact { text-align: center; }
.contact .section-head { justify-items: center; }
.contact__lead { margin-bottom: 28px; }
.contact__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 220px; padding: 14px 28px; border-radius: 999px;
  border: 1px solid var(--teal); background: var(--white); color: var(--teal-dark);
  font-weight: 700; text-decoration: none; transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--teal-tint); }
.btn--main { background: var(--teal); color: var(--white); }
.btn--main:hover { background: var(--teal-dark); }
.contact__note { margin-top: 18px; }

/* ---------- フッター ---------- */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { margin-right: 18px; text-decoration: none; }
.site-footer a:hover { color: var(--teal-dark); }

/* ---------- レスポンシブ ---------- */
@media (max-width: 960px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .about, .profile { grid-template-columns: 1fr; gap: 32px; }
  .work-modal__inner { grid-template-columns: 1fr; }
  .work-modal__media img { max-height: 56vh; }
  .work-modal__body { padding: 24px 22px 22px; }

  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white);
    font-size: 14px; cursor: pointer;
  }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 16px; height: 2px; background: var(--text); position: relative; }
  .nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bar::before { top: -5px; } .nav-toggle__bar::after { top: 5px; }
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; padding: 12px var(--gutter) 20px; background: var(--white); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: 12px 16px; font-size: 16px; }
}
@media (max-width: 560px) {
  .section { padding: 72px 0; }
  .page-hero { padding: 48px 0 28px; }
  .works-grid { gap: 16px 12px; }
  .work-card__thumb img { padding: 8px; }
  .work-card__title { font-size: 14px; }
  .brand__text { display: none; }
  .profile__photo { width: 200px; height: 200px; }
  .profile__list { grid-template-columns: 96px 1fr; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ---------- 2026-11-09：ハンバーガーメニューをトップと同じものに（見た目は css/menu.css） ---------- */
:root { --menu-btn-delay: 0s; } /* このページはヘッダーがはじめから出ているので、すぐ出す */
.menu-btn { top: 12px; }        /* ヘッダー（高さ72px）の真ん中 */
.menu-panel__logo { margin-left: 0; }
@media (max-width: 960px) {
  .site-nav { display: none !important; }  /* 横並びのメニューのかわりに、ハンバーガーメニューを出す */
  .site-header__inner { padding-right: 56px; }
  .menu-btn { opacity: 1; pointer-events: auto; transform: none; }
}
@media (min-width: 961px) {
  .menu-btn { display: none; }  /* パソコン：ヘッダーがいつも上にあるので、横並びのメニューだけ */
}

/* ---------- 2026-11-09：3Dのポートフォリオへのボタン（スクショ入り） ---------- */
.link-3d-card {
  display: grid; grid-template-columns: minmax(0, 176px) minmax(0, 1fr) auto; align-items: center;
  max-width: 580px; margin-top: 24px;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--white); color: var(--text); text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.link-3d-card:hover, .link-3d-card:focus-visible { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 0, 0, .1); border-color: var(--teal); }
.link-3d-card__media { position: relative; display: block; align-self: stretch; min-width: 0; min-height: 112px; overflow: hidden; background: #c9e2b6; } /* 幅は列の幅、高さは文字の高さに合わせる */
.link-3d-card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover;
  animation: link3dDrift 9s ease-in-out infinite alternate;
}
@keyframes link3dDrift {
  from { transform: scale(1.08) translate(-2%, 1.5%); }
  to   { transform: scale(1.08) translate(2%, -1.5%); }
}
.link-3d-card__badge {
  position: absolute; left: 10px; top: 10px;
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--teal); color: var(--white); font-family: var(--font-en); font-size: 14px; font-weight: 700;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .15);
}
.link-3d-card__body { display: flex; flex-direction: column; gap: 2px; padding: 14px 8px 14px 20px; line-height: 1.6; }
.link-3d-card__label { font-family: var(--font-en); font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--teal-dark); }
.link-3d-card__title { font-size: 17px; font-weight: 700; }
.link-3d-card__text { font-size: 12px; color: var(--muted); }
.link-3d-card__arrow {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-right: 18px; border-radius: 50%;
  background: var(--teal); color: var(--white); font-size: 16px; font-weight: 700;
  transition: background .2s;
}
.link-3d-card:hover .link-3d-card__arrow { background: var(--teal-dark); }
@media (max-width: 560px) {
  .link-3d-card { grid-template-columns: minmax(0, 112px) minmax(0, 1fr) auto; }
  .link-3d-card__media { min-height: 104px; }
  .link-3d-card__badge { width: 30px; height: 30px; font-size: 12px; left: 8px; top: 8px; }
  .link-3d-card__body { padding: 10px 6px 10px 14px; }
  .link-3d-card__title { font-size: 15px; }
  .link-3d-card__text { font-size: 11px; }
  .link-3d-card__arrow { width: 34px; height: 34px; margin-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .link-3d-card__media img { animation: none; }
  .link-3d-card { transition: none; }
}
