@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400;1,500&family=Noto+Serif+JP:wght@300;400;500&display=swap');

/* ===========================
   Reset & Base
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Serif JP', sans-serif;
  font-weight: 300;
  color: #1a1a1a;
  background-color: #ffffff;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ===========================
   Typography
=========================== */
.font-serif {
  font-family: 'Cormorant Garamond', serif;
}

h1, h2, h3 {
  font-weight: 400;
  line-height: 1.3;
}

/* ===========================
   Layout
=========================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===========================
   Header / Nav
=========================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  padding: 20px max(40px, calc((100% - 1100px) / 2 + 40px));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.header__logo a {
  display: inline-block;
}

.header__logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.header__nav {
  display: flex;
  gap: 40px;
}

.header__nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #1a1a1a;
  padding-bottom: 4px;
  position: relative;
  transition: opacity 0.2s;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #1a1a1a;
  transform: scaleX(0);
  transition: transform 0.2s;
}

.header__nav a:hover::after,
.header__nav a.active::after {
  transform: scaleX(1);
}

/* ===========================
   Footer
=========================== */
.footer {
  border-top: 1px solid #e5e5e5;
  padding: 24px max(40px, calc((100% - 1100px) / 2 + 40px));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer a {
  font-size: 0.75rem;
  color: #333;
  transition: opacity 0.2s;
}

.footer a:hover {
  opacity: 0.6;
}

.footer__copy {
  font-size: 0.75rem;
  color: #333;
}

/* ===========================
   Button
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  font-family: 'Noto Serif JP', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 0.2s;
  border: none;
}

.btn--black {
  background: #1a1a1a;
  color: #ffffff;
}

.btn--outline {
  background: transparent;
  color: #1a1a1a;
  border: 1px solid #1a1a1a;
}

.btn:hover {
  opacity: 0.75;
}

.btn--full {
  width: 100%;
}

/* ===========================
   Page Wrapper
=========================== */
.page-main {
  padding-top: 0;
}

/* ===========================
   TOP: Hero
=========================== */
.hero {
  display: grid;
  min-height: 480px;
}

.hero__fv {
  grid-area: 1 / 1;
  line-height: 0;
}

.hero__fv img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

.hero__content {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 40px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  z-index: 2;
}

.hero__title {
  font-family: 'Noto Serif JP', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
  color: #1a1a1a;
}

.hero__body {
  font-size: 1.125rem;
  color: #333;
  line-height: 2;
}

.hero__body p + p {
  margin-top: 16px;
}

/* ===========================
   TOP: 3カラムセクション
=========================== */
.top-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
  margin: 0 auto;
}

.top-card {
  padding: 60px 40px;
  border-right: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.top-card:last-child {
  border-right: none;
}

.top-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 24px;
  color: #1a1a1a;
}

.top-card__body {
  font-size: 1rem;
  color: #333;
  line-height: 1.9;
  margin-bottom: 0;
}

.top-card__body + .top-card__body {
  margin-top: 1em;
}

.top-card__body:last-of-type {
  flex: 1;
  margin-bottom: 40px;
}

/* ===========================
   Section Heading
=========================== */
.section-heading {
  text-align: center;
  margin-bottom: 64px;
}

.section-heading h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #1a1a1a;
}

/* ===========================
   ABOUT: Hero
=========================== */
.about-hero {
  display: grid;
  grid-template-rows: 360px;
  overflow: hidden;
}

.about-hero__fv {
  grid-area: 1 / 1;
  line-height: 0;
  padding-right: max(0px, calc((100% - 1100px) / 2));
  background: linear-gradient(to right, #e8e8e8, #f0f0f0);
}

.about-hero__fv img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 65%;
  display: block;
  -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, black 90%, transparent 100%);
}

.about-hero__content {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  z-index: 2;
}

.about-hero__content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.about-hero__content p {
  font-size: 1.125rem;
  color: #333;
  line-height: 2;
}

/* ===========================
   Service Section
=========================== */
.service-section {
  padding: 100px 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 40px;
}

.service-item {
  text-align: center;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 32px 24px;
  background: #fff;
}

.service-item__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f0f0ee;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.service-item__icon svg {
  width: 28px;
  height: 28px;
  stroke: #555;
  fill: none;
  stroke-width: 1.5;
}

.service-item__title {
  font-size: 1.0625rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.service-item__list {
  font-size: 0.9375rem;
  color: #333;
  line-height: 1.9;
}

/* ===========================
   Flow Section
=========================== */
.flow-section {
  padding: 100px 0;
  border-top: 1px solid #e5e5e5;
}

.flow-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flow-item {
  display: grid;
  grid-template-columns: 80px 1fr 280px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid #e5e5e5;
  gap: 32px;
}

.flow-item:first-child {
  border-top: 1px solid #e5e5e5;
}

.flow-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.flow-item__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: #333;
  line-height: 1;
  align-self: start;
  margin-top: -0.3em;
}

.flow-item__content {
  align-self: start;
}

.flow-note {
  font-size: 0.875rem;
}

.flow-item__content h3 {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.flow-item__content p {
  font-size: 1rem;
  color: #333;
  line-height: 1.9;
}

.flow-item__image {
  text-align: center;
}

.flow-item__image img {
  max-height: 120px;
  margin: 0 auto;
  object-fit: contain;
}

/* ===========================
   About Nest Section
=========================== */
.about-nest-section {
  padding: 100px 0;
  border-top: 1px solid #e5e5e5;
}

.about-nest-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-nest-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 32px;
  color: #1a1a1a;
}

.about-nest-text p {
  font-size: 1rem;
  color: #333;
  line-height: 2;
  margin-bottom: 16px;
}

.about-nest-text p:last-of-type {
  margin-bottom: 0;
}

.about-nest-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.values-section {
  padding: 0;
}

.values-heading {
  font-size: 1rem;
  font-weight: 400;
  color: #1a1a1a;
  margin-top: 64px;
  margin-bottom: 32px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 32px 28px;
}

.value-card__icon {
  margin-bottom: 16px;
}

.value-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: #888;
  fill: none;
  stroke-width: 1.5;
}

.value-card h3 {
  font-size: 1.0625rem;
  font-weight: 400;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.value-card p {
  font-size: 1rem;
  color: #333;
  line-height: 1.9;
}

/* ===========================
   CTA Banner
=========================== */
.cta-banner {
  background: #f0f0ee;
  padding: 48px 40px;
}

.cta-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-banner__text {
  font-size: 1rem;
  color: #333;
  line-height: 1.9;
}

/* ===========================
   Page Hero (Works / Contact / Privacy)
=========================== */
.page-hero {
  padding: 120px 0 0;
  text-align: center;
}

.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #1a1a1a;
}


/* ===========================
   WORKS: Grid
=========================== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 100px;
}

.work-card {
  cursor: pointer;
  transition: opacity 0.2s;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  padding: 0 0 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.work-card__title,
.work-card__desc {
  padding: 0 14px;
}

.work-card:hover {
  opacity: 0.85;
}

.work-card.hidden {
  display: none;
}

.work-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f0f0ee;
  margin-bottom: 16px;
}

.work-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.work-card:hover .work-card__image img {
  transform: scale(1.03);
}

.work-card__title {
  font-size: 1.0625rem;
  font-weight: 400;
  margin-bottom: 6px;
  color: #1a1a1a;
}

.work-card__desc {
  font-size: 0.9375rem;
  color: #333;
  line-height: 1.7;
  margin-bottom: 8px;
}

.work-card__tag {
  font-size: 0.8125rem;
  color: #555;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 3px 10px;
  margin-top: auto;
  margin-left: 14px;
  align-self: flex-start;
}

/* ===========================
   WORKS: Password Gate
=========================== */
.works-password {
  display: none;
  max-width: 480px;
  margin: 80px auto 120px;
  text-align: center;
  padding: 0 40px;
}

.works-password.visible {
  display: block;
}

.works-password__desc {
  font-size: 1rem;
  color: #333;
  line-height: 2;
  margin-bottom: 48px;
}

.works-password__desc p + p {
  margin-top: 8px;
}

.works-password__form {
  text-align: left;
  max-width: 300px;
  margin: 0 auto;
}

.works-password__label {
  font-size: 0.9375rem;
  color: #333;
  display: block;
  margin-bottom: 8px;
}

.works-password__input {
  width: 100%;
  max-width: 300px;
  padding: 14px 16px;
  border: 1px solid #d0d0d0;
  background: #fafaf8;
  font-family: 'Noto Serif JP', sans-serif;
  font-size: 0.875rem;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 16px;
}

.works-password__input:focus {
  border-color: #1a1a1a;
}

.works-password__error {
  font-size: 0.875rem;
  color: #c0392b;
  margin-top: 8px;
  display: none;
}

.works-contact-link {
  margin-top: 32px;
  text-align: center;
  font-size: 0.875rem;
  color: #333;
}

.works-contact-link a {
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 26, 26, 0.5);
  padding-bottom: 1px;
}

/* ===========================
   WORKS: Gallery Wrapper
=========================== */
.works-gallery {
  display: none;
}

.works-gallery.visible {
  display: block;
}

.works-gallery .container {
  padding-top: 56px;
}

/* ===========================
   WORKS DETAIL
=========================== */
.work-detail {
  padding: 80px 0 120px;
}

.work-detail__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.work-detail__content { grid-column: 1; grid-row: 1; }
.work-detail__image   { grid-column: 2; grid-row: 1 / 3; align-self: start; }
.work-detail__buttons { grid-column: 1; grid-row: 2; align-self: start; }

.work-detail__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  margin-bottom: 48px;
  color: #1a1a1a;
}

.work-detail__section {
  margin-bottom: 32px;
}

.work-detail__content .work-detail__section:last-child {
  margin-bottom: 0;
}

.work-detail__section h3 {
  font-size: 1rem;
  font-weight: 400;
  color: #1a1a1a;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.work-detail__section h3 + p,
.work-detail__section h3 + div {
  border-left: 1px solid #ddd;
  padding-left: 16px;
}

.work-detail__section p {
  font-size: 1rem;
  color: #333;
  line-height: 2;
  margin-bottom: 16px;
}

.work-detail__section p:last-of-type {
  margin-bottom: 0;
}

.work-detail__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
  max-width: 320px;
}

.work-detail__image img {
  width: 100%;
  object-fit: cover;
}

/* ===========================
   CONTACT
=========================== */
.contact-section {
  padding: 120px 0 120px;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-desc h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 24px;
  color: #1a1a1a;
}

.contact-desc p {
  font-size: 1rem;
  color: #333;
  line-height: 2;
  margin-bottom: 12px;
}

.contact-desc a {
  text-decoration: none;
  border-bottom: 1px solid rgba(85, 85, 85, 0.6);
  padding-bottom: 1px;
  color: #333;
}

/* Form */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: #333;
  margin-bottom: 8px;
}

.form-badge {
  font-size: 0.6875rem;
  font-family: 'Noto Serif JP', sans-serif;
  padding: 2px 7px;
  border-radius: 2px;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.form-badge--required {
  background: #1a1a1a;
  color: #fff;
}

.form-badge--optional {
  background: transparent;
  color: #333;
  border: 1px solid #ccc;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d0d0d0;
  background: #fafaf8;
  font-family: 'Noto Serif JP', sans-serif;
  font-size: 1rem;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: #1a1a1a;
}

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

.form-submit {
  display: block;
  width: 100%;
  max-width: 300px;
  padding: 18px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  font-family: 'Noto Serif JP', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: opacity 0.2s;
  margin: 8px auto 0;
}

.form-submit:hover {
  opacity: 0.75;
}

/* ===========================
   CONTACT COMPLETE
=========================== */
.complete-section {
  padding: 120px 40px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.complete-section__en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.complete-section__title {
  font-size: 1.125rem;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 32px;
  line-height: 1.6;
}

.complete-section__body {
  font-size: 1rem;
  color: #333;
  line-height: 2;
  margin-bottom: 48px;
}

/* ===========================
   PRIVACY
=========================== */
.privacy-section {
  padding: 80px 0 120px;
}

.privacy-intro {
  font-size: 1rem;
  color: #333;
  line-height: 2;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #e5e5e5;
}

.privacy-article {
  margin-bottom: 40px;
}

.privacy-article h3 {
  font-size: 1rem;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.privacy-article p {
  font-size: 1rem;
  color: #333;
  line-height: 2;
}

.privacy-article a {
  text-decoration: none;
  border-bottom: 1px solid rgba(85, 85, 85, 0.6);
  padding-bottom: 1px;
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 900px) {
  .page-hero {
    padding-top: 60px;
  }

  .contact-section {
    padding: 60px 0 60px;
  }

  .works-password {
    margin-bottom: 60px;
  }

  .work-detail {
    padding: 60px 0 60px;
  }

  .privacy-section {
    padding: 60px 0 60px;
  }

  /* TOP hero：スタック型 */
  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero__content {
    order: 1;
    padding: 60px 40px 48px;
    max-width: 100%;
  }

  .hero__fv {
    order: 2;
  }

  .hero__fv img {
    object-fit: initial;
  }

  /* ABOUT hero：スタック型 */
  .about-hero {
    display: flex;
    flex-direction: column;
  }

  .about-hero__content {
    order: 1;
    padding: 60px 40px 48px;
    max-width: 100%;
  }

  .about-hero__fv {
    order: 2;
  }

  .about-hero__fv img {
    object-fit: initial;
  }

  .hero__body {
    font-size: 1rem;
  }

  .about-hero__content p {
    font-size: 1rem;
  }

  .top-cards {
    grid-template-columns: 1fr;
  }

  .top-card {
    border-right: none;
    border-bottom: 1px solid #e5e5e5;
    padding: 48px 32px;
  }

  .about-hero {
    grid-template-columns: 1fr;
  }

  .about-hero__content {
    padding: 48px 32px;
  }

  .about-hero__image {
    height: 220px;
  }

  .service-section {
    padding: 60px 0;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }

  .flow-section {
    padding: 60px 0;
  }

  .flow-item {
    padding: 32px 0;
  }

  .about-nest-section {
    padding: 60px 0;
  }

  .works-password {
    margin-top: 48px;
  }


  .flow-list {
    max-width: 480px;
    margin: 0 auto;
  }

  .flow-item {
    grid-template-columns: 56px 1fr;
    gap: 8px 16px;
  }

  .flow-item__image {
    display: block;
    grid-column: 1 / -1;
    text-align: center;
    padding: 8px 0 4px;
  }

  .flow-item__image img {
    max-height: 90px;
  }

  .about-nest-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cta-banner {
    padding: 40px 24px;
  }

  .cta-banner .container {
    flex-direction: column;
    text-align: center;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-detail__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .work-detail__content { grid-column: 1; grid-row: 1; }
  .work-detail__image   { grid-column: 1; grid-row: 2; }
  .work-detail__buttons { grid-column: 1; grid-row: 3; }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .header {
    padding: 16px 24px;
  }

  .header__nav {
    gap: 24px;
  }

  .container {
    padding: 0 24px;
  }

  .container--narrow {
    padding: 0 24px;
  }

  .footer {
    padding: 20px 24px;
  }
}

@media (max-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  /* ヘッダー：ロゴ・ナビを縦並び中央寄せ */
  .header {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
  }

  .header__nav {
    gap: 20px;
    justify-content: center;
  }

  .header__nav a {
    font-size: 1.125rem;
  }

}
