/* ===========================================================
   八花ノノ 公式サイト — style.css
   Manga Artist / Editorial / Minimal / Monochrome / Japanese
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500;600&display=swap');

:root {
  --bg: #FFFFFF;
  --text-main: #111111;
  --text-sub: #777777;
  --line: #DDDDDD;
  --img-bg: #F0F0F0;

  --font-jp: 'Shippori Mincho', 'Noto Serif JP', serif;
  --font-en: 'futura-pt', 'Helvetica Neue', Arial, sans-serif;

  --gap-section-pc: 160px;
  --gap-section-sp: 100px;
  --gap-work-pc: 160px;
  --gap-work-sp: 120px;
  --side-margin-sp: 24px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-main);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cg stroke='%23111111' stroke-width='0.7'%3E%3Cline x1='12' y1='2' x2='12' y2='8'/%3E%3Cline x1='12' y1='16' x2='12' y2='22'/%3E%3Cline x1='2' y1='12' x2='8' y2='12'/%3E%3Cline x1='16' y1='12' x2='22' y2='12'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='1.3' fill='%23111111'/%3E%3C/svg%3E") 12 12, crosshair;
}

a,
button,
.menu-toggle {
  cursor: pointer;
}

input,
textarea {
  cursor: text;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.en {
  font-family: var(--font-en);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--side-margin-sp);
}

@media (min-width: 1025px) {
  .container { padding: 0 40px; }
}

/* ---------------- Header ---------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid transparent;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.site-header.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

main {
  padding-top: 64px;
}

main.has-hero {
  padding-top: 0;
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-jp {
  font-size: 15px;
  letter-spacing: 0.05em;
}

.brand-en {
  font-family: var(--font-en);
  font-size: 9px;
  color: var(--text-sub);
  letter-spacing: 0.14em;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.main-nav a {
  position: relative;
  padding-bottom: 3px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--text-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-main);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
  padding: 0 var(--side-margin-sp);
}

.mobile-nav a {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.mobile-nav.is-open { display: flex; }

@media (max-width: 767px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
}

.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 2400 / 1200;
  overflow: hidden;
  background: var(--bg);
}

@media (max-width: 767px) {
  .hero-visual {
    aspect-ratio: 7 / 10;
  }
  .hero-visual-base {
    object-fit: cover;
    object-position: right bottom;
  }
}

.hero-visual-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-text {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  pointer-events: none;
}

.hero-jp {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: 'fot-tsukuaoldmin-pr6n', var(--font-jp);
  font-size: clamp(36px, 5.5vw, 80px);
  font-weight: 300;
  font-style: normal;
  letter-spacing: 0.03em;
  line-height: 1;
  margin: 0;
}

.hero-en {
  font-family: var(--font-en);
  font-size: clamp(12px, 1.4vw, 16px);
  letter-spacing: 0.16em;
  color: var(--text-sub);
  margin: 16px 0 0;
}

.hero-role {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-sub);
  margin: 6px 0 0;
}

@media (max-width: 767px) {
  .hero-text { align-items: flex-start; padding-bottom: 24px; }
  .hero-jp { font-size: clamp(50px, 7.8vw, 115px); }
  .hero-en { margin: 48px 0 0; }
}

.hero-scroll {
  position: absolute;
  right: var(--side-margin-sp);
  bottom: clamp(16px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-sub);
  pointer-events: none;
}

.hero-scroll-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 11px;
  letter-spacing: 0.2em;
}

.hero-scroll-arrow {
  display: block;
  font-size: 16px;
  color: var(--text-main);
  animation: hero-scroll-bounce 1.6s ease-in-out infinite;
}

@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.4; }
}

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

@media (min-width: 1025px) {
  .hero-scroll { right: 40px; }
}

.works-band {
  background: var(--img-bg);
}

.spotlight-overlay {
  position: fixed;
  inset: 0;
  background: #000000;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.6s var(--ease);
}

.spotlight-overlay.is-active {
  opacity: 0.85;
}

.featured-media.is-spotlit ~ .featured-text,
.work-media.is-spotlit ~ .work-text {
  position: relative;
  z-index: 51;
}

.featured-media.is-spotlit ~ .featured-text .featured-index,
.featured-media.is-spotlit ~ .featured-text .featured-title,
.featured-media.is-spotlit ~ .featured-text .featured-meta,
.featured-media.is-spotlit ~ .featured-text .featured-desc,
.featured-media.is-spotlit ~ .featured-text .read-link,
.work-media.is-spotlit ~ .work-text .work-index,
.work-media.is-spotlit ~ .work-text .work-title,
.work-media.is-spotlit ~ .work-text .work-meta,
.work-media.is-spotlit ~ .work-text .featured-desc,
.work-media.is-spotlit ~ .work-text .read-link {
  color: #FFFFFF;
  transition: color 0.3s var(--ease);
}

.cursor-sparkle {
  position: fixed;
  left: 0;
  top: 0;
  color: #FFFFFF;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
  z-index: 70;
  animation: cursor-sparkle-fade 0.8s ease-out forwards;
}

@keyframes cursor-sparkle-fade {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift, 0px)), -70%) scale(0.5) rotate(50deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-sparkle { display: none; }
}

/* ---------------- Section rhythm ---------------- */

.section {
  padding-top: 120px;
  padding-bottom: 120px;
}

@media (max-width: 767px) {
  .section { padding-top: var(--gap-section-sp); padding-bottom: var(--gap-section-sp); }
}

.section-heading {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-sub);
  margin: 0 0 40px;
}

/* ---------------- Featured work ---------------- */

.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.featured.reverse .featured-media { order: 2; }
.featured.reverse .featured-text { order: 1; }

.featured-media {
  position: relative;
  z-index: 1;
  aspect-ratio: 257 / 364;
  overflow: hidden;
}

.featured-media.is-spotlit {
  z-index: 60;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.featured-media:hover img {
  transform: scale(1.015);
}

.featured-index {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--text-sub);
  letter-spacing: 0.1em;
  margin: 0 0 18px;
}

.featured-title {
  font-size: 34px;
  font-weight: 500;
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}

.featured-meta {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--text-sub);
  letter-spacing: 0.06em;
  margin: 0 0 22px;
}

.featured-desc {
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.9;
  margin: 0 0 28px;
  max-width: 46ch;
}

@media (max-width: 1024px) {
  .featured { grid-template-columns: 1fr; gap: 28px; }
  .featured.reverse .featured-media,
  .featured.reverse .featured-text { order: initial; }
}

/* ---------------- Link / button (text + arrow only) ---------------- */

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-main);
  background: none;
  border: none;
  padding: 0;
}

.read-link .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

.read-link:hover {
  color: var(--text-sub);
}

.read-link:hover .arrow {
  transform: translateX(6px);
}

/* ---------------- Works list ---------------- */

.works-list {
  display: flex;
  flex-direction: column;
}

.work-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.works-list .work-row:last-child {
  border-bottom: 1px solid var(--line);
}

.work-row.reverse .work-media { order: 2; }
.work-row.reverse .work-text { order: 1; }

.work-media {
  position: relative;
  z-index: 1;
  aspect-ratio: 257 / 364;
  overflow: hidden;
}

.work-media.is-spotlit {
  z-index: 60;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.work-media:hover img {
  transform: scale(1.015);
}

.work-index {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--text-sub);
  margin: 0 0 16px;
}

.work-title {
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 10px;
}

.work-meta {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--text-sub);
  letter-spacing: 0.05em;
  margin: 0 0 18px;
}

@media (max-width: 1024px) {
  .work-row { grid-template-columns: 1fr; gap: 24px; padding: 56px 0; }
  .work-row.reverse .work-media,
  .work-row.reverse .work-text { order: initial; }
}

/* ---------------- Footer ---------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.footer-copy {
  font-family: var(--font-en);
  font-size: 10px;
  color: var(--text-sub);
  letter-spacing: 0.08em;
}

/* ---------------- Reveal on scroll ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ---------------- Profile page ---------------- */

.profile-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 72px;
  padding-top: 80px;
  padding-bottom: 120px;
}

.profile-photo {
  position: relative;
  margin-top: 40px;
  /* グリッドで右の文章の高さまで伸びると、アイコンの下の余白まで吹き出しの反応範囲になるため */
  align-self: start;
}

.profile-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
}

.profile-photo .profile-bubble {
  position: absolute;
  top: -8%;
  left: 86%;
  width: auto;
  max-width: none;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
  transform: translateX(-50%) scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  z-index: 5;
}

.profile-photo .profile-bubble.is-active {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

@media (max-width: 767px) {
  .profile-photo .profile-bubble {
    top: -40px;
    left: 100%;
  }
}

.profile-name-jp {
  font-size: 30px;
  font-weight: 500;
  margin: 0 0 4px;
}

.profile-name-en {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--text-sub);
  letter-spacing: 0.12em;
  margin: 0 0 4px;
}

.profile-role {
  font-family: var(--font-en);
  font-size: 11px;
  color: var(--text-sub);
  letter-spacing: 0.1em;
  margin: 0 0 28px;
}

.profile-bio {
  max-width: 58ch;
  margin: 0 0 48px;
}

.profile-subsection {
  margin-bottom: 40px;
}

.profile-subsection h2 {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-sub);
  margin: 0 0 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.profile-subsection ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-subsection li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.profile-subsection li .yr {
  font-family: var(--font-en);
  color: var(--text-sub);
  min-width: 4em;
}

.profile-subsection li a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.profile-subsection li a:hover {
  color: var(--text-sub);
}

.profile-sns a {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.08em;
}

@media (max-width: 767px) {
  .profile-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; padding-bottom: 80px; }
  .profile-photo { max-width: 200px; }
}

/* ---------------- Contact page ---------------- */

.contact-dark {
  background: #242422;
  color: #FFFFFF;
}

.contact-dark #contact-note {
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  padding-top: 100px;
  padding-bottom: 100px;
}

.contact-title {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin: 0 0 24px;
}

.contact-sub {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 32px;
  max-width: 50ch;
}

.contact-social {
  display: flex;
  gap: 16px;
}

.contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: #FFFFFF;
  transition: opacity 0.3s var(--ease);
}

.contact-social a:hover {
  opacity: 0.6;
}

.contact-form {
  max-width: 560px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: none;
  border-radius: 2px;
  background: #FFFFFF;
  padding: 14px 16px;
  font-family: var(--font-jp);
  font-size: 15px;
  color: #111111;
  transition: outline-color 0.3s var(--ease);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #999999;
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid #E4F65B;
  outline-offset: 2px;
}

.form-submit {
  margin-top: 12px;
  text-align: right;
}

.contact-dark .read-link {
  color: #FFFFFF;
}

.contact-dark .read-link:hover {
  opacity: 0.6;
}

#contact-note {
  margin-top: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 767px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ---------------- Focus visibility ---------------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 1px solid var(--text-main);
  outline-offset: 3px;
}
