/* ==========================================================================
   明るく透明感のあるポートフォリオ用のCSS（互い違いレイアウト版）
   ========================================================================== */

body {
  margin: 0;
  padding: 0;
  background-color: #fafafa;
  color: #333333;
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* -------------------------------------------
   ★ ローディング画面（白い円が一周 → Thank you表示 → フェードアウト）
-------------------------------------------- */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background-color: rgba(20, 20, 20, 0.55); /* ★背後のサイトがうっすら透ける半透明に */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-ring {
  width: 80px;
  height: 80px;
  transform: rotate(-90deg); /* 12時の位置から時計回りにスタート */
}

.loading-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 3;
}

.loading-ring-progress {
  fill: none;
  stroke: #ffffff; /* ★白い円 */
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 283; /* 円周（2πr, r=45）にほぼ合わせた値 */
  stroke-dashoffset: 283;
  animation: loading-ring-draw 1.6s ease forwards;
}

@keyframes loading-ring-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.loading-text {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.loading-text.is-visible {
  opacity: 1;
}

/* -------------------------------------------
   ★ ヘッダー（ロゴ + ナビ）
-------------------------------------------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 64px;
}

.site-header .logo {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: #1a1a1a;
  text-decoration: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 48px;
}

.main-nav {
  display: flex;
  gap: 48px;
}

.main-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: #999999;
  text-decoration: none;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #1a1a1a;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-icons a {
  display: flex;
  color: #999999;
  transition: color 0.3s ease;
}

.header-icons a:hover {
  color: #1a1a1a;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: #1a1a1a;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* -------------------------------------------
   ★ Aboutセクション（プロフィール）
-------------------------------------------- */
.about-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 24px;
}

.about-text {
  width: 45%;
}

.about-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.about-heading .heading-line {
  width: 40px;
  height: 1px;
  background-color: #1a1a1a;
}

.about-heading h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0;
  color: #1a1a1a;
}

.about-name {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin: 0 0 32px 0;
  color: #1a1a1a;
}

.about-desc {
  font-size: 0.9rem;
  line-height: 1.9;
  color: #666666;
  margin: 0 0 48px 0;
}

.about-more {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: #6f9fc0; /* ★水色アクセント */
  font-size: 0.8rem;
  letter-spacing: 0.2em;
}

.about-more .arrow-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #c3dbe8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6f9fc0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.about-more:hover .arrow-circle {
  background-color: #6f9fc0;
  color: #ffffff;
}

.about-image {
  position: relative;
  width: 40%;
  max-width: 420px;

  /* JavaScript用の初期状態（他の作品画像と同じ効果） */
  opacity: 0.4;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.6s ease;
}

.about-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  filter: grayscale(100%);
  will-change: filter;
}

.container {
  position: relative; /* ★hero-az（A〜Zの背景演出）をこの上に重ねるための基準 */
  max-width: 1100px; /* ★左右に並べるため、全体の横幅を少し広く（900pxから1100pxに）します */
  margin: 0 auto;
  padding: 160px 24px 96px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* h1 / .hero-subtitle は初期状態＝そのまま表示（JS未対応・無効時のフォールバック） */
h1,
.hero-subtitle {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-content.is-hidden h1,
.hero-content.is-hidden .hero-subtitle {
  opacity: 0;
  transform: translateY(14px);
}

h1 {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  margin: 0 0 16px 0;
  color: #1a1a1a;
}

.hero-subtitle {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: #999999;
  margin: 0;
}

/* -------------------------------------------
   ★ HERO演出：A〜Zの中からRAY SGMTだけが浮き出て中央に集まり、
     PORTFOLIOが現れて残りの文字が消える
-------------------------------------------- */
.hero-name {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  color: #1a1a1a;
  text-transform: uppercase;
  margin: 0 0 20px 0;
}

.hero-name-letter {
  display: inline-block;
}

.hero-name-gap {
  display: inline-block;
  width: 0.6em;
}

/* JSが演出を開始するときだけ、実際の文字が組み上がるまで一旦透明にする */
/* ★飛んでくる文字とのクロスフェードで二重に見えないよう、着地は一瞬で切り替える（フェードなし） */
.hero-name.is-pending .hero-name-letter {
  opacity: 0;
}

.hero-name.is-pending .hero-name-letter.is-landed {
  opacity: 1;
}

/* A〜Zの背景グリッド（JSで26文字を生成し、動きが終わったらDOMごと削除） */
.hero-az {
  display: none;
  position: absolute;
  inset: 0;
  padding: 0 clamp(32px, 10vw, 140px); /* ★左右に余白を持たせる（余白を増やすほど文字同士は詰まる） */
  grid-template-columns: repeat(13, 1fr);
  align-items: center;
  justify-items: center;
  pointer-events: none;
  z-index: 0;
}

.hero-az.is-active {
  display: grid;
}

.hero-az-letter {
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #d6d6d6;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease, color 0.4s ease;
}

.hero-az.is-visible .hero-az-letter {
  opacity: 1;
  transform: translateY(0);
}

/* RAY SGMTを構成する文字が浮き出る（暗くなって少し大きくなる） */
.hero-az-letter.is-target {
  color: #1a1a1a;
  transform: scale(1.15);
}

/* それ以外の文字は薄く沈む */
.hero-az-letter.is-dim {
  opacity: 0.18;
}

/* 中央へ向けて実際に移動している間（position指定でグリッドから切り離す） */
.hero-az-letter.is-flying {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
  color: #1a1a1a;
  transition: transform 0.9s cubic-bezier(0.22, 0.9, 0.3, 1), opacity 0.3s ease;
}

/* 演出が終わった文字（背景に残る文字・移動し終えた文字）をフェードアウト */
.hero-az-letter.is-gone {
  opacity: 0;
}

/* -------------------------------------------
   ★ WORKSセクション全体
-------------------------------------------- */
.works-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: #1a1a1a;
  margin: 0 0 16px 0;
}

.works-subtitle {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: #999999;
  margin: 0 0 48px 0;
}

.works-nav {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-bottom: 96px;
}

.works-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: #999999;
  text-decoration: none;
  transition: color 0.3s ease;
}

.works-nav a:hover {
  color: #1a1a1a;
}

/* -------------------------------------------
   ★ 作品セクション（角丸フレームに写真を横並び）
-------------------------------------------- */
.style-section {
  max-width: 1100px;
  margin: 0 auto 120px;
  padding: 0 24px;
  text-align: center;
}

.style-heading h3 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.style-heading-sub {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #aaaaaa;
  margin: 0 0 40px 0;
}

.style-frame {
  display: flex;
  gap: 16px;
}

.style-img-wrap {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;

  /* JavaScript用の初期状態 */
  opacity: 0.4;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.6s ease;
}

.style-img-wrap img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  will-change: filter;
}

/* -------------------------------------------
   ★ ICONカルーセル（横スクロール一覧）
-------------------------------------------- */
.icon-carousel {
  display: flex;
  align-items: center;
  gap: 16px;
}

.carousel-arrow {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #cccccc;
  background-color: #ffffff;
  color: #333333;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.carousel-arrow:hover {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
  color: #ffffff;
}

.icon-track-wrap {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.icon-track-wrap::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.icon-track {
  display: flex;
  gap: 12px;
  padding: 4px 0;
}

.icon-item {
  flex: 0 0 auto;
  width: 112px;
  height: 112px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;

  /* JavaScript用の初期状態 */
  opacity: 0.4;
  transition: opacity 0.4s ease;
}

.icon-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
  will-change: filter;
}

/* -------------------------------------------
   ★ ICONモーダル（タップしたグループ12枚を4×3で表示）
-------------------------------------------- */
.icon-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.icon-modal-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.icon-modal-panel {
  position: relative;
  width: 90%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 48px 40px 40px;
  transform: translateY(16px);
  transition: transform 0.3s ease;
}

.icon-modal.is-open .icon-modal-panel {
  transform: translateY(0);
}

.icon-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #cccccc;
  background-color: #ffffff;
  color: #333333;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.icon-modal-close:hover {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
  color: #ffffff;
}

.icon-modal-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #1a1a1a;
  text-align: center;
  margin: 0 0 24px 0;
}

.icon-modal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.icon-modal-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.style-desc {
  max-width: 720px;
  margin: 32px auto 0;
}

.style-desc p {
  font-size: 0.85rem;
  line-height: 1.9;
  color: #666666;
  text-align: left;
  margin: 0;
}

.style-cta {
  margin-top: 32px;
}

.style-btn {
  display: inline-block;
  padding: 12px 40px;
  border: 1px solid #999999;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: #333333;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.style-btn:hover {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
  color: #ffffff;
}

/* -------------------------------------------
   ★ フッター（サイト本体と同じライトトーン）
-------------------------------------------- */
.site-footer {
  background-color: #f0f0f0;
  border-top: 1px solid #e0e0e0;
  color: #1a1a1a;
  text-align: center;
  padding: 96px 48px 40px;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: #999999;
  margin: 0 0 48px 0;
}

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

.footer-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: #666666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #1a1a1a;
}

.footer-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 64px;
}

.footer-icons a {
  display: flex;
  color: #999999;
  transition: color 0.3s ease;
}

.footer-icons a:hover {
  color: #1a1a1a;
}

.footer-top-btn {
  display: inline-flex;
  margin-bottom: 64px;
  text-decoration: none;
}

.footer-top-btn .arrow-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #cccccc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333333;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.footer-top-btn:hover .arrow-circle {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
  color: #ffffff;
}

.footer-copyright {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #999999;
  margin: 0;
}

.footer-privacy-link {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #999999;
  text-decoration: underline;
  margin-top: 8px;
  transition: color 0.3s ease;
}

.footer-privacy-link:hover {
  color: #1a1a1a;
}

/* -------------------------------------------
   ★ ABOUTページ（about.html）
-------------------------------------------- */
.detail-media.detail-media--profile {
  width: 40%;
  max-width: 420px;
  flex-shrink: 0;
}

.detail-media.detail-media--profile img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.detail-main--wrap {
  flex-wrap: wrap;
  row-gap: 40px;
}

.detail-title.profile-name {
  flex: 1 0 100%;
  margin: 0 0 8px 0;
}

.detail-info.detail-info--wide {
  width: auto;
  flex: 1;
}

.roles-section {
  max-width: 1100px;
  margin: 0 auto 120px;
  padding: 64px 48px 0;
  border-top: 1px solid #e6e6e6;
  text-align: center;
}

/* -------------------------------------------
   ★ TOPページ下部のCONTACT誘導エリア
-------------------------------------------- */
.home-contact-cta {
  max-width: 1100px;
  margin: 0 auto 120px;
  padding: 0 24px;
  text-align: center;
}

.home-contact-cta h3 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0 0 16px 0;
}

.home-contact-cta p {
  font-size: 0.85rem;
  color: #999999;
  margin: 0 0 32px 0;
}

/* -------------------------------------------
   ★ CONTACTページ（contact.html）
-------------------------------------------- */
.contact-section {
  max-width: 640px;
  margin: 0 auto 120px;
  padding: 0 24px;
  text-align: center;
}

.contact-lead {
  font-size: 0.9rem;
  line-height: 1.9;
  color: #666666;
  margin: 0 0 40px;
}

.contact-info {
  margin-top: 64px;
  text-align: left;
}

.contact-info a {
  color: #6f9fc0;
  text-decoration: underline;
}

.contact-info a:hover {
  color: #4d7fa3;
}

.contact-info p + p {
  margin-top: 8px;
}

.contact-method-note {
  color: #999999;
  font-size: 0.78rem;
  margin-left: 8px;
}

/* -------------------------------------------
   ★ 規約系ページ（privacy.html）
-------------------------------------------- */
.legal-section {
  max-width: 720px;
  margin: 0 auto 120px;
  padding: 0 24px;
}

.legal-section h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #1a1a1a;
  margin: 40px 0 12px;
}

.legal-section h3:first-child {
  margin-top: 0;
}

.legal-section p {
  font-size: 0.85rem;
  line-height: 1.9;
  color: #666666;
  margin: 0 0 12px;
}

.legal-section ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.legal-section li {
  font-size: 0.85rem;
  line-height: 1.9;
  color: #666666;
}

.legal-meta {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e6e6e6;
}

.legal-meta p {
  margin: 0 0 4px;
}

/* -------------------------------------------
   ★ フォーム同意チェックボックス（contact.html）
-------------------------------------------- */
.form-agree {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 32px;
  font-size: 0.8rem;
  color: #333333;
}

.form-agree a {
  color: #6f9fc0;
  text-decoration: underline;
}

.form-agree a:hover {
  color: #4d7fa3;
}

/* -------------------------------------------
   ★ 送信完了ページ（thanks.html）
-------------------------------------------- */
.thanks-section {
  max-width: 640px;
  margin: 0 auto 120px;
  padding: 120px 24px 0;
  text-align: center;
}

.thanks-message {
  font-size: 0.9rem;
  line-height: 1.9;
  color: #666666;
  margin: 0 0 40px;
}

/* -------------------------------------------
   ★ CONTACTフォーム（contact.html 下部）
-------------------------------------------- */
.contact-form-section {
  max-width: 720px;
  margin: 0 auto 120px;
  padding: 0 24px;
}

.contact-form-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: #1a1a1a;
  margin: 0 0 24px 0;
}

.contact-form-lead {
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.9;
  color: #666666;
  margin: 0 0 56px;
}

.form-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
}

.form-label {
  flex: 0 0 180px;
  padding-top: 12px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: #1a1a1a;
}

.form-required {
  color: #c0504d;
  font-size: 0.75rem;
}

.form-field {
  flex: 1;
  min-width: 0;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d6d6d6;
  border-radius: 4px;
  background-color: #ffffff;
  font-size: 0.85rem;
  font-family: inherit;
  color: #1a1a1a;
  transition: border-color 0.3s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 200px;
  line-height: 1.7;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #6f9fc0;
}

.roles-note {
  font-size: 0.8rem;
  color: #999999;
  margin: -32px 0 40px;
}

.roles-grid {
  display: flex;
  gap: 16px;
}

.role-card {
  position: relative;
  z-index: 0;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 32px 28px;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  text-decoration: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.role-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--role-bg);
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.role-card:hover {
  border-color: #1a1a1a;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.role-card:hover::before {
  opacity: 0.16;
}

.role-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #1a1a1a;
  margin: 0 0 4px 0;
}

.role-title-sub {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: #999999;
  margin: 0 0 16px 0;
}

.role-desc {
  font-size: 0.82rem;
  line-height: 1.9;
  color: #666666;
  margin: 0 0 24px 0;
  flex: 1;
}

.role-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #6f9fc0;
}

/* -------------------------------------------
   ★ 作品詳細ページ（work-detail.html）
-------------------------------------------- */
.detail-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 48px 64px;
}

.detail-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px 96px;
}

.detail-media {
  width: 55%;
}

.detail-media img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.detail-tags {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.detail-tag {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid #cccccc;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #333333;
}


.detail-title {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #1a1a1a;
  margin: 24px 0 8px 0;
}

.detail-category {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: #999999;
  margin: 0 0 24px 0;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-meta p {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 0;
}

.profile-meta-label {
  flex-shrink: 0;
  width: 80px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #1a1a1a;
}

.profile-meta-value {
  font-size: 0.85rem;
  line-height: 1.7;
  color: #666666;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6f9fc0;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.detail-link:hover {
  color: #4d7fa3;
}

/* -------------------------------------------
   ★ 作品一覧ページ（works-website.html / works-graphic.html）
-------------------------------------------- */
.works-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

.works-list-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.work-card {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 820px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.work-card-body {
  flex: 1 1 auto;
  min-width: 0;
}

/* リンクになっているカード（website・graphic一覧）だけ、押せそうな動きをつける */
a.work-card:hover {
  transform: translateY(-4px);
}

/* 画像とテキストの順番を左右反転させたいとき（例：icon一覧） */
.work-card--reverse {
  flex-direction: row-reverse;
}

.work-card-img {
  flex: 0 0 400px;
  border-radius: 16px;
  overflow: hidden;
}

.work-card-img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.work-card:hover .work-card-img img {
  filter: grayscale(0%);
}

.work-card-title {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #1a1a1a;
  text-decoration: none;
  margin: 0 0 8px 0;
  transition: color 0.3s ease;
}

a.work-card:hover .work-card-title {
  color: #6f9fc0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.work-card-arrow {
  display: inline-block;
  margin-left: 4px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

a.work-card:hover .work-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

.work-card-category {
  font-size: 0.8rem;
  color: #999999;
  text-decoration: none;
  margin: 0;
}

.detail-info {
  width: 39%;
}

.detail-info-block h3 {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #1a1a1a;
  margin: 0 0 12px 0;
}

.detail-info-block p {
  font-size: 0.85rem;
  line-height: 1.9;
  color: #666666;
  margin: 0;
}

.career-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.career-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.career-year {
  flex-shrink: 0;
  width: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #1a1a1a;
}

.career-text {
  font-size: 0.85rem;
  line-height: 1.7;
  color: #666666;
}

.detail-divider {
  height: 1px;
  background-color: #e6e6e6;
  margin: 32px 0;
}

.detail-notes {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 48px 32px;
  border-top: 1px solid #e6e6e6;
}

.detail-notes--wide {
  max-width: 1100px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.detail-notes-heading {
  text-align: center;
}

.skill-level-list + .skill-subgroup,
.skill-subgroup + .skill-level-list,
.skill-subgroup + .skill-subgroup {
  margin-top: 24px;
}

.skill-subgroup-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #999999;
  margin: 0 0 10px 0;
}

.skill-level-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-level-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.skill-level-name {
  white-space: nowrap;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #666666;
}

.skill-star {
  color: #6f9fc0;
}

.skill-level-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
  margin-left: auto;
}

.skill-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #e6e6e6;
}

.skill-dot.is-filled {
  background-color: #1a1a1a;
}

.detail-note-row {
  display: flex;
  gap: 48px;
  padding: 32px 0;
  border-bottom: 1px solid #e6e6e6;
}

.detail-note-row--last {
  border-bottom: none;
}

.detail-note-row--skills {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 24px;
  align-items: start;
}

.detail-note-label {
  width: 112px;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #1a1a1a;
}

.skill-divider {
  text-align: left;
  font-size: 1.1rem;
  color: #6f9fc0;
}

.skill-divider--hidden {
  visibility: hidden;
}

.skill-column-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #1a1a1a;
  margin: 0 0 12px 0;
}

.detail-note-content p {
  font-size: 0.85rem;
  line-height: 1.9;
  color: #666666;
  margin: 0;
}

.stance-block {
  text-align: center;
  margin-top: 48px;
}

.stance-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #1a1a1a;
  margin: 0 0 16px 0;
}

.stance-lead {
  font-size: 0.85rem;
  line-height: 1.9;
  color: #666666;
  margin: 0 0 20px 0;
}

.stance-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.stance-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
}

.stance-number {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #6f9fc0;
}

.stance-text {
  font-size: 0.85rem;
  line-height: 1.7;
  color: #666666;
}

.detail-note-content ul {
  margin: 0;
  padding-left: 20px;
}

.detail-note-content li {
  font-size: 0.85rem;
  line-height: 1.9;
  color: #666666;
  margin-bottom: 8px;
}

.detail-note-content li:last-child {
  margin-bottom: 0;
}

.detail-pager {
  display: flex;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

/* ==========================================================================
   ★ SP（スマートフォン）向けレスポンシブ対応
   全ページ共通のトンマナ（余白・比率・角丸など）を保ったまま1カラムに整理
   ========================================================================== */
@media (max-width: 768px) {

  /* ---- ヘッダー / ハンバーガーメニュー ---- */
  .site-header {
    padding: 20px 48px;
  }

  .nav-toggle {
    display: flex;
  }

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

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

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

  .header-right {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 48px;
    background-color: #fafafa;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
  }

  .header-right.is-open {
    opacity: 1;
    visibility: visible;
  }

  .main-nav {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .main-nav a {
    font-size: 1.1rem;
  }

  .header-icons {
    gap: 24px;
  }

  /* ---- TOPページ：ヒーロー ---- */
  .container {
    padding: 120px 24px 64px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .hero-name {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
  }

  .hero-az {
    padding: 0 clamp(16px, 8vw, 48px);
    grid-template-columns: repeat(6, 1fr);
  }

  .hero-az-letter {
    font-size: clamp(0.9rem, 5vw, 1.3rem);
  }

  /* ---- TOPページ：Aboutセクション（プロフィール） ---- */
  .about-section {
    flex-direction: column;
    gap: 48px;
    padding: 64px 24px;
  }

  .about-text {
    width: 100%;
  }

  .about-image {
    width: 100%;
    max-width: 280px;
  }

  .about-badge {
    width: 100px;
    height: 100px;
  }

  /* ---- TOPページ：WORKSセクション ---- */
  .works-nav {
    gap: 32px;
    margin-bottom: 64px;
  }

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

  .style-frame {
    flex-direction: column;
  }

  .style-img-wrap img {
    height: 240px;
  }

  .icon-item {
    width: 88px;
    height: 88px;
  }

  .icon-modal-panel {
    padding: 40px 24px 32px;
  }

  .icon-modal-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* ---- フッター（全ページ共通） ---- */
  .site-footer {
    padding: 64px 48px 32px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 20px 32px;
    margin-bottom: 32px;
  }

  .footer-icons {
    margin-bottom: 40px;
  }

  .footer-top-btn {
    margin-bottom: 40px;
  }

  /* ---- ABOUT / 作品詳細ページ：2カラム→1カラム ---- */
  .detail-hero {
    padding: 100px 48px 40px;
  }

  .detail-main {
    flex-direction: column;
    padding-left: 48px;
    padding-right: 48px;
  }

  .detail-notes,
  .roles-section {
    padding-left: 48px;
    padding-right: 48px;
  }

  .detail-media,
  .detail-info {
    width: 100%;
  }

  /* ---- 作品一覧ページ：横並び→縦並び ---- */
  .work-card {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .work-card-img {
    flex: 0 0 auto;
  }

  /* ---- CONTACTフォーム：ラベルを上、入力欄を下に ---- */
  .form-row {
    flex-direction: column;
    gap: 8px;
  }

  .form-label {
    flex: 0 0 auto;
    padding-top: 0;
  }

  .detail-media.detail-media--profile {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
  }

  .detail-title.profile-name {
    flex: none;
    text-align: center;
  }

  .detail-info--wide .detail-category {
    text-align: center;
  }

  .detail-title {
    font-size: 1.3rem;
  }

  /* ---- ABOUTページ：Multi Roles（わらじ） ---- */
  .roles-grid {
    flex-direction: column;
  }

  /* ---- 経歴・スキルなどのノート行 ---- */
  .detail-note-row {
    flex-direction: column;
    gap: 8px;
  }

  .detail-note-label {
    width: auto;
  }

  /* ---- スキル・ツール：5列→縦並び ---- */
  .detail-note-row--skills {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .skill-divider {
    text-align: center;
  }

  /* ---- 作品詳細：前後ページャー ---- */
  .detail-pager {
    padding: 48px 24px 64px;
  }
}