@charset "utf-8";

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Noto Sans JP';
  color: #222222;
  line-height: 2.0;
  overflow-x: hidden;
}

.en {
  font-family: 'Oswald';
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  position: sticky;
  top: 0;
  z-index: 10;
  height: 100px;
  background: #D1E218;
}

.logo {
  font-weight: bold;
  font-size: 32px;
  font-weight: bold;
}

nav {
  display: flex;
  gap: 20px;
  font-size: 16px;
}

nav a {
  margin-left: 25px;
  text-decoration: none;
  color: #222222;
  font-size: 16px;
  transition: opacity 0.3s; 
}

nav a:hover { 
  opacity: 0.5;
}

.title {
  position: relative;
  height: 700px;
  display: flex;
  align-items: center;
}

.title img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.title::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #222222;
  opacity: 0.5;
  z-index: 1;
}

h1 {
  position: relative;
  font-size: 70px;
  font-weight: bold;
  color: #D1E218;
  line-height: 1.2;
  padding-left: 70px;
  z-index: 2;
}

section {
  padding: 50px 0;
  width: 100%;
  display: block;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 50px;
  box-sizing: border-box;
}

h2 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 50px;
  font-weight: bold;
  color: #D1E218;
}

#about h2 {
  color: #222222;
}

#skill h2 {
  color: #222222;
}

h3{
  font-size: 20px;
  text-align: center;
  margin-bottom: 50px;
  font-weight: bold;
  color: #222222;
}

h4{
  font-size: 20px;
  text-align: left;
  margin-top: 20px;
  margin-bottom: 5px;
  font-weight: 400;
  color: #D1E218;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 40px;
  width: 100%;
}

.workspage-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 40px;
  width: 100%;
}

.works-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
}

.works-img {
  width: 100%;
  max-width: 350px;
  height: auto;
  object-fit: cover;
}

.works-title {
  display: block;
  font-size: 16px;
  margin-top: 10px;
  color: #D1E218;
}

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  align-items: center;
  gap: 40px;
}

.blogs-item {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.blogs-img {
  width: 100%;
  max-width: 350px;
  height: auto;
  object-fit: cover;
}

.blogs-title {
  display: block;
  font-size: 16px;
  margin-top: 10px;
  color: #D1E218;
}

.btn {
  display: inline-block;
  margin-top: 40px;
  padding: 10px 25px;
  border: 1px solid #D1E218;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  color: #222222;
  background: #D1E218;
  font-size: 16px;
  letter-spacing: 2px;
  transition: all 0.3s;
  z-index: 3;
}

.btn:hover {
  background: #222222;
  color: #D1E218;
}

.btn-wrapper {
  text-align: center;
  margin-top: 25px;
  height: auto;
}

#about .btn {
  background-color: #222222;
  color: #D1E218;
  border: 1px solid #222222;
  margin-top: 0;
}

#about .btn:hover {
  background-color: #D1E218;
  color: #222222;
}

#about .btn-wrapper{
  text-align: right;
  margin-bottom: 50px;
}

.about p {
  max-width: 600px;
}

a {
  text-decoration: none;
  color: inherit;
}

footer {
  text-align: center;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  height: 100px;
  background: #D1E218;
}

.footer-left {
  display: flex;
  gap: 40px;
  align-items: center;
}

footer nav,footer .sns {
  display: flex;
  gap: 20px;
  align-items: center;
}

#works {
  overflow: hidden;
  height: auto;
  background:#222222
}

#about {
  overflow: hidden;
  height: auto;
  background: #D1E218;
  color: #222222
}

#ABOUT {
  overflow: hidden;
  height: auto;
  background: #222222;
  color: #fff
}

#blogs {
  overflow: hidden;
  height: auto;
  background: #222222;
  color: #fff
}

#skill {
  overflow: hidden;
  height: auto;
  background: #D1E218;
  color: #fff
}

#ABOUTRIVIBEX {
  overflow: hidden;
  height: auto;
  background: #222222;
  color: #fff
}

.about-content {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
}

.ABOUT-content {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
}

.about-img {
  flex: 1;
  margin-bottom: 50px;
}

.ABOUT-img {
  flex: 1;
  margin-bottom: 50px;
}

.about-img img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
}

.ABOUT-img img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
}

.about-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ABOUT-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-text p{
  margin-bottom: 0;
  line-height: 1.8;
  font-size: 16px;
}

.ABOUT-text p{
  margin-bottom: 50px;
  line-height: 1.8;
  font-size: 16px;
}

.ABOUTRIVIBEX-text p{
  line-height: 1.8;
  font-size: 16px;
  margin-bottom: 50px;
}

#contact {
  overflow: hidden;
  border: 3px solid #D1E218;
  position: relative;
  height: 400px;
  overflow: hidden;
}

#contact img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-text {
  position: relative;
  z-index: 2;
  color: #D1E218;
  text-align: center;
  display: flex;
  align-items: center;
  height: 100%;
  
}

.sns {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.sns img {
  width: 20px;
  height: 20px;
  transition: 0.3s;
}

.sns img:hover {
  opacity: 0.6;
}

.contact2{
  background-color: #222222;
}

.contact-form {
  width: 100%;       
  max-width: 840px;   
  margin: 40px auto 0;
  box-sizing: border-box;
  padding-left: 50px;
  padding-right: 50px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 30px;    
  width: 100%;
}

.form-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start; 
  width: 100%;
}

.form-item-full {
  grid-column: span 2; 
}

.form-item label {
  font-size: 16px;
  margin-bottom: 10px !important; 
  color: #fff;
  text-align: left; 
}

.form-item label.label-must {
  color: #D1E218
}

.form-item input,.form-item textarea {
  width: 100%; 
  padding: 12px;
  font-size: 16px;
  border-radius: 3px;
  background: #fff;
  font-family: inherit;
}

.contact-form .btn-wrapper {
  margin-top: 0px;
  text-align: center !important;
}

#worksdetail{
  background-color: #222222;
}

#worksdetail h2 {
  text-align: left;
  margin-bottom: 10px;
}

#worksdetail p {
  color: #ffffff;
  padding-bottom: 20px;
  border-bottom: solid #D1E218;
}

#worksdetail p:last-of-type {
  border-bottom: none;
  padding-bottom: 50px;
}

#blogsdetail{
  background-color: #222222;
}

#blogsdetail h2 {
  text-align: left;
  margin-bottom: 10px;
}

#blogsdetail p {
  font-size: 20px;
  color: #ffffff;
  padding-top: 20px;
  padding-bottom: 20px;
}

.hamburger {
  display: none; 
}

.pc {
  display: inline;
}

.sp {
  display: none;
}

@media (max-width: 768px) {
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px; 
    height: 80px; 
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 100;
  }
  .hamburger span {
    width: 100%;
    height: 2px;
    background-color: #222222;
    transition: all 0.3s;
  }

  nav {
    position: fixed;
    top: 80px; 
    left: 100%; 
    width: 100%;
    height: 100vh;
    background: #D1E218; 
    flex-direction: column;
    align-items: center;
    padding-top: 160px;
    gap: 50px;
    transition: all 0.3s; 
    z-index: 90;
  }
  nav a {
    font-size: 20px; 
    margin-left: 0;
  }

  nav.active {
    left: 0; 
  }

  .hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  h1 {
    font-size: 50px; 
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 50px; 
  }

  .about-content, .ABOUT-content{
    flex-direction: column !important;
    gap: 30px !important;
  }

  .about-img, .ABOUT-img {
    flex: none !important;
    width: 100% !important;
    margin-bottom: 20px !important;
  }
  
  .about-img img, .ABOUT-img img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important; 
  }

  .about-text, .ABOUT-text {
    flex: none !important;
    width: 100% !important;
    display: block !important; 
  }

  .about-text p, .ABOUT-text p {
    margin-bottom: 20px !important;
  }

  .blogs-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .workspage-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .worksdetail {
    flex-direction: column;
    gap: 30px;
  }
  
  footer {
    flex-direction: column;
    height: auto;
    gap: 20px;
    padding: 30px 20px;
  }

  .form-grid {
    grid-template-columns: 1fr !important; 
    gap: 20px !important;
  }

  .form-item {
    width: 100% !important;
  }

  .form-item-full {
    grid-column: span 1 !important;
  }

  .contact-form {
    width: 100% !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
  }

  .contact-form .form-grid .form-item-full {
    grid-column: span 1 !important;
  }

  .contact-form .form-grid {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }

  .contact-form textarea {
    min-height: 160px;
  }

  #about .btn-wrapper {
    text-align: center !important;
    margin-bottom: 20px !important;
  }

  .pc { display: none; }

  .sp {
    display: inline;
  }

}

/* 1. プラグインの自動生成ラッパーの挙動をリセット */
.contact-form p,
.contact-form .wpcf7-form-control-wrap {
  display: contents !important;
}

/* 2. お問い合わせ内容の親要素を2列分ぶち抜きにする */
.contact-form .form-grid .form-item-full {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

/* 3. お問い合わせ内容（textarea）の横幅と高さを確保 */
.contact-form textarea {
  width: 100% !important;
  min-height: 200px;
  box-sizing: border-box;
  display: block;
}

/* 4. その他の入力欄も枠線いっぱいにフィットさせる */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"] {
  width: 100% !important;
  box-sizing: border-box;
}

/* 6. 【追加】送信ボタンを真ん中にする（あなたの2行コード） */
.contact-form .btn-wrapper {
  margin-top: 0px;
  text-align: center !important;
}