@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
/* zentai */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    color: #14171a;
}
/* 0929_Add */
body {
    background-color: #e9e6e1; /* Ash Beige */
    color: #1a1a1a; /* textcolor */
}
html {
    font-size: 100%;
}
li {
    list-style: none;
}
.motto {
  background-image: linear-gradient(transparent 60%, rgba(255, 0, 255, 0.3) 60%);
  color: #14171a;
  font-weight: bold;
  padding: 0 0.1em;
}
#about .text p {
  margin-top: 1em;
  margin-bottom: 1em;
}
a {
    text-decoration: none;
}
img {
    max-width: 100%;
}
.wrapper {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 150px;
}
header .wrapper {
    margin-bottom: 0;
}
.section-title {
    display: inline-block;
    font-size: 2rem;
    margin-bottom: 60px;
    border-bottom: 1px solid #383e45;
}
.content-title {
    font-size: 1rem;
    margin: 10px 0;
}
/* --- */
header {
    position: fixed;
     background-color: rgba(233, 230, 225, 0.72); /* Ash Beige(TOUKA)) */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}
header .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}
header h1 a {
    color: #00ccff;
    background-color: #14171a;
    padding: 0 1rem;
}
header nav ul {
    display: flex;
    padding: 10px 0;
}
header li {
    margin-left: 30px;
}
header li a {
    color: #24292e;
    font-weight: 700;
}
header li a:hover {
    opacity: 0.7;
}

/* hamburger*/
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #14171a;
    margin: 3px 0;
    transition: 0.3s;
    transform-origin: center;
}

/* .hamburger.active */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}
/* MV */
main {
  margin-top: 60px;
}
#mainvisual {
  margin-bottom: 80px;
  position: relative;
}
#mainvisual img {
    display: block;
    width: 100%;
    height: 600px;
    object-fit: cover;
}

/* particle */
#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
/* ABOUT */
#about .content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
#about img {
  width: 200px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 100px;
  flex-shrink: 0;
  position: relative;
}
#about .text {
    text-align: left;
    min-height: 400px;
    flex: 1;
}

/* WORKS */
#works ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0;
}
#works li {
    background-color: #fff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#works li p {
  white-space: pre-line;
  line-height: 1.7;
  margin-top: 0.6em;
  color: #333;
  font-size: 14px;
}


#works li:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}
#works img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    background-color: #fafafa;
    transition: transform 0.3s ease;
}
#works img:hover {
    transform: scale(1.05);
}
#works .content-title {
    font-size: 1.1rem;
    margin-top: 1rem;
    font-weight: bold;
    color: #14171a;
    text-align: center;
}
#works p {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.5;
    margin-top: 0.5rem;
    text-align: left;
    min-height: 80px;
}

/* WEBSITE section（style=Works） */
#websites ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0;
    justify-content: center;
    max-width: 100%;
}
#websites li {
    background-color: #fff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 350px;
    justify-self: center;
}
#websites li:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}
#websites a {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: inherit;
}
#websites img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    background-color: #fafafa;
    transition: transform 0.3s ease;
}
#websites img:hover {
    transform: scale(1.05);
}
#websites .content-title {
    font-size: 1.1rem;
    margin-top: 1rem;
    font-weight: bold;
    color: #14171a;
    text-align: center;
}
#websites p {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.5;
    margin-top: 0.5rem;
    text-align: left;
    min-height: 80px;
}

/* PHOTO */
#photo ul {
    display: flex;
    justify-content: space-between;
}
#photo li {
    width: 32%;
}

/* footer*/
footer {
    padding: 10px 0;
    text-align: center;
}

/* TypeIt.js */
.typeit-text {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin-bottom: 1em;
    text-align: left;
}
.profile-header {
    text-align: left;
}
.profile-body {
    text-align: left;
    margin-bottom: 1em;
}
.typeit-name {
    font-weight: 700;
    font-size: 1.2em;
    margin-bottom: 1em;
    color: #14171a;
}
.typeit-text .motto {
    background-image: linear-gradient(transparent 60%, rgba(255, 0, 255, 0.3) 60%);
    font-weight: bold;
    padding: 0 0.1em;
}
.ti-cursor {
    color: #00ccff;
    animation: blink 1s infinite;
    font-weight: 700;
}
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}
.typeit-en {
    margin-top: 2em;
    font-style: italic;
    opacity: 0.9;
}

/* SP */
@media screen and (max-width:599px) {
    .wrapper {
        margin-bottom: 100px;
    }
    header .wrapper,
    .wrapper p {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    .hamburger {
        display: flex;
    }
    header nav {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: rgba(255, 255, 255, 0.95);
        transition: right 0.3s ease;
        backdrop-filter: blur(10px);
    }
    header nav.active {
        right: 0;
    }
    header nav ul {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        height: 100%;
        padding-top: 50px;
    }
    header li {
        margin: 20px 0;
        margin-left: 0;
    }
    header li a {
        font-size: 1.5rem;
        display: block;
        padding: 15px 30px;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }
    header li a:hover {
        background-color: rgba(0, 204, 255, 0.1);
        opacity: 1;
    }
    #mainvisual img {
        height: calc(100vh - 60px);
    }
    #about .content {
        flex-direction: column;
        align-items: center;
    }
    #about img {
        margin-right: 0;
        margin-bottom: 3rem;
    }
    #about .text {
        text-align: left;
        width: 100%;
        align-self: stretch;
    }
    #works ul {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    #works li {
        width: 100%;
        grid-column: unset;
        grid-row: unset;
    }
    #works img {
        height: auto;
        max-height: 250px;
    }

        #works li p {
        white-space: pre-line;
        line-height: 1.6;
        font-size: 13px;
        margin-top: 0.5em;
    }

    /* WebsiteSC-forSP */
    #websites ul {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    #websites li {
        width: 100%;
        max-width: 100%;
        grid-column: unset;
        grid-row: unset;
    }
    #websites img {
        height: 180px;
        max-height: 180px;
    }
    #photo ul {
        flex-direction: column;
    }
    #photo li {
        width: 100%;
        margin-bottom: 2rem;
    }
    .typeit-text {
        text-align: left;
        width: 100%;
        min-height: 20px;
    }
    .profile-header {
        text-align: center;
        margin-bottom: 1.5em;
    }
    .profile-body {
        text-align: left;
        margin-bottom: 1em;
    }
    .typeit-name {
        font-size: 1.1em;
    }
}