@charset "utf-8";
*, ::before, ::after {
  padding: 0;
  margin: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
img {
  vertical-align: top;
  max-width: 100%;
  height: auto;
}
body {
  font-family: "figtree","Noto Sans JP", "Yu Gothic", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.2;
  color: black;
  background-color: #888888;
}
a {
  color: black;
  text-decoration: none;
}
a:hover {
  text-decoration: none;
  color: #01FB2B;
}
ul {
  list-style-type: none;
}
nav {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  color: black;
  background-color: rgba(255, 255, 255, 0.9);
  display: none;
  justify-content: center; /* 横中央 */
  align-items: center;     /* 縦中央 */
  z-index: 2;
}
body.menu-open nav {
  left: 0; 
}
body.menu-open nav {
  display: flex; /* ← クラスがついたら表示 */
}
nav .menu a {
  text-align: left;         /* テキストは左揃え */
  line-height: 1.2;         /* 行間調整（任意） */
  font-size: clamp(32px, 13.02vw, 100px); /* フォントサイズ調整 */
}
.menu a span {
  white-space: nowrap;
}
.nav-button {
  width: 50px;
  height: 50px;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1100; 
  cursor: pointer;
}

.nav-button span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: black;
  margin: 6px auto;
  transition: 0.3s;
}

body.menu-open .nav-button span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
body.menu-open .nav-button span:nth-child(2) {
  opacity: 0;
}
body.menu-open .nav-button span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.menu-open .nav-button span {
  background-color: black;
}
.container {
  margin: 0 auto;
  padding: 0 5%;
  max-width: 1512px;
  box-sizing: border-box;
}

h1 {
  display: none;
}

.h2-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  /* margin: 50px auto; */
  text-align: left;
}
h2 {
  font-size: clamp(32px, 19.53vw, 150px);
  font-weight: 450;
  position: relative;
  z-index: 1;
  margin: 0;
  display: inline-block;
}
.svg-container {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translate(0%, -73%);
    width: 70%;
    max-width: 600px;
    z-index: -100;
    pointer-events: none;
}

svg {
  width: 100%;
  height: auto;
}

h3 {
  font-size: clamp(20px, 13.02vw, 100px);
  font-weight: 450;
  line-height: 0.9;
  margin-bottom: 6%;
}
h4 {
  font-size: clamp(16px, 4.69vw, 36px);
  font-weight: 400;
  line-height: 100%;
}


.mv {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin-bottom: 5%;
}

.mv-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: auto;
  object-fit: cover; /* 必要に応じて contain に変更 */
  z-index: 1;
}

.center-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #01FB2B; /* 明るいグリーン */
  padding: 12% 12%;
  z-index: 0;
  text-align: center;
}

.about-box {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 6%;
  flex-wrap: wrap;	
  padding-bottom: 50px;
}
.about-box .en {
  font-size: clamp(16px, 6.25vw, 48px);
  width: 500px;	
  flex: 1 1 300px;
  min-width: 250px;
  text-align: justify;
  text-justify: inter-ideograph; /* 漢字や仮名で自然に均等配置 */
}
.about-box .jp {
  font-size: clamp(16px, 3.26vw, 25px);
    height: 450px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    flex: 0 0 auto;
    max-width: 300px;
	line-height: 1.4;
	text-align: justify;            /* 両端揃え */
  text-justify: inter-ideograph;  /* 日本語に適した均等割り付け */
}
.highlight {
  color: #01FB2B;
}
.highlight a {
  color: #01FB2B;
}
.highlight a:hover {
  color: #01FB2B;
}

.boder-line {
  display: block;
  height: 1px;
  background-color: black;
  margin: 0 calc(50% - 50vw);
  width: 100vw;
}
#WEB, #PACKAGE, #OTHER, #CONTACT {
  padding-top: 7%;
  padding-bottom: 10%;
}
.image-hover-effect {
  transition: transform 0.3s ease; /* アニメーション設定 */
}

.image-hover-effect:hover {
  transform: scale(1.05); /* 5%拡大 */
}
.image-wrapper {
  width: 100%;             /* 任意の幅 */
  height: auto;            /* 任意の高さ */
  overflow: hidden;         /* 拡大時にはみ出す部分を隠す */
  position: relative;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  /* object-fit: cover;        中央でトリミング */
  transition: transform 0.3s ease;
}

.image-wrapper:hover img {
  transform: scale(1.1);    /* 10%拡大 */
}
  .work-group {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    padding-top: 6%;
    padding-bottom: 6%;
    justify-content: space-between;
    max-width: 100%; /* はみ出し防止 */
    box-sizing: border-box;
  }
  .tag {
    display: inline-block;
    padding: 3px 16px;
    border: 1px solid black;
    border-radius: 999px;
    font-size: 20px;
    font-weight: 400;
    color: black;
    background-color: transparent;
    text-align: center;
    white-space: nowrap;
    line-height: 1;
  }
  .tag-s {
    display: inline-block;
    padding: 2px 12px;
    border: 1px solid black;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 400;
    color: black;
    background-color: transparent;
    text-align: center;
    white-space: nowrap;
    line-height: 1;
  }
  /* .tag:hover {
    background-color: #333;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
  } */
  /* .tag-group {
    display: flex;
    gap: 12px; /* タグ間の間隔 */
    /* flex-wrap: wrap;  */ 
    .tag-group {
      display: flex;
          flex-wrap: nowrap;
          gap: 20px;
          /* margin-right: 5%; */
          flex-shrink: 1;
    }
  .work-group h2 {
    white-space: nowrap; /* 改行防止（任意） */
    margin-right: 20px;  /* 余白調整 */
  }  
.work-item {
  display: flex;
  justify-content: space-between;
  gap: 6%;
  padding-bottom: 6%;
  border-bottom: #000 solid 1px;
  margin-bottom: 6%;
}
.work-item:last-child {
  border-bottom: none;
}

.work-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 上下を均等配置するなら */
}
.work-text p {
  font-size: clamp(12px, 2.34vw, 18px);
  line-height: 1.4;
  margin-bottom: 16px;
}

.work-image img {
  width: 800px;
  height: auto;
  display: block;
}
.popup-checkbox {
  display: none;
}


.popup-open {
  cursor: pointer; 
}

.popup-overlay {
  display: none;
}

.popup-checkbox:checked + .popup-open + .popup-overlay {
  display: block;
  z-index: 99999;
  background-color: #00000070;
  position: fixed;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
}
.popup-checkbox:checked + .popup-open + .popup-overlay {
  display: block;
}
.popup-window {
  min-width: 70%;
  background-color: #fff;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.popup-image img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
}
.popup-text p {
    margin: 3%;
    color: black;
    text-align: justify;  
    font-size: 15px;
	
}

.popup-text h3, .popup-text h4 {
	margin: 0px;
  color: black;
	line-height: 1;
}

.popup-text h3 {
	font-size: 16px;
	margin-bottom: 0.5em;
	margin-top: 1em;
}

.popup-text h4 {
	font-size: 25px;
	margin-bottom: 1em;
}
.popup-text:not(:last-of-type) {
  margin-bottom: 1em
}

.popup-close {
  cursor: pointer;
  position: absolute;
  top: -26px;
  right: 0;
}

.view-group {
  display: flex;
  align-items: center;
  gap: 30px; /* View moreと矢印の間隔 */
  font-size: clamp(32px, 11.72vw, 90px);
  font-weight: 450;
  justify-content: space-between;
  padding-bottom: 6%;
}
.view-more {
  display: flex;
  align-items: center;
}

.label {
  white-space: nowrap; /* 改行させない */
}

.arrow {
  flex-grow: 1;              /* 残りの幅を使う */
  height: 6px;
  background: #000;
  position: relative;
}

.arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
  width: 25px;
  height: 25px;
  border-right: 6px solid #000;
  border-bottom: 6px solid #000;
}
#WEB, #PACKAGE{
  justify-content: space-between;
  border-top: #000 solid 1px;
}
.pk-design {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: calc(4 * 250px + 3 * 6%); /* 4カラム分の最大幅 */
  margin-left: auto; /* 親コンテナの右側に寄せる */
}
.pk-box h4, .web-box h4 {
  font-size: clamp(16px, 2.6vw, 20px);
  line-height: 1.2;
  margin-top: 13px;
}
.pk-box p, .web-box p {
  font-size: 1clamp(8px, 1.56vw, 12px);
  margin-top: 10px;
}
.web-design {
  display: grid;
      grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
      gap: 30px;
      max-width: calc(2 * 500px + 3 * 6%);
      margin-left: auto; /* 親コンテナの右側に寄せる */
}
/* .other {
  display: grid;
      grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
      gap: 30px;
      max-width: calc(2 * 500px + 3 * 6%);
      margin-left: auto;
      align-items: center;
      margin-top: 20px;
  } */
.other {
  column-count: 3; /* 列数 */
  column-gap: 24px; /* 列間の余白 */
  padding-top: 6%;
  margin-left: 25%;

}
.other-item {
  margin-bottom: 24px; /* 行間の余白 */
  break-inside: avoid;
}
.other img {
  width: 100%;
  display: block;
}

.contact-box {
  padding-top: 80px;
}
.contact-button{
  font-size: clamp(16px, 6.25vw, 48px);
}
footer {
    margin: 0 auto;
    margin-bottom: 70px;
    padding: 0 55px;
    max-width: 1512px;
}
.footer-text {
  display: flex;
  font-size: clamp(16px, 3.91vw, 30px);
  margin-top: 50px;
  justify-content: space-between;
}
.thanks {
  color: #01FB2B;
}

@media (max-width:1100px){

  .popup-window {
  width: 90vw;
  max-width: 80%;
  }
  .work-group {
    display: block;
  
    }
.view-group {
    display: block;
    }
    .arrow {
      display: none;
    }
    .arrow::after {
      display: none;
    }
    .tag-group {
      margin-top: 20px;
    }
    .pk-design {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: auto;
      max-width: calc(4 * 250px + 3 * 6%); /* 4カラム分の最大幅 */
      margin-left:0%; /* 親コンテナの右側に寄せる */
      justify-content: center; /* 横中央 */
    }
}
@media (max-width: 768px) {
  .mv-bg {
  width: 80%;
}
    .center-box {
        padding: 20% 20%;
    }

  .work-item {
    display: block;
    flex-direction: column;
  }
  .work-item > .image {
    width: 100%;
  }

  .work-image img {
    margin: 3% 0;
}
  .about-box .en {
    margin-bottom: 5%;
  }
  .about-box .jp {
    height: 200px;
    max-width: 100%;
  }
  .work-text-sub {
    display: flex;
    align-items: center;
    margin: 3% 0;
  }
  .work-text p {
    font-size: clamp(12px, 2.08vw, 16px);
    line-height: 1.4;
    margin-right: 3%;
    margin-bottom: 0px;
  }
  .work-group {
    padding-bottom: 10%;
  }
  .tag {
    padding: 2px 14px;
    font-size: 16px;
  }
  .tag-s {
    padding: 0.5% 3%;
    font-size: clamp(12px, 2.08vw, 16px)
  }
  .other {
    column-count: 2;
    margin-left: 0%;
}

}


@media (max-width: 589px) {
    .mv-bg {
  width: 100%;
}
  .center-box {
  padding: 24% 24%;
}
.nav-button {
  width: 30px;
  height: 30px;
  top: 15px;
  right: 15px;
}

/* タッチ時の沈み込み */
.image-wrapper:active img {
  transform: scale(0.96);
}
/* タッチ時の視覚フィードバック（暗く） */
.image-wrapper:active::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
  transform: scale(0.96);
  transition: transform 0.3s ease;
  
}
  .pk-design {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
  }
  .web-design {
  display: block;
  margin: 0 auto;
  gap: 30px;
}
.pk-box h4, .web-box h4 {
  font-size: clamp(16px, 2.6vw, 20px);
  line-height: 1.2;
  margin-top: 10px;
}
.pk-box p, .web-box p {
  font-size: clamp(10px, 1.3vw, 12px);
  margin-top: 1%;
}
.web-box {
  margin-bottom: 5%;
}


}