/* ==========================================================
   nini — pastel painting portfolio
   白基調 / 余白 / 絵が主役のギャラリーサイト
   ========================================================== */

:root {
  /* 作品の色調から採ったパレット */
  --paper: #fcfbf8;        /* 温かみのある白 */
  --paper-soft: #f4f2ec;   /* セクション背景 */
  --ink: #3c4148;          /* 見出し・濃い文字 */
  --text: #55595f;         /* 本文 */
  --muted: #96938c;        /* 補助テキスト */
  --line: #e6e2d9;         /* 罫線 */
  --dusk: #93a6b4;         /* 夕暮れの青 */
  --dusk-deep: #5d7284;    /* 濃い夕暮れ */
  --apricot: #e3b18c;      /* 残照の橙 */

  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --latin: "Cormorant Garamond", serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-gap: clamp(5rem, 12vw, 9rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 2.1;
  letter-spacing: 0.06em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease, color 0.3s ease;
}

figure { margin: 0; }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.pc { display: none; }
@media (min-width: 720px) { .pc { display: inline; } }

::selection { background: #dde6ec; }

/* ----------------------------------------------------------
   ヘッダー
   ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--gutter);
  /* 注意: ヘッダーに backdrop-filter を付けると、
     子要素のモバイルメニュー(position: fixed)がヘッダー内に閉じ込められる */
  background: rgba(252, 251, 248, 0.95);
  border-bottom: 1px solid rgba(230, 226, 217, 0.6);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  line-height: 1;
}

.brand-name {
  font-family: var(--latin);
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--ink);
}

.brand-sub {
  font-family: var(--latin);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--muted);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.4rem);
}

.site-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--text);
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover { color: var(--ink); }

.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--dusk);
}

.nav-shop a {
  font-family: var(--latin);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  color: var(--dusk-deep);
}

.ext {
  font-size: 0.8em;
  margin-left: 0.35em;
  opacity: 0.7;
}

/* モバイルナビ */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  margin-right: -8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle-line,
.nav-toggle-line::before,
.nav-toggle-line::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 24px; height: 1px;
  background: var(--ink);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.nav-toggle-line { top: 21px; }
.nav-toggle-line::before { left: 0; top: -7px; }
.nav-toggle-line::after { left: 0; top: 7px; }

.nav-open .nav-toggle-line { background: transparent; }
.nav-open .nav-toggle-line::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-line::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 840px) {
  .nav-toggle { display: block; z-index: 60; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: grid;
    place-items: center;
    background: rgba(252, 251, 248, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }

  .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 2.2rem;
    text-align: center;
  }

  .site-nav a { font-size: 1rem; letter-spacing: 0.3em; }
}

/* ----------------------------------------------------------
   共通パーツ
   ---------------------------------------------------------- */
main { display: block; }

.section-label {
  font-family: var(--latin);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--dusk);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--ink);
  line-height: 1.6;
}

.section-head { text-align: center; }

.text-link {
  display: inline-block;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: var(--dusk-deep);
  border-bottom: 1px solid rgba(147, 166, 180, 0.5);
  padding-bottom: 0.15em;
}

.text-link:hover { color: var(--ink); border-bottom-color: var(--ink); }

.text-link .arrow {
  display: inline-block;
  margin-left: 0.4em;
  transition: transform 0.3s ease;
}

.text-link:hover .arrow { transform: translateX(4px); }

.inline-link {
  color: var(--dusk-deep);
  border-bottom: 1px solid rgba(147, 166, 180, 0.5);
}

.inline-link:hover { color: var(--ink); }

.button {
  display: inline-block;
  padding: 0.95em 3em;
  font-family: var(--serif);
  font-size: 0.88rem;
  letter-spacing: 0.24em;
  color: var(--paper);
  background: var(--dusk-deep);
  border: 1px solid var(--dusk-deep);
  transition: background 0.35s ease, color 0.35s ease;
}

.button:hover { background: var(--ink); border-color: var(--ink); }

.button-ghost {
  background: transparent;
  color: var(--dusk-deep);
}

.button-ghost:hover {
  background: var(--dusk-deep);
  color: var(--paper);
}

/* スクロール時のフェードイン(控えめに) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ----------------------------------------------------------
   トップ:ヒーロー
   ---------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem) var(--gutter) 0;
}

.hero-art {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.hero-art img {
  width: 100%;
  animation: hero-in 2.2s ease both;
}

@keyframes hero-in {
  from { opacity: 0; transform: scale(1.015); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art img { animation: none; }
}

.hero-text {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding: clamp(1.8rem, 4vw, 3rem) 0 0;
}

.hero-copy {
  font-size: clamp(1.55rem, 3.4vw, 2.3rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  line-height: 2;
  color: var(--ink);
}

.hero-lead {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 2.4;
  padding-top: 0.5em;
}

/* 縦書きの一句(和のギャラリーらしさ) */
@media (min-width: 720px) {
  .hero-copy {
    writing-mode: vertical-rl;
    min-height: 11em;
  }
}

/* ----------------------------------------------------------
   トップ:ステートメント
   ---------------------------------------------------------- */
.statement {
  text-align: center;
  padding: var(--section-gap) var(--gutter) 0;
  max-width: 760px;
  margin: 0 auto;
}

.statement-en {
  font-family: var(--latin);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.22em;
  color: var(--dusk);
  margin-bottom: 2.2rem;
}

.statement-body {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 2.7;
  color: var(--text);
  margin-bottom: 2.8rem;
}

/* ----------------------------------------------------------
   トップ:作品ピックアップ
   ---------------------------------------------------------- */
.featured {
  padding: var(--section-gap) var(--gutter) 0;
  max-width: 1240px;
  margin: 0 auto;
}

.featured-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

@media (min-width: 720px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }

  /* 段違いの配置でテンプレート感を消す */
  .featured-item:nth-child(1) { grid-column: 1; width: 92%; }
  .featured-item:nth-child(2) { grid-column: 2; margin-top: 5.5rem; width: 92%; margin-left: auto; }
  .featured-item:nth-child(3) { grid-column: 1 / -1; width: min(62%, 640px); margin: 1.5rem auto 0; }
}

.featured-item figure img,
.work-frame img {
  box-shadow: 0 14px 45px -18px rgba(70, 82, 94, 0.35);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.featured-item:hover figure img {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px -18px rgba(70, 82, 94, 0.42);
}

.featured-item figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
}

.work-title {
  font-size: 1.02rem;
  letter-spacing: 0.2em;
  color: var(--ink);
}

.work-note {
  font-family: var(--latin);
  font-style: italic;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
}

.section-more {
  text-align: center;
  padding-top: clamp(2.5rem, 6vw, 4rem);
}

/* ----------------------------------------------------------
   販売バナー
   ---------------------------------------------------------- */
.shop-banner {
  margin-top: var(--section-gap);
  padding: clamp(4rem, 9vw, 6.5rem) var(--gutter);
  background:
    linear-gradient(180deg,
      #e7e8e5 0%,
      #f1e8dd 100%);
  text-align: center;
}

.shop-banner-inner { max-width: 640px; margin: 0 auto; }

.shop-title {
  font-size: clamp(1.3rem, 2.6vw, 1.65rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--ink);
  margin-bottom: 1.4rem;
}

.shop-text {
  font-size: 0.95rem;
  line-height: 2.4;
  margin-bottom: 2.4rem;
}

.shop-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2rem;
}

/* ----------------------------------------------------------
   トップ:プロフィール抜粋
   ---------------------------------------------------------- */
.home-profile {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--section-gap) var(--gutter) 0;
}

@media (min-width: 720px) {
  .home-profile { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 7vw, 5.5rem); }
}

.home-profile-photo img {
  border-radius: 50%;
  width: min(300px, 70vw);
  margin: 0 auto;
  filter: saturate(0.92);
}

.home-profile-text .section-title { margin-bottom: 1.4rem; }
.home-profile-text p { margin-bottom: 1.8rem; font-size: 0.95rem; }

@media (max-width: 719px) {
  .home-profile-text { text-align: center; }
}

/* ----------------------------------------------------------
   トップ:Instagram
   ---------------------------------------------------------- */
.instagram-band {
  text-align: center;
  padding: var(--section-gap) var(--gutter);
}

.instagram-title {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink);
  margin-bottom: 1.2rem;
}

.instagram-text {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 2.4rem;
}

/* ----------------------------------------------------------
   下層ページ共通
   ---------------------------------------------------------- */
.page-head {
  text-align: center;
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter) 0;
}

.page-title {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  font-weight: 500;
  letter-spacing: 0.26em;
  color: var(--ink);
}

.page-lead {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 2.4;
  padding-top: 1.8rem;
}

.page-next {
  text-align: center;
  padding: var(--section-gap) var(--gutter);
}

/* ----------------------------------------------------------
   作品一覧
   ---------------------------------------------------------- */
.works-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter) 0;
  display: grid;
  gap: clamp(4.5rem, 10vw, 7.5rem);
}

.work {
  display: grid;
  gap: 1.6rem;
  align-items: end;
  scroll-margin-top: 6rem;
}

@media (min-width: 840px) {
  .work { grid-template-columns: 7fr 3fr; gap: clamp(2rem, 4vw, 3.5rem); }

  /* 左右交互に。額装のリズムをつくる */
  .work:nth-child(even) .work-frame { order: 2; }
  .work:nth-child(even) .work-caption { order: 1; text-align: right; }
  .work:nth-child(even) .work-caption .work-rule { margin-left: auto; }
}

.work-frame {
  display: block;
  cursor: zoom-in;
}

.work-caption { padding-bottom: 0.4rem; }

.work-caption .work-title {
  display: block;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  margin-bottom: 0.6rem;
}

.work-data {
  font-family: var(--latin);
  font-style: italic;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.work-desc {
  font-size: 0.88rem;
  line-height: 2.3;
  color: var(--text);
}

/* ----------------------------------------------------------
   ライトボックス
   ---------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(30, 33, 38, 0.92);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.lightbox.is-open { opacity: 1; }

.lightbox-body {
  max-width: min(1300px, 100%);
  max-height: 100%;
  display: grid;
  gap: 1rem;
}

.lightbox-body img {
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  width: auto;
  margin: 0 auto;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-body figcaption {
  text-align: center;
  color: #d8dade;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  width: 48px; height: 48px;
  background: none;
  border: none;
  color: #eceef0;
  font-size: 1.9rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}

.lightbox-close:hover { opacity: 1; }

/* ----------------------------------------------------------
   世界観
   ---------------------------------------------------------- */
.concept-lead {
  text-align: center;
  padding: clamp(4rem, 9vw, 6.5rem) var(--gutter) 0;
}

.concept-copy {
  font-size: clamp(1.3rem, 2.8vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 2.2;
  color: var(--ink);
}

@media (min-width: 720px) {
  .concept-copy {
    writing-mode: vertical-rl;
    margin: 0 auto;
    min-height: 15em;
  }
}

.concept-body {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 5.5rem) var(--gutter) 0;
}

.concept-body p {
  margin-bottom: 2.6em;
  line-height: 2.6;
  font-size: 0.96rem;
}

.concept-body p:last-child { margin-bottom: 0; }

.concept-sign {
  font-family: var(--latin);
  font-style: italic;
  font-size: 1.3rem;
  letter-spacing: 0.3em;
  color: var(--dusk-deep);
  text-align: right;
}

.concept-art {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 5.5rem) var(--gutter) 0;
}

.concept-art img {
  box-shadow: 0 14px 45px -18px rgba(70, 82, 94, 0.35);
}

.concept-art figcaption {
  text-align: right;
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  color: var(--muted);
  padding-top: 1rem;
}

/* ----------------------------------------------------------
   プロフィール
   ---------------------------------------------------------- */
.profile-main {
  display: grid;
  gap: 2.8rem;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter) 0;
}

@media (min-width: 760px) {
  .profile-main {
    grid-template-columns: 4fr 6fr;
    gap: clamp(3rem, 6vw, 5rem);
    align-items: start;
  }
}

.profile-photo img {
  width: min(340px, 75vw);
  margin: 0 auto;
  border-radius: 2px;
  filter: saturate(0.92);
  box-shadow: 0 14px 45px -18px rgba(70, 82, 94, 0.35);
}

@media (min-width: 760px) {
  .profile-photo { position: sticky; top: 6rem; }
}

.profile-name {
  font-family: var(--latin);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.profile-name-sub {
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin-left: 0.6rem;
}

.profile-role {
  font-size: 0.88rem;
  letter-spacing: 0.26em;
  color: var(--dusk-deep);
  margin-bottom: 2.2rem;
}

.profile-text p { margin-bottom: 1.9em; font-size: 0.95rem; }

.profile-links { display: grid; gap: 0.9rem; padding-top: 0.5rem; }

/* ----------------------------------------------------------
   お問い合わせ
   ---------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: 1.8rem;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 5.5rem) var(--gutter) 0;
}

@media (min-width: 720px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 2.4rem; }
}

.contact-card {
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 4.5vw, 3rem);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.contact-card:hover {
  border-color: var(--dusk);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(70, 82, 94, 0.3);
}

.contact-card-label {
  font-family: var(--latin);
  font-size: 0.78rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--dusk);
  margin-bottom: 1.2rem;
}

.contact-card-value {
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.contact-card-mail {
  font-family: var(--latin);
  font-size: 1rem;
  letter-spacing: 0.05em;
  word-break: break-all;
}

.contact-card-note {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 2.1;
  margin-bottom: 1.8rem;
  flex-grow: 1;
}

.contact-card-action {
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  color: var(--dusk-deep);
  border-bottom: 1px solid rgba(147, 166, 180, 0.5);
  align-self: flex-start;
  padding-bottom: 0.15em;
}

.contact-purchase {
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) var(--section-gap);
  font-size: 0.92rem;
  color: var(--muted);
}

/* ----------------------------------------------------------
   フッター
   ---------------------------------------------------------- */
.site-footer {
  margin-top: var(--section-gap);
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 2.5rem;
}

.page-home .site-footer,
.page-contact .site-footer { margin-top: 0; }

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-family: var(--latin);
  font-size: 1.4rem;
  letter-spacing: 0.32em;
  color: var(--ink);
  margin-bottom: 1.8rem;
}

.footer-sub {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin-left: 0.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin-bottom: 2.4rem;
}

.footer-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.footer-nav a:hover { color: var(--ink); }

.footer-copy {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}
