* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fafaf6;
  color: #333;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.8;
}

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

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

.site-logo img {
  display: block;
  width: 180px;
  height: auto;
}

.menu-button {
  display: none;
}

.site-header {
  background: rgba(250, 250, 246, 0.9);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(95, 115, 92, 0.12);
}

.site-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: inline-flex;
  align-items: center;
}

.site-nav__list {
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #4f604a;
}

.site-nav a:hover {
  opacity: 0.65;
}

.fv {
  min-height: calc(100vh - 88px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 28%, rgba(221, 232, 214, 0.95) 0%, rgba(221, 232, 214, 0.34) 26%, transparent 48%),
    linear-gradient(135deg, #fafaf6 0%, #f1f6ed 100%);
}

.fv::after {
  content: "atelier 164";
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  position: absolute;
  right: -40px;
  bottom: 40px;
  color: rgba(63, 79, 59, 0.06);
  font-size: clamp(72px, 12vw, 160px);
  line-height: 1;
  letter-spacing: 0.08em;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}

.fv__label {
  margin: 0 0 24px;
  color: #6f8068;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 500;
}

.fv__inner {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 96px 32px;
  position: relative;
  z-index: 1;
}

.fv__title {
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.8;
  letter-spacing: 0.14em;
  font-weight: 400;
  color: #2f3c2d;
}

.fv__text {
  margin-top: 28px;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 2;
  letter-spacing: 0.08em;
  color: #4f604a;
}

.fv__buttons {
  margin-top: 44px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}



.section__button {
  margin-top: 30px;
  text-align: center;
}

.button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background: #6f8068;
  color: #fff;
  font-size: 14px;
  border: 1px solid #6f8068;
}

.button--outline {
  background: transparent;
  color: #6f8068;
  border: 1px solid #6f8068;
}

.button:hover {
  opacity: 0.82;
}

.button,
.site-nav a {
  transition: opacity 0.2s ease;
}

.section {
  padding: 96px 32px;
  scroll-margin-top: 80px;
}

.section:nth-of-type(even) {
  background: #ffffff;
}


.section__inner {
  max-width: 900px;
  margin: 0 auto;
}

.section__title {
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 32px;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  margin-top: 0;
  color: #3f4f3b;
  font-weight: 500;
  text-align: center;
}

.section__title::after {
  content: "";
  display: block;
  width: 65px;
  height: 1px;
  margin: 14px auto 0;
  background: #6f8068;
  opacity: 0.45;
}

.section p {
  color: #555;
}

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

.news-list {
  display: grid;
  gap: 16px;
}

.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  border-bottom: 1px solid rgba(95, 115, 92, 0.16);
}

.news-item time {
  color: #6f8068;
  font-size: 14px;
}

.news-item h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #3f4f3b;
}

.news-item h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #3f4f3b;
}

/*サービス項目を横並びにする*/
.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/*サービス項目をカード形式にする*/
.service-list li {
  padding: 28px 24px;
  background: #f6f8f2;
  border: 1px solid rgba(95, 115, 92, 0.14);
  border-radius: 24px;
  color: #3f4f3b;
}


.service-list h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 500;
  color: #3f4f3b;
}

.service-list p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: #5f655d;
}

/*投稿詳細ページ*/
.single-page {
  padding: 96px 32px;
  background: #fafaf6;
}

.single-page__inner {
  max-width: 820px;
  margin: 0 auto;
}

.single-article__header {
  margin-bottom: 40px;
}

.single-article__header time {
  display: block;
  margin-bottom: 12px;
  color: #6f8068;
  font-size: 14px;
}

.single-article__title {
  margin: 0;
  color: #2f3c2d;
  line-height: 1.5;
  font-weight: 500;
}

.single-article__content {
  color: #555;
  line-height: 2;
}

.single-article__content p {
  margin: 0 0 24px;
}

.single-article__content img {
  margin: 32px 0;
  border-radius: 16px;
}

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

.works-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(95, 115, 92, 0.14);
  border-radius: 24px;
  /*hover*/
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/*hover*/
.works-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(63, 79, 59, 0.08);
}

.works-card__image {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef4ea;
  color: #6f8068;
  font-size: 13px;
  letter-spacing: 0.12em;
  /*hover*/
  overflow: hidden;
}

.works-card__body {
  padding: 24px;
}

.works-card__category {
  margin: 0 0 8px;
  color: #6f8068;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.works-card h3 {
  margin: 0 0 12px;
  color: #3f4f3b;
  font-size: 18px;
  font-weight: 500;
}

.works-card p {
  margin: 0;
  color: #5f655d;
  font-size: 14px;
  line-height: 1.9;
}

.works-card a {
  display: block;
  height: 100%;
}

.works-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /*hover*/
  transition: transform 0.35s ease;
}

/*hover*/
.works-card:hover .works-card__image img {
  transform: scale(1.04);
}


.single-article__thumbnail {
  margin-bottom: 40px;
}

.single-article__thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  display: block;
}

/*固定ページ*/
.page-content {
  padding: 96px 32px;
  background: #fafaf6;
}

.page-content__inner {
  max-width: 820px;
  margin: 0 auto;
}

.page-article__header {
  margin-bottom: 40px;
}

.page-article__title {
  margin: 0;
  color: #2f3c2d;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.5;
}

.page-article__content {
  color: #555;
  line-height: 2;
}

.page-article__content p {
  margin: 0 0 24px;
}

.page-article__title,
.archive-page__title,
.single-article__title {
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.5;
  letter-spacing: 0.08em;
  font-weight: 400;
}

/*制作実績ページ*/
.archive-page {
  padding: 96px 32px;
  background: #fafaf6;
}

.archive-page__inner {
  max-width: 1080px;
  margin: 0 auto;
}

.archive-page__header {
  margin-bottom: 56px;
}

.archive-page__title {
  margin: 0 0 16px;
  color: #2f3c2d;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.archive-page__text {
  margin: 0;
  color: #5f655d;
}


/* Contact Form 7 */
.wpcf7 {
  margin-top: 40px;
}

.wpcf7 form {
  display: grid;
  gap: 24px;
}

.wpcf7 p {
  margin: 0;
}

.wpcf7 label {
  display: block;
  color: #3f4f3b;
  font-size: 14px;
  font-weight: 500;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(95, 115, 92, 0.22);
  border-radius: 12px;
  background: #fff;
  color: #333;
  font-size: 16px;
  font-family: inherit;
}

.wpcf7 textarea {
  min-height: 180px;
  resize: vertical;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: #6f8068;
  box-shadow: 0 0 0 3px rgba(111, 128, 104, 0.14);
}

.wpcf7-submit {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid #6f8068;
  border-radius: 999px;
  background: #6f8068;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.wpcf7-submit:hover {
  opacity: 0.82;
}

.text__center {
  text-align: center;
}

/*ABOUT*/
.profile-list {
  margin: 32px 0 0;
  border-top: 1px solid rgba(95, 115, 92, 0.16);
}

.profile-list div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(95, 115, 92, 0.16);
}

.profile-list dt {
  color: #3f4f3b;
  font-weight: 500;
}

.profile-list dd {
  margin: 0;
  color: #555;
}

/*WORKSカテゴリー*/
.works-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0;
  padding: 0;
  list-style: none;
}

.works-category-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 18px;
  border: 1px solid rgba(95, 115, 92, 0.18);
  border-radius: 999px;
  color: #4f604a;
  font-size: 13px;
  letter-spacing: 0.08em;
  background: #fff;
}

.works-category-list a:hover {
  opacity: 0.72;
}

.works-category-list a.is-current {
  background: #6f8068;
  color: #fff;
  border-color: #6f8068;
}

/*パンくずリスト*/
.breadcrumb {
  padding: 24px 32px 0;
  background: #fafaf6;
}

.breadcrumb__list {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  color: #6f8068;
  font-size: 13px;
}

.breadcrumb__list li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: rgba(95, 115, 92, 0.45);
}

.breadcrumb__list a {
  color: #4f604a;
}

.breadcrumb__list a:hover {
  opacity: 0.7;
}

/* ページ送り */
.pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(95, 115, 92, 0.18);
  border-radius: 999px;
  color: #4f604a;
  font-size: 14px;
}

.pagination .page-numbers.current {
  background: #6f8068;
  color: #fff;
  border-color: #6f8068;
}

/* Previous / Next navigation */
.post-nav {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(95, 115, 92, 0.16);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.post-nav a {
  color: #4f604a;
  font-size: 14px;
}

.post-nav a:hover {
  opacity: 0.7;
}

.post-nav__prev {
  text-align: left;
}

.post-nav__archive {
  text-align: center;
}

.post-nav__next {
  text-align: right;
}

/*フッター*/

.site-footer {
  padding: 25px 32px 40px;
  color: #4f604a;
  background: #e7eee2;
  text-align: center;
}

.site-footer__copy {
  margin: 24px 0 0;
  font-size: 13px;
}

.site-footer__sns {
  margin-top: 30px;
}

.page-top-link {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.page-top-link a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #4f604a;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.page-top-link a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-top: solid 2px #4f604a;
  border-right: solid 2px #4f604a;
  transform: rotate(-45deg);
}

.page-top-link a:hover {
  opacity: 0.7;
}

.sns-list {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sns-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4f604a;
  transition: opacity 0.2s ease;
}

.sns-list a:hover {
  opacity: 0.7;
}

.sns-list svg {
  width: 25px;
  height: 25px;
  display: block;
  fill: currentColor;
}

/* スクロール時のふわっと表示 */
.js-fade {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1s ease-out,
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-fade.is-show {
  opacity: 1;
  transform: translateY(0);
}


/*ロード画面*/
.loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #fafaf6;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}

.loading.is-hide {
  opacity: 0;
  visibility: hidden;
}

.loading__inner {
  text-align: center;
}

.loading__logo {
  margin: 0;
  color: #2f3c2d;
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 24px;
  letter-spacing: 0.16em;
  font-weight: 400;
}

.loading__text {
  margin: 14px 0 0;
  color: #6f8068;
  font-size: 11px;
  letter-spacing: 0.22em;
}

@media (max-width: 768px) {

  .site-logo img {
    width: 150px;
  }

  .site-header__inner {
    padding: 16px 20px;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .menu-button {
    display: flex;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    width: 24px;
    height: 1px;
    background: #3f4f3b;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(250, 250, 246, 0.96);
    border-bottom: 1px solid rgba(95, 115, 92, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 16px 24px 24px;
  }

  .site-nav__list li {
    border-bottom: 1px solid rgba(95, 115, 92, 0.1);
  }

  .site-nav__list li:last-child {
    border-bottom: none;
  }

  .site-nav a {
    display: block;
    padding: 14px 0;
    font-size: 13px;
  }

  .menu-button.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-button.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-button.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .fv {
    min-height: calc(100vh - 73px);
  }

  .fv::after {
    right: -16px;
    bottom: 32px;
    font-size: clamp(42px, 14vw, 72px);
    letter-spacing: 0.03em;
  }

  .fv__inner {
    padding: 72px 24px;
  }

  .fv__title {
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.8;
    letter-spacing: 0.08em;
  }

  .fv__buttons {
    flex-direction: column;
    align-items: flex-start;
  }


  .section {
    padding: 72px 24px;
    scroll-margin-top: 80px;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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

  .archive-page {
    padding: 72px 24px;
  }

  .archive-page__header {
    margin-bottom: 40px;
  }

  .wpcf7 {
    margin-top: 32px;
  }

  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 input[type="tel"],
  .wpcf7 textarea {
    font-size: 16px;
  }

  .profile-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .breadcrumb {
    padding: 20px 24px 0;
  }

  .breadcrumb__list {
    font-size: 12px;
  }

  .post-nav {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .post-nav__prev,
  .post-nav__archive,
  .post-nav__next {
    text-align: center;
  }

  .page-top-link {
    text-align: center;
  }

}