/*
Theme Name: My Portfolio
Theme URI:
Author: はる
Description: オリジナルポートフォリオサイト
Version: 1.0
*/

/* ====================
   基本設定
==================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #333;
  background: #fff;

  font-family:
    "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  line-height: 1.8;
}

img {
  width: 100%;
  height: auto;
  display: block;
}

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

/* ====================
   ヘッダー
==================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 14px;
  letter-spacing: 0.15em;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  font-size: 13px;
  letter-spacing: 0.1em;
}

/* ====================
   メインビジュアル
==================== */

.mv {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 背景写真 */
.mv-image {
  inset: 0;
  width: 55%;
  height: 100%;
  z-index: 1;
}

.mv-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* 写真の上の文字 */
.mv-text {
  position: relative;
  z-index: 2;
  width: auto;
  text-align: center;
}

/* MY PORTFOLIO */
.mv-text p {
  margin: 0 0 25px;
  font-size: 13px;
  letter-spacing: 0.25em;
  color: #333;
}

/* タイトル */
.mv-text h1 {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  padding: 25px 35px;
  font-size: 64px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.08em;

  /* 半透明の白背景 */
  background: rgba(255, 255, 255, 0.78);
}

/* 1段目・2段目 */
.mv-text h1 span {
  display: block;
  white-space: nowrap;
}

/* ====================
   セクジョン　共通
==================== */

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 150px 30px;
}

.section-title {
  margin-bottom: 70px;
}

.section-title p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.3em;
}

.section-title h2 {
  margin: 10px 0 0;
  font-size: 36px;
  font-weight: 400;
}

/* ====================
   WORKS　デザインしたもの
==================== */

.works-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px 50px;
}

.work-card {
  display: flex;
  flex-direction: column;
}

.work-image {
  overflow: hidden;
}

.work-image img {
  transition: transform 0.5s ease;
}

.work-card:hover .work-image img {
  transform: scale(1.05);
}

.work-info {
  padding-top: 25px;
}

.category {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #777;
}

.work-info h3 {
  margin: 8px 0;
  font-size: 22px;
  font-weight: 400;
}

.work-info p {
  font-size: 14px;
}

.skill {
  font-size: 11px !important;
  letter-spacing: 0.05em;
  color: #777;
}

.more {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  border-bottom: 1px solid #333;
}

.button {
  display: block;
  width: 180px;
  margin: 80px auto 0;
  padding: 15px;
  text-align: center;
  border: 1px solid #333;
  font-size: 13px;
  transition: 0.3s;
}

.button:hover {
  background: #333;
  color: #fff;
}

/* ====================
   ABOUT　わたしのこと
==================== */

.about-inner {
  display: flex;
  align-items: center;
  gap: 100px;
}

.about-image {
  width: 30%;
}

.about-image img {
  border-radius: 50%;
}

.about-text {
  width: 55%;
}

.name {
  font-size: 28px;
}

.about-text p {
  font-size: 14px;
}

/* ====================
   GALLERY ギャラリー
==================== */

/* =========================
   GALLERY 横方向スクロール
========================= */

.gallery {
  overflow: hidden;
}

.gallery-row {
  width: 100%;
  overflow: hidden;
  margin-bottom: 24px;
}

.gallery-track {
  display: flex;
  width: max-content;
  gap: 24px;
  will-change: transform;
}

.gallery-row-left .gallery-track {
  animation: gallery-move-left 45s linear infinite;
}

.gallery-row-right .gallery-track {
  animation: gallery-move-right 45s linear infinite;
}

/* 作品画像の表示枠 */
.gallery-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 280px;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
  background: #f7f3fa;
}

/* アイキャッチ画像を全体表示 */
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

/* ホバー時も画像を拡大しない */
.gallery-item:hover img {
  transform: none;
}

@keyframes gallery-move-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes gallery-move-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

/* マウスを乗せると停止 */
.gallery-row:hover .gallery-track {
  animation-play-state: paused;
}

/* ====================
   ABOUTページ
==================== */
/* ====================
   メインビジュアル
==================== */

.about-mv {
  min-height: 60vh;
  padding: 180px 8% 100px;
  display: flex;
  align-items: center;
}

.about-mv-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 50px;
}

/* タイトル */

.about-title {
  position: relative;
}

.about-title h1 {
  position: relative;
  margin: 45px 0;
  font-size: clamp(48px, 7vw, 90px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.08em;
  z-index: 1;
}

/* 背景の ABOUT */

.about-title::before {
  content: "ABOUT";
  position: absolute;
  top: -65px;
  left: -5px;
  font-size: clamp(70px, 10vw, 130px);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #f3f3f3;
  white-space: nowrap;
  z-index: 0;
}

.about-decoration {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: #f5f1eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform: rotate(-8deg);
}

.about-decoration span {
  font-size: 20px;
  letter-spacing: 0.2em;
  line-height: 1.8;
}

/* ====================
   自己紹介
==================== */

.profile-inner {
  display: flex;
  align-items: center;
  gap: 100px;
}

/* 写真 */

.profile-image {
  width: 42%;
  position: relative;
}

.profile-image::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  right: -25px;
  bottom: -25px;
  border-radius: 50%;
  background: #f5f1eb;
  z-index: -1;
}

.profile-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
}

/* 文章 */

.profile-content {
  width: 58%;
}

.profile-en {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.15em;
}

.profile-content h2 {
  margin: 5px 0 30px;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.profile-content p:not(.profile-en) {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 2;
}

/* もっと知る */

.more-button {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  margin-top: 20px;
  padding-bottom: 5px;
  border-bottom: 1px solid #333;
  font-size: 12px;
  letter-spacing: 0.1em;
  transition: 0.3s;
}

.more-button span {
  font-size: 18px;
  transition: transform 0.3s;
}

.more-button:hover span {
  transform: translateX(5px);
}

/* ====================
   スキル
==================== */

.skills {
  max-width: 1200px;
}

/* 見出し */

.section-heading {
  margin-bottom: 80px;
}

.section-heading p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: #777;
}

.section-heading h2 {
  margin: 10px 0 0;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

/* ====================
   プログラム
==================== */

.skill-block {
  padding: 80px 0;
  border-top: 1px solid #eee;
}

.skill-block:last-child {
  border-bottom: 1px solid #eee;
}

/* 見出し */

.skill-heading {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 40px;
}

.skill-icon {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: #f5f1eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.skill-heading span {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: #888;
}

.skill-heading h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 400;
}

.skill-description {
  max-width: 750px;
  margin-left: 90px;
  margin-bottom: 50px;
}

.skill-description p {
  margin: 0 0 15px;
  font-size: 14px;
  line-height: 2;
}

/* ====================
   ツール
==================== */

.tools-grid {
  margin-left: 90px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tool-card {
  min-height: 150px;
  padding: 30px;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: 0.3s;
}

.tool-card:hover {
  transform: translateY(-5px);
  border-color: #333;
}

.tool-card h4 {
  margin: 0 0 15px;
  font-size: 18px;
  font-weight: 400;
}

.tool-card p {
  margin: 0;
  font-size: 12px;
  color: #777;
  line-height: 1.8;
}

/* ====================
   大切にしていること
==================== */

.strength {
  max-width: 1200px;
}

.strength-list {
  border-top: 1px solid #eee;
}

.strength-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 50px;
  padding: 70px 0;
  border-bottom: 1px solid #eee;
}

.strength-number {
  font-size: 50px;
  font-weight: 300;
  color: #ddd;
  line-height: 1;
}

.strength-content span {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.strength-content h3 {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.6;
}

.strength-content p {
  max-width: 700px;
  margin: 0;
  font-size: 14px;
  line-height: 2;
}

/* ====================
   WORKSページ
==================== */
/* ====================
   メインビジュアル
==================== */

.works-mv {
  min-height: 60vh;
  padding: 180px 8% 100px;
  display: flex;
  align-items: center;
}

.works-mv-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.works-title {
  position: relative;
}

.works-title h1 {
  position: relative;
  margin: 45px 0;
  font-size: clamp(45px, 7vw, 85px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.08em;
  z-index: 1;
}

/* 背景文字 */

.works-title::before {
  content: "WORKS";
  position: absolute;
  top: -65px;
  left: -5px;
  font-size: clamp(70px, 10vw, 130px);
  letter-spacing: 0.08em;
  color: #f3f3f3;
  white-space: nowrap;
  z-index: 0;
}

/* ====================
   DECORATION
==================== */

.works-decoration {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: #f5f1eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform: rotate(8deg);
}

.works-decoration span {
  font-size: 15px;
  letter-spacing: 0.15em;
  line-height: 2;
}

/* ====================
   WORKS CATEGORY
==================== */

.works-page {
  padding-top: 80px;
}

.works-category {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 80px;
}

.category-button {
  padding: 10px 25px;
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  color: #777;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: 0.3s;
}

.category-button:hover {
  color: #333;
}

.category-button.active {
  color: #333;
  border-bottom-color: #333;
}

/* ====================
   WORK LIST
==================== */

.works-page-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 90px 50px;
}

/* ====================
   WORK CARD
==================== */

.works-page-card {
  min-width: 0;
  animation: worksFade 0.4s ease;
}

@keyframes worksFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====================
   WORK IMAGE
==================== */

.works-page-image {
  overflow: hidden;
  background: #f5f5f5;
  aspect-ratio: 4 / 3;
}

.works-page-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.works-page-card:hover .works-page-image img {
  transform: scale(1.04);
}

/* ====================
   WORK INFO
==================== */

.works-page-info {
  padding-top: 25px;
}

.works-page-category {
  margin: 0 0 8px;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #888;
}

.works-page-info h2 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.5;
}

.works-page-info > p:last-child {
  margin: 0;
  font-size: 12px;
  color: #777;
  line-height: 1.7;
}

/* ====================
   WORKS 詳細ページ
==================== */

/* 作品全体 */
.single-work {
  padding-top: 140px;
  padding-bottom: 160px;
}

/* ====================
   作品タイトル
==================== */

.single-work-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 30px 70px;
}

.single-work-category {
  margin-bottom: 20px;
}

.single-work-category span {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #777;
}

.single-work-header h1 {
  margin: 0;
  font-size: 52px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

/* ====================
   メイン画像
==================== */

.single-work-main-image {
  width: min(1100px, calc(100% - 60px));
  margin: 0 auto 120px;
}

.single-work-main-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ====================
   作品本文
==================== */

.single-work-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 30px;
}

/* WordPress本文の基本設定 */

.single-work-content > * {
  margin-top: 0;
}

/* 見出し */

.single-work-content h2 {
  margin: 100px 0 30px;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.single-work-content h3 {
  margin: 70px 0 20px;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

/* 段落 */

.single-work-content p {
  margin: 0 0 25px;
  font-size: 14px;
  line-height: 2.2;
}

/* リスト */

.single-work-content ul,
.single-work-content ol {
  margin: 20px 0 30px;
  padding-left: 1.5em;
}

.single-work-content li {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 2;
}

/* 強調 */

.single-work-content strong {
  font-weight: 600;
}

/* ====================
   作品情報
==================== */

.single-work-content h2 + p {
  margin-bottom: 40px;
}

/* ====================
   作品画像
==================== */

.single-work-content img {
  width: 100%;
  height: auto;
  display: block;
  margin: 60px auto;
}

/* 画像キャプション */

.single-work-content figcaption {
  margin-top: -45px;
  margin-bottom: 60px;
  font-size: 11px;
  color: #888;
  text-align: center;
  letter-spacing: 0.05em;
}

/* ====================
   区切り線
==================== */

.single-work-content hr {
  margin: 100px 0;
  border: 0;
  border-top: 1px solid #eee;
}

/* ====================
   前後の作品
==================== */

.single-work-navigation {
  max-width: 1100px;
  margin: 150px auto 0;
  padding: 0 30px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;

  border-top: 1px solid #eee;
  padding-top: 60px;
}

/* 前後リンク */

.single-work-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;

  transition: opacity 0.3s ease;
}

.single-work-nav:hover {
  opacity: 0.6;
}

.single-work-nav span {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #888;
}

.single-work-nav strong {
  font-size: 14px;
  font-weight: 400;
}

/* 前 */

.single-work-prev {
  text-align: left;
}

/* 次 */

.single-work-next {
  text-align: right;
}

/* ====================
   WORKS一覧へ
==================== */

.single-work-back {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;

  min-width: 120px;

  transition: opacity 0.3s ease;
}

.single-work-back:hover {
  opacity: 0.6;
}

.single-work-back span {
  font-size: 12px;
  letter-spacing: 0.2em;
}

.single-work-back small {
  font-size: 10px;
  color: #888;
  letter-spacing: 0.1em;
}

.contact-page {
  width: 100%;
  padding-top: 180px;
  padding-bottom: 150px;
}

.contact-page-mv {
  width: 100%;
  min-height: 380px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 60px 30px;

  text-align: center;
}

.contact-page-title {
  width: 100%;
  text-align: center;
}

.contact-page-title p {
  margin: 0 0 15px;

  font-size: 12px;
  letter-spacing: 0.3em;
  color: #777;
}

.contact-page-title h1 {
  margin: 0;

  font-size: 52px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

/* お問い合わせ本文 */

.contact-page-content {
  width: 700px;
  max-width: calc(100% - 60px);

  margin: 0 auto;
}

/* 説明文 */

.contact-page-intro {
  margin-bottom: 70px;

  text-align: center;
}

.contact-page-intro p {
  margin: 0 0 12px;

  font-size: 14px;
  line-height: 2.2;
}

/* フォーム */

.contact-form-wrapper {
  width: 100%;
}

.contact-form {
  width: 100%;
}

.contact-form-item {
  width: 100%;
  margin-bottom: 40px;
}

/* ラベル */

.contact-form-item label {
  display: block;

  margin-bottom: 12px;

  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.contact-form-item label span {
  margin-left: 8px;

  font-size: 10px;
  color: #888;
}

/* 入力欄 */

.contact-form-item input[type="text"],
.contact-form-item input[type="email"],
.contact-form-item select,
.contact-form-item textarea {
  display: block;

  width: 100%;
  height: auto;

  padding: 15px 16px;

  border: 1px solid #ddd;
  border-radius: 0;

  background: #fff;

  color: #333;

  font-family: inherit;
  font-size: 14px;
  line-height: 1.8;

  box-sizing: border-box;

  outline: none;
}

.contact-form-item input[type="text"]:focus,
.contact-form-item input[type="email"]:focus,
.contact-form-item select:focus,
.contact-form-item textarea:focus {
  border-color: #333;
}

/* お問い合わせ内容 */

.contact-form-item select {
  height: 52px;

  appearance: none;
  -webkit-appearance: none;

  padding-right: 45px;

  background-color: #fff;

  background-image:
    linear-gradient(45deg, transparent 50%, #555 50%),
    linear-gradient(135deg, #555 50%, transparent 50%);

  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 15px) 50%;

  background-size:
    5px 5px,
    5px 5px;

  background-repeat: no-repeat;

  cursor: pointer;
}

/* メッセージ */

.contact-form-item textarea {
  min-height: 220px;

  resize: vertical;
}

/* 送信ボタン */

.contact-form-submit {
  margin-top: 60px;

  text-align: center;
}

.contact-form-submit input[type="submit"] {
  display: inline-block;

  width: 220px;

  padding: 16px 20px;

  border: 1px solid #333;
  border-radius: 0;

  background: #333;
  color: #fff;

  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;

  cursor: pointer;

  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.contact-form-submit input[type="submit"]:hover {
  background: #fff;
  color: #333;
}

/* エラー */

.contact-form .wpcf7-not-valid-tip {
  display: block;

  margin-top: 8px;

  font-size: 11px;
  color: #777;
}

.contact-form .wpcf7-response-output {
  margin: 40px 0 0;
  padding: 20px;

  border: 1px solid #ddd;

  font-size: 13px;
  line-height: 1.8;
}

/* ====================
   Privacy Policy Modal
==================== */

.privacy-open {
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.privacy-open:hover {
  opacity: 0.6;
}

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

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

.privacy-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.privacy-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 60px 70px;
  background: #fff;
  transform: translateY(15px);
  transition: transform 0.3s ease;
  outline: none;
}

.privacy-modal.is-open .privacy-dialog {
  transform: translateY(0);
}

.privacy-close {
  position: absolute;
  top: 15px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 30px;
  font-weight: 300;
  cursor: pointer;
}

.privacy-en {
  margin: 0 0 10px;
  color: #888;
  font-size: 11px;
  letter-spacing: 0.25em;
}

.privacy-dialog h2 {
  margin: 0 0 35px;
  font-size: 28px;
  font-weight: 400;
}

.privacy-content h3 {
  margin: 30px 0 10px;
  font-size: 15px;
  font-weight: 500;
}

.privacy-content p {
  margin: 0;
  font-size: 13px;
  line-height: 2;
}

.privacy-date {
  margin-top: 35px !important;
  text-align: right;
  color: #777;
}

.privacy-close-button {
  display: block;
  width: 160px;
  margin: 40px auto 0;
  padding: 12px;
  border: 1px solid #333;
  background: #333;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: 0.3s;
}

.privacy-close-button:hover {
  background: #fff;
  color: #333;
}

/* ====================
   Hamburger Menu
==================== */

/* ハンバーガーはPCでは非表示 */
.hamburger {
  display: none;
}

/* SPメニュー */
.sp-menu {
  display: none;
}

.sp-menu-overlay {
  display: none;
}

/* ====================
   CONTACT
==================== */

.contact {
  text-align: center;
  max-width: 800px;
}

.contact-en {
  font-size: 12px;
  letter-spacing: 0.3em;
}

.contact h2 {
  margin: 30px 0;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.6;
}

.contact-button {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 60px;
  border: 1px solid #333;
  font-size: 13px;
}

/* ====================
   FOOTER
==================== */

.footer {
  padding: 50px 30px;
  text-align: center;
  border-top: 1px solid #eee;
}

.footer nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.footer nav a {
  font-size: 12px;
}

.footer p {
  font-size: 11px;
  color: #888;
}

/* ====================
   DOG CHARACTER
==================== */

.dog-character {
  position: fixed;
  right: 55px;
  bottom: 20px;
  width: 120px;
  z-index: 999;
}

/* 犬のボタン */

.dog-character button {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

/* 犬の画像 */

.dog-character img {
  width: 150px;
  height: auto;
  display: block;
  transition: transform 0.2s ease;
}

/* マウスを乗せたとき */

.dog-character button:hover img {
  transform: translateY(-5px);
}

/* ====================
   404 PAGE
==================== */

.error-page {
  min-height: 80vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 160px 30px 120px;
}

.error-content {
  width: 100%;
  max-width: 800px;

  text-align: center;
}

/* 404 */

.error-number {
  margin: 0 0 25px;

  font-size: 100px;
  font-weight: 300;
  line-height: 1;

  letter-spacing: 0.08em;
  color: #333;
}

/* タイトル */

.error-content h1 {
  margin: 0 0 30px;

  font-size: 28px;
  font-weight: 400;
  line-height: 1.6;
}

/* 説明 */

.error-text {
  margin: 0;

  font-size: 14px;
  line-height: 2.2;
  color: #666;
}

/* TOPへ戻る */

.error-button {
  display: block;

  width: 180px;

  margin: 60px auto 0;
  padding: 15px;

  border: 1px solid #333;

  text-align: center;

  font-size: 13px;
  letter-spacing: 0.08em;

  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.error-button:hover {
  background-color: #333;
  color: #fff;
}

/* プライバシーポリシーの同意欄 */
.privacy-consent {
  margin-top: 30px;
  text-align: center;
}

.wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

.wpcf7-acceptance label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.8;
  cursor: pointer;
}

.wpcf7-acceptance input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: #333;
}

.wpcf7-acceptance .privacy-open {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  color: #333;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* =========================
   作品詳細：Webサイトプレビュー
========================= */

.website-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto 100px;
  padding: 0 20px;
}

.website-preview-item h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 400;
  text-align: center;
}

.website-preview-frame {
  height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #ddd;
  background: #fff;
}

.website-preview-frame img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

/* スマートフォン用プレビュー */
.website-preview-item--sp .website-preview-frame {
  height: 560px;
  max-width: 280px;
  margin: 0 auto;
}

/* バナー作品 */
.single-work-banner {
  max-width: 1000px;
  margin: 40px auto 100px;
  padding: 0 20px;
}

.single-work-banner img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

/* 作品一覧の画像 */
.work-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
/* 作品一覧の画像エリア */
.works-page-image {
  width: 100%;
  height: 240px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: #fff;
}

/* 作品一覧の画像全体を表示 */
.works-page-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.works-pagination a {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid #333;
  border-radius: 30px;
  color: #333;
  text-decoration: none;
  transition:
    background-color 0.3s,
    color 0.3s;
}

.works-pagination a:hover {
  background-color: #333;
  color: #fff;
}

.works-pagination span {
  color: #777;
  font-size: 14px;
}

.works-pagination {
  grid-column: 1 / -1; /* 追加：2列分の幅を使う */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  width: 100%;
  margin: 40px auto 0;
}

/* =========================
   WORK DETAIL：作品詳細ページ
========================= */

/* ページ全体 */
.work-detail {
  padding-top: 100px;
  padding-bottom: 100px;
  color: #333;
}

/* タイトル・カテゴリー・説明文 */
.work-detail-header {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 50px;
  text-align: center;
}

/* カテゴリー */
.work-detail-category {
  margin: 0 0 18px;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: #888;
}

/* タイトル */
.work-detail-header h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-align: center;
}

/* タイトル下の説明文 */
.work-detail-lead {
  margin: 20px auto 0;
  font-size: 14px;
  line-height: 2;
  text-align: center;
}

/* タイトル下の区切り線 */
.work-detail-header::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  margin: 40px auto 0;
  background: #ccc;
}

/* =========================
   メイン画像
========================= */

.work-detail-main {
  width: calc(100% - 40px);
  max-width: 1000px;
  margin: 0 auto 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 作品全体が画面内に収まるようにする */
.work-detail-main .work-detail-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  margin: 0 auto;
}

/* =========================
   ABOUT・DESIGN
========================= */

/* 作品情報全体 */
.work-detail-information {
  width: min(800px, calc(100% - 40px));
  margin: 0 auto;
}

/* ABOUT・DESIGNの見出し */
.work-detail-section > h2 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-align: center;
  margin-bottom: 48px;
}

/* 概要・ターゲット・課題などの各項目 */
.work-detail-body h2,
.work-detail-body h3 {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.6;
  text-align: left;
  margin: 0 0 16px;
}

/* 各項目の区切り線 */
.work-detail-body h2,
.work-detail-body h3 {
  padding-bottom: 12px;
  border-bottom: 1px solid #d8d8d8;
}

/* 説明文 */
.work-detail-body p {
  font-size: 15px;
  line-height: 2.1;
  margin: 0 0 28px;
  text-align: left;
}

/* 各項目の間隔 */
.work-detail-body h2:not(:first-child),
.work-detail-body h3:not(:first-child) {
  margin-top: 40px;
}

/* 箇条書き */
.work-detail-body ul,
.work-detail-body ol {
  padding-left: 1.5em;
  margin-bottom: 28px;
  line-height: 2;
  text-align: left;
}

/* 本文中の画像 */
.work-detail-body img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 70vh;
  height: auto;
  object-fit: contain;
  margin: 30px auto;
}

/* DESIGN内の作品画像 */
.work-detail-artwork > .work-detail-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 70vh;
  height: auto;
  object-fit: contain;
  margin: 30px auto 0;
}
/* 作品情報の本文 */
.work-detail-body {
  font-size: 15px;
  line-height: 2.1;
  text-align: left;
}

/* 見出しタグ */
.work-detail-body h2,
.work-detail-body h3 {
  font-size: 24px !important;
  font-weight: 500;
  line-height: 1.6;
  margin: 40px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ccc;
  text-align: left;
}

/* 段落 */
.work-detail-body p {
  font-size: 15px;
  line-height: 2.1;
  margin: 0 0 24px;
  text-align: left;
}

/* =========================
   作品一覧へ戻る
========================= */

.work-detail-navigation {
  display: flex;
  justify-content: center;
  margin: 100px auto;
  padding: 35px 20px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.work-detail-navigation a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: opacity 0.3s ease;
}

.work-detail-navigation a:hover {
  opacity: 0.6;
}

.work-detail-navigation a span:first-child {
  font-size: 11px;
  letter-spacing: 0.25em;
}

.work-detail-navigation a span:last-child {
  font-size: 13px;
}

.work-detail-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.gallery-images {
  flex: 1;
  min-width: 0;
}

.gallery-images .work-detail-image {
  display: none;
  width: 100%;
  height: auto;
}

.gallery-prev,
.gallery-next {
  cursor: pointer;
  border: none;
  background: transparent;
  font-size: 28px;
}

/* =========================
   作品詳細：メイン画像スライダー
========================= */

.work-gallery {
  width: 100%;
}

.work-gallery-main {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
}

.work-gallery-main > .work-detail-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* 矢印とページカウント全体 */
.work-gallery-controls {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;

  display: grid;
  grid-template-columns: 36px auto 36px;
  align-items: center;
  justify-items: center;
  gap: 12px;

  width: max-content;
}

/* 左右の矢印 */
.work-gallery-arrow {
  position: static;
  transform: none;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;
  padding: 0;

  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #333;

  font-size: 22px;
  line-height: 1;
  cursor: pointer;

  transition:
    background 0.3s,
    color 0.3s;
}

.work-gallery-prev {
  left: 16px;
}

.work-gallery-next {
  right: 16px;
}

.work-gallery-arrow:hover {
  background: #333;
  color: #fff;
}

/* ページカウント */
.work-gallery-count {
  position: static;
  transform: none;

  margin: 0;
  padding: 6px 12px;

  border-radius: 20px;
  background: #f3f3f3;
  color: #333;

  font-size: 13px;
  white-space: nowrap;
}

.work-artwork-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  align-items: start;
}

.work-artwork-list img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ===== PC用LP：レイアウトを統一 ===== */
.work-lp .lp-preview-area,
.work-lp .lp-device-pc,
.work-lp .lp-device-pc *,
.work-lp .lp-modal,
.work-lp .lp-modal * {
  box-sizing: border-box;
}

.work-lp .lp-preview-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 40px auto 80px;
  padding: 0 20px;
}

.work-lp .lp-device-pc {
  position: relative;
  display: block;
  flex: none;
  width: min(1000px, 90vw);
  height: min(700px, 75vh);
  min-height: 400px;
  margin: 0 auto;
  padding: 24px;
  overflow: hidden;
  border: 12px solid #ddd;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  appearance: none;
  -webkit-appearance: none;
  cursor: zoom-in;
}

.work-lp .lp-device-pc .lp-device-screen {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}

.work-lp .lp-device-pc .lp-page-image {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: initial;
}

.work-lp .lp-device-pc .lp-device-camera {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #aaa;
  transform: translateX(-50%);
}

.work-lp .lp-device-pc .lp-device-home {
  display: none;
}

/* DESIGN画像 */
.work-lp .lp-design-image {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 20px auto 48px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.work-lp .lp-design-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
}

/* ポップアップ */
.work-lp .lp-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 24px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.85);
}

.work-lp .lp-modal.is-open {
  display: flex;
}

.work-lp .lp-modal-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.work-lp .lp-modal-content > .lp-device-pc {
  flex: none;
  width: min(1100px, 92vw);
  height: 85vh;
  min-height: 300px;
  margin: 0;
}

.work-lp .lp-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #333;
  font-size: 32px;
  cursor: pointer;
}

/* 切り替えボタン */
.work-lp .lp-preview-tabs,
.work-lp .lp-page-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 24px auto;
}

.work-lp .lp-preview-tabs button,
.work-lp .lp-page-tabs button {
  padding: 10px 24px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  color: #333;
  cursor: pointer;
}

.work-lp .lp-preview-tabs button.is-active,
.work-lp .lp-page-tabs button.is-active {
  background: #333;
  color: #fff;
  border-color: #333;
}

/* PC・SPのパネル切り替え */
.work-lp .lp-device-panel {
  display: none;
}

.work-lp .lp-device-panel.is-active {
  display: block;
}

.work-lp .lp-device-panel[hidden] {
  display: none !important;
}

/* SPのページ切り替え */
.work-lp .lp-sp-page {
  display: none;
}

.work-lp .lp-sp-page.is-active {
  display: block;
}

.work-lp .lp-sp-page[hidden] {
  display: none !important;
}

/* スマホ本体 */
.work-lp .lp-device-sp {
  position: relative;
  display: block;
  width: min(320px, 85vw);
  height: 620px;
  margin: 24px auto;
  padding: 14px;
  box-sizing: border-box;
  overflow: hidden;
  border: 8px solid #333;
  border-radius: 34px;
  background: #333;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  appearance: none;
  -webkit-appearance: none;
  cursor: zoom-in;
}

/* スマホ画面内だけスクロール */
.work-lp .lp-device-sp .lp-device-screen {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px;
  background: #fff;
}

/* スマホ内のLP画像 */
.work-lp .lp-device-sp .lp-page-image {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
}

/* スマホ上部のカメラ */
.work-lp .lp-device-sp .lp-device-camera {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 48px;
  height: 5px;
  border-radius: 10px;
  background: #111;
  transform: translateX(-50%);
  z-index: 2;
}

/* 画像全体を表示するモーダル */
.work-lp .lp-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.88);
}

.work-lp .lp-modal.is-open {
  display: flex;
}

.work-lp .lp-modal-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

.work-lp .lp-modal-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  margin: auto;
}

.work-lp .lp-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 100001;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #333;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
}

/* MOVIEプレビュー */
.lp-movie-panel {
  width: 100%;
  margin: 0 auto;
}

.lp-movie-panel[hidden],
.lp-movie-page[hidden] {
  display: none !important;
}

.lp-movie-page {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.lp-movie-video {
  display: block;
  width: 100%;
  max-height: 75vh;
  margin: 0 auto;
  background: #000;
  border-radius: 12px;
  object-fit: contain;
}

.lp-movie-panel .lp-page-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.lp-movie-video {
  -webkit-user-drag: none;
  user-select: none;
}

/* =========================
   ランダムに動く背景図形
========================= */

body {
  position: relative;
  isolation: isolate;
}

/* 背景図形の入れ物 */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* 各図形 */
.bg-blob {
  position: absolute;
  display: block;
  opacity: 0.18;
  filter: blur(2px);
  will-change: transform, border-radius;
  animation: blob-wave var(--duration, 24s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
}

/* ゆっくり形を変えながら動く */
@keyframes blob-wave {
  0% {
    border-radius: 65% 35% 42% 58% / 38% 60% 40% 62%;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  33% {
    border-radius: 40% 60% 55% 45% / 55% 45% 55% 45%;
    transform: translate3d(18px, -20px, 0) rotate(12deg) scale(1.06);
  }

  66% {
    border-radius: 58% 42% 36% 64% / 47% 38% 62% 53%;
    transform: translate3d(-12px, 15px, 0) rotate(-8deg) scale(0.96);
  }

  100% {
    border-radius: 45% 55% 60% 40% / 60% 40% 60% 40%;
    transform: translate3d(10px, 5px, 0) rotate(6deg) scale(1.03);
  }
}

/* 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  .bg-blob {
    animation: none;
  }
}

/* ====================
   スマートフォン
==================== */

@media (max-width: 900px) {
  .about-mv {
    padding: 160px 6% 100px;
  }

  .about-mv-inner {
    gap: 40px;
  }

  .about-decoration {
    width: 180px;
    height: 180px;
  }

  .about-decoration span {
    font-size: 16px;
  }

  .profile-inner {
    gap: 60px;
  }

  .skill-description,
  .tools-grid {
    margin-left: 0;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* --------------------
     Header
  -------------------- */

  .header-inner {
    padding: 18px 20px;
  }

  .nav {
    display: none;
  }
  .hamburger {
    position: relative;
    display: flex;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    cursor: pointer;
    z-index: 1002;
  }

  .hamburger span {
    display: block;
    width: 25px;
    height: 1px;
    background: #333;
    transition:
      transform 0.3s ease,
      opacity 0.3s ease,
      width 0.3s ease;
  }

  /* --------------------
     ハンバーガー
     → ×
  -------------------- */

  .hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.is-open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* --------------------
     背景
  -------------------- */

  .sp-menu-overlay {
    position: fixed;
    inset: 0;
    display: block;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease;
    z-index: 1000;
  }

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

  /* --------------------
     メニュー本体
  -------------------- */

  .sp-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(82%, 380px);
    height: 100vh;
    display: block;
    padding: 90px 35px 50px;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 1001;
    overflow-y: auto;
  }

  .sp-menu.is-open {
    transform: translateX(0);
  }

  /* --------------------
     閉じるボタン
  -------------------- */

  .sp-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  .sp-menu-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 25px;
    height: 1px;
    background: #333;
  }

  .sp-menu-close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .sp-menu-close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  /* --------------------
     メニュー内容
  -------------------- */

  .sp-menu-inner {
    width: 100%;
  }

  .sp-menu-en {
    margin: 0 0 40px;
    font-size: 11px;
    letter-spacing: 0.3em;
    color: #888;
  }

  .sp-menu-list {
    display: flex;
    flex-direction: column;
  }

  .sp-menu-list a {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.08em;
  }

  .sp-menu-list a:first-child {
    border-top: 1px solid #eee;
  }

  .sp-menu-list a span {
    width: 25px;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: #999;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 15px 20px;
  }
  .nav {
    gap: 15px;
  }
  .nav a {
    font-size: 10px;
  }

  .mv {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    padding: 130px 20px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
  }
  .mv-text {
    text-align: center;
    order: 1;
  }
  .mv-text p {
    margin-bottom: 15px;
    font-size: 11px;
  }
  .mv-text h1 {
    margin: 0 auto;
    padding: 20px 25px;
    font-size: 42px;
    line-height: 1.4;
    letter-spacing: 0.06em;
  }
  .mv-image {
    order: 2;
    width: 100%;
    max-width: 600px;
  }
  .mv-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }

  .section {
    padding: 100px 20px;
  }
  .section-title {
    margin-bottom: 50px;
  }
  .section-title p {
    font-size: 11px;
  }
  .section-title h2 {
    font-size: 28px;
  }

  .works-list {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .work-info {
    padding-top: 18px;
  }
  .work-info h3 {
    font-size: 20px;
  }
  .work-info p {
    font-size: 13px;
  }
  .button {
    width: 160px;
    margin-top: 60px;
  }

  .about-inner {
    flex-direction: column;
    gap: 50px;
  }
  .about-image {
    max-width: 500px;
    margin: 0 auto;
  }

  .about-mv {
    min-height: auto;
    padding: 130px 20px 80px;
  }
  .about-mv-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 60px;
  }
  .about-title h1 {
    margin: 35px 0;
    font-size: 48px;
  }
  .about-title::before {
    top: -40px;
    left: -3px;
    font-size: 70px;
  }
  .about-decoration {
    width: 150px;
    height: 150px;
    align-self: flex-end;
  }
  .about-decoration span {
    font-size: 13px;
  }
  .profile-inner {
    flex-direction: column;
    gap: 60px;
  }
  .profile-image {
    max-width: 450px;
    margin: 0 auto;
  }
  .profile-content h2 {
    font-size: 24px;
  }
  .profile-content p:not(.profile-en) {
    font-size: 13px;
  }
  .section-heading {
    margin-bottom: 60px;
  }
  .section-heading h2 {
    font-size: 30px;
  }
  .skill-block {
    padding: 60px 0;
  }
  .skill-heading {
    gap: 15px;
    margin-bottom: 30px;
  }
  .skill-icon {
    width: 55px;
    height: 55px;
    font-size: 18px;
  }
  .skill-heading h3 {
    font-size: 22px;
  }
  .skill-description {
    margin-left: 0;
    margin-bottom: 40px;
  }
  .skill-description p {
    font-size: 13px;
  }
  .tools-grid {
    margin-left: 0;
    grid-template-columns: 1fr;
  }
  .tool-card {
    min-height: 130px;
    padding: 25px;
  }
  .strength-item {
    grid-template-columns: 50px 1fr;
    gap: 15px;
    padding: 50px 0;
  }
  .strength-number {
    font-size: 28px;
  }
  .strength-content span {
    font-size: 16px;
  }
  .strength-content h3 {
    font-size: 18px;
  }
  .strength-content p {
    font-size: 13px;
  }

  .works-mv {
    min-height: auto;
    padding: 130px 20px 80px;
  }
  .works-mv-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 60px;
  }
  .works-title h1 {
    margin: 35px 0;
    font-size: 45px;
  }
  .works-title::before {
    top: -40px;
    left: -3px;
    font-size: 70px;
  }
  .works-decoration {
    width: 150px;
    height: 150px;
    align-self: flex-end;
  }
  .works-decoration span {
    font-size: 11px;
  }
  .works-page {
    padding-top: 60px;
  }
  .works-category {
    justify-content: flex-start;
    gap: 5px 15px;
    margin-bottom: 60px;
  }
  .category-button {
    padding: 8px 5px;
    font-size: 11px;
  }
  .works-page-list {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .works-page-info {
    padding-top: 18px;
  }
  .works-page-info h2 {
    font-size: 20px;
  }

  .single-work {
    padding-top: 100px;
    padding-bottom: 100px;
  }
  .single-work-header {
    padding: 60px 20px 45px;
  }
  .single-work-category {
    margin-bottom: 15px;
  }
  .single-work-header h1 {
    font-size: 34px;
    line-height: 1.5;
  }
  .single-work-main-image {
    width: calc(100% - 40px);
    margin-bottom: 80px;
  }
  .single-work-content {
    padding: 0 20px;
  }
  .single-work-content h2 {
    margin: 70px 0 25px;
    font-size: 24px;
  }
  .single-work-content h3 {
    margin: 50px 0 20px;
    font-size: 19px;
  }
  .single-work-content p {
    font-size: 13px;
    line-height: 2;
  }
  .single-work-content li {
    font-size: 13px;
  }
  .single-work-content img {
    margin: 45px auto;
  }
  .single-work-navigation {
    margin-top: 100px;
    padding: 45px 20px 0;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .single-work-back {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 20px;
  }
  .single-work-prev {
    grid-column: 1;
    grid-row: 2;
  }
  .single-work-next {
    grid-column: 2;
    grid-row: 2;
  }

  .contact-page {
    padding-top: 120px;
    padding-bottom: 100px;
  }
  .contact-page-mv {
    min-height: 280px;
    padding: 50px 20px;
  }
  .contact-page-title p {
    font-size: 11px;
  }
  .contact-page-title h1 {
    font-size: 38px;
  }
  .contact-page-content {
    width: 100%;
    max-width: calc(100% - 40px);
  }
  .contact-page-intro {
    margin-bottom: 50px;
  }
  .contact-page-intro p {
    font-size: 13px;
    line-height: 2;
  }
  .contact-form-item {
    margin-bottom: 30px;
  }
  .contact-form-item label {
    font-size: 12px;
  }
  .contact-form-item select {
    height: 50px;
  }
  .contact-form-item textarea {
    min-height: 200px;
  }
  .contact-form-submit {
    margin-top: 45px;
  }
  .contact-form-submit input[type="submit"] {
    width: 200px;
    padding: 15px 20px;
  }

  .contact {
    padding: 100px 20px;
  }
  .contact-en {
    font-size: 11px;
  }
  .contact h2 {
    margin: 25px 0;
    font-size: 30px;
  }
  .contact p {
    font-size: 13px;
  }
  .contact-button {
    margin-top: 25px;
    padding: 14px 50px;
  }

  .error-page {
    min-height: 75vh;
    padding: 130px 20px 100px;
  }
  .error-number {
    font-size: 72px;
  }
  .error-content h1 {
    font-size: 22px;
  }
  .error-text {
    font-size: 13px;
  }
  .error-text br {
    display: none;
  }
  .error-button {
    width: 160px;
    margin-top: 45px;
  }

  .footer {
    padding: 40px 20px;
  }
  .footer nav {
    gap: 20px;
    margin-bottom: 25px;
  }
  .footer nav a {
    font-size: 11px;
  }
  .footer p {
    font-size: 10px;
  }

  .dog-character {
    width: 100px;
    right: 15px;
    bottom: 15px;
  }
  .dog-character img {
    width: 125px;
  }

  .mv-text,
  .mv-image {
    width: 100%;
  }
  .about-image,
  .about-text {
    width: 100%;
  }
  .profile-image,
  .profile-content {
    width: 100%;
  }
  .contact-form-item input[type="text"],
  .contact-form-item input[type="email"],
  .contact-form-item select,
  .contact-form-item textarea {
    padding: 13px 14px;
    font-size: 13px;
  }

  .website-preview {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 70px;
    padding: 0 16px;
  }

  .website-preview-frame {
    height: 450px;
  }

  .website-preview-item--sp .website-preview-frame {
    height: 500px;
  }

  .single-work-banner {
    margin: 24px auto 70px;
    padding: 0 16px;
  }
  .work-detail-information {
    width: calc(100% - 40px);
  }

  .work-detail-section {
    margin-bottom: 70px;
  }

  .work-detail-section > h2 {
    font-size: 23px;
  }

  .work-detail-body h2,
  .work-detail-body h3 {
    font-size: 19px;
  }

  .work-detail-body p {
    font-size: 14px;
  }

  .work-detail-body {
    font-size: 14px;
    line-height: 2;
  }

  .work-detail-body img,
  .work-detail-artwork > .work-detail-image {
    max-height: 60vh;
  }
  .work-artwork-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .work-lp-main {
    margin-bottom: 48px;
  }

  .work-lp-zoom {
    right: 8px;
    bottom: 8px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .work-lp-gallery {
    gap: 12px;
    margin-bottom: 36px;
  }

  .work-lp-gallery-pc .work-lp-thumb {
    flex: 1 1 0;
  }

  .work-lp-gallery-sp .work-lp-thumb {
    width: calc((100% - 24px) / 3);
  }

  .work-lp-modal {
    padding: 12px;
  }

  .work-lp-modal-image {
    max-width: 100%;
  }

  .work-lp-modal-close {
    top: 8px;
    right: 8px;
  }

  .work-lp .lp-preview-area {
    padding: 24px 16px;
  }

  .work-lp .lp-sp-gallery {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .work-lp .lp-sp-gallery .lp-design-image {
    max-width: 320px;
  }
  .gallery-row {
    margin-bottom: 16px;
  }

  .gallery-track {
    gap: 14px;
  }

  .gallery-item {
    width: 210px;
    height: 150px;
  }

  .gallery-row-left .gallery-track,
  .gallery-row-right .gallery-track {
    animation-duration: 35s;
  }
}

/* 動きを減らす設定への配慮 */
@media (prefers-reduced-motion: reduce) {
  .gallery-track {
    animation: none;
    transform: none;
  }
}

@media (max-width: 480px) {
  /* ====================
     ヘッダー
  ==================== */

  .header-inner {
    padding: 15px 20px;
  }

  .nav {
    gap: 10px;
  }

  .nav a {
    font-size: 10px;
  }

  /* ====================
     メインビジュアル
  ==================== */

  .mv {
    padding-top: 120px;
    padding-bottom: 50px;
    gap: 30px;
  }

  .mv-text p {
    font-size: 10px;
  }

  .mv-text h1 {
    padding: 18px 20px;
    font-size: 34px;
  }

  .mv-image {
    max-width: 100%;
  }

  /* ====================
     セクション
  ==================== */

  .section {
    padding: 90px 20px;
  }

  .section-title {
    margin-bottom: 45px;
  }

  .section-title h2 {
    font-size: 26px;
  }

  /* ====================
     WORKS
  ==================== */

  .works-list {
    gap: 50px;
  }

  .work-info h3 {
    font-size: 19px;
  }

  /* ====================
     GALLERY
  ==================== */

  /* ====================
     ABOUTページ
  ==================== */

  .about-mv {
    padding-top: 120px;
    padding-bottom: 70px;
  }

  .about-mv-inner {
    gap: 50px;
  }

  .about-title h1 {
    font-size: 40px;
  }

  .about-title::before {
    top: -30px;
    font-size: 55px;
  }

  .about-decoration {
    width: 120px;
    height: 120px;
  }

  .about-decoration span {
    font-size: 11px;
  }

  /* ====================
     PROFILE
  ==================== */

  .profile-inner {
    gap: 50px;
  }

  .profile-content h2 {
    font-size: 23px;
  }

  /* ====================
     SKILLS
  ==================== */

  .section-heading h2 {
    font-size: 28px;
  }

  .skill-block {
    padding: 50px 0;
  }

  .skill-heading {
    gap: 12px;
  }

  .skill-icon {
    width: 50px;
    height: 50px;
  }

  .skill-heading h3 {
    font-size: 20px;
  }

  .skill-description p {
    font-size: 13px;
  }

  /* ====================
     STRENGTH
  ==================== */

  .strength-item {
    grid-template-columns: 45px 1fr;
    gap: 15px;
    padding: 45px 0;
  }

  .strength-number {
    font-size: 26px;
  }

  .strength-content span {
    font-size: 15px;
  }

  .strength-content h3 {
    font-size: 18px;
  }

  .strength-content p {
    font-size: 13px;
  }

  /* ====================
     WORKSページ
  ==================== */

  .works-mv {
    padding-top: 120px;
    padding-bottom: 70px;
  }

  .works-mv-inner {
    gap: 50px;
  }

  .works-title h1 {
    font-size: 38px;
  }

  .works-title::before {
    top: -30px;
    font-size: 55px;
  }

  .works-decoration {
    width: 120px;
    height: 120px;
  }

  .works-decoration span {
    font-size: 10px;
  }

  /* ====================
     WORKS CATEGORY
  ==================== */

  .works-page {
    padding-top: 50px;
  }

  .works-category {
    gap: 5px 12px;
    margin-bottom: 50px;
  }

  .category-button {
    padding: 7px 4px;
    font-size: 10px;
  }

  /* ====================
     WORKS LIST
  ==================== */

  .works-page-list {
    gap: 50px;
  }

  .works-page-info {
    padding-top: 15px;
  }

  .works-page-info h2 {
    font-size: 18px;
  }

  .works-page-info > p:last-child {
    font-size: 11px;
  }

  /* ====================
     WORKS 詳細ページ
  ==================== */

  .single-work {
    padding-top: 90px;
    padding-bottom: 80px;
  }

  .single-work-header {
    padding: 50px 20px 35px;
  }

  .single-work-header h1 {
    font-size: 30px;
  }

  .single-work-main-image {
    width: calc(100% - 40px);
    margin-bottom: 60px;
  }

  .single-work-content {
    padding: 0 20px;
  }

  .single-work-content h2 {
    margin: 60px 0 20px;
    font-size: 22px;
  }

  .single-work-content h3 {
    margin: 45px 0 15px;
    font-size: 18px;
  }

  .single-work-content p {
    font-size: 13px;
    line-height: 2;
  }

  .single-work-content img {
    margin: 40px auto;
  }

  .single-work-navigation {
    margin-top: 80px;
    padding: 40px 20px 0;
    gap: 20px;
  }

  /* ====================
     CONTACTページ
  ==================== */

  .contact-page {
    padding-top: 100px;
    padding-bottom: 80px;
  }

  .contact-page-mv {
    min-height: 230px;
    padding: 40px 20px;
  }

  .contact-page-title p {
    font-size: 10px;
  }

  .contact-page-title h1 {
    font-size: 32px;
  }

  .contact-page-content {
    max-width: calc(100% - 40px);
  }

  .contact-page-intro {
    margin-bottom: 40px;
  }

  .contact-page-intro p {
    font-size: 12px;
  }

  .contact-form-item {
    margin-bottom: 25px;
  }

  .contact-form-item label {
    font-size: 11px;
  }

  .contact-form-item input[type="text"],
  .contact-form-item input[type="email"],
  .contact-form-item select,
  .contact-form-item textarea {
    padding: 12px;
    font-size: 13px;
  }

  .contact-form-item textarea {
    min-height: 180px;
  }

  .contact-form-submit {
    margin-top: 40px;
  }

  .contact-form-submit input[type="submit"] {
    width: 180px;
    padding: 14px 15px;
    font-size: 12px;
  }

  /* ====================
     TOP CONTACT
  ==================== */

  .contact {
    padding: 90px 20px;
  }

  .contact h2 {
    font-size: 28px;
  }

  .contact-button {
    padding: 14px 45px;
  }

  /* ====================
     DOG
  ==================== */

  .dog-character {
    width: 85px;
    right: 10px;
    bottom: 10px;
  }

  .dog-character img {
    width: 110px;
  }

  /* ====================
     404
  ==================== */

  .error-page {
    padding: 120px 20px 90px;
  }

  .error-number {
    font-size: 65px;
  }

  .error-content h1 {
    font-size: 20px;
  }

  .error-text {
    font-size: 12px;
  }

  .error-button {
    width: 150px;
    margin-top: 40px;
  }


/* ====================
   FOOTER（スマホ）
==================== */

.footer {
  padding: 35px 85px 35px 15px;
  position: relative;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 12px 16px;
}

.footer nav a {
  display: block;
  max-width: 100%;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
  overflow-wrap: break-word;
}

.footer p {
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.privacy-modal {
  padding: 15px;
}

.privacy-dialog {
  max-height: 88vh;
  padding: 50px 25px 30px;
}

.privacy-dialog h2 {
  font-size: 23px;
}

.privacy-content h3 {
  font-size: 14px;
}

.privacy-content p {
  font-size: 12px;
}

}
