@charset "UTF-8";

/* http://meyerweb.com/eric/tools/css/reset/ */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

* {
  box-sizing: border-box;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* CONTENTS */
html {
  font-size: 62.5%;
  color: #1e1e1e;
}

body {
  background: #f5f5f5;
  font-family: "Noto Sans JP", sans-serif;
}

p {
  font-size: 1.4rem;
  line-height: 1.8;
  margin-bottom: 1.6rem;
}

strong {
  font-weight: 700;
}

li {
  font-size: 1.4rem;
  line-height: 1.8;
}

h1,
h2,
h3 {
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

h1 {
  font-size: 1.6rem;
  text-align: center;
}

h2 {
  display: block;
  text-align: center;
  font-size: 1.4rem;
  margin-top: 0.8rem;
  letter-spacing: 1px;
  font-family: 'Noto Sans JP', sans-serif;
}

h3 {
  font-family: 'Noto Sans JP', sans-serif;
}

body {
  font-family: 'Roboto Condensed', 'Noto Sans JP', sans-serif;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 60px;
  letter-spacing: 2px;
  z-index: 1005;
  /* ★ 5 から 1005 へ変更（bg-topの900より手前に配置） */
  pointer-events: none;
  color: #1e1e1e;
  /* ★ 文字色を黒/濃グレーで明示 */
}

.header h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #1e1e1e;
}

.header h1 img {
  margin-right: 0.6rem;
}

.works {
  position: relative;
  margin-top: 25rem;
  padding-bottom: 8rem;
  z-index: 1000;
}

.works-inner {
  max-width: 1100px;
  width: 86%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
}

.works-card {
  position: relative;
  width: 22%;
  margin: 1.5%;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

@media screen and (max-width: 768px) {
  .works-card {
    width: 47%;
  }
}

.works-card.is-hide {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
}

.works-card a {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1280/720;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.works img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  display: block;
  max-width: 100%;
  transition: 0.15s;
}

.works img:hover {
  transform: scale(1.1);
}

/* ==========================================
   .bg-top & .bg 広がりながらフェードアウト/フェードイン
   ========================================== */
.bg-top {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 350px;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
  z-index: 900;
  will-change: height;
  transition: height 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 展開時：高さを画面いっぱいに広げる */
.bg-top.is-expanded {
  height: 70vh;
}

/* 通常時：350px領域内 */
.bg,
.bg_sub {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center top;
  pointer-events: none;
  transform: scale(1);
  will-change: transform, opacity;
  /* 閉じるときのフェードイン（元の透明度0.3へ戻る） */
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ★ 展開時：JSのインラインスタイルを上書きして完全にフェードアウト＋奥へズーム */
.bg-top.is-expanded .bg,
.bg-top.is-expanded .bg_sub {
  opacity: 0 !important;
  transform: scale(1.01);
  transition: opacity 0.65s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}


.side div {
  display: block;
  position: fixed;
  top: 35%;
  right: 0;
  transform: rotate(-90deg) translateY(-50%);
  transform-origin: right center;
  text-decoration: none;
  color: #333;
  padding: 10px 15px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  z-index: 10;
}

.side div:before {
  position: absolute;
  right: 100%;
  top: 0;
  bottom: 0;
  margin: auto;
  height: 1px;
  width: 100px;
  background: #333;
  content: "";
  transition: 0.3s;
}

.side div:hover:before {
  width: 120px;
}

.bar img {
  display: block;
  position: fixed;
  height: 150px;
  width: auto;
  top: 40%;
  left: 0;
  transform-origin: right center;
  text-decoration: none;
  color: #333;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  z-index: 1001;
}

.cv {
  position: fixed;
  bottom: 0;
  right: 5rem;
  z-index: 1001;
}

@media screen and (max-width: 768px) {
  .cv {
    right: 1rem;
  }

  .bg-top.is-expanded {
    height: 60vh;
  }
}

.cv-btn {
  padding: 1rem 1.8rem;
  background: rgba(0, 0, 0, 0.8);
  display: inline-block;
  font-size: 1.4rem;
  text-decoration: none;
  color: #fff;
  transition: 0.2s;
  letter-spacing: 2px;
  font-weight: 700;
}

.cv-btn:hover {
  background: #CDDC39;
  color: #333;
}

.footer {
  display: inline-block;
  position: fixed;
  padding: 1rem;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  z-index: 10;
}

.notice {
  padding: 1rem 1rem 2.8rem;
  line-height: 1.5;
}

/* ==========================================
   モーダル
   ========================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #fff;
  padding: 24px;
  width: 90%;
  max-width: 600px;
  border-radius: 12px;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  transform: translateY(60px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease;
}

.modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}

/* 閉じるボタン（右上配置） */
.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 2.8rem;
  line-height: 1;
  color: #333;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.modal-close:hover {
  color: #ff5555;
  transform: scale(1.15);
}

.modal img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0;
  color: #222;
}

.works-subtitle {
  margin: 8px 0 0;
  font-size: 1.2rem;
  text-align: center;
  color: #666;
}



.sns {
  position: fixed;
  top: 10px;
  right: 1rem;
  display: flex;
  z-index: 10;
}

.sns-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  margin: 0 0.6rem;
}

.sns-btn img {
  width: auto;
  height: 24px;
}

#sandstorm {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  z-index: -1;
  pointer-events: none;
}

.notfound-box {
  width: 100%;
}

.notfound-box p {
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.8;
}

.notfound-ttl {
  font-size: 8rem;
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1;
}

.page-inner {
  max-width: 1100px;
  width: 86%;
  margin: 0 auto;
}

.page-inner h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-top: 6rem;
  margin-bottom: 2rem;
}

.page-inner h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 4rem;
  margin-bottom: 1rem;
}

table {
  margin-bottom: 3.2rem;
  width: 100%;
}

th,
td {
  padding: 1.2rem;
  font-size: 1.6rem;
  border: 1px solid #ccc;
}

@media screen and (max-width:600px) {

  th,
  td {
    padding: 0.6rem;
    font-size: 1.2rem;
    border: 1px solid #ccc;
  }
}

.bg-noise {
  position: fixed;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  width: 200%;
  height: 200%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  animation: noiseAnimation 0.2s infinite;
  opacity: 0.8;
  pointer-events: none;
  z-index: -1;
}

@keyframes noiseAnimation {
  0% {
    transform: translate(0, 0);
  }

  10% {
    transform: translate(-1%, -1%);
  }

  20% {
    transform: translate(-2%, 1%);
  }

  30% {
    transform: translate(1%, -2%);
  }

  40% {
    transform: translate(-1%, 3%);
  }

  50% {
    transform: translate(-2%, 1%);
  }

  60% {
    transform: translate(1%, 2%);
  }

  70% {
    transform: translate(2%, 1%);
  }

  80% {
    transform: translate(-1%, -1%);
  }

  90% {
    transform: translate(2%, -2%);
  }

  100% {
    transform: translate(0, 0);
  }
}

.filter-container {
  text-align: center;
  margin: 20px 0 30px;
}

.works-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0;
  background-color: #fff;
  color: #333;
  padding: 8px 12px;
  font-size: 12px;
  border: 2px solid #eee;
  cursor: pointer;
  min-width: 200px;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 50px 0 20px;
  flex-wrap: wrap;
}

.page-btn {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  user-select: none;
  font-family: "Noto Sans JP", sans-serif;
}

.page-btn:hover {
  background-color: #f8f9fa;
  border-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-btn.active {
  background-color: #111111;
  color: #ffffff;
  border-color: #111111;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: none;
}

.page-btn.prev,
.page-btn.next {
  padding: 10px 20px;
  background-color: #f4f4f4;
}

.page-btn.prev:hover,
.page-btn.next:hover {
  background-color: #111111;
  color: #ffffff;
}

.wp-block-button__link {
  color: #fff;
  background-color: #32373c;
  border-radius: 9999px;
  box-shadow: none;
  text-decoration: none;
  padding: calc(.667em + 2px) calc(1.333em + 2px);
  font-size: 1.125em
}

.wp-block-file__button {
  background: #32373c;
  color: #fff;
  text-decoration: none
}

.page-inner p {
  line-height: 1.9 !important;
  margin-bottom: 2.5em !important;
  color: #333333 !important;
}

.page-inner h2 {
  margin-top: 3.5em !important;
  margin-bottom: 1.5em !important;
  line-height: 1.4 !important;
}

.page-inner h3 {
  margin-top: 2.5em !important;
  margin-bottom: 1.2em !important;
  line-height: 1.4 !important;
}

.has-text-align-center {
  text-align: center;
}

mark {
  padding: 2px 6px;
  border-radius: 2px;
}


/* ==========================================
   ABOUTページ用 アクションボタングループ
   ========================================== */
.action-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 3.5rem auto;
  flex-wrap: wrap;
}

.action-btn-item {
  flex: 1 1 calc(33.333% - 16px);
  max-width: 320px;
  min-width: 180px;
}

.action-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1.4rem 1.6rem;
  background-color: #32373c;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 9999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.action-btn:hover {
  background-color: #CDDC39;
  color: #1e1e1e;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

@media screen and (max-width: 768px) {
  .action-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .action-btn-item {
    width: 100%;
    max-width: 100%;
    flex: none;
  }
}

.sns-data {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.sns-data .sns-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  color: #888;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: all 0.2s ease;
}

.sns-data .sns-icon svg {
  display: block;
}

.sns-data .sns-icon:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.sns-data .sns-icon.icon-x:hover {
  color: #222222;
  border-color: #222222;
  background: rgba(0, 0, 0, 0.15);
}

.sns-data .sns-icon.icon-yt:hover {
  color: #ff0033;
  border-color: #ff0033;
  background: rgba(255, 0, 51, 0.12);
}

.sns-data .sns-icon.icon-hp:hover {
  color: #38bdf8;
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

.sns-data .sns-icon.icon-tt:hover {
  color: #00f2fe;
  border-color: #00f2fe;
  background: rgba(0, 242, 254, 0.12);
}