/*
Theme Name: My Custom Theme
Theme URI: http://example.com/
Author: Takumi
Author URI: http://example.com/
Description: NINJA CODE 
Version: 1.0.0
Text Domain: my-custom-theme
*/




*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fefefe;
  color: #1E1E21;
  font-weight: 600;
}

.container {
  max-width: 1920px;
  width: 100%;
  margin: 0 auto;
}

.work-title a {
  color: #1E1E21; 
  text-decoration: none; 
}
/* index.html */
.header-inner {
  padding: 64px 64px 48px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

.site-title h1 {
  font-size: clamp(80px, 10vw, 192px);
  line-height: 1;
  margin: 0;
  letter-spacing: -10px;
}

.title-name{
  font-size:clamp(22px, 2vw, 48px) ;
  letter-spacing: -1px;
  color: #1E1E21B3;
  margin: 32px 0 0;
}

.menu-btn {
  position: absolute;
  top: clamp(22px, 5vw, 48px);
  right: clamp(20px, 5vw, 48px);
  padding: clamp(13px, 1vw, 16px) clamp(20px, 1vw, 24px);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: #fff;
  background-color: #000;
  border: none;
  border-radius: 9999px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ヘッダーここまで */

/* メインエリアここから */
.first-view-area {
   width: 100%
}


.first-view-area img {
  width: 100%;
  height: auto;
  display: block;
}

.intro-area {
  padding: 64px 0;
}

.intro-area .container {
  padding: 0 64px;
}

.intro-area-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 6.74vw;
}

.intro-left {
  flex: 2;
}

.intro-message {
  font-size: clamp(49px, 5vw, 96px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #1E1E21;
  margin: 0;
}

.intro-middle-line {
  width: 1px;
  background-color: #1E1E21;
  align-self: stretch;
}

.intro-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}
.intro-right h2{
 font-size:clamp(24px,1vw,32px);
}

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

.sns-list a img {
  width: 48px;
  height: 48px;
}

.section-border {
  width: calc(100% - 128px);
  height: 1px;
  background-color: #1E1E21;
  margin: 0 auto;
}

.skills-area {
  padding: 64px 0;
  position: relative;
}

.skills-area .container {
  padding: 0 64px;
}

.skills-wrapper {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 6.74vw;
  align-items: flex-start;
}

.skills {
  flex: 1;
  width: 100%;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-title h2{
font-size:clamp(24px,1vw,32px);
}


.skill-middle-line {
  width: 1px;
  background-color: #1E1E21;
  align-self: stretch;
}

.designs-area {
  flex: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 6.74vw;
  row-gap: 6.74vw;
  position: relative;
}

.designs-area-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #1E1E21;
  transform: translateY(-50%);
  z-index: 1;
}

.skill-card h3 {
  margin-bottom: 16px;
  font-size: clamp(32px,1vw,48px);
}

.skill-card p {
  font-weight: 500;
  font-size: clamp(20px,1vw,24px);
}

.designs-area::before,
.designs-area::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background-color: #1E1E21;
}

.designs-area::before {
  top: 0;
  height: calc(50% - 64px);
}

.designs-area::after {
  bottom: 0;
  height: calc(50% - 64px);
}
/* メイン部分ここまで */

/* フッターここから */

.footer {
  background-color: #1E1E21;
  color: #fff;
  text-align: center;
}

.footer .container {
  padding: 157px 64px 138px;
}

.footer-message {
  font-size: clamp(48px, 10vw, 192px);
  line-height: 1;
}

.contact-btn {
  margin-top: 32px;
  display: inline-block;
  background-color: #ffffff;
  color: #1E1E21;
  text-decoration: none;
  padding: 20px 30px;
  border-radius: 9999px;
  line-height: 1;
  text-align: center;
}

.footer-nav {
  margin-top: 140px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
}

.footer-nav ul li:not(:last-child) {
  margin-right: 48px;
}

.footer-nav a {
  text-decoration: none;
  color: #fff;
}

/* ─────────────── */
/* About Page */
/* ─────────────── */
.about-content{
  display: flex;
}
.About-left{
  flex: 1;
  position: relative;
}

.about-btn{
  position: absolute;
  top: clamp(16px, 5vw, 48px);
  right: clamp(16px, 5vw, 48px);
  padding: clamp(13px, 1vw, 16px) clamp(20px, 1vw, 24px);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: #fff;
  background-color: #000;
  border: none;
  border-radius: 9999px;
  display: flex;
  justify-content: center;
  align-items: center;
  display: none; 
}
.About-left img{
  max-width: 100%;
  display: block;
  height: 78%;
}
.About-right{
  flex: 1;
  position: relative;
}
.About-right-inner{
  padding: 64px;
}
.about-subtitle{
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -1px;
}
.About-right h1{
  font-size: clamp(96px, 10vw, 192px);
  margin: 16px 0 8px 0;
  letter-spacing: -0.04em
}
.lead-text{
  font-size: clamp(32px, 3vw, 64px);
  padding-bottom: 16px;
}
.about-description{
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
}


.about-line{
  height: 1px;
  background-color: #1E1E21;
  margin: 0 auto;
  margin: 64px 0 64px 0;
}
.About-right h2{
  font-size:clamp(64px, 1vw, 96px); 
  margin-bottom: 30px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.biography-text{
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
}
/* ─────────────── */
/*  Work Page */
/* ─────────────── */
.work-header-inner{
  padding: 64px;
  position: relative;
}
.work-header-inner h1{
  font-size: clamp(80px, 10vw, 192px);
  line-height: 110%;
}
.work-header-inner p {
 font-size: clamp(24px, 3vw, 64px) ;
 line-height: 120%;
}
.project-image img{
 width: 100%;
}
.work-text-block{
  padding: 48px 64px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.work-title{
  flex: 1;
}
.work-title h2{
  font-size: clamp(48px, 6vw, 128px) ;
  line-height: 1.2;
}
.work-detail{
  flex: 1;
}
.work-detail p{
  font-size:clamp(20px, 1vw, 24px) ;
  line-height: 1.6;
  font-weight: 500;
}
.btn-area{
  margin-top: 6px;
  display: flex;
  gap: 8px;
}
.btn {
  padding: 10px 16px;
  color: #F5F3EF;
  font-size: 16px;
  background-color: #000;
  border: none;
  border-radius: 9999px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
/* ─────────────── */
/*  single Page */
/* ─────────────── */

.single-header-inner h1{
  font-size: clamp(80px, 10vw, 192px);
}
.single-header-inner p{
  font-size: clamp(24px,3vw,64px);
  letter-spacing: -0.03125em;
   line-height: 1.2;
}
.single-info{
  padding: 64px;
  display: flex;
  justify-content: space-between;
  
  position: relative;
  gap: 60px;
}


.single-content{
  display: flex;
  gap: 64px;
}
.single-header{
  flex: 2;
}
.single-meta{
  flex: 1;
  margin-top: auto;
}
.meta-item{
  padding: 20px 0;
  border-bottom: 1px solid #1E1E21;
  display: flex;
  justify-content: space-between;
}
.main-visual img{
  width: 100%;
  display: block;
}
.about-inner{
  align-items: stretch;
  display: flex;
  padding: 64px 64px 0;
}
.about-heading{
  flex: 1;
  display: flex;
  justify-content: space-between;
}
.vertical-border{
  width: 1px;
  background-color: #000;
  margin: 0 64px;
}
.about-details{
  flex: 2;
}
.about-item{
  margin-bottom: 64px;
  border-bottom: 1px solid #1E1E21;
  padding-bottom: 64px;
}
.about-item:last-child{
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.title{
  margin-top: 16px;
  font-size: clamp(32px, 2vw, 48px);
}
.text{
  margin-top: 16px;
  font-weight: 500;
}
.gallery-title{
  padding: 64px 64px 48px;
}
.arrow-sp{
  display: none;
}
.gallery-images img{
  width: 100%;
  display: block;
}
/* ─────────────── */
/*  contact Page */
/* ─────────────── */

.contact-inner{
  display: flex;
  height: 100vh;
}
.inner-left{
  flex: 1;
  height: 100%;
}
.inner-left img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inner-right{
  flex: 1;
  padding: 0;
  position: relative;
}
.inner-right-inner{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 64px;
}


.contact-title p{
 font-size:clamp(24px, 1vw, 32px); 
}
.contact-title h1{
  font-size:clamp(80px, 1vw, 128px); 
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  background-color: #E4E1DA;
  width: 100%;
  padding: 20px 12px;
  font-size: 20px;
}
.form-group textarea {
  height: 200px;  
}

.form-group label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 4px;
  transition: 0.2s;
  pointer-events: none;
}
.form-group:nth-child(3) label {
  top: 13%;
  transform: translateY(0); 
}


.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: 0;
  transform: translateY(-50%) scale(0.8);
  color: #333;
}


.send-btn {
  padding: 16px;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-size: 18px;
  cursor: pointer;
}

/* modal */


.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: #1E1E21;
  display: none; 
  justify-content: center;
  align-items: center;
  z-index: 999;
  padding: 128px;
}

.modal.active {
  display: flex;
}

.modal-inner {
  color: #fff;
  text-align: center;
  width: 100%;
}

.modal-nav ul {
  list-style: none;
  padding: 0;
}
.modal-nav li::before {
  content: "↘︎";  
  display: inline-block;
  margin-right: 16px; 
  font-size: 1em; 
  line-height: 1; 
  position: relative;
  top: -19px; 
}


.modal-nav li {
  margin: 16px 0 0;
  display: flex;
  align-items: center;
  justify-content:center;
}

.modal-nav li a {
  text-decoration: none;
  color: #fff;
  font-size: clamp(52px, 6vw, 128px) ;

}

.modal-close {
  position: absolute;
  top: 32px;
  right: 32px;
  background-color: #F5F3EF;
  border: none;
  color: #1E1E21;
  font-size: 20px;
  cursor: pointer;
  font-weight: 600;
  border-radius: 9999px;
  padding: clamp(13px, 1vw, 16px) clamp(20px, 1vw, 24px);
  display: flex;
  justify-content: center;
  align-items: center;
}











@media screen and (max-width: 768px) {
  
  /* index.html */
  .header{
    margin-top: 0;
  }
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }
  .menu-btn{
    font-size: 16px;
  }

  .first-view-area img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  
  .site-title {
    padding: 13px 13px 10px;
    margin-top: 85px;
  }

  .site-title h1 {
    letter-spacing: -5px;
  }

  .title-name {
    margin-top: 7px;
  }
  
  .intro-area .container,
  .skills-area .container {
    padding: 0 20px;
  }

  .intro-area {
    width: 100%;
    margin-top: 40px;
    padding: 0;
  }

  .intro-area-inner {
    flex-direction: column-reverse;
    gap: 20px;
  }

  .intro-left,
  .intro-right,
  .skills {
    width: 100%;
  }

  .intro-message {
    margin-bottom: 40px;
    line-height: 1.2;
    letter-spacing: -1px;
  }
  .sns-list{
    gap: 22px;
    margin-top: 19px;
  }
  

  .section-border {
    width: calc(100% - 40px);
  }

  .skills-area {
    padding: 0;
    margin-top: 48px;
  }

  .skills-wrapper {
    flex-direction: column;
    gap: 0;
    margin-bottom: 102px;
  }

  .section-title {
    margin-bottom: 43px;
  }

  .skills-wrapper::before,
  .designs-area::before,
  .designs-area::after,
  .designs-area-line {
    display: none;
  }

  .designs-area {
    grid-template-columns: 1fr;
    row-gap: 31px;
    column-gap: 0;
  }

  .skill-card {
    border-bottom: 1px solid #1E1E21;
  }

  .skill-card:last-child {
    border-bottom: none;
  }

  .skill-card h3 {
    margin-bottom: 11px;
  }

  .skill-card p {
    margin-bottom: 27px;
  }

  .skill-card:last-child p {
    margin-bottom: 0;
  }
  /* メインここまで */

  /* フッターここから */

  .footer .container {
    padding: 53px 50px;
  }

  .contact-btn {
    margin-top: 17px;
  }

  .footer-nav {
    margin-top: 57px;
  }

  .footer-nav ul {
    flex-direction: column;
  }

  .footer-nav ul li {
    text-align: center;
    width: 100%;
    margin-bottom: 28px;
  }

  .footer-nav ul li:not(:last-child) {
    margin-right: 0;
  }

  .footer-nav ul li a {
    display: inline-block;
    width: 100%;
  }
}

  /* about.html（768px以下） */


@media screen and (max-width: 768px){
  .about-content{
    display: flex;
    flex-direction: column;
  }
  .About-left{
    position: relative;
  }
  .about-btn {
    display: block; 
  }

  .About-left img {
    width: 100%;
  }
  .About-right-inner{
    padding: 36px 20px 81px;
  }
  .About-right .menu-btn {
    display: none;
  }
  .about-subtitle{
    font-size: 24px;
  }
  .About-right h1{
    margin: 40px 0 40px 0;
  }
  .lead-text{
    padding-bottom: 40px;
  }
  .about-line{
    margin: 40px 0 40px 0;
  }
  .About-right h2{
    margin-bottom: 40px;
  }
}
 /* work.html（768px以下） */
 @media screen and (max-width: 768px){
  .header{
    margin-top: 27px;
  }
  .work-header-inner{
    padding: 30px 24px;
  }
  
  
  .project-section{
    margin-bottom: 85px;
  }
  .work-text-block{
    padding: 22px 20px 0;
    flex-direction: column;
    align-items: flex-start;
  }
 .work-title h2{
  line-height: 1.2;
 }
 .work-detail p{
  margin-top: 6px;
 }
 .btn-area{
  margin-top: 22px;
 }
}

/* single.html（768px以下） */
@media screen and (max-width: 768px){
  .single-info{
    padding: 0;
    gap: 0;
    flex-direction: column;
  }

  .single-content{
  flex-direction: column;
  gap: 0;
}
.single-header{
  padding: 30px 24px;
  margin-top: 55px;
}
.single-header-inner p {
  margin-top: 10px;
}

.single-meta{
  margin: 25px 20px;
}
.about-inner{
  flex-direction: column;
  padding: 0 20px;
  margin: 57px 0 57px 0;
}
.about-heading{
  margin-bottom: 71px;
}
.about-item{
  padding-bottom:0;
  margin-bottom: 27px
}
.title,
.text {
  margin-top: 11px;
}
.text{
  margin-bottom: 27px;
}
.about-item:last-child{
  border-bottom: 1px solid #1E1E21;
}
.gallery-title{
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
}
.arrow-sp{
  display: block;
  margin-right: 10px;
}
.gallery-images{
  margin-top: 19px;
}
}
/* contact.html（768px以下） */
@media screen and (max-width: 768px){
 .contact-inner{
  display: flex;
  flex-direction: column;
  height: 100%;
 }
 .inner-left{
  position: relative;
 }
 .contact-photo-btn{
 position: absolute;
 top: 22px;
    right: 20px;
    width: auto;
    height: auto;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
  letter-spacing: -0.5px;
  color: #fff;
  background-color: #000;
  border: none;
  border-radius: 9999px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.inner-right-inner{
  padding: 36px 20px 55px;
}
.contact-title .menu-btn {
  display: none;
}
.menu-btn-contact{
  display: none;
}
.contact-form{
  margin-top: 87px;
}
}
/* modal */
.modal-nav li{
  margin: 7px 0 0;
}
.modal-nav li::before{
  top: -10px;
}
.modal{
  padding: 0;
}
