
:root {
  --cream: #faf6f0;
  --beige: #f5ede3;
  --sand: #e8dcc8;
  --beige-mid: #e6d9c4;
  --beige-dark: #d4c4b0;
  --terra: #c26950;
  --terra-d: #a85537;
  --terra-l: #d99a87;
  --bark: #2e1f16;
  --white: #ffffff;
  --text-dk: #2e1f16;
  --text-md: #6b5046;
  --text-lt: #a88a78;
  --rule: rgba(194, 105, 74, 0.06);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Jost', sans-serif;
  color: var(--text-dk);
  line-height: 1.6;
}

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

.inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 6%;
}

.portfolio .inner {
  max-width: 1400px;
}

.sec {
  padding: 5rem 6%;
}

.s-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 400;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.s-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--terra);
}

.s-title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.3;
  font-weight: 500;
  color: var(--text-dk);
  margin-bottom: 2.5rem;
}

.tag, .chip {
  display: inline-block;
  background: var(--beige);
  border: 1px solid var(--beige-mid);
  padding: 0.32rem 0.9rem;
  font-size: 0.75rem;
  color: var(--text-md);
  font-weight: 300;
  letter-spacing: 0.04em;
  border-radius: 2px;
}

.fi {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fi.on {
  opacity: 1;
  transform: translateY(0);
}

.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }


header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 6%;
  background: rgba(250, 246, 240, 0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--terra);
  letter-spacing: 0.04em;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-md);
  font-weight: 300;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--terra);
}

.nav-cta {
  background: var(--terra);
  color: var(--white) !important;
  padding: 0.45rem 1.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--terra-d) !important;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 55% 45%;
  padding-top: 64px;
}

.hero-l {
  background: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 5% 5rem 8%;
}

.hero-r {
  background: var(--beige);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0;
}

/* 背景の装飾サークル */
.hero-r::before {
  content: '';
  position: absolute;
  bottom: -12%;
  right: -10%;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: var(--sand);
  opacity: 0.7;
}

.hero-r::after {
  content: '';
  position: absolute;
  top: 8%;
  left: -8%;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  background: var(--terra-l);
  opacity: 0.1;
}

/* ポートレートエリア*/
.hero-portrait {
  position: relative;
  z-index: 1;
  width: 72%;
  max-width: 320px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, var(--sand) 0%, var(--beige-mid) 100%);
  border-radius: 120px 120px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--beige-dark);
  border-bottom: none;
  overflow: hidden;
}

.hero-portrait-inner {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 5rem;
  color: var(--terra-l);
  opacity: 0.6;
  user-select: none;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 400;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--terra);
}

.hero-catch {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 1.2;
  font-weight: 500;
  color: var(--text-dk);
  margin-bottom: 0.5rem;
}

.hero-catch em {
  color: var(--terra);
  font-style: normal;
}

.hero-sub {
  font-size: 0.88rem;
  font-weight: 200;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-lt);
  margin-bottom: 2rem;
}

.hero-lead {
  font-size: 0.97rem;
  color: var(--text-md);
  font-weight: 300;
  line-height: 1.9;
  max-width: 460px;
  margin-bottom: 2.5rem;
  border-left: 2px solid var(--terra-l);
  padding-left: 1.2rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.8rem;
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--terra);
  color: var(--white);
  padding: 0.95rem 2.2rem;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.25s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--terra-d);
  transform: translateY(-2px);
}

.btn-ghost {
  font-size: 0.8rem;
  color: var(--text-md);
  letter-spacing: 0.08em;
  font-weight: 300;
  border-bottom: 1px solid var(--beige-dark);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  color: var(--terra);
  border-color: var(--terra);
}

/* ══════════════════════════════════════
   PROFILE ＋ SKILL TAGS
══════════════════════════════════════ */
.profile-sec {
  background: var(--cream);
}

.profile-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.profile-card {
  background: var(--white);
  border: 1px solid var(--beige-mid);
  padding: 2rem;
  position: sticky;
  top: 88px;
}

.profile-av {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sand), var(--beige-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 2.2rem;
  color: var(--terra);
  margin-bottom: 1rem;
  border: 1px solid var(--beige-dark);
}

.profile-name {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-dk);
  margin-bottom: 0.2rem;
}

.profile-role {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-lt);
  font-weight: 300;
  margin-bottom: 1.4rem;
}

.profile-rows {
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}

.p-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(194, 105, 74, 0.06);
}

.p-row:last-child {
  border-bottom: none;
}

.p-row .k {
  color: var(--text-lt);
  font-weight: 300;
}

.p-row .v {
  color: var(--text-dk);
  font-weight: 400;
  text-align: right;
}

.profile-body {
}

.profile-body p {
  font-size: 0.95rem;
  color: var(--text-md);
  font-weight: 300;
  line-height: 1.9;
  margin-bottom: 1.2rem;
}

.skill-tags-wrap {
  margin-top: 2.5rem;
}

.skill-tags-wrap h3 {
  font-family: 'Shippori Mincho', serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dk);
  margin-bottom: 1.2rem;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sk-tag {
  background: var(--white);
  border: 1px solid var(--beige-mid);
  padding: 0.32rem 1rem;
  font-size: 0.78rem;
  color: var(--text-md);
  font-weight: 300;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, color 0.2s;
  cursor: default;
}

.sk-tag:hover {
  border-color: var(--terra-l);
  color: var(--terra);
}

.sk-tag.hot {
  background: var(--terra);
  border-color: var(--terra);
  color: var(--white);
}

/* ══════════════════════════════════════
   SERVICES — できること
══════════════════════════════════════ */
.services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.sv-card {
  border: 1px solid var(--beige-mid);
  background: var(--white);
  padding: 1.8rem;
  position: relative;
  transition: border-color 0.25s, transform 0.2s;
}

.sv-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--terra);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.sv-card:hover {
  border-color: var(--beige-dark);
  transform: translateY(-3px);
}

.sv-card:hover::after {
  transform: scaleX(1);
}

.sv-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
  text-align: center;
  width: 100%;
}

.sv-card h3 {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-dk);
  margin-bottom: 0.5rem;
}

.sv-card p {
  font-size: 0.87rem;
  color: var(--text-md);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.sv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* ══════════════════════════════════════
   PORTFOLIO
══════════════════════════════════════ */
.portfolio {
  background: var(--beige);
}

.pf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
  width: 100%;
}

.pf-card {
  background: var(--white);
  border: 1px solid var(--beige-mid);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.pf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(194, 105, 74, 0.1);
}

.pf-thumb {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, var(--sand) 0%, var(--beige-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}

.pf-thumb-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(46, 31, 22, 0.45);
  padding: 0.5rem 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
}

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .lightbox-modal.show {
    display: flex;
    opacity: 1;
  }
  .lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  }
  .pf-thumb img {
    cursor: pointer;
    transition: opacity 0.2s;
  }
  .pf-thumb img:hover {
    opacity: 0.8;
  }
/* 画像を配置した際にはみ出さないようにする設定を追加 */
.pf-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pf-body {
  padding: 1.6rem;
  overflow-wrap: break-word;
}

.pf-cat {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terra-l);
  font-weight: 400;
  margin-bottom: 0.4rem;
}

.pf-body h3 {
  font-family: 'Shippori Mincho', serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dk);
  margin-bottom: 0.5rem;
}

.pf-body p {
  font-size: 0.85rem;
  color: var(--text-md);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 0.9rem;
}

.pf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* ══════════════════════════════════════
   NUMBERS — 実績数字
══════════════════════════════════════ */
.numbers {
  background: var(--terra);
  padding: 5rem 6%;
}

.num-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}

.num-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 1.8rem 1.5rem;
}

.num-fig {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 3.2rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.num-card h4 {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.772);
  margin-bottom: 0.3rem;
  letter-spacing: 0.05em;
}

.num-card p {
  font-size: 0.78rem;
  color: rgb(255, 255, 255);
  font-weight: 300;
  line-height: 1.6;
}

/* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */
.contact {
  background: var(--cream);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.contact-info .s-title {
  margin-bottom: 1.2rem;
}

.contact-info p {
  font-size: 0.93rem;
  color: var(--text-md);
  font-weight: 300;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.contact-note {
  background: var(--white);
  border: 1px solid var(--beige-mid);
  border-left: 3px solid var(--terra-l);
  padding: 1.1rem 1.3rem;
  font-size: 0.82rem;
  color: var(--text-md);
  font-weight: 300;
  line-height: 1.7;
}

.contact-note strong {
  color: var(--terra);
  font-weight: 400;
}

.c-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.f-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.f-label {
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-lt);
  font-weight: 400;
}

.c-form input,
.c-form textarea,
.c-form select {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--beige-mid);
  padding: 0.82rem 1.1rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.92rem;
  color: var(--text-dk);
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  border-radius: 2px;
}

.c-form input:focus,
.c-form textarea:focus,
.c-form select:focus {
  border-color: var(--terra-l);
}

.c-form textarea {
  resize: vertical;
  min-height: 130px;
}

.c-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a88a78' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.c-btn {
  align-self: flex-start;
  background: var(--terra);
  color: var(--white);
  border: none;
  cursor: pointer;
  padding: 0.95rem 2.5rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.25s, transform 0.2s;
  border-radius: 2px;
}

.c-btn:hover {
  background: var(--terra-d);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  background: var(--bark);
  padding: 2rem 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.f-logo {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
}

.f-copy {
  font-size: 0.75rem;
  color: #ffffff;
  font-weight: 300;
  letter-spacing: 0.07em;
}

.f-links {
  display: flex;
  gap: 1.5rem;
}

.f-links a {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 300;
  transition: color 0.2s;
}

.f-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-l {
    padding: 5rem 7% 3rem;
  }
  .hero-r {
    min-height: 280px;
  }
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .profile-card {
    position: static;
  }
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  nav ul {
    display: none;
  }
  footer {
    flex-direction: column;
    text-align: center;
  }
}


.pf-detail-btn {
    display: block;
    margin: 1.5rem auto 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #C0714A;
    background: none;
    border: 1px solid #C0714A;
    border-radius: 999px;
    padding: 0.4rem 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.pf-detail-btn:hover {
    background: #C0714A;
    color: white;
}

.pf-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-modal.hidden {
    display: none;
}

.pf-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.pf-modal__content {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 36rem;
    width: 90%;
    z-index: 1;
    max-height: 80vh;
    overflow-y: auto;
}

.pf-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #6b7280;
}

.pf-modal__content h3 {
    font-size: 1.125rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.pf-modal__content ul {
    padding-left: 1.25rem;
    margin: 0.75rem 0;
    font-size: 0.875rem;
    line-height: 2;
}

.pf-modal__content p {
    font-size: 0.875rem;
    line-height: 1.8;
    color: #374151;
}

.modal-links {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.modal-links a {
    color: #4A90D9;
    text-decoration: underline;
    font-size: 0.9rem;
}

.modal-links a:hover {
    color: #2563EB;
}

.ec-password {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.ec-pass-label {
    font-size: 0.85rem;
}

.ec-pass-value {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: #333;
    font-weight: bold;
}