@charset "utf-8";

@import url('https://fonts.googleapis.com/css2?family=Cause:wght@100..900&family=Elms+Sans:ital,wght@0,100..900;1,100..900&family=Noto+Sans+JP:wght@100..900&family=Stack+Sans+Notch:wght@200..700&family=Wallpoet&display=swap');
    html{
        scroll-behavior: smooth;
    }

    h1{
        color: #4A4A4A;
        font-size: 250%;
        font-family: "Noto Sans JP", sans-serif;
    }


    body {
        background-color: #FAF8F5;
        color: #333333;
        font-family: "Noto Sans JP", sans-serif;
        margin: 0;
        padding: 0;
        line-height: 1.6;
    }
    header {
        text-align: left;
    }
    header h1 a {
    color: inherit;        
    text-decoration: none; 
    }
    header h1 a:hover {
    opacity: 0.8;          
    }
    footer {
        text-align: center;
    }
    .main-visual {
        width: 100%;
        height: auto;
        display: block;
    }

/* ナビゲーション */
    nav ul{
        display: flex;
        justify-content: center;
        gap: 30px;
        padding: 0;
        margin: 20px 0;
    }

    nav li{
        list-style: none;
    }

    nav a{
        text-decoration: none;
        color: #4A4A4A;
        transition: 0.3s;
    }

    nav a:hover{
        color: #8B8680;
    }  

    h1,footer,h2{
        text-align: center;
    }
    ul{
        list-style-type: none;
    }
    .career-list,
    .tools-list{
        text-align: left;
        display: inline-block;
        padding-left: 20px;
    }
/* HOME */
    .hero {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .hero img{
        width:100%;
        height:100vh;
        object-fit:cover;
        display:block;
    }
    nav{
        position: relative;
        z-index: 10;
    }
    .works-more{
        text-align:center;
    }
        

    .home-works-grid .work-card{
    width: 100%;
    max-width: 320px;
}

/* ABOUT */
    .about{
        padding: 80px 10%;
        background-color: #F5F2EE;
        text-align: center;
    }
    .about p{
        line-height: 1.8;
        margin-bottom: 1.2em;
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    h3{
        margin-top: 50px;
        margin-bottom: 20px;
    }
    .profile-photo {
        display: block;
        margin: 0 auto 30px;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        object-fit: cover;
        border: 4px solid #F5F2EE;
        box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    }
    .career-section,
    .tools-section{
        max-width: 600px;
        margin: 40px auto;
        text-align: left;
    }
    .career-list li{
        margin-bottom: 12px;
    }

    .year{
        display: inline-block;
        width: 140px;
        font-weight: 600;
        color: #8B8680;
    }
    .works-summary{
        text-align: center;
        padding: 80px 10%;
    }

    .home-works-grid{
        display:flex;
        justify-content:center;
        gap:30px;
        flex-wrap:wrap;
    }

   

    .works-more{
        text-align: center;
        margin-top: 30px;
    }

    .works-more a{
        color: #4A4A4A;
        text-decoration: none;
    }

    .works-more a:hover{
        opacity: 0.7;
    }
/* WORKS */
    .works-grid{
        display:grid;
        grid-template-columns:repeat(3,1fr);
        gap:30px;
        max-width:1100px;
        margin:0 auto;
    }

    .work-card{
        width:100%;
        box-sizing: border-box;
        min-width: 0;
    }

    .work-card img{
        width: 100%;
        height: auto;
        display: block;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .work-info p{
        font-size:13px;
        line-height:1.7;
    }
    .work-info h3{
        margin-top:15px;
        margin-bottom:10px;
        font-size:18px;
    }

/* CONTACT */
    .contact {
        max-width: 600px;
        margin: 80px auto;
        padding: 0 10px;
    }

    .contact h2 {
        text-align: center;
        margin-bottom: 20px;
    }

    .contact p {
        text-align: center;
        margin-bottom: 40px;
        color: #666;
    }

    .contact label {
        display: block;
        margin-bottom: 8px;
        font-weight: bold;
    }

    .contact input[type="text"],
    .contact input[type="email"],
    .contact textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 14px;
    }

    .contact textarea {
        resize: vertical;
    }
    .contact-summary{
        text-align: center;
        padding: 80px 10%;
    }

    .contact-summary p{
        text-align: center;
    }

    .contact-summary a{
        color: #4A4A4A;
        text-decoration: none;
    }

    .contact-summary a:hover{
        opacity: 0.7;
    }
    .contact button[type="submit"] {
        display: block;
        margin: 20px auto 0;  
        padding: 10px 30px;
        border: none;
        border-radius: 4px;
        background-color: #4a4a4a;
        color: #fff;
        cursor: pointer;
    }

    .contact button:hover {
        opacity: 0.8;
    }
 /* TOP BUTTON */
    .back-to-top{
        position: fixed;
        right: 20px;
        bottom: 20px;

        width: 50px;
        height: 50px;

        background-color: #8B8680;
        color: #fff;

        text-decoration: none;
        border-radius: 50%;

        display: flex;
        align-items: center;
        justify-content: center;

        box-shadow: 0 4px 10px rgba(0,0,0,0.15);

        transition: 0.3s;
    }

    .back-to-top:hover{
        opacity: 0.8;
    }
@media screen and (max-width: 768px){
    .about{
        padding: 50px 6%;
    }
    .profile-photo{
        width: 170px;
        height: 170px;
    }
    .career-section,
    .tools-section{
        max-width: 100%;
    }
    .career-list li{
        margin-bottom: 20px;
    }
    .year{
        display: block;
        width: auto;
        margin-bottom: 5px;
        font-weight: bold;
        color: #8B8680;
    }
    .home-works-grid{
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }
    .home-works-grid .work-card{
        width: 100%;
        max-width: 100%;
    }
    .works-grid{
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }
    .works-grid .work-card{
        width: 100%;
        max-width: 100%;
    }
    .work-card img{
        width: 100%;
        height: auto;
        display: block;
    }
    .work-info h3{
        font-size: 16px;
    }
    .work-info p{
        font-size: 13px;
    }
}