/* ヒーロー画像 */
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-img-main {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  object-position: 50% 50%;
  display: block;
  z-index: 0;
  pointer-events: none;
}
#hero {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: #fff;
  margin: 0;
  /* box-shadow: 0 4px 24px rgba(0,0,0,0.04); */
}
.hero-logo {
  font-family: 'Gochi Hand', cursive;
  font-size: 5rem;
  color: var(--color-theme);
  letter-spacing: .10em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  font-weight: normal;
  pointer-events: auto;
  line-height: normal;
}
.hero-overlay-top {
  position: absolute;
  top: 2vh;
  left: 0;
  width: 100vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3rem;
  z-index: 10;
  pointer-events: none;
}
.hero-sns {
  display: flex;
  gap: 2.5rem;
  pointer-events: auto;
  line-height: normal;
}
.hero-sns li {
  display: flex;
}
.hero-sns a {
  color: var(--color-theme);
  font-size: 2rem;
  transition: color 0.2s;
}
.hero-content {
  right: 4vw;
  bottom: 8vh;
  text-align: right;
  position: absolute;
  z-index: 15;
}
.hero-message-main {
  width: clamp(200px,40vw,600px);
  max-width: 100%;
  height: auto;
}
.hero-message-img {
  color: var(--color-theme);
  font-size: 2rem;
  font-family: var(--font-main);
}
.hero-title {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--color-theme);
}
.hero-message-vertical {
  display: none;
}
/* ナビゲーション */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-center {
  justify-content: center;
  /* padding: 3.5rem 0; */
  margin-top: 5rem;
}
.nav-links {
  display: flex;
  gap: 0 5rem;
}
.nav-links a {
  color: #222;
  font-weight: 500;
  font-size: var(--font-size-base);
  letter-spacing: .3em;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: #2196f3;
}
.nav-center-mobile {
  display: none;
}
/* ハンバーガー */
.hero-hamburger {
  display: none;
}
/* Message */
#about {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#about p {
  text-align: left;
  font-size: 14px;
  letter-spacing: .1em;
  line-height: 1.8em;
  margin-bottom: 18px;
}
/* About */
.profile-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6.5rem;
  max-width: var(--container-width);
  margin: 0 auto;
}
.profile-text,
.profile-photo-wrap {
  width: 50%;
  display: flex;
  justify-content: end;
}
.profile-name {
  font-size: 2.5rem;
  letter-spacing: .10em;
  margin-bottom: 1rem;
}
.profile-comments {
  font-size: 14px;
  letter-spacing: .1em;
  line-height: 1.8em;
  margin-bottom: 18px;
}
.profile-text {
  display: flex;
  flex-direction: column;
  gap: .2em;
}
.profile-photo {
  width: 28vw;
  height: 35.5vh;
  object-fit: cover;
  aspect-ratio: 1/1;
  border-radius: 5%;
  box-shadow: var(--shadow);
}
/* 制作一覧 */
.works-wrapper {
  max-width: 960px;
  margin: 5rem auto;
}
.works-item {
  display: flex;
  align-items: center;
  gap: 7rem;
}
.works-item-img {
  /* flex: 1; */
  max-width: 44%;
  box-shadow: var(--shadow);
}
.works-item-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5%;
}
.works-item-text {
  /* flex: 1; */
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  line-height: 1.5;
}
.works-item-title {
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: .15em;
  margin-bottom: .5rem;
}
.works-item-project {
  font-size: 14px;
  letter-spacing: .1em;
}
.works-item-promotion {
  font-size: 0.9rem;
  font-family: "Albert Sans", sans-serif;
  color: #999;
  line-height: 1.8em;
  letter-spacing: .1em;
  margin-bottom: 0.5rem;
}
.works-item-button .more-btn {
  display: inline-block;
}
.more-btn {
  font-size: 0.8rem;
  border: 1px solid #666;
  padding: .5rem 0;
  width: 45%;
  margin-top: -1rem;
  text-align: center;
  letter-spacing: .15em;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s;
  position: relative;
  right: -250px;
}
.more-btn::before {
  content: "";
  display: block;
  width: 3rem;
  height: .10vh;
  background:#333;
  position: absolute;
  top: 0;
  bottom: 0;
  right: -2vw;
  margin: auto;
}
/* 全幅背景画像用 */
.full-bg-image {
  width: 100vw;
  height: 40vh;
  background: url('../img/background.jpg') center center/cover no-repeat;
  position: relative;
  left: 50%;
  right: 50%;
  margin-top: 10rem;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0;
  border: none;
}
/* お問い合わせボタン用 */
.contact-message {
  text-align: center;
  font-size: 1.1rem;
}
.contact-mail-btn-wrap {
  /* display: flex;
  justify-content: center; */
  text-align: center;
  margin-top: 5rem;
}
.contact-mail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 5rem;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: .20em;
  color: #fff;
  background-color: #228bc8;
  border: none;
  border-radius: .5rem;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.contact-mail-btn:hover {
  background: #fff;
  color: #228bc8;
  border: 1px solid #228bc8;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
  margin: 0 auto;
}
.contact-form input,
.contact-form textarea {
  background: #f5f7fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  font-size: 1rem;
}
.contact-form button {
  background: #2196f3;
  color: #fff;
  border-radius: 4px;
  padding: 10px 0;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form button:hover {
  background: #1769aa;
}
/* フッター */
footer {
  color: var(--color-theme);
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 1.5rem;
}
/* サブページ */
#works-heading {
  width: 100vw;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("../img/sub-title-banner.jpg") center center/cover no-repeat;
  margin: 0;
  padding: 0;
}
.works-title {
  color: #fff;
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
  margin: 0;
}
.works-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2.5rem auto 3rem auto;
  max-width: 1100px;
  padding: 0 1rem;
}
/* .works-card-list {
  width: 100%;
  height: 100%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s;
  transition: transform .6s ease;
} */
/* .works-card-list:hover img {
  transform: scale(1.1);
} */
 .works-card {
  width: 100%;
  height: 100%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: transform .6s ease, box-shadow .2s ease;
  transform-origin: center;
  will-change: transform;
}
.works-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
}
.works-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.works-card:hover img {
  transform: scale(1.06);
}
.works-card-meta {
  text-align: left;
  padding: .5rem 1rem;
}
.works-card-title {
  font-size: 1rem;
  letter-spacing: .05em;
  font-weight: 600;
  color: var(--color-theme);
  margin-top: 1rem;
}
.works-card-project {
  font-size: 0.98rem;
  letter-spacing: .10em;
  color: #666;
}
.works-card-process {
  font-size: 0.92rem;
  color: #999;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
@media (max-width: 768px) {
  #hero {
  position: relative;
  top: -11vh;
}
  /* 背景を暗くするオーバーレイ */
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.25);
    z-index: 99900;
  }
  .nav-overlay.active {
    display: block;
  }
  .hero-img-main {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
  }
  .hero-overlay-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    padding: 0 3vw;
    height: 56px;
    background: rgba(255,255,255,0.85);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    pointer-events: auto;
    backdrop-filter: blur(6px);
  }
  .hero-logo {
    font-size: 2rem;
    letter-spacing: .10em;
    /* margin-left: 4px; */
    color: var(--color-theme);
    text-shadow: none;
  }
  .hero-sns {
    justify-content: center;
    gap: 1.5rem;
  }
  .hero-sns li {
    display: block;
  }
  .hero-sns a {
    font-size: 1.5rem;
    color: var(--color-theme);
  width: 2.4rem;
  max-height: 100%;
  cursor: pointer;
}
/* --- hamburger --- */
.hero-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  gap: 0.5rem;
  position: relative;
  z-index: 99999;
}
.hero-hamburger.is-active {
  gap: 0;
}
.hero-hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: #333;
  border-radius: 2px;
  transition: .2s;
}
.hero-hamburger.is-active span {
  position: absolute;
  left: 0;
  top: 50%;
  transform-origin: center;
  transition: transform 0.2s, opacity 0.2s;
}
.hero-hamburger.is-active span:nth-child(1) {
  transform: translateY(-50%) rotate(45deg);
}
.hero-hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hero-hamburger.is-active span:nth-child(3) {
  transform: translateY(-50%) rotate(-45deg);
}
.hero-content {
  position: absolute;
  inset: 0;
  display: grid;
max-width: none;
}
/* sourceタグで切り替えにしているが念の為 */
.hero-message-img {
  display: none;
}
/* 縦書きメッセージ表示＆左上寄り配置 */
  .hero-message-vertical {
    display: block;
    position: absolute;
    left: 3vw;
    top: 25vh;
    writing-mode: vertical-rl;  /* 縦書き */
    text-orientation: mixed;
    line-height: 1.5;
    font-family: var(--font-main);
    font-size: 1.3rem;
    color: var(--color-base);
    letter-spacing: .30em;
    /* 必要なら影でコントラスト補助 */
    text-shadow: 0 1px 5px rgba(0,0,0,.35);
  }
  /* 肩書き：中央下 */
  .hero-title {
    position: absolute;
    white-space: nowrap;
    left: 50%;
    bottom: 3vh;
    transform: translateX(-50%);
    margin: 0;
    color: #fff;
    font-size: 1.8rem;
    text-align: center;
    /* 背景が明るい写真対策で半透明BGを足すなら:
    background: rgba(0,0,0,.25);
    padding: .3rem .6rem;
    border-radius: .4rem;
    */
  }
  .nav-center {
  display: none;
}
  /* スマホ幅でドロワー化。数値はお好みで */
  .nav-center-mobile {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 70vw;              /* 全体の7割 */
    max-width: 420px;
    height: 100vh;
    transform: translateX(100%);
    transition:  all .5s ease-in-out;
    visibility: hidden;
    pointer-events: none;
    will-change: transform;
    z-index: 99990;
    padding: 80px 24px 24px;  /* 上に余白（ハンバーガーと干渉しにくく） */
    background: rgba(255,255,255,0.85);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    backdrop-filter: blur(6px);
  }
  .nav-center-mobile.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
  }
  .nav-links-mobile {
    list-style: none;
    margin-top: 5rem;
    display: flex;
    flex-direction: column;
    font-size: 1.5rem;
    letter-spacing: .30em;
    font-weight: bold;
  }
  .nav-links-mobile li {
    padding: 0.5rem 3rem;
    margin-bottom: 2rem;
  }
  .nav-links-mobile a {
    display: block;
    color: var(--color-theme);
    text-decoration: none;
  }
/* プロフィール */
  .profile-inner {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;            /* モバイルでは余白をコンパクトに */
  }

  /* 幅は100%で均等、中央寄せ */
  .profile-text,
  .profile-photo-wrap {
    width: 100%;
    justify-content: center;
  }

  /* テキストは読みやすく */
  .profile-name {
    font-size: clamp(1.4rem, 6vw, 2rem);
    text-align: center;
    margin-bottom: 0.75rem;
  }

  .profile-comments {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    line-height: 1.9;
    letter-spacing: .06em;
    text-align: left;     /* 中央にしたい場合は center に変更 */
    max-width: 46rem;     /* 可読幅の上限（お好みで調整） */
    margin: 0 auto 1.25rem;
  }

  .profile-text {
    gap: .5rem;           /* モバイルは少し広めに */
  }

  /* 画像は横幅基準で可変、縦横比維持 */
  .profile-photo {
    width: 100%;
    height: 25vh;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0;
    /* 影や色はPC設定を継承 */
  }
  /* 余白を少しコンパクトに */
  .works-wrapper {
    max-width: 100%;
    margin: 3rem auto 2rem;
  }

  /* 横並び → 縦積み */
  .works-item {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  /* 画像は横幅基準で可変 */
  .works-item-img {
    max-width: 100%;
    width: 100%;
    box-shadow: var(--shadow);
  }
  .works-item-img img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* テキストは中央寄せ（お好みで left に変更可） */
  .works-item-text {
    width: 100%;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    line-height: 1.7;
  }

  /* フォントサイズは少し控えめに可変 */
  .works-item-title {
    font-size: clamp(1.05rem, 4.5vw, 1.25rem);
    margin-bottom: 0.25rem;
  }
  .works-item-project {
    font-size: clamp(0.9rem, 3.6vw, 1rem);
    letter-spacing: .08em;
  }
  .works-item-promotion {
    font-size: clamp(0.85rem, 3.4vw, 0.95rem);
    line-height: 1.8;
    letter-spacing: .08em;
    margin-bottom: 0.25rem;
  }

  /* Moreボタン：中央配置＆装飾簡素化 */
  .works-item-button .more-btn {
    display: inline-block;
    width: 50vw;
    margin: 2rem auto 0;
    padding: 0.8rem 0;
    font-size: 1rem;
    text-align: center;
    position: static;   /* PCの right:-250px を無効化 */
  }
  /* SPでは擬似線は外すか短くする */
  .more-btn::before {
    display: none;
    /* または
    right: -1rem;
    width: 2rem;
    */
  }
  /* メッセージの文字サイズと左右余白 */
  .contact-message {
    font-size: clamp(1rem, 3.8vw, 1.1rem);
    text-align: center;
    padding-inline: 1rem;
  }

  /* ボタン周りの余白をコンパクトに */
  .contact-mail-btn-wrap {
    text-align: center;
    margin-top: 2rem;       /* PCの5remを短縮 */
    padding-inline: 1rem;
  }

  /* メールボタン：幅可変＆文字サイズ可変 */
  .contact-mail-btn {
    display: inline-flex;
    width: min(100%, 22rem);      /* 端末幅に合わせて広がる */
    padding: 1rem 1.25rem;        /* 内側余白は少し控えめに */
    font-size: clamp(1rem, 4.5vw, 1.25rem);
    letter-spacing: .12em;        /* 読みやすい範囲に調整 */
    border-radius: .5rem;         /* 角丸はPCと同じ */
  }

  /* （任意）SPでのhoverは弱くてもOK。色は変えずにそのままでも可 */
  .contact-mail-btn:hover {
    /* PCと同じ指定でOK / 変更不要 */
  }

  /* フォームがある場合のSP最適化 */
  .contact-form {
    max-width: 100%;
    width: 100%;
    padding-inline: 1rem;
    gap: 0.9rem;
  }
  .contact-form input,
  .contact-form textarea {
    padding: 0.75rem;
    font-size: clamp(0.95rem, 3.6vw, 1rem);
  }
  .contact-form button {
    padding: 0.9rem 0;
    font-size: clamp(1rem, 4vw, 1.1rem);
  }
  .works-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .works-gallery {
    grid-template-columns: 1fr;
}
.works-overlay-top {
  position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    padding: 0 3vw;
    height: 56px;
    /* background: rgba(255,255,255,0.85);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 100;
    pointer-events: auto;
    /* backdrop-filter: blur(6px); */
}
#works-heading {
  width: 100vw;
  min-height: 15vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("../img/sub-title-banner.jpg") center center/cover no-repeat;
  margin: 0;
  padding: 0;
}
.works-title {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: .30em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
  margin: 0;
}
  footer {
  color: var(--color-theme);
  text-align: center;
  padding: 1rem 0;
}
}