/* ==============================
   リセット・基本
============================== */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Helvetica, Arial, sans-serif;
}

.no-scroll {
    overflow: hidden;
}

/* ==============================
   グローバルヘッダー
============================== */
.global-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1100;
}

/* ==============================
   ハンバーガーボタン
============================== */
.menu-toggle {
    position: relative;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #000;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 上 */
.menu-toggle span:nth-child(1) {
    top: 0;
}

/* 中 */
.menu-toggle span:nth-child(2) {
    top: 8px;
}

/* 下 */
.menu-toggle span:nth-child(3) {
    bottom: 0;
}


/* ==============================
   メニューOPEN時（×）
============================== */
.menu-toggle.is-open span:nth-child(1) {
    top: 8px; /* 中央に移動 */
    transform: rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0; /* 完全に消す */
}

.menu-toggle.is-open span:nth-child(3) {
    bottom: auto;
    top: 8px; /* 中央に移動 */
    transform: rotate(-45deg);
}

/* ==============================
   言語切り替え
============================== */
.lang-switch {
    font-size: 14px;
}

.lang-switch a {
    text-decoration: none;
    color: #000;
}

.lang-switch a.active {
    text-decoration: underline;
}


/* ==============================
   メニュー表示時のホワイト背景
============================== */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: #f2f2f2; /* ← 完全グレーにしたい場合 */
    /* background: #fff; ← 完全白にしたい場合 */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 900;
}

.menu-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}


/* ==============================
   メニュー表示中はスライド非表示
============================== */
.menu-open .top-slider {
    opacity: 0;
    pointer-events: none;
}


/* ==============================
   ナビゲーションメニュー
============================== */
.nav-menu {
    position: fixed;
    left: 0;
    width: 100%;
	
	height: 100vh;
    height: 100dvh;

    padding-bottom: env(safe-area-inset-bottom);
	
	opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;

    z-index: 1000;

    overflow-y: auto;
}

/* サブ見出しあり */
.has-header-sub .nav-menu {
    top: 96px;
    height: calc(100vh - 96px);
    height: calc(100dvh - 96px);
}

/* サブ見出しなし */
body:not(.has-header-sub) .nav-menu {
    top: 60px;
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px);
}

/* 中央寄せは ul 側で制御 */
.nav-menu ul {
    list-style: none;
    padding: 40px 0;
    margin: 0 auto;
    text-align: center;
}

.nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.nav-menu li {
    margin: 24px 0;
}

.nav-menu ul li a,
.nav-menu ul li button {
    font-size: 18px;
    letter-spacing: 0.06em;
    font-family: inherit;
    line-height: 1;

    text-decoration: none !important;
    color: #000 !important;
}


@media (max-width: 768px) {
  .nav-menu a,
  .nav-menu button {
      font-size: 16px;
  }
}


/* ==============================
   ハンバーガーメニュー内 button 見た目統一
============================== */

.nav-menu button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;

    font: inherit;
    color: inherit;
    letter-spacing: inherit;

    cursor: pointer;
}



/* ==============================
   トップスライド
============================== */
.top-slider {
    width: 100vw;
    height: 100vh;
    position: relative;
	background: #fff;
}

.slide {
    position: absolute;
    inset: 0;

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

    opacity: 0;
    transition: opacity 1.5s ease;
}

.slide.active {
    opacity: 1;
}

/* 作家名 */
.slide-name {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-name h1 {
    font-size: clamp(32px, 6vw, 72px);
    letter-spacing: 0.15em;
}

/* 画像 */
.slide img {
    max-height: 90vh;
    max-width: 90vw;
    width: auto;
    height: auto;
    object-fit: contain;
}


@media (max-width: 768px) {
    .slide img {
        max-width: 100vw;
        width: 100%;
    }
}


/* =============================
   Contact Page
============================= */

.contact-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 120px 20px 80px;
}

/* 説明文エリア */
.contact-intro {
    margin-bottom: 60px;
}

.contact-intro p {
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.9;
    color: #222;
}

/* フォーム全体 */
.contact-form {
    width: 100%;
}

/* フォーム項目 */
.form-group {
    margin-bottom: 32px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    letter-spacing: 0.05em;
    color: #555;
}

/* input / textarea 共通 */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 0;
    font-size: 15px;
    border: none;
    border-bottom: 1px solid #aaa;
    background: transparent;
    outline: none;
    transition: border-color 0.3s ease;
}

/* フォーカス時 */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 0;
    font-size: 15px;

    font-family: inherit;   /* 追加 */
    font-weight: normal;    /* 追加 */

    border: none;
    border-bottom: 1px solid #aaa;
    background: transparent;
    outline: none;
    transition: border-color 0.3s ease;
}

/* textarea */
.form-group textarea {
    resize: vertical;
}

/* 送信ボタン */
.form-actions {
    margin-top: 48px;
}

.form-actions button {
    background: none;
    border: 1px solid #000;
    padding: 12px 40px;
    font-size: 14px;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;

    color: #000;
    font-family: inherit;
    font-weight: normal;
    -webkit-appearance: none;
}

.form-actions button:hover {
    background: #000;
    color: #fff;
}


.contact-intro .form-success {
    color: #2e7d32;
    margin-bottom: 20px;
}

.contact-intro .form-error {
    color: #c62828;
    margin-bottom: 20px;
}



/* =============================
   Contact Instagram
============================= */

.contact-instagram {
    margin-top: 64px;
    text-align: center;
}

.instagram-label {
    font-size: 14px;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.instagram-qr-link img {
    width: 160px;
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .instagram-qr-link img {
        width: 140px;
    }
}


/* =============================
   About Page
============================= */

.about-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 120px 20px 80px;
}

.about-content p {
    font-size: 15px;
    line-height: 1.9;
    color: #222;
}


.about-page .nav-prev,
.about-page .nav-next {
    display: none;
}



/* =========================
   CV PAGE
========================= */

.cv-page {
  padding-top: 120px;
}

.cv-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 120px;
  font-size: 16px;
  line-height: 1.9;
}

.cv-header {
  margin-bottom: 64px;
}

.cv-name {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* --- Section --- */

.cv-section {
  margin-top: 80px;
}

.cv-section:first-of-type {
  margin-top: 40px; /* 略歴は少し詰める */
}

.cv-section h2 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}

/* --- Items --- */

.cv-item {
  display: flex;
  gap: 24px;
  margin-bottom: 14px;
}

.cv-year {
  width: 72px;
  flex-shrink: 0;
  font-weight: 500;
}

.cv-body {
  flex: 1;
}

/* =========================
   Mobile
========================= */

@media (max-width: 768px) {

  .cv-container {
    font-size: 15px;
  }

  .cv-name {
    font-size: 26px;
  }

  .cv-year {
    width: 60px;
    font-size: 14px;
  }

  .cv-section {
    margin-top: 64px;
  }

}



/* ==========================
   Work Page
========================== */

.work-page {
  width: 100%;
}


/* --------------------------
   Media
-------------------------- */

.work-media {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

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

/* PC以上：画像幅を制御 */
@media screen and (min-width: 769px) {
  .work-media img {
    max-width: 720px; /* ← 縦画像基準。調整ポイント */
  }
}

/* --------------------------
   Text
-------------------------- */

.work-text {
  max-width: 720px;
  margin: 0 auto 120px;
  padding: 0 20px;
}

.work-text p {
  font-size: 15px;
  line-height: 1.9;
  color: #222;
}

/* Mobile */
@media screen and (max-width: 768px) {
  .work-text {
    padding: 0 16px;
    margin-bottom: 80px;
  }

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


.about-text p {
    margin-bottom: 1.4em;
    line-height: 1.7;
}

.about-lead {
    margin-bottom: 2em;
}

.about-author {
    margin-top: 3em;
}

.about-list {
    margin-bottom: 1.6em;
    padding-left: 1.2em;
}

.about-list li {
    margin-bottom: 0.6em;
}


/* =============================
   Mobile Adjustment
============================= */

@media screen and (max-width: 768px) {
    .contact-page {
        padding: 100px 16px 60px;
    }

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

    /* About Page */
    .about-page {
        padding: 100px 16px 60px;
    }

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

/* ==========================
   Header Layout (Unified)
========================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
}

/* 共通行 */
.header-row {
  width: 100%;
}

/* 1段目 */
.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;

  height: 60px;
  padding: 0 16px;
}

.menu-button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.page-title {
  justify-self: center;
  font-size: 16px;
  font-weight: normal;
  margin: 0;
}

.lang-switch {
  justify-self: end;
  font-size: 14px;
}

/* 2段目 */
.header-sub {
  text-align: center;
  padding: 6px 16px 10px;
}

.page-subtitle {
  margin: 0;
  font-size: 13px;
  color: #666;
}

/* サブ見出しが無い場合は非表示 */
.header-sub:empty,
.header-sub:not(:has(.page-subtitle:not(:empty))) {
  display: none;
}


main {
  padding-top: 60px;
}

/* サブ見出しがあるページ用 */
.has-header-sub main {
  padding-top: 96px; /* 60 + サブ見出し分 */
}



/* ==========================
   中央固定+左右ナビ
========================== */

.page-title-wrap {
  position: relative;
  justify-self: center;
  display: flex;
  align-items: center;
}

/* 見出し */
.page-title {
  font-size: 16px;
  font-weight: normal;
  margin: 0;
  letter-spacing: 0.08em;
}

/* < > 共通 */
.nav-prev,
.nav-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  text-decoration: none;
  color: #000;
  cursor: pointer;
}

/* 左 */
.nav-prev {
  left: -40px;
}
.nav-prev::before {
  content: "<";
}

/* 右 */
.nav-next {
  right: -40px;
}
.nav-next::before {
  content: ">";
}

/* 非表示用 */
.nav-prev.is-hidden,
.nav-next.is-hidden {
  display: none;
}



@media (max-width: 768px) {

  .page-title-wrap {
    width: 100%;
    justify-content: center;
  }

  .nav-prev {
    left: 16px;
  }

  .nav-next {
    right: 16px;
  }

  .page-title {
    padding: 0 48px;
  }

}

