@charset "UTF-8";

:root {
  /* 色管理用の変数 */
  --black-color: #212121;
  --gray-color: #424242;
  --white-color: #fafafa;
  --white-color02: #f7f5f2;
  --primary-color: #d32f2f;
  --accent-color: #e53935;
  --accent-color02: #e57373;
}

:root {
  /* z-index管理用の変数 */
  --z-index-back: -1;
  --z-index-default: 1;
  --z-index-page-top: 50;
  --z-index-header: 100;
  --z-index-menu: 150;
  --z-index-modal: 200;
}

body {
  color: var(--black-color);
  background: var(--white-color);
  font-family: "Noto Serif JP", serif;
  line-height: 1.8;
  letter-spacing: 0.1em;
}

/* =========================================
  # opening
========================================= */

.opening {
  position: fixed;
  inset: 0;
  background: var(--white-color02); /* KV背景と同色 */
  z-index: 9999;
  pointer-events: none;
}

/* =========================================
  # utility
========================================= */

.u_lg-dn {
  display: none;
}

@media screen and (min-width: 1080px) {
  .u_lg-dn {
    display: inline;
  }
}

/* =========================================
  # layout
========================================= */

.l_contents {
  padding: 64px 0;
}

.l_header {
  z-index: var(--z-index-header);
  width: 100%;
  height: 70px;
  padding: 0 16px;
  box-shadow: 0px 2px 4px 0px rgba(33, 33, 33, 0.05);
  background: var(--white-color);
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media screen and (min-width: 1080px) {
  .l_header {
    height: 125px;
    display: flex;
    align-items: center;
    padding-right: 0;
  }
}

.l_header-inner {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.l_header-logo {
  font-size: 22px;
  font-family: "Inter", sans-serif;
}

@media screen and (min-width: 1080px) {
  .l_header-logo {
    font-size: 24px;
  }
}

.l_header-logo_link {
  height: 100%;
  display: flex;
  align-items: center;
}

.l_header-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: var(--z-index-modal);
  background: var(--white-color);
}

@media screen and (max-width: 1079px) {
  .l_header-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media screen and (min-width: 1080px) {
  .l_header-nav {
    position: static;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
  }
}

.l_header-nav_list {
  font-size: 20px;
  font-family: "Inter", sans-serif;
  display: flex;
  gap: 32px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

@media screen and (max-width: 1079px) {
  .l_header-nav_list {
    height: auto; /* ← これが超重要 */
  }
}

@media screen and (min-width: 1080px) {
  .l_header-nav_list {
    flex-direction: row;
    width: 100%;
    justify-content: center;
  }
}

@media screen and (min-width: 1300px) {
  .l_header-nav_list {
    font-size: 24px;
    gap: 40px;
  }
}

/* =========================================
  # layout（下線アニメーション）
========================================= */

.l_header-nav_link {
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.l_header-nav_link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color02);

  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.l_header-nav_link:hover::after {
  transform: scaleX(1);
}

/* =========================================
  # //layout（下線アニメーション）
========================================= */

@media screen and (max-width: 1079px) {
  .l_header-contact-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
  }
}

@media screen and (min-width: 1080px) {
  .l_header-contact-wrapper {
    display: block;
    margin-left: auto;
  }
}

.l_header-contact-wrapper:hover {
  opacity: 0.8;
}

.l_header-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

@media screen and (max-width: 1079px) {
  .l_header-contact {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 16px 32px;
    border-radius: 999px;
    font-weight: bold;
  }
}

@media screen and (min-width: 1080px) {
  .l_header-contact {
    font-size: 20px;
    padding: 45px 32px;
    color: var(--white-color);
    background: var(--primary-color);
    font-weight: bold;
    width: 240px;
    height: 100%;
  }
}

@media screen and (min-width: 1300px) {
  .l_header-contact {
    font-size: 24px;
    width: 280px;
    max-width: 280px;
    padding: 41px 32px;
  }
}

.l_header-contact-icon {
  width: 32px;
}

@media screen and (min-width: 1300px) {
  .l_header-contact-icon {
    width: 36px;
  }
}

/* =========================================
  # layout_TOP
========================================= */

.l_top-ttl {
  margin: 0 16px;
}

.l_top-text {
  font-size: 24px;
  font-family: "Inter", sans-serif;
  text-align: center;
  border-top: 1px solid var(--black-color);
  border-bottom: 1px solid var(--black-color);
  padding: 16px 0;
}

.l_top_container {
  margin: 64px 0;
}

.l_top_container__about {
  padding: 64px 0;
}

#l_top_link__works {
  scroll-margin-top: 70px;
}

@media screen and (min-width: 1080px) {
  #l_top_link__works {
    scroll-margin-top: 125px;
  }
}
#l_top_link__about {
  scroll-margin-top: 70px;
}

@media screen and (min-width: 1080px) {
  #l_top_link__about {
    scroll-margin-top: 125px;
  }
}
#l_top_link__skill {
  scroll-margin-top: 70px;
}

@media screen and (min-width: 1080px) {
  #l_top_link__skill {
    scroll-margin-top: 125px;
  }
}
#l_top_link__service {
  scroll-margin-top: 70px;
}

@media screen and (min-width: 1080px) {
  #l_top_link__service {
    scroll-margin-top: 125px;
  }
}
#l_top_link__flow {
  scroll-margin-top: 70px;
}

@media screen and (min-width: 1080px) {
  #l_top_link__flow {
    scroll-margin-top: 125px;
  }
}

/* =========================================
  # module
========================================= */

.m_hamburger {
  display: block;
  width: 28px;
  height: 22px;
  position: relative;
  z-index: var(--z-index-modal);
  border: none;
  background: transparent;
}

@media screen and (min-width: 1080px) {
  .m_hamburger {
    display: none;
  }
}

.m_hamburger-bar {
  width: 100%;
  height: 2px;
  position: absolute;
  left: 0;
  background: var(--black-color);
}

.m_hamburger-bar:nth-child(1) {
  top: 0;
}

.m_hamburger-bar:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.m_hamburger-bar:nth-child(3) {
  top: 100%;
  transform: translateY(-100%);
}

/* =========================================
  # top
========================================= */

.top_kv {
  position: relative;
  padding-bottom: 64px; /* ← scroll-down の分だけ余白を追加 */
  background: var(--white-color02);
}

.top_kv-title {
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1.2;
  font-family: "Inter", sans-serif;
  text-align: center;
  padding-top: 32px;
}

@media screen and (min-width: 768px) {
  .top_kv-title {
    font-size: 20px;
  }
}

@media screen and (min-width: 1080px) {
  .top_kv-title {
    display: none;
  }
}

.top_kv-sub {
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  color: var(--gray-color);
}

@media screen and (min-width: 768px) {
  .top_kv-sub {
    font-size: 16px;
  }
}

@media screen and (min-width: 1080px) {
  .top_kv-sub {
    display: none;
  }
}

.top_kv-img-wrapper {
  width: 100%;
}

@media screen and (min-width: 1080px) {
  .top_kv-img-wrapper {
    width: auto;
    display: block;
    padding: 0;
  }
}

.top_kv-img {
  width: 80%;
  max-width: 400px;
  height: calc(100vh - 70px - 256px);
  object-fit: cover;
  display: block;
  margin: 20px auto;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.08);
  object-fit: cover;
  object-position: top;
}

@media screen and (min-width: 768px) {
  .top_kv-img {
    height: calc(100vh - 70px - 294px);
  }
}

@media screen and (min-width: 1080px) {
  .top_kv-img {
    width: auto;
    max-width: 480px;
    height: 520px;
    margin: 0;
  }
}

.top_kv_box {
  text-align: center;
  white-space: nowrap;
  width: auto;
}

@media screen and (min-width: 1080px) {
  .top_kv_box {
    width: 360px;
  }
}

.top_kv_copy {
  font-size: 24px;
  font-weight: bold;
  color: var(--accent-color);
  text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  line-height: 1.8;
}

@media screen and (min-width: 768px) {
  .top_kv_copy {
    font-size: 32px;
  }
}

@media screen and (min-width: 1080px) {
  .top_kv_copy {
    font-size: 48px;
    text-align: left;
  }
}

.top_kv-txt__pc {
  display: none;
}

@media screen and (min-width: 1080px) {
  .top_kv-txt__pc {
    display: block;
    text-align: left;
  }
}

@media screen and (min-width: 1080px) {
  .top_kv-title__pc {
    font-size: 32px;
    font-family: "Inter", sans-serif;
  }
}

@media screen and (min-width: 1080px) {
  .top_kv-sub__pc {
    font-size: 20px;
  }
}

@media screen and (min-width: 1080px) {
  .top_kv-inner {
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 125px - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    flex-direction: row-reverse;
  }
}

/* =========================================
  # top_KV（アニメーション）
========================================= */

/* キャッチコピー（行） */
.top_kv_copy {
  opacity: 0;
  transform: translateY(12px);
}

/* 画像 */
.top_kv-img-wrapper {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(6px);
}

/* PC用テキスト */
.top_kv-title__pc,
.top_kv-sub__pc {
  opacity: 0;
  transform: translateY(8px);
}

/* =========================================
  # //top_KV（アニメーション）
========================================= */

/* =========================================
  # スクロールダウン
========================================= */

.top_kv-scroll-down {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-family: "Inter", sans-serif;
  color: var(--black-color);
  font-size: 10px;
  text-decoration: none;
}

@media screen and (min-width: 1080px) {
  .top_kv-scroll-down {
    bottom: 24px;
  }
}

.circle-arrow {
  width: 32px;
  height: 32px;
  border: 1px solid var(--black-color);
  border-radius: 50%;
  position: relative;
  margin-bottom: 2px;
  margin-inline: auto;
  animation: pulse 2s infinite;
}

.circle-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-left: 1px solid var(--black-color);
  border-bottom: 1px solid var(--black-color);
  transform: translate(-50%, -50%) rotate(-45deg);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.top_kv-scroll-down:active .circle-arrow {
  transform: scale(0.95);
}

/* =========================================
  # top_WORKS
========================================= */

.top_works-wrapper {
  display: flex;
  flex-direction: column;
  position: relative;
}

@media screen and (min-width: 1080px) {
  .top_works-wrapper {
    flex-direction: row;
  }
}

@media screen and (min-width: 1080px) {
  .top_works-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%; /* 画面中央 */
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: var(--black-color);
  }
}

.top_works-item {
  position: relative;
}

@media screen and (min-width: 1080px) {
  .top_works-item {
    flex: 1;
    max-width: 50%;
  }
}

.top_works-item:not(:first-child) {
  margin-top: 64px;
}

@media screen and (min-width: 1080px) {
  .top_works-item:not(:first-child) {
    margin-top: 0px;
  }
}

.top_works-item:not(:last-child)::after {
  content: "";
  display: block;
  width: 90%;
  height: 1px;
  background: var(--black-color);
  margin: 64px auto 0;
}

@media screen and (min-width: 1080px) {
  .top_works-item:not(:last-child)::after {
    content: none;
  }
}

/* =========================================
  # top_WORKS（hover）
========================================= */

.top_works-link {
  display: block;
  width: 80%;
  margin: 0 auto;
  cursor: pointer;

  transition:
    transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow 0.35s ease;
}

.top_works-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

/* =========================================
  # //top_WORKS（hover）
========================================= */

.top_works-img {
  width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
  background: var(--white-color);
}

.top_works-txt {
  width: 80%;
  margin: 0 auto;
}

.top_works-name {
  font-size: 20px;
  font-family: "Inter", sans-serif;
  text-align: center;
  margin-top: 24px;
}

@media screen and (min-width: 768px) {
  .top_works-name {
    font-size: 28px;
  }
}

.top_works-tags {
  margin: 24px 0 16px;
}

.top_works-tag__red {
  color: var(--white-color);
  font-size: 14px;
  background: var(--accent-color02);
  padding: 8px;
  border-radius: 100px;
}

@media screen and (min-width: 768px) {
  .top_works-tag__red {
    font-size: 18px;
  }
}

.top_works-tag__white {
  color: var(--accent-color02);
  font-size: 14px;
  background: var(--white-color);
  padding: 8px;
  border-radius: 100px;
  border: 1px solid var(--accent-color02);
  margin-left: 16px;
}

@media screen and (min-width: 768px) {
  .top_works-tag__white {
    font-size: 18px;
  }
}

.top_works-meta {
  font-size: 14px;
}

@media screen and (min-width: 768px) {
  .top_works-meta {
    font-size: 18px;
  }
}

.top_works-meta-item {
  border-top: 1px dashed var(--primary-color);
  padding: 16px 0;
}

.top_works-meta-item:not(:first-child) {
  border-bottom: 1px dashed var(--primary-color);
}

.top_works-meta-text {
  padding-top: 16px;
}

/* =========================================
  # top_ABOUT
========================================= */

.top_about {
  background: var(--white-color02);
}

@media screen and (min-width: 768px) {
  .top_about-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 64px;
    padding: 0 48px;
  }
}

.top_about-img {
  width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: cover;
  object-position: top;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.08);
}

@media screen and (min-width: 768px) {
  .top_about-img {
    width: 300px;
    height: auto;
  }
}

@media screen and (min-width: 1080px) {
  .top_about-img {
    width: 400px;
  }
}

.top_about-text {
  width: 80%;
  margin: 0 auto;
}

@media screen and (min-width: 768px) {
  .top_about-text {
    max-width: 400px;
    margin: 0;
  }
}

@media screen and (min-width: 1080px) {
  .top_about-text {
    max-width: 450px;
  }
}

.top_about-name {
  font-size: 24px;
  margin-top: 24px;
}

@media screen and (min-width: 1080px) {
  .top_about-name {
    font-size: 40px;
  }
}

@media screen and (min-width: 768px) {
  .top_about-name {
    margin-top: 0;
  }
}

.top_about-furigana {
  font-size: 10px;
  line-height: 1;
}

@media screen and (min-width: 1080px) {
  .top_about-furigana {
    font-size: 16px;
  }
}

.top_furigana_red {
  color: var(--primary-color);
}

.top_about-body {
  font-size: 12px;
  margin: 8px 0 16px;
}

@media screen and (min-width: 1080px) {
  .top_about-body {
    font-size: 20px;
  }
}

.top_about-table_data {
  padding-left: 8px;
}

.top_about-sentence {
  font-size: 12px;
  line-height: 2;
}

@media screen and (min-width: 1080px) {
  .top_about-sentence {
    font-size: 18px;
  }
}

/* =========================================
  # top_SKILL
========================================= */

.top_skill-icon-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

@media screen and (min-width: 768px) {
  .top_skill-icon-wrapper {
    margin-left: 16px;
    margin-right: 16px;
  }
}

@media screen and (min-width: 1080px) {
  .top_skill-icon-wrapper {
    margin-left: 64px;
    margin-right: 64px;
  }
}

.top_skill-icon_item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  border-radius: 16px;
  transition: box-shadow 0.3s ease;
}

@media screen and (min-width: 768px) {
  .top_skill-icon_item {
    width: calc((100% - 40px) / 2);
  }
}

@media screen and (min-width: 1080px) {
  .top_skill-icon_item {
    width: calc((100% - 40px * 2) / 3);
  }
}

.top_skill-sp {
  width: 120px;
}

@media screen and (min-width: 1080px) {
  .top_skill-sp {
    display: contents;
    width: none;
  }
}

.top_skill-icon-img {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) scale(1);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

@media screen and (max-width: 1079px) {
  .top_skill-icon-img {
    position: static;
    transform: none;
  }
}

.top_skill-icon {
  width: 50px;
  height: 50px;
}

@media screen and (min-width: 1080px) {
  .top_skill-icon {
    width: 200px;
    height: 200px;
  }
}

.top_skill-text {
  margin-top: auto;
  width: 100%;
  text-align: center;
  font-size: 12px;
  z-index: 2;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

@media screen and (min-width: 1080px) {
  .top_skill-text {
    font-size: 24px;
  }
}

.top_skill-desc {
  font-size: 12px;
  line-height: 1.8;
  max-width: 250px;
  text-align: left;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

@media screen and (min-width: 1080px) {
  .top_skill-desc {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: none;
    opacity: 0;
    pointer-events: none;
  }

  .top_skill-icon_item:hover .top_skill-desc {
    opacity: 1;
  }
}

@media screen and (min-width: 1300px) {
  .top_skill-desc {
    font-size: 16px;
  }
}

@media screen and (max-width: 1079px) {
  .top_skill-icon_item {
    min-height: auto;
  }

  .top_skill-desc {
    min-height: 6.5em;
    max-width: 230px;
    display: flex;
    align-items: center;
  }
}

/* hover演出（PCのみ） */
@media screen and (min-width: 1080px) {
  .top_skill-icon_item:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  }

  .top_skill-icon_item:hover .top_skill-icon-img {
    opacity: 0.2;
    transform: translateX(-50%) scale(1.05);
  }

  .top_skill-icon_item:hover .top_skill-text {
    color: var(--primary-color);
    transform: translateY(4px);
  }
}

/* =========================================
  # top_SERVICE
========================================= */

.top_service_list {
  margin: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media screen and (min-width: 1080px) {
  .top_service_list {
    flex-direction: row;
    gap: 48px;
  }
}

@media screen and (min-width: 1300px) {
  .top_service_list {
    gap: 128px;
  }
}

.top_service_item {
  background: rgba(211, 47, 47, 0.5);
  box-shadow: 0px 0px 8px rgba(33, 33, 33, 0.25);
  width: 311px;
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.top_service_item:not(:first-child) {
  margin-top: 48px;
}

@media screen and (min-width: 1080px) {
  .top_service_item:not(:first-child) {
    margin-top: 0px;
  }
}

.top_service-ttl {
  font-size: 16px;
}

.top_service-img {
  width: 100px;
  height: 100px;
}

.top_service-text {
  text-align: center;
  font-size: 12px;
  width: 300px;
}

/* =========================================
  # top_FLOW
========================================= */

.top_flow-contents-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.top_flow-contents {
  display: flex;
  flex-direction: column;
  width: 343px;
  height: auto;
}

@media screen and (min-width: 768px) {
  .top_flow-contents {
    width: 600px;
  }
}

.top_flow-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

@media screen and (min-width: 768px) {
  .top_flow-item {
    gap: 40px;
  }
}

.top_flow-number-wrapper {
  background: var(--accent-color);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  position: relative;
}

@media screen and (min-width: 768px) {
  .top_flow-number-wrapper {
    width: 48px;
    height: 48px;
  }
}

.top_flow-item:not(:last-child) .top_flow-number-wrapper::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  height: 60px;
  border: 1px dashed var(--primary-color);
}

@media screen and (min-width: 768px) {
  .top_flow-item:not(:last-child) .top_flow-number-wrapper::before {
    top: 60px;
    height: 80px;
  }
}

.top_flow-number {
  font-size: 16px;
  font-weight: bold;
  color: var(--white-color);
  text-align: center;
}

@media screen and (min-width: 768px) {
  .top_flow-number {
    font-size: 24px;
  }
}

.top_flow-title {
  font-size: 16px;
  font-weight: bold;
}

@media screen and (min-width: 768px) {
  .top_flow-title {
    font-size: 24px;
  }
}

.top_flow-text {
  font-size: 10px;
  margin: 24px 0;
  letter-spacing: 0.01em;
}

@media screen and (min-width: 768px) {
  .top_flow-text {
    font-size: 16px;
    letter-spacing: 0.1em;
  }
}

/* =========================================
  # お問い合わせ
========================================= */

.top_contact-wrapper {
  margin: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.top_contact {
  width: 311px;
  box-shadow: 0px 0px 8px rgba(33, 33, 33, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

@media screen and (min-width: 768px) {
  .top_contact {
    width: 450px;
  }
}

@media screen and (min-width: 1080px) {
  .top_contact {
    width: 500px;
  }
}

.top_contact-ttl {
  font-size: 20px;
  padding-top: 24px;
}

@media screen and (min-width: 768px) {
  .top_contact-ttl {
    font-size: 28px;
  }
}

@media screen and (min-width: 1080px) {
  .top_contact-ttl {
    font-size: 32px;
  }
}

.top_contact-sub {
  font-size: 12px;
  padding-top: 8px;
}

@media screen and (min-width: 768px) {
  .top_contact-sub {
    font-size: 18px;
  }
}

@media screen and (min-width: 1080px) {
  .top_contact-sub {
    font-size: 20px;
  }
}

.top_contact-btn {
  background: var(--accent-color);
  margin: 32px auto;
  width: 280px;
  max-width: 280px;
  height: 100%;
}

@media screen and (min-width: 768px) {
  .top_contact-btn {
    margin: 40px auto;
    width: 350px;
    max-width: 350px;
  }
}

@media screen and (min-width: 1080px) {
  .top_contact-btn {
    margin: 48px auto;
    width: 400px;
    max-width: 400px;
  }
}

.top_contact-btn:hover {
  opacity: 0.8;
}

.top_contact-btn-text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  gap: 12px;
  color: var(--white-color);
  padding: 24px 0;
}

@media screen and (min-width: 768px) {
  .top_contact-btn-text {
    font-size: 24px;
  }
}

@media screen and (min-width: 1080px) {
  .top_contact-btn-text {
    font-size: 32px;
  }
}

.top-contact-icon {
  width: 32px;
}

@media screen and (min-width: 768px) {
  .top-contact-icon {
    width: 36px;
  }
}

@media screen and (min-width: 1080px) {
  .top-contact-icon {
    width: 40px;
  }
}

/* =========================================
  # CONTACT
========================================= */

.contact_kv {
  height: 200px;
  background-image: url("../img/contact_kv.webp");
  background-position: 0% 62%;
  background-size: cover;
  position: relative;
}

@media screen and (min-width: 768px) {
  .contact_kv {
    height: 350px;
  }
}

@media screen and (min-width: 1080px) {
  .contact_kv {
    height: 400px;
  }
}

.contact_kv-inner {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.contact_kv-title {
  text-shadow: 2px 2px 4px rgba(33, 33, 33, 0.25);
  font-weight: bold;
  font-size: 28px;
}

@media screen and (min-width: 768px) {
  .contact_kv-title {
    font-size: 36px;
  }
}

@media screen and (min-width: 1080px) {
  .contact_kv-title {
    font-size: 48px;
  }
}

.contact_contents {
  padding: 128px 16px 64px;
}

.contact-txt {
  font-size: 18px;
  text-align: center;
}

@media screen and (min-width: 1080px) {
  .contact-txt {
    font-size: 20px;
  }
}

.contact_form-wrapper {
  padding: 64px 0;
}

@media screen and (min-width: 768px) {
  .contact_form-wrapper {
    width: 50%;
    margin: 0 auto;
  }
}

.contact_form_heading {
  font-size: 14px;
}

@media screen and (min-width: 1080px) {
  .contact_form_heading {
    font-size: 20px;
  }
}

.contact_form_heading:not(:first-child) {
  margin-top: 32px;
}

@media screen and (min-width: 1080px) {
  .contact_form_heading:not(:first-child) {
    margin-top: 64px;
  }
}

.contact_form_required {
  color: var(--white-color);
  font-size: 12px;
  font-weight: bold;
  padding: 8px 8px;
  margin-left: 16px;
  background-color: var(--accent-color02);
  border-radius: 8px;
  letter-spacing: 0.1em;
}

@media screen and (min-width: 1080px) {
  .contact_form_required {
    font-size: 16px;
  }
}

.contact_form_required__company {
  color: var(--accent-color02);
  font-size: 12px;
  font-weight: bold;
  padding: 8px 8px;
  margin-left: 16px;
  background-color: var(--white-color);
  border-radius: 8px;
  letter-spacing: 0.1em;
  border: 1px solid var(--accent-color02);
}

@media screen and (min-width: 1080px) {
  .contact_form_required__company {
    font-size: 16px;
  }
}

.contact_form_detail {
  margin-top: 16px;
}

.contact_form_input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--black-color);
  padding: 0 8px;
  background-color: var(--white-color);
}

.contact_form_textarea {
  font-size: 14px;
  width: 100%;
  height: 200px;
  border: 1px solid var(--black-color);
  background-color: var(--white-color);
  padding: 8px 16px;
  resize: none;
}

@media screen and (min-width: 1080px) {
  .contact_form_textarea {
    font-size: 18px;
  }
}

.contact_form_btn-wrapper {
  text-align: center;
}

.contact_btn {
  color: var(--white-color);
  background: var(--accent-color02);
  padding: 16px;
  border-radius: 30px;
}

.contact_btn_input {
  font-size: 16px;
  font-weight: bold;
}

@media screen and (min-width: 1080px) {
  .contact_btn_input {
    font-size: 20px;
  }
}

/* =========================================
  # WORKS
========================================= */

.works_kv {
  height: 200px;
  background-image: url("../img/works_kv.webp");
  background-position: 0% 50%;
  background-size: cover;
  position: relative;
}

@media screen and (min-width: 768px) {
  .works_kv {
    height: 350px;
  }
}

@media screen and (min-width: 1080px) {
  .works_kv {
    height: 400px;
  }
}

.works_kv-inner {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.works_kv-title {
  text-shadow: 2px 2px 4px rgba(33, 33, 33, 0.25);
  font-weight: bold;
  font-size: 28px;
}

@media screen and (min-width: 768px) {
  .works_kv-title {
    font-size: 36px;
  }
}

@media screen and (min-width: 1080px) {
  .works_kv-title {
    font-size: 48px;
  }
}

.works_contents {
  padding: 64px 0;
}

.works-img {
  width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media screen and (min-width: 1080px) {
  .works-img {
    width: 40%;
  }
}

.works-txt {
  width: 90%;
  margin: 0 auto;
}

@media screen and (min-width: 1080px) {
  .works-txt {
    width: 50%;
  }
}

.works-name {
  font-size: 20px;
  font-family: "Inter", sans-serif;
  text-align: center;
  margin-top: 24px;
}

@media screen and (min-width: 768px) {
  .works-name {
    font-size: 28px;
  }
}

@media screen and (min-width: 1080px) {
  .works-name {
    font-size: 32px;
  }
}

.works-tags {
  margin: 24px 0 16px;
}

.works-tag__red {
  color: var(--white-color);
  font-size: 14px;
  background: var(--accent-color02);
  padding: 8px;
  border-radius: 100px;
}

@media screen and (min-width: 768px) {
  .works-tag__red {
    font-size: 20px;
  }
}

.works-tag__white {
  color: var(--accent-color02);
  font-size: 14px;
  background: var(--white-color);
  padding: 8px;
  border-radius: 100px;
  border: 1px solid var(--accent-color02);
}

@media screen and (min-width: 768px) {
  .works-tag__white {
    font-size: 20px;
  }
}

.works-link-wrapper {
  font-size: 14px;
}

@media screen and (min-width: 768px) {
  .works-link-wrapper {
    font-size: 16px;
  }
}

@media screen and (min-width: 1080px) {
  .works-link-wrapper {
    font-size: 20px;
  }
}

.works-link {
  text-decoration: underline;
}

.works-info-wrapper {
  margin-top: 24px;
}

.works-info {
  border: 1px solid rgba(33, 33, 33, 0.5);
}

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

.works-term {
  font-size: 14px;
  background: rgba(33, 33, 33, 0.2);
  border-bottom: 1px solid rgba(33, 33, 33, 0.5);
  padding: 16px 0 16px 8px;
}

@media screen and (min-width: 768px) {
  .works-term {
    font-size: 16px;
  }
}

@media screen and (min-width: 1080px) {
  .works-term {
    font-size: 20px;
  }
}

.works-description {
  font-size: 14px;
  border-bottom: 1px solid rgba(33, 33, 33, 0.5);
  padding: 16px 0 16px 8px;
}

@media screen and (min-width: 768px) {
  .works-description {
    font-size: 16px;
  }
}

@media screen and (min-width: 1080px) {
  .works-description {
    font-size: 20px;
  }
}

.works-summary-wrapper {
  margin-top: 16px;
}

.works-summary-ttl {
  font-size: 14px;
}

@media screen and (min-width: 768px) {
  .works-summary-ttl {
    font-size: 16px;
  }
}

@media screen and (min-width: 1080px) {
  .works-summary-ttl {
    font-size: 20px;
  }
}

.works-summary-txt {
  font-size: 14px;
  margin-top: 16px;
}

@media screen and (min-width: 768px) {
  .works-summary-txt {
    font-size: 16px;
  }
}

@media screen and (min-width: 1080px) {
  .works-summary-txt {
    font-size: 20px;
  }
}

/* =========================================
  # footer
========================================= */

.l_footer-nav_list {
  margin: 64px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

@media screen and (min-width: 1080px) {
  .l_footer-nav_list {
    flex-direction: row;
    gap: 128px;
  }
}

.l_footer-nav_item {
  font-size: 16px;
  font-family: "Inter", sans-serif;
}

@media screen and (min-width: 1080px) {
  .l_footer-nav_item {
    font-size: 24px;
  }
}

/* =========================================
  # footer（下線アニメーション）
========================================= */

.l_footer-nav_link {
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.l_footer-nav_link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color02);

  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.l_footer-nav_link:hover::after {
  transform: scaleX(1);
}

/* =========================================
  # //footer（下線アニメーション）
========================================= */

/* =========================================
  # copyright
========================================= */

.footer_copyright {
  background: var(--accent-color02);
}

.footer_copyright-text {
  font-size: 12px;
  padding: 8px 0;
  text-align: center;
  font-family: "Inter", sans-serif;
}

@media screen and (min-width: 1080px) {
  .footer_copyright-text {
    font-size: 16px;
  }
}

/* =========================================
  # JS
========================================= */

.js_body.is-active {
  overflow: hidden;
}

.js_hamburger-bar {
  transition:
    top 0.24s,
    transform 0.24s,
    opacity 0.24s;
}

.js_hamburger.is-active .js_hamburger-bar:first-child {
  top: 50%;
  transform: translateY(-50%) rotate(135deg);
}

.js_hamburger.is-active .js_hamburger-bar:nth-child(2) {
  transform: translate(50%, -50%);
  opacity: 0;
}

.js_hamburger.is-active .js_hamburger-bar:nth-child(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-135deg);
}

.js_nav {
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.24s,
    transform 0.24s;
}

@media screen and (min-width: 1080px) {
  .js_nav {
    opacity: 1;
    pointer-events: auto;
  }
}

.js_nav.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* =========================================
  # Contact Form 7
========================================= */

.wpcf7 form {
  position: relative;
}

.wpcf7 form .wpcf7-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.wpcf7-list-item {
  margin: 0;
}

.contact_form-privacy {
  text-decoration: underline;
  color: var(--accent-color02);
  line-height: 1.75;
  font-weight: bold;
}

.contact-privacy {
  margin-top: 40px;
  appearance: auto;
}

/* =========================================
  # Privacy-Policy（modal)
========================================= */

body.is-fixed {
  overflow: hidden;
}

.privacy-policy-title {
  font-size: 20px;
  margin-bottom: 24px;
}

@media screen and (min-width: 1080px) {
  .privacy-policy-title {
    font-size: 32px;
  }
}

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

.privacy-modal.is-open {
  opacity: 1;
  visibility: visible;
}

/* 背景 */
.privacy-modal_overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

/* モーダル本体 */
.privacy-modal_container {
  position: relative; /* ←基準 */

  width: min(90%, 900px);
  margin: 80px auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;

  max-height: 80vh;
  overflow-y: auto;

  transform: translateY(30px);
  opacity: 0;
  transition: all 0.4s ease;
}

@media screen and (min-width: 1080px) {
  .privacy-modal_container {
    padding: 40px;
  }
}

.privacy-modal.is-open .privacy-modal_container {
  transform: translateY(0);
  opacity: 1;
}

/* ×ボタン */
.privacy-modal_close {
  position: sticky;
  top: 0px;
  margin-left: auto;

  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: #fff;
  border: none;

  font-size: 20px;
  cursor: pointer;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.privacy-modal_close:hover {
  opacity: 0.6;
}

.privacy-modal_body {
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.05em;
}

.privacy-modal_body h2 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 20px;
}

@media screen and (min-width: 1080px) {
  .privacy-modal_body h2 {
    font-size: 24px;
  }
}

.privacy-modal_body h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.privacy-modal_body p {
  margin-bottom: 16px;
}

.privacy-modal_body ol {
  margin-bottom: 16px;
}
