@charset "UTF-8";

/* 
font-family: "Cardo", serif;
font-family: "Shippori Mincho", serif; */

html {
    font-size: 100%;
}
body {
    padding: 0;
    margin: 0;
    background-color: #F9F7F1;
    font-size: 1rem;
    color: #111;
    font-family: "Shippori Mincho", serif;
}
img {
    max-width: 100%;
}
li {
    list-style: none;
}
a {
    font-size: 1rem;
    color: #111;
    text-decoration: none;
    cursor: pointer;
}
video {
    width: 100%;
    object-fit: cover;
}


/*--------------------------- 共通 ------------------------------*/

.wrapper {
    max-width: 90%;
    margin: 0 auto;
}
.sub-title {
    padding: 0 0 50px 0;
}
.container {
    max-width: 80%;
    margin: 0 auto;
}

/*--------------------------- header ------------------------------*/
#header {
    position: relative;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    color: #7A9EAB;
}
.nav {
    display: flex;
    z-index: 1000;
}
.nav li {
    margin-left: 20px;
}
.nav li a {
    color: #7A9EAB;
    font-family: "Cardo", serif;
}
.nav li a:hover {
    opacity: 0.7;
}

.site-title {
    position: relative;
}
.site-title::after {
    content: " ";
    width: 200px;
    height: 1px;
    background-color: #7A9EAB;
    top: 50%;
    left: 110%;
    position: absolute;
}

.first-page {
    height: 100vh;
    width: 100%;
    background-color: #7A9E7E;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    z-index: 2;
}
.second-page {
    height: 100vh;
    width: 100%;
    background-color: #7A9E7E;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    z-index: 1;
}
.first-page p,
.second-page p {
    text-align: center;
    vertical-align: middle;
    font-size: 2.5rem;
    font-family: "Cardo", serif;
    color: #F9F7F1;
}
.first-page span,
.second-page span {
    opacity: 0;
    display: inline-block;
    transition: opacity 0.5s;
}

/* ハンバーガーとナビゲーションの基本非表示設定 */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  height: 3px;
  background: #7A9EAB;
  margin: 5px 0;
  transition: 0.3s;
}
.hamburger.active span {
  background-color: #F9F7F1; /* マスク表示時の色 */
}
.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg);
  position: relative;
  top: 9px;
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(45deg);
  position: relative;
  top: -9px;
}

#mask {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 70%;
  height: 100%;
  background: rgba(128, 128, 128, 0.6);
  z-index: 999;
}
#mask.active {
    display: block;
}

/* ナビゲーション初期状態 */
.nav {
  display: flex;
  gap: 20px;
}

@media screen and (max-width: 768px){
    .site-title::after {
    width: 100px;
    }

    .hamburger {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1100;
    width: 30px;
    height: 20px;
    cursor: pointer;
  }

  .hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    margin: 6px 0;
    background-color: #7A9EAB;
    transition: 0.3s;
  }

  .nav {
    display: none;
    flex-direction: column;
    background-color: #7A9E7E;
    position: fixed;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    z-index: 1050;
    text-align: center;
    padding-top: 100px;
    }

  .nav.active {
    display: flex;
  }
  .nav li a {
    color: #F9F7F1;
    }
}
@media screen and (max-width: 480px){
    .site-title::after {
        width: 0;
    }
    .first-page p,
    .second-page p {
        font-size: 1.5rem;
}

}


/*--------------------------- #hero ------------------------------*/

#hero {
    width: 100%;
    height: 90vh;
}
.hero-name {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    height: calc( 90vh - 10vh);
    font-family: "Cardo", serif;
    font-size: 6rem;
    color: #7A9EAB;
}
.jp-name {
    display: flex;
    justify-content: flex-end;
    position: relative;
    color: #7A9EAB;
    padding-right: 30px;
}

@media screen and (max-width: 1248px){
    .hero-name {
    font-size: 4rem;
    }
}
@media screen and (max-width: 768px){
    .hero-name {
    font-size: 3rem;
    height: calc( 90vh - 30vh);
    }
}
@media screen and (max-width: 480px){
    .hero-name {
    font-size: 2rem;
    height: calc( 90vh - 50vh);
    }
    #hero {
    height: 60vh;
}
    
}

/*--------------------------- #mainvisual ------------------------------*/

#mainvisual {
    width: 100%;
    height: 80vh;
    color: #F9F7F1;
    background-color: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
#mainvisual h2 {
    position: absolute;
    top: 40%;
    font-size: 3rem;
}
#mainvisual h3 {
    position: absolute;
    top: 60%;
    font-size: 2rem;
}
#mainvisual video {
 opacity: 0.5;
 height: 80vh;
}

.animate-text{
  opacity: 0;
  transform: translateY(100px); /* 少し下に配置 */
  transition: opacity 3s ease, transform 3s ease; /* 3秒かけて表示 */
}

.animate-text.show {
  opacity: 1;
  transform: translateY(0); /* 元の位置に移動 */
}

@media screen and (max-width: 480px){
    #mainvisual h2 {
        font-size: 2rem;
    }
    #mainvisual h3 {
        font-size: 1.5rem;
    }
}


/*--------------------------- #message ------------------------------*/

#message {
    background-color: #F9F7F1;
    padding: 150px 0;
}
#message h2 {
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: bold;
}
.message {
    line-height: 30px;
}
@media screen and (max-width: 480px){
    #message p {
        font-size: 0.75rem;
    }
}


/*--------------------------- #hero-works ------------------------------*/
.works_btn {
    text-align: center;
}
a.btn--green {
  color: #fff;
  background-color: #7A9E7E;
  border-bottom: 5px solid #658c6e;
  padding: 24px;
  font-size: 1.5rem;
  font-weight: bold;
}
a.btn--green:hover {
  margin-top: 3px;
  color: #fff;
  background: #658c6e;
  border-bottom: 2px solid #7A9E7E;
}
a.btn--shadow {
  -webkit-box-shadow: 0 3px 5px rgba(0, 0, 0, .3);
  box-shadow: 0 3px 5px rgba(0, 0, 0, .3);
}

.hero-works-text {
    text-align: center;
    margin: 120px 0 80px;
    font-size: 3rem;
    font-family: "Cardo", serif;
    color: #7A9EAB;
}


/*--------------------------- #about-detail ------------------------------*/


#hero-about {
    margin-bottom: 100px;
}
.about-detail {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-about-image {
    width: 20%;
    margin-right: 100px;
}
.about-detail-text {
    width: 50%;
}

@media screen and (max-width: 768px) {
  .about-detail {
    display: block;
  }
  .hero-about-image {
    width: 50%;
    margin: 0 auto;
    padding-bottom: 50px;
    }
  .about-detail-text {
    width: 90%;
    margin: 0 auto;
    }
    .about-detail-text p {
        font-size: 0.75rem;
    }
}

/*--------------------------- footer ------------------------------*/

#footer {
    background-color: #7A9EAB;
    color: #F9F7F1;
    padding: 80px 0;
    text-align: center;
}
#footer a {
    color: #F9F7F1;
}
.footer {
    width: 30%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
.footer li:hover {
    opacity: 0.8;
}
#footer p {
    margin-top: 40px;
    font-size: 0.8rem;
}

@media screen and (max-width: 768px) {
  .footer {
    width: 60%;
  }
}
@media screen and (max-width: 480px) {
  .footer {
    width: 80%;
    font-size: 0.875rem;
  }
}

/*--------------------------- about.html ------------------------------*/

/*----------- #skills ----------*/
.about {
    text-align: center;
    padding: 20px 0;
    border-top: #7A9EAB 1px solid;
    border-bottom: #7A9EAB 1px solid;
    font-family: "Cardo", serif;
}
.skills-items {
    display: flex;
    justify-content: center;
    text-align: left;
    align-items: center;
}
.skills-items h3 {
    margin-bottom: 10px;
    font-weight: bold;
}
.coding {
    width: 50%;
    border-right: #7A9EAB 1px solid;
}
.design {
    width: 50%;
    padding: 50px;
}

@media screen and (max-width: 768px) {
  .skills-items {
    display: block;
    justify-content: center;
    text-align: center;
    align-items: center;
}
    .skills-items h3 {
        margin-bottom: 10px;
        font-weight: bold;
    }
    .coding {
        width: 100%;
        border-right: none;
        border-bottom: #7A9EAB 1px solid;
        padding: 50px;
    }
    .design {
        width: 100%;
    }
    .skills-items p {
        font-size: 0.875rem;
        text-align: left;
    }
}
@media screen and (max-width: 480px) {
    .coding,
    .design {
        padding: 50px 0;
    }
    .coding p,
    .design p {
        font-size: 0.75rem;
    }
}


/*----------- #strengths ----------*/
.strengths {
    display: flex;
    align-items: center;
}
.three-strengths {
    width: 30%;
    font-family: "Cardo", serif;
    transform: rotate(-30deg); 
    text-align: center;
}
.three-strengths-items {
    width: 70%;
}
.three-strengths-items dl {
    border-bottom: #7A9EAB 1px solid;
    padding: 50px 0;
}
.three-strengths-items dl:last-of-type {
    border-bottom: none;
}
.three-strengths-items dt {
    margin-bottom: 10px;
    font-weight: bold;
}
@media screen and (max-width: 768px) {
    .strengths {
        display: block;
    }
    .three-strengths {
        width: 100%;
        transform: rotate(-15deg); 
        text-align: center;
        padding: 60px 0 0;
    }
    .three-strengths-items {
        width: 100%;
    }
    .three-strengths-items dd {
        font-size: 0.875rem;
    }

}
@media screen and (max-width: 480px) {
   .three-strengths-items dd {
        font-size: 0.75rem;
    }
}


/*----------- #personal ----------*/
#personal dl {
    padding: 50px 0;
    display: flex;
    flex-wrap: wrap;
}
#personal dt {
    width: 30%;
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: #7A9EAB 1px dotted;
    text-align: center;
}
#personal dd {
    width: 70%;
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: #7A9EAB 1px dotted;
}

@media screen and (max-width: 768px) {
    #personal dt,
    #personal dd {
        font-size: 0.875rem;
    }
}
@media screen and (max-width: 480px) {
    #personal dt,
    #personal dd {
        font-size: 0.75rem;
    }
}

/*--------------------------- works1.2.html ------------------------------*/

/*----------- #main-works ----------*/
#main-works {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 0;
}
.main-works-detail {
    width: 30%;
    text-align: left;
}
.works-image {
    width: 70%;
}
.works-title {
    border-bottom: #7A9EAB 1px solid;
}
.works-title h4 {
    font-size: 1.25rem;
}
.works-title p {
    font-family: "Cardo", serif;
    padding-bottom: 10px;
}
.works-time dl {
    display: flex;
    margin-bottom: 40px;
}
.works-time dt {
    width: 30%;
    margin-top: 10px;
}
.works-time dd {
    width: 70%;
    margin-top: 10px;
}
.works-time a {
    color: #0066FF;
}

@media screen and (max-width: 1000px) {
    #main-works {
        display: block;
    }
    .main-works-detail {
        width: 100%;
    }
    .works-image {
        padding-top: 50px;
        width: 100%;
    }
}
@media screen and (max-width: 768px) {
    .works-title h4 {
        font-size: 1rem;
    }
    .works-title p {
        font-size: 0.875rem;
    }
}
@media screen and (max-width: 480px) {
    .works-title h4 {
        font-size: 0.875rem;
    }
    .works-title p {
        font-size: 0.75rem;
    }
}


/*----- #works-description -----*/

#works-description {
    padding: 50px 0 100px;
}
#works-description .detail,
#works-description .list {
    margin-bottom: 50px;
}
#works-description h4 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 10px;
}
@media screen and (max-width: 768px) {
    #works-description h4 {
        font-size: 1rem;
    }
    #works-description li,
    #works-description p {
        font-size: 0.875rem;
    }
}
@media screen and (max-width: 480px) {
    #works-description h4 {
        font-size: 0.875rem;
    }
    #works-description li,
    #works-description p {
        font-size: 0.75rem;
    }
}



/*----- #top-page-----*/
#top-page {
    background-color: #7A9E7E;
    padding: 80px 0;
    color: #F9F7F1;
}
#top-page h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 30px 0;
    font-family: "Cardo", serif;
}
#top-page .image {
    display: flex;
    justify-content: space-between;
    text-align: center;
}
#top-page .image .pc {
    width: 60%;
}
#top-page .image .pc img {
    width: 60%;
}
#top-page .image .pc p,
#top-page .image .sp p {
    margin-bottom: 10px;
    font-family: "Cardo", serif;
} 
#top-page .image .sp {
    width: 30%;
}
#top-page .image .sp img {
    width: 30%;
}
@media screen and (max-width: 480px) {
    #top-page .image {
    display: flex;
    justify-content: space-between;
    text-align: center;
}
#top-page .image .pc {
    width: 60%;
}
#top-page .image .pc img {
    width: 100%;
}
}

/*--------------------------- contact.html ------------------------------*/

#form {
  width: 90%;
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background-color: #f9f7f1;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 100px;
}
.contact-title {
    padding: 50px 0;
}
.contact-title h3 {
    font-size: 1.5rem;
    font-family: "Cardo", serif;
}
.contact-detail {
    margin-bottom: 80px;
}
.contact-detail h4 {
    font-size: 1.25rem;
    margin-bottom: 40px;
}
dl {
  margin: 0;
}
.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}
dt {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
}
dd {
  margin: 0;
}
input[type="text"],
input[type="email"],
input[type="file"],
textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  background-color: #fff !important ;
  line-height: 1.5;
  vertical-align: top;
  text-align: left;
}
textarea {
  resize: none;
}
.submit-button {
  text-align: center;
  margin-top: 2rem;
}
.submit-button button {
  background-color: #7A9E7E;
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.submit-button button:hover {
  background-color: #658c6e;
}
/* ContactForm 7用のCSS */
.submit-button input {
  background-color: #7A9E7E;
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.submit-button input:hover {
  background-color: #658c6e;
}

@media screen and (max-width: 768px) {
    .contact-detail h4,
    .contact-detail p {
    font-size: 1rem;
    margin-bottom: 30px;
    }
    .form-row dt {
        font-size: 0.875rem;
    }
    input[type="file"] {
    font-size: 0.875rem; 
    }
    .submit-button button {
    font-size: 0.875rem;
}
}
@media screen and (max-width: 480px) {
    .contact-detail h4,
    .contact-detail p {
    font-size: 0.75rem;
    margin-bottom: 20px;
    }
    .form-row dt {
        font-size: 0.75rem;
    }
    input[type="file"] {
    font-size: 0.75rem; 
    }
    .submit-button button {
    font-size: 0.75rem;
}
}
/*--------------------------- works-list.html ------------------------------*/

.works-box {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 100px;
}
.works-box-items {
    border: #333 1px solid;
    padding: 10px;
    text-align: center;
}
.works-box-items:hover,
.works-box-items:hover * {
    color: #F9F7F1;
    background-color: #7A9EAB;
}
.works-box-items img {
    width: 80%;
}
.works-items-detail dl {
    margin-top: 16px;
}
.works-items-detail h5 {
    font-size: 0.9rem;
}
.works-items-detail p {
    font-size: 0.875rem;
}
@media screen and (max-width: 768px) {
    .works-box {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .works-items-detail h5 {
        font-size: 0.875rem;
    }
    .works-items-detail p {
        font-size: 0.75rem;
    }
}
@media screen and (max-width: 520px) {
     .works-box {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .works-items-detail h5 {
        font-size: 0.75rem;
    }
    .works-items-detail p {
        font-size: 0.65rem;
    }
}

/*--------------------------- 共通 ------------------------------*/
/*--------------------------- 共通 ------------------------------*/
/*--------------------------- 共通 ------------------------------*/
/*--------------------------- 共通 ------------------------------*/