/* JESSIE theme — 完成デザインの忠実な再現 */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  background: #ffffff;
  color: #1a1a1a;
  font-family: 'Jost', 'Zen Kaku Gothic New', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: #2c3a63; text-decoration: none; transition: color .2s ease; }
a:hover { color: #8a7250; }

.jessie-site { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
.jessie-main { flex: 1 0 auto; }

/* ---------- Header ---------- */
.jessie-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 42px 0;
}
.jessie-logo { display: flex; align-items: center; gap: 14px; }
.jessie-logo__mark {
  width: 38px; height: 38px; background: #111; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 500; letter-spacing: .02em;
  flex-shrink: 0;
}
.jessie-logo__text { display: flex; flex-direction: column; gap: 3px; }
.jessie-logo__name { font-family: 'Cormorant Garamond', serif; font-size: 24px; letter-spacing: .16em; line-height: 1; color: #111; }
.jessie-logo__role { font-size: 9px; letter-spacing: .42em; color: #6b6b6b; line-height: 1; }

.jessie-menu-toggle {
  display: flex; align-items: center; gap: 11px;
  background: none; border: none; cursor: pointer; padding: 8px 0;
  font-family: 'Jost', sans-serif; flex-shrink: 0;
}
.jessie-menu-toggle__bars { display: flex; flex-direction: column; gap: 5px; width: 22px; }
.jessie-menu-toggle__bars span { height: 1px; background: #111; display: block; }
.jessie-menu-toggle__label { font-size: 12px; letter-spacing: .18em; color: #111; }

/* ---------- Nav overlay ---------- */
.jessie-nav {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(255,255,255,.98);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
  padding: 24px;
}
.jessie-nav.is-open { opacity: 1; visibility: visible; }
.jessie-nav__close {
  position: absolute; top: 26px; right: 42px;
  background: none; border: none; cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: 12px; letter-spacing: .18em; color: #111;
}
.jessie-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.jessie-nav__list a { font-family: 'Cormorant Garamond', serif; font-size: 30px; letter-spacing: .14em; color: #111; }

/* ---------- Hero ---------- */
.jessie-hero { padding: 96px 42px 84px; text-align: center; }
.jessie-hero__title {
  margin: 0; font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: 44px; letter-spacing: .03em; color: #1b1b22;
}
.jessie-hero__lead,
.jessie-hero__body {
  margin: 22px auto 0; max-width: 560px;
  font-size: 13px; line-height: 2.1; letter-spacing: .02em; color: #4a5578; text-wrap: pretty;
}
.jessie-hero__body { margin-top: 8px; text-align: left; }

/* ---------- Gallery grid ---------- */
.jessie-gallery-section { padding: 0 42px 60px; }
.jessie-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; max-width: 1100px; margin: 0 auto; }
.jessie-tile { display: block; position: relative; width: 100%; min-width: 0; overflow: hidden; aspect-ratio: 1672 / 2508; }
.jessie-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .3s ease; }
.jessie-tile:hover img { opacity: .82; }

/* ---------- Gallery detail ---------- */
.jessie-detail-intro { padding: 56px 42px 24px; text-align: center; }
.jessie-detail-intro__title {
  margin: 0; font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: 34px; letter-spacing: .03em; color: #1b1b22;
}
.jessie-detail-intro__body {
  margin: 16px auto 0; max-width: 520px;
  font-size: 13px; line-height: 2.1; letter-spacing: .02em; color: #4a5578;
}
.jessie-detail-section { padding: 24px 42px 80px; }
.jessie-detail-grid {
  display: grid; gap: 16px; max-width: 900px; margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(0, 240px)); justify-content: center;
}
.jessie-detail-tile {
  position: relative; width: 100%; aspect-ratio: 1672 / 2508;
  padding: 0; border: none; background: none; cursor: zoom-in; overflow: hidden;
}
.jessie-detail-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

.jessie-backtop { margin: 48px 0 0; text-align: center; }
.jessie-backtop a { font-size: 11px; letter-spacing: .2em; color: #111; border-bottom: 1px solid #111; padding-bottom: 6px; }

/* ---------- Lightbox ---------- */
.jessie-lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(10,10,10,.94);
  display: flex; align-items: center; justify-content: center; padding: 40px;
}
.jessie-lightbox[hidden] { display: none; }
.jessie-lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; }
.jessie-lightbox__close {
  position: absolute; top: 26px; right: 42px; background: none; border: none; cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: 12px; letter-spacing: .18em; color: #fff;
}

/* ---------- Shared page bits ---------- */
.jessie-eyebrow { font-size: 10px; letter-spacing: .32em; color: #8a7250; }
.jessie-page-title {
  margin: 14px 0 0; font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: 44px; letter-spacing: .03em; color: #1b1b22;
}

/* ---------- Profile ---------- */
.jessie-profile { padding: 96px 42px 84px; text-align: center; }
.jessie-profile__grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px;
  max-width: 1080px; margin: 52px auto 0; align-items: stretch; text-align: left;
}
.jessie-profile__main {
  position: relative; width: 100%; aspect-ratio: 1088 / 1610; overflow: hidden;
  filter: grayscale(1); border-radius: 2px; background: #f2f2f2;
}
.jessie-profile__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.jessie-profile__side { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.jessie-profile__cell {
  position: relative; width: 100%; overflow: hidden;
  filter: grayscale(1); border-radius: 2px; background: #f2f2f2;
}
.jessie-profile__cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jessie-profile__text { margin: 52px auto 0; max-width: 1080px; text-align: left; }
.jessie-profile__text p {
  margin: 0 0 22px; font-size: 13px; line-height: 2.1; letter-spacing: .02em; color: #4a5578; text-wrap: pretty;
}
.jessie-profile__text p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.jessie-contact { padding: 96px 42px 100px; max-width: 560px; margin: 0 auto; width: 100%; }
.jessie-contact__head { text-align: center; margin-bottom: 48px; }
.jessie-contact__lead {
  margin: 20px auto 0; max-width: 440px;
  font-size: 13px; line-height: 2.1; letter-spacing: .02em; color: #4a5578;
}
.jessie-notice {
  margin: 18px auto 0; max-width: 460px; font-size: 12px; line-height: 1.9; letter-spacing: .02em;
  color: #8a7250; background: #faf6ef; border: 1px solid #ece2d0; padding: 14px 18px;
}
.jessie-contact__done { text-align: center; padding: 60px 24px; border: 1px solid #ececec; }
.jessie-contact__done p { margin: 0; font-size: 14px; letter-spacing: .04em; color: #1b1b22; }

.jessie-form { display: flex; flex-direction: column; gap: 22px; }
.jessie-field { display: flex; flex-direction: column; gap: 8px; }
.jessie-field label { font-size: 10px; letter-spacing: .16em; color: #6b6b6b; }
.jessie-req { color: #b23b3b; }
.jessie-field input,
.jessie-field textarea {
  font-family: 'Jost', 'Zen Kaku Gothic New', sans-serif;
  font-size: 14px; color: #1a1a1a; background: transparent; outline: none; width: 100%;
}
.jessie-field input { border: none; border-bottom: 1px solid #ddd; padding: 10px 2px; border-radius: 0; }
.jessie-field textarea { border: 1px solid #ddd; padding: 12px; resize: vertical; }
.jessie-field input::placeholder,
.jessie-field textarea::placeholder { color: #a8a8b0; }
.jessie-field input:focus,
.jessie-field textarea:focus { border-color: #8a7250; }
.jessie-form__error { margin: 0 0 18px; font-size: 12px; color: #b23b3b; }
.jessie-submit {
  margin-top: 8px; padding: 15px 0; background: #111; color: #fff; border: none;
  font-family: 'Jost', sans-serif; font-size: 12px; letter-spacing: .2em; cursor: pointer;
  transition: opacity .2s ease;
}
.jessie-submit:hover { opacity: .85; }
.grecaptcha-badge { visibility: hidden; }

/* ---------- Generic page / posts ---------- */
.jessie-page, .jessie-archive, .jessie-404 { padding: 96px 42px 84px; max-width: 1080px; margin: 0 auto; width: 100%; }
.jessie-404 { text-align: center; }
.jessie-page__content, .jessie-post__excerpt, .jessie-404__body {
  font-size: 13px; line-height: 2.1; letter-spacing: .02em; color: #4a5578;
}
.jessie-page__content { margin-top: 32px; }
.jessie-posts { margin-top: 44px; display: flex; flex-direction: column; gap: 40px; }
.jessie-post__date { font-size: 10px; letter-spacing: .18em; color: #9a9a9a; }
.jessie-post__title { margin: 10px 0 0; font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 24px; letter-spacing: .04em; }
.jessie-pagination { margin-top: 48px; font-size: 12px; letter-spacing: .12em; }
.jessie-empty { margin-top: 40px; font-size: 13px; color: #4a5578; }

/* ---------- Footer ---------- */
.jessie-footer {
  border-top: 1px solid #ececec; margin-top: 40px; padding: 34px 42px;
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
}
.jessie-footer__brand { font-family: 'Cormorant Garamond', serif; font-size: 16px; letter-spacing: .16em; color: #111; }
.jessie-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 26px; }
.jessie-footer__list a { font-size: 11px; letter-spacing: .16em; color: #6b6b6b; }
.jessie-footer__copy { font-size: 10px; letter-spacing: .14em; color: #9a9a9a; }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .jessie-header { padding: 18px 24px 0; }
  .jessie-hero { padding: 72px 24px 64px; }
  .jessie-gallery-section { padding: 0 24px 48px; }
  .jessie-detail-intro { padding: 48px 24px 20px; }
  .jessie-detail-section { padding: 20px 24px 64px; }
  .jessie-profile, .jessie-contact, .jessie-page, .jessie-archive, .jessie-404 { padding-left: 24px; padding-right: 24px; }
  .jessie-footer { padding: 30px 24px; }
}

/* ---------- Smartphone ---------- */
@media (max-width: 600px) {
  .jessie-header { padding: 16px 20px 0; }
  .jessie-hero { padding: 56px 20px 48px; }
  .jessie-hero__title { font-size: 34px; }
  .jessie-hero__lead, .jessie-hero__body { max-width: 100%; }

  .jessie-gallery-section { padding: 0 20px 40px; }
  .jessie-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .jessie-detail-intro { padding: 40px 20px 16px; }
  .jessie-detail-intro__title { font-size: 27px; }
  .jessie-detail-section { padding: 16px 20px 56px; }
  .jessie-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

  .jessie-lightbox { padding: 20px; }
  .jessie-lightbox__close { right: 20px; }
  .jessie-nav__close { right: 20px; }

  .jessie-page-title { font-size: 34px; }
  .jessie-profile, .jessie-contact, .jessie-page, .jessie-archive, .jessie-404 { padding: 56px 20px 64px; }
  .jessie-profile__grid { grid-template-columns: 1fr; gap: 12px; margin-top: 36px; }
  .jessie-profile__side { grid-template-rows: auto auto; gap: 12px; }
  .jessie-profile__cell { aspect-ratio: 1088 / 1610; }
  .jessie-profile__text { margin-top: 36px; }

  .jessie-footer { padding: 26px 20px; gap: 14px; justify-content: center; text-align: center; }
  .jessie-footer__list { justify-content: center; gap: 18px; }
}
